fix: Add serial no to Stock Entry doc to decrease quantity for Stock Items consumed during repair

This commit is contained in:
GangaManoj 2021-11-11 18:48:23 +05:30
parent 4668bb4be0
commit 1393f97ad5

View File

@ -122,7 +122,8 @@ class AssetRepair(AccountsController):
"s_warehouse": self.warehouse,
"item_code": stock_item.item_code,
"qty": stock_item.consumed_quantity,
"basic_rate": stock_item.valuation_rate
"basic_rate": stock_item.valuation_rate,
"serial_no": stock_item.serial_no
})
stock_entry.insert()