mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
fixed order fn calling in stock entry
This commit is contained in:
@@ -250,9 +250,9 @@ class DocType:
|
|||||||
if self.doc.production_order:
|
if self.doc.production_order:
|
||||||
pro_obj = get_obj('Production Order', self.doc.production_order)
|
pro_obj = get_obj('Production Order', self.doc.production_order)
|
||||||
self.validate_for_production_order(pro_obj)
|
self.validate_for_production_order(pro_obj)
|
||||||
|
self.get_stock_and_rate(pro_obj and pro_obj.doc.bom_no or '')
|
||||||
self.validate_incoming_rate()
|
self.validate_incoming_rate()
|
||||||
self.validate_warehouse(pro_obj)
|
self.validate_warehouse(pro_obj)
|
||||||
self.get_stock_and_rate(pro_obj and pro_obj.doc.bom_no or '')
|
|
||||||
self.calc_amount()
|
self.calc_amount()
|
||||||
get_obj('Sales Common').validate_fiscal_year(self.doc.fiscal_year,self.doc.posting_date,'Posting Date')
|
get_obj('Sales Common').validate_fiscal_year(self.doc.fiscal_year,self.doc.posting_date,'Posting Date')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user