Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Record API: add isinactive on submit record
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljoppi committed Jan 22, 2016
1 parent 6ca08cd commit e032cd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/nsfunc/record-api/submit-record.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e032cd1

Please sign in to comment.