I'm trying to void journalentry transactions but i...
# suitescript
a
I'm trying to void journalentry transactions but it keeps saying "invalid record type" Tested both string "journalentry" and enum Any idea?
b
compare your <https:/system.netsuite.com/app/help/helpcenter.nl?fid=bridgehead_n1469460.html|Void Transactions Using Reversing Journals preference> to the supported void type of journal entries
different transactions support voiding depending on the preference
a
@battk many thanks What about timebill, it seems there is no void support for that. Any idea how we can void a time bill(mimic the void button)?
b
dont really recognize that
might want to try _Void_ _Time_ Entry via Script
a
@battk many thanks Seems this is the solution, but after I load the config it can't find sublist line with that value. is it because it's too heavy? It has lines from 2015
b
again, im unfamiliar with this
you can try seeing how many lines there are
if its a nice even number like 10000, you probably have too many lines
usually those type of records have filtering options which might work in dynamic mode
you can probably try playing around with it in the ui: Posting Time Transactions.
a
Could you please give me one example or link about filtering options
b
a
You mean search
I thought there is a filter when we load it
b
you can set different fields on the record to filter the sublist
may or may not work in suitescript
a
Could you please show an example
How can I set fields
On the record
b
its a record, you use Record.setValue
a
That's correct
But how can I limit the result of
Config.load()
I mean limit the sublists
b
again, take a look at how the whole process works in the ui
it probably involves setting a couple of fields
set those same fields on the record
a
Didn't work
I have received this error Reference error Synctimerange is not defined
Please let me know if you find anything about this in the future
Many thanks
b
you may be doomed then, might want to try asking support