in the script I'm porting, the addbutton is in the...
# suitescript
k
in the script I'm porting, the addbutton is in the beforeLoad, and the checkForPromotions function is called from fieldChange and pageInit