Hi,
I need to scan a barcode with a date formatted as "YYMMDD" but with the DD with 00 values, like 240800 where 24 is the YY, 08 is the MM, and 00 is the DD.
From my previous post here, it was confirmed that this is not supported by GS1 Barcode Scanning. So I have this workaround idea (not really sure if possible) to create a script that would convert the scanned date (24/08/00) to a valid date (24/07/31) and push it to the state or to the field that is expecting the valid value.
Is the idea even possible? Can you help me with the template or the script related to NetSuite? I can figure out the logic of the script but I have really zero knowledge about how to create the script for NetSuite.
EDIT:
I already have a pure JavaScript function that formats date with 00 day to a valid date. I just need to make it for NetSuite but I can't find any example on how to format the script.
It would be helpful if there are examples for the NetSuite Mobile API for Clint Function NetSuite Applications Suite - Mobile API for Client Function Scripts (oracle.com)
Can someone please provide an example of a Client Function script that I can study so I can incorporate my own code?