11
Points
Questions
2
Answers
3
-
Your script is clear, but can you check from custom form / from deployment script that applied at that transaction ? you need check that
- 169 views
- 1 answers
- 0 votes
-
If I reference to SuiteAnswer 42031, the only way to change status on Custom Transaction is using workflow, and maybe can use action workflow script
- 180 views
- 3 answers
- 0 votes
-
Hi Maira,
Do your have output at line log.debug(“empData”,empData); ?
When I see your process, you will save empData with object inside.
When we use object you need to declare parameter then continue to value, reference object you can see here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_ObjectsSample in your code should like this
for (var i = 0; i < lineCount; i++) { var emp = request.getSublistValue({ group: ‘custpage_payroll’, name: ‘custpage_sublistemployee’, line: i }), var netPay = request.getSublistValue({ group: ‘custpage_payroll’, name: ‘custpage_sublistnetpay’, line: i }), var tax = request.getSublistValue({ group: ‘custpage_payroll’, name: ‘custpage_sublisttaxdeduction’, line: i }) // when use Object, need to declare parameter and value empData.push({ 'emp' : emp, 'netPay' : netPay, 'tax' : tax }); } log.debug(“empData”,empData);
- 257 views
- 3 answers
- 0 votes