bug fixes and improvements

This commit is contained in:
Thein Lin Kyaw
2019-09-30 16:53:02 +06:30
parent faa0acee6d
commit 94a1f5b2b5
4 changed files with 20 additions and 22 deletions

View File

@@ -2940,7 +2940,7 @@ private
end
def update_stock_journal
if self.sale_status == "void" && self.sale_status_was != "void"
if self.sale_status == "void" && self.sale_status_before_last_save != "void"
self.sale_items.each do |item|
found, inventory_definition = InventoryDefinition.find_product_in_inventory(item)
if found