You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Populate fields in AR interface table based on Business unit - OM Algorithm

Summary:

We have to populate the inventory item id for frieght charge based on business unit however the orgId used is not working in default condition.

It was working in earlier releases. Please suggest how to validate for Business unit in OM Algorithm

Default condition in the algorithm is :

FreightRow.LineType = ChargeRow.ChargeApplyTo == "SHIPPING" ? "LINE" : FreightRow.LineType;
if (FLine.OrgId == '300000009260188')
{
FreightRow.InventoryItemId = ChargeRow.ChargeApplyTo == "SHIPPING" ? '100000013608175' : null;
}
else
{
FreightRow.InventoryItemId = ChargeRow.ChargeApplyTo == "SHIPPING" ? '300001801129909' : null;
};

ARHeaderDFF.invoiceReference= HeaderEFF != null ? HeaderEFF.invoicereference : null;
ARHeaderDFF.costCenter= Header1EFF != null ? Header1EFF.costcenter : null;
ARHeaderDFF.trapReference= Header1EFF != null ? Header1EFF.trapreferencenumber : null;

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!