Skip to content

Commit

Permalink
#150 WEBUI_M_HU_ReverseReceipt notfiy that receptSchedule changed
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Feb 19, 2017
1 parent c38afc1 commit 2749c0e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.adempiere.ad.dao.IQueryBL;
import org.adempiere.util.Services;
import org.adempiere.util.lang.MutableInt;
import org.adempiere.util.lang.impl.TableRecordReference;
import org.compiere.Adempiere;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
Expand Down Expand Up @@ -124,15 +125,19 @@ public WEBUI_M_HU_ReverseReceipt()
@RunOutOfTrx
protected String doIt() throws Exception
{
final I_M_ReceiptSchedule receiptSchedule = getM_ReceiptSchedule();

ReceiptCorrectHUsProcessor.builder()
.setM_ReceiptSchedule(getM_ReceiptSchedule())
.setM_ReceiptSchedule(receiptSchedule)
.build()
.reverseReceiptsForHUs(retrieveHUsToReverse());

//
// Reset the view's affected HUs
getView().invalidateAll();

documentViewsRepo.notifyRecordChanged(TableRecordReference.of(receiptSchedule));

return MSG_OK;
}

Expand Down

0 comments on commit 2749c0e

Please sign in to comment.