Callout BPartnerBill not setting properly dependent fields when called from another callout
Description
We have a code that set the BP and the BP Bill on orders depending on configuration in a third certificate table.
The callout looks like this mTab.setValue(MOrder.COLUMNNAME_C_BPartner_ID, certificate.getC_BPartner_ID()); mTab.setValue(MOrder.COLUMNNAME_Bill_BPartner_ID, certificate.getBill_BPartner_ID());
The callout CalloutOrder.bPartnerBill is not setting properly the price list, address, etc, because it validates if there is another callout active. This leads to data corruption as the address assigned is the Shipping address, not the invoice address.
We have a code that set the BP and the BP Bill on orders depending on configuration in a third certificate table.
The callout looks like this
mTab.setValue(MOrder.COLUMNNAME_C_BPartner_ID, certificate.getC_BPartner_ID());
mTab.setValue(MOrder.COLUMNNAME_Bill_BPartner_ID, certificate.getBill_BPartner_ID());
The callout CalloutOrder.bPartnerBill is not setting properly the price list, address, etc, because it validates if there is another callout active.
This leads to data corruption as the address assigned is the Shipping address, not the invoice address.
Regards,
Carlos Ruiz