On a very rare occasion my company needs to change OrderHed CustomerID.
We do not use Price Lists - our pricing comes from an external system.
Some Order Lines have a QuoteNum reference and do not change when the CustomerID changes.
Some Sales Order Lines are added with what we call Change Orders in our outside system.
The Quote referenced on the original Lines is Won and complete.
The new Sales Order Lines do not have a Quote Num reference available.
When the the CustomerID changes I traced that Erp.BO.SalesOrder.ChangeOrderHedCustomerCustID is executed.
That has Sales Order Lines that don’t have a QuoteNum and Quote Line reference look at the Part Master UnitPrice value saved to the Sales Order Line. EpicCare has stated that this is Epicor “working as designed”.
Can I shut this piece off?
Or maybe someone can help me trouble shoot this.
Because what I tried is to trigger a Pre- Method Directive off of Erp.BO.SalesOrder.ChangeOrderHedCustomerCustID.
I use a Fill Table By Query → Invoke BO Method
I’m trying to get the Sales Order Line UnitPRice saved to Part UnitPrice before the CustomerID change processes.
But I can’t seem to get that to work.
The Variable I have is “Price” for the “UpdExtPartTableset”
The Fill Table By Query is this:
But I’m not 100% sure I’m doing that piece correctly.
That is inserting data into the Price.Part table.
Here is the mapping:
Invoke BO Method uses “Erp.Part.UpdateExt” BO method
Here is the binding I’ve setup:
The idea is if The Price is going to be fetched from the Part Master, then I want to save the Sales Order Line UnitPrice to the Part Master UnitPrice before the Erp.BO.SalesOrder.ChangeOrderHedCustomerCustID is triggered.
My tests fail.
Any help on what I’m doing wrong is appreciated.
Ben



