I was thinking about try / catch and I'd do the ro...
# suitescript
c
I was thinking about try / catch and I'd do the roll back of the customer deposit (delete it) if the code ends up in the catch block
b
the only known transactional capability is described in section 2.3.4 Using Parent-Child Relationships to Perform Mass Create/Update of the SAFE guide
would basically only work for custom records
in the likely case that restriction is too harsh, then you can do the try/catch, but i would be very weary of it
its really unusual to do that
e
Can’t you have a process catch the issue later? either in try catch or a scheduled utility that looks for the decrement that didn’t take place… or, just write it to a specific log entry (custom record) which then needs to be processed, deleting (I guess?) the entry. does indeed sound a bit odd
want to describe the nature of this SO field? What’s the count for?
c
@ec I need to count how many payments a customer has left
e
can’t you use a summary saved search for that, possibly?
c
Yeah I'll just compare the amount paid to sales order total or something like that
or invoice status