I'm using a JS script as a plugin for QCP calculator to do some stuff after every change in Quote Edit Lines.
Now I need to run the part of the script only when user presses Calculate or Save button. The only way I see is to somehow find out in the script, what was the reason of this script to run (did user press Calculate or Save button or did he edit any field so the script started). Script functions have 3 params: quoteLineModels, quoteModel, conn; I've investigated the difference between these objects when user pressed Calculate button and when user edited any field not changing the value (e.g. from 150 to 150) and found no difference
Unchecking Calculate Immediately checkbox in CPQ package settings is not a solution - I need this checkbox for other calculations, not for the script
Juan Pablo Isaza