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

Commit e032cd1

Browse files
committed
Record API: add isinactive on submit record
1 parent 6ca08cd commit e032cd1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/nsfunc/record-api/submit-record.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,15 @@ exports.nlapiSubmitRecord = (record, doSourcing, ignoreMandatoryFields) => {
5555

5656
let data = {
5757
internalid: record.getId(),
58-
isinactive: 'F',
5958
_uuid: record._uuid
6059
};
6160
for (let i = 0; i < fields.length; i++) {
6261
let field = fields[i];
6362
data[field] = record.getFieldValue(field);
6463
}
64+
if (!data.isinactive) {
65+
data.isinactive = 'F';
66+
}
6567

6668
if (isUpdate) {
6769
// Update Record

0 commit comments

Comments
 (0)