badgerdigital
10/21/2019, 3:20 PMshippingcost
field via nlapiSetFieldValue when the FIELD CHANGED callback fired. Doing so would also update the order total correctly, and everything was fine.
When 2019.2 was released, setting the shippingcost
field via the FIELD CHANGED callback would do nothing. The shippingcost
value set was ignored, and of course the order total was wrong.
The solution was to set the shippingcost
field in the RECALC FUNCTION callback instead of the FIELD CHANGED callback. When this was done, the shippingcost
was reflected properly and the order total was correct.Chris
10/22/2019, 9:31 PMbadgerdigital
10/22/2019, 9:38 PMafter:LiveOrder.get
and after:LiveOrder.update
Chris
10/22/2019, 9:44 PMbadgerdigital
10/22/2019, 9:46 PMChris
10/22/2019, 9:46 PMbadgerdigital
10/22/2019, 9:47 PMChris
10/22/2019, 9:48 PMOri Zacher
10/23/2019, 12:16 AMshippingcost
to the correct shipping rate (stored in a custom Transaction Body field), per the customer’s delivery method selection. Your solution makes total sense to me - unfortunately we haven’t had success with it yet 😞
Was there any modification you had to make to your Script’s callback function to ensure it worked? Or, did you simply move the function name entered in the Field Changed input to the Recalc Function input on the Script record?badgerdigital
10/23/2019, 12:16 PMbadgerdigital
10/23/2019, 12:17 PMbadgerdigital
10/23/2019, 12:20 PMOri Zacher
10/24/2019, 7:08 AMIS_PROCESSING
flag, our script is pretty much the same. In our case, our script was originally authored with the firefieldchanged
parameter set to false
(the first of the two Boolean arguments in your use of nlapiSetFieldValue()
). Our regular Solution Provider pointed this out and we were able to resolve it just with that. We didn’t need to utilise the RECALC FUNCTION callback in the end.badgerdigital
10/24/2019, 3:50 PMfirefieldchanged
to false
as well. But of course in the code snippet above in the RECALC FUNCTION, we have it set to true
-- I will be definitely testing this in our sandbox to see if we don't need the RECALC FUNCTION.badgerdigital
10/24/2019, 3:51 PM