fix: Add serial no to Stock Entry doc to decrease quantity for Stock Items consumed during repair
This commit is contained in:
parent
4668bb4be0
commit
1393f97ad5
@ -122,7 +122,8 @@ class AssetRepair(AccountsController):
|
|||||||
"s_warehouse": self.warehouse,
|
"s_warehouse": self.warehouse,
|
||||||
"item_code": stock_item.item_code,
|
"item_code": stock_item.item_code,
|
||||||
"qty": stock_item.consumed_quantity,
|
"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()
|
stock_entry.insert()
|
||||||
|
Loading…
Reference in New Issue
Block a user