inventory for set items
This commit is contained in:
@@ -2468,7 +2468,11 @@ private
|
||||
found, inventory_definition = InventoryDefinition.find_product_in_inventory(item)
|
||||
if found
|
||||
if stock_journal = StockJournal.find_by_trans_ref(item.order_items_id)
|
||||
stock_journal.update(remark: self.sale_status)
|
||||
if self.payment_status == "foc" && self.payment_status_was != "foc"
|
||||
stock_journal.update(remark: self.payment_status)
|
||||
else
|
||||
stock_journal.update(remark: self.sale_status)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user