Skip to content

Commit

Permalink
attempt to update master data as well
Browse files Browse the repository at this point in the history
  • Loading branch information
metas-ts committed Nov 30, 2020
1 parent 7fc4543 commit cd52ff8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ public void updateSalesPartnerInOrder(@NonNull final I_C_Order orderRecord)
documentSalesRepDescriptor.syncToRecord();
}

@ModelChange(timings = ModelValidator.TYPE_AFTER_CHANGE, ifColumnsChanged = I_C_Order.COLUMNNAME_C_BPartner_SalesRep_ID)
/**
* Note: also update bpartner-master data if a new order was created from C_OLCands, thus the {@code AFTER_NEW}.
*/
@ModelChange(timings = { ModelValidator.TYPE_AFTER_NEW, ModelValidator.TYPE_AFTER_CHANGE }, //
ifColumnsChanged = I_C_Order.COLUMNNAME_C_BPartner_SalesRep_ID)
public void updateSalesPartnerInCustomerMaterdata(@NonNull final I_C_Order orderRecord)
{
if (!orderRecord.isSOTrx())
Expand Down

0 comments on commit cd52ff8

Please sign in to comment.