Skip to content

Commit c71688e

Browse files
Charles LedvinaCharles Ledvina
authored andcommitted
Map item status from LastOfITEM_STATUS_DESC
1 parent 644be6a commit c71688e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inventory2/holdingsItems-pcom.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,10 @@ try {
321321
notes: [],
322322
circulationNotes: []
323323
}
324-
325-
let stat = statMap[r.ITEM_STATUS_DESC] || '';
324+
let st = r.LastOfITEM_STATUS_DESC || r.ITEM_STATUS_DESC;
325+
let stat = statMap[st] || '';
326326
if (stat) i.status.name = stat;
327-
if (r.ITEM_STATUS_DESC === 'Damaged') {
327+
if (st === 'Damaged') {
328328
i.itemDamagedStatusId = refData.itemDamageStatuses.Damaged;
329329
}
330330

0 commit comments

Comments
 (0)