Standard: During broker claim process, vendor invoice will be created with accounting currency.
Requirement : The vendor invoice should be created with transaction currency (Salestable.Currency).
My code :
[ExtensionOf(classStr(MCRBrokerVendInvoice))]
public void createVendorInvoice(MCRBrokerClaim _mcrBrokerClaim)
{
SalesTable salesTable;
next createVendorInvoice(_mcrBrokerClaim);
select salesTable where ......XXXX;
//Logic to update header currency
ttsbegin;
vendInvoiceInfoTable.CurrencyCode = salesTable.CurrencyCode;
vendInvoiceInfoTable.update();
ttscommit;
//Logic to update lines currency
{
}
}
Problem : when I run this code, iam getting this warning -
Becoz there is validation in standard vendInvoiceInfoTable.update() logic. And Iam afraid to bypass the logic by using doUpdate().
Is there any best way to overcome this problem ?