mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
[validation] over billing against DN/PR
This commit is contained in:
@@ -75,6 +75,7 @@ class DocType(BuyingController):
|
||||
self.validate_write_off_account()
|
||||
self.update_raw_material_cost()
|
||||
self.update_valuation_rate("entries")
|
||||
self.validate_multiple_billing("Purchase Receipt", "pr_detail", "import_amount")
|
||||
|
||||
def get_credit_to(self):
|
||||
acc_head = sql("""select name, credit_days from `tabAccount`
|
||||
|
||||
@@ -93,6 +93,7 @@ class DocType(SellingController):
|
||||
self.validate_c_form()
|
||||
self.validate_time_logs_are_submitted()
|
||||
self.validate_recurring_invoice()
|
||||
self.validate_multiple_billing("Delivered Note", "dn_detail", "export_amount")
|
||||
|
||||
def on_submit(self):
|
||||
if cint(self.doc.update_stock) == 1:
|
||||
|
||||
Reference in New Issue
Block a user