[fix] Validate rate with reference doc
This commit is contained in:
parent
afb8ec9cb6
commit
a85a1ff145
@ -124,8 +124,8 @@ class DeliveryNote(SellingController):
|
|||||||
})
|
})
|
||||||
|
|
||||||
if cint(frappe.db.get_single_value('Selling Settings', 'maintain_same_sales_rate')) and not self.is_return:
|
if cint(frappe.db.get_single_value('Selling Settings', 'maintain_same_sales_rate')) and not self.is_return:
|
||||||
self.validate_rate_with_reference_doc([["Sales Order", "sales_order", "so_detail"],
|
self.validate_rate_with_reference_doc([["Sales Order", "against_sales_order", "so_detail"],
|
||||||
["Sales Invoice", "sales_invoice", "si_detail"]])
|
["Sales Invoice", "against_sales_invoice", "si_detail"]])
|
||||||
|
|
||||||
def validate_proj_cust(self):
|
def validate_proj_cust(self):
|
||||||
"""check for does customer belong to same project as entered.."""
|
"""check for does customer belong to same project as entered.."""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user