mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 23:52:57 +00:00
validation code improvement
This commit is contained in:
@@ -64,8 +64,9 @@ class StockEntry(StockController):
|
||||
self.calculate_rate_and_amount(update_finished_item_rate=False)
|
||||
|
||||
def on_submit(self):
|
||||
if self.purpose == "Subcontract":
|
||||
for d in self.items:
|
||||
if self.purpose == "Subcontract" and not d.t_warehouse:
|
||||
if not d.t_warehouse:
|
||||
if self.to_warehouse:
|
||||
d.t_warehouse = self.to_warehouse
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user