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.

Regards,

Carlos Ruiz

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Priority

Created August 21, 2018 at 4:59 PM
Updated October 1, 2018 at 10:09 AM
Resolved August 21, 2018 at 5:13 PM