mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
[mapper] sales order-sales invoice
This commit is contained in:
@@ -111,7 +111,6 @@ class DocType(SellingController):
|
||||
sales_com_obj.check_stop_sales_order(self)
|
||||
sales_com_obj.check_active_sales_items(self)
|
||||
sales_com_obj.get_prevdoc_date(self)
|
||||
self.validate_reference_value()
|
||||
self.validate_for_items()
|
||||
self.validate_warehouse()
|
||||
|
||||
@@ -134,17 +133,6 @@ class DocType(SellingController):
|
||||
msgprint("Customer - %s does not belong to project - %s. \n\nIf you want to use project for multiple customers then please make customer details blank in project - %s."%(self.doc.customer,self.doc.project_name,self.doc.project_name))
|
||||
raise Exception
|
||||
|
||||
|
||||
def validate_reference_value(self):
|
||||
"""Validate values with reference document with previous document"""
|
||||
validate_ref = any([d.prevdoc_docname for d in self.doclist.get({"parentfield": self.fname})
|
||||
if d.prevdoc_doctype == "Sales Order"])
|
||||
|
||||
if validate_ref:
|
||||
get_obj('DocType Mapper', 'Sales Order-Delivery Note',
|
||||
with_children = 1).validate_reference_value(self, self.doc.name)
|
||||
|
||||
|
||||
def validate_for_items(self):
|
||||
check_list, chk_dupl_itm = [], []
|
||||
for d in getlist(self.doclist,'delivery_note_details'):
|
||||
|
||||
@@ -40,7 +40,7 @@ cur_frm.cscript.refresh = function(doc) {
|
||||
|
||||
cur_frm.cscript.make_dashboard = function() {
|
||||
cur_frm.dashboard.reset();
|
||||
if(doc.__islocal)
|
||||
if(cur_frm.doc.__islocal)
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user