Scenario:
Customer recently switched from SPS to APS, and the APS apparently doesn't like increases in CC charges beyond the original SO PreAuth amount (which SPS allows but the APS bank does not... apparently a ""fun"" conversation Robert had with them). Since the customer adds environmental fees at time of invoicing (and they don't want these charges on the SO), that is a real problem.
What we came up with was a script to pre-calculate the environmental fee total (with a little extra for potential freight charges), and added those amounts into the FreightAmt field on the SO, with the goal of inflating the PreAuth amount.
One problem was that the Ship Code (Weight and Manual) was sometimes overriding the FreightAmt to zero on the SO after the script ran (event triggers on PreTotals... and then added column post validate on FreightAmt, but still it happened). This was finally fixed by replacing buttons (Accept...) with versions which recalculate the FreightAmt before saving / quick printing... and another similar script to make sure the FreightAmt is what they want on CC panel load.
Now, we discover that the PreAuth amount on the CC tab is intermittently not equal to the SO total (Payment ""Amount"" vs ""Auth Amount""). Ugh. I feel like I'm chasing a moving target, and am not eager to start scripting the CC field values to properly set the PreAuth amount (checking to make sure the SO doesn't have an Auth No already).
Has anyone else dealt with this kind of thing already? Any suggestions on how to safely make sure the Auth Amount on an SO is what they want?