Skip to content

Commit

Permalink
#150 WEBUI_M_HU_CreateMaterialReceipt 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 bef5179 commit c38afc1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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 @@ -122,7 +123,8 @@ protected String doIt() throws Exception

//
// Generate material receipts
final List<I_M_ReceiptSchedule> receiptSchedules = ImmutableList.of(getM_ReceiptSchedule());
final I_M_ReceiptSchedule receiptSchedule = getM_ReceiptSchedule();
final List<I_M_ReceiptSchedule> receiptSchedules = ImmutableList.of(receiptSchedule);
final Set<I_M_HU> selectedHUs = retrieveHUsToReceive();
final boolean collectGeneratedInOuts = true;
Services.get(IHUReceiptScheduleBL.class).processReceiptSchedules(getCtx(), receiptSchedules, selectedHUs, collectGeneratedInOuts);
Expand All @@ -131,6 +133,8 @@ protected String doIt() throws Exception
//
// Reset the view's affected HUs
getView().invalidateAll();

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

return MSG_OK;
}
Expand Down

0 comments on commit c38afc1

Please sign in to comment.