hi everyone, two questions - 1. is it possible to ...
# suitescript
a
hi everyone, two questions - 1. is it possible to use the debugger with M/R scripts? 2. has anyone had any issues with rounding amounts causing a JE not to balance and therefore make it un-saveable?
u
For 1, no. since it is a multi-stage script, it it is not possible in the debugger.
👍 1
a
For 2, yes it happened in the past. The rule is to always round to your currency precision with fixed precision (ROUND) and then use the rounded value in the account and in the counter account debit/credit amount.
m
I believe @mattdahse’s book https://leanpub.com/netsuitedevelopment has has a section and some sample code for using the debugger with MR scripts