Is there any way to create a voiding journal via S...
# suitescript
m
Is there any way to create a voiding journal via SuiteScript and set the date? In the UI when you create a voiding journal you have a chance to change the date before it is saved, but not via`transaction.void` API. The issue is I want the voiding journal to be created in the previous period. NetSuite won't allow changing the GL impact of a voiding journal after it has already been saved.
s
@michoel: we do this on bills when funds are returned, as part of the void submission we collect the ‘funds returned date’, to set on the voiding JE. Solution we used: • Create a Transaction Date field on the Transaction types to be voided:
JE Reversal Date
• Use a beforeSubmit UE on the Voiding Journal to source the date from the
JE Reversal Date
field via
createdfrom
◦ (Fun fact: The field to determine if you’re on a voiding JE is
voiding
and you have to evaluate as
'T'
because that field doesn’t return a boolean) • With this UE in place on the JE, you can set the
JE REVERSAL DATE
and then use
transaction.void()
at any time, and it works as expected.
m
@Sean Hayes thanks that's quite a creative workaround and really helpful. Did you consider just using a standard journal instead?
s
We use JE’s for bill voids by default, so only needed when we have a transaction where the void is entered for a date other than today.