diff --git a/lib/nsfunc/record-api/submit-record.js b/lib/nsfunc/record-api/submit-record.js index 33b5b06..f340dd0 100644 --- a/lib/nsfunc/record-api/submit-record.js +++ b/lib/nsfunc/record-api/submit-record.js @@ -55,13 +55,15 @@ exports.nlapiSubmitRecord = (record, doSourcing, ignoreMandatoryFields) => { let data = { internalid: record.getId(), - isinactive: 'F', _uuid: record._uuid }; for (let i = 0; i < fields.length; i++) { let field = fields[i]; data[field] = record.getFieldValue(field); } + if (!data.isinactive) { + data.isinactive = 'F'; + } if (isUpdate) { // Update Record