When I transform a salesorder to an invoice it sel...
# suitescript
k
When I transform a salesorder to an invoice it selects today's posting period by default, and setText the postingperiod to a hard coded "Jul 2023" is kinda clunky
a
are you setting the trandate? or its autoselecting today as the trandate and setting the matching postingperiod? and you want to change both?
there's two approaches that I think can both work, you can have the record created in dynamic mode, and when you set the trandate, the postingperiod should match that... I suppose its possible if you're transforming maybe that's not getting triggered and updated correctly? the more hands on way, is that postingperiod is actually a record type, so you can search for it and then use date filters to bring back the correct internalid of the appropriate posting period and set that value.