[fix] Reserved and ordered qty fix for drop ship orders

This commit is contained in:
Saurabh
2015-11-18 17:03:33 +05:30
parent a4bf02de6c
commit 2e292060c5
9 changed files with 57 additions and 51 deletions

View File

@@ -303,6 +303,15 @@ class StockController(AccountsController):
}))
self.make_sl_entries(sl_entries)
def validate_warehouse(self):
from erpnext.stock.utils import validate_warehouse_company
warehouses = list(set([d.warehouse for d in
self.get("items") if getattr(d, "warehouse", None)]))
for w in warehouses:
validate_warehouse_company(w, self.company)
def update_gl_entries_after(posting_date, posting_time, for_warehouses=None, for_items=None,
warehouse_account=None):