Skip to content

Commit

Permalink
Added check for vend consignment product
Browse files Browse the repository at this point in the history
  • Loading branch information
surajmandal04 committed Oct 21, 2024
1 parent 2dfd75f commit 18079a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ var runMe = function (payload, config, taskId, messageId) {
});
return Promise.map(stockOrderLineItemModels, function (eachLineItem) {
return Promise.delay(1000).then(function(){
if (eachLineItem.receivedQuantity) {
if (eachLineItem.receivedQuantity && eachLineItem.vendConsignmentProduct) {
return utils.updateStockOrderLineitemForVend(db, reportModelInstance, eachLineItem, messageId);
}
else {
Expand Down

0 comments on commit 18079a9

Please sign in to comment.