Subject
The steps here explain how to setup and use Document Attributes as part of a Price Calculation in Rockton Pricing Management (RPM) and Acumatica.
Resolution
In this example, we use the State from the Shipping Address of the Customer on a Sales Order to include a shipping cost, which automatically calculates into the transactions unit price. Additionally, when the Customer is in NJ, the shipping cost of $11.25 is added and if the Customer is in PA, a shipping cost of $9.88 is added.
Create Document Attribute in RPM
- In RPM, click Document Attributes from Acumatica Data menu.
- Click Add New.
- Enter Shipping_Address.State as the Name.
- Select String as the Data Type.
- Enter a Description if desired.
- Click Save.
Create Document Attribute in Acumatica
For detailed steps, see KB Article How to Create a Document Attribute in Acumatica for RPM.
- In Acumatica, open RPM Document Attributes from the ERP Data menu.
- Click +.
- Select Order as the Screen ID.
- Enter SOShippingAddress as the Data Class.
- Enter State as the Data Field.
- Enter Shipping_Address.State as the Document Attribute Name.
- Click Save.
Shipping State of NJ Pricing Filter
- In RPM, open Pricing Filters from the Pricing menu.
- Click Add New.
- Enter a Name, such as Shipping_Address.State=NJ.
- Enter a Description if desired.
- Click Save.
- Click Add New to the Pricing Filter Values grid within the newly created Price Filter.
- Select Document as the Entity.
- From the Document Attribute lookup, select Shipping_Address.State.
- Select Equals as the Operand.
- Enter NJ as the Value.
- Click Save.
Shipping State of PA Pricing Filter
- In RPM, open Pricing Filters from the Pricing menu.
- Click Add New.
- Enter a Name, such as Shipping_Address.State=PA
- Enter a Description if desired.
- Click Save.
- Click Add New to the Pricing Filter Values grid within the newly created Price Filter.
- Select Document as the Entity.
- From the Document Attribute lookup, select Shipping_Address.State.
- Select Equals as the Operand.
- Enter PA as the Value.
- Click Save.
Price Calculation for shipping cost NJ
- In RPM, open Price Calculations from the Pricing menu.
- Click Add New.
- Enter a Price Calculation Name, such as NJ Shipping Charge.
- Enter Price Mode Option. This example, we are using Fixed Adjustment.
- Enter Amount which is $11.25 for NJ.
- Mark Modify Unit Price.
- Mark From the Base Starting Price.
- From the Pricing Filter lookup, select Shipping_Address.State=NJ.
- If desired, mark Track Adjustments, as well as selecting a Debit GL Account and Credit GL Account.
- Click Save & Close.
Price Calculation for shipping cost PA
- Click Add New.
- Enter a Price Calculation Name, such as PA Shipping Charge.
- Enter Price Mode Option. This example, we are using Fixed Adjustment.
- Enter Amount which is $9.88 for PA.
- Mark Modify Unit Price.
- Mark From the Base Starting Price.
- From the Pricing Filter lookup, select Shipping_Address.State=PA.
- If desired, mark Track Adjustments, as well as selecting a Debit GL Account and Credit GL Account.
- Click Save & Close.
Assign Price Calculation(s) to Price Schedule
- In RPM, open Price Schedules from the Pricing menu.
- Select the Price Schedule (or create a new one) and click Edit.
- From the Price Calculations grid, click Add New.
- Choose NJ Shipping Charge and click Select.
- Click Add New again from the Price Schedule.
- Choose PA Shipping Charge and click Select.
- Click Save & Close.
In Acumatica, enter a Sales Order. When a Sales Order with a NJ state address code is used, the NJ shipping charge will automatically calculate.
When a Sales Order with a PA state address code is used, the PA shipping charge will automatically calculate.