maybe it's just a copy/paste issue, but this line ...
# suitescript
a
maybe it's just a copy/paste issue, but this line has a typo:
if (CPrice == 'T' && PriceLvl != '1){