fix: validate so item with qtn
(cherry picked from commit 17ebc1ea8096a83e882bedd00f358a4bd799eff4)
This commit is contained in:
parent
9675da6f38
commit
71538cfab1
@ -217,7 +217,15 @@ class SalesOrder(SellingController):
|
|||||||
|
|
||||||
def validate_with_previous_doc(self):
|
def validate_with_previous_doc(self):
|
||||||
super(SalesOrder, self).validate_with_previous_doc(
|
super(SalesOrder, self).validate_with_previous_doc(
|
||||||
{"Quotation": {"ref_dn_field": "prevdoc_docname", "compare_fields": [["company", "="]]}}
|
{
|
||||||
|
"Quotation": {"ref_dn_field": "prevdoc_docname", "compare_fields": [["company", "="]]},
|
||||||
|
"Quotation Item": {
|
||||||
|
"ref_dn_field": "quotation_item",
|
||||||
|
"compare_fields": [["item_code", "="], ["uom", "="], ["conversion_factor", "="]],
|
||||||
|
"is_child_table": True,
|
||||||
|
"allow_duplicate_prev_row_id": True,
|
||||||
|
},
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
if cint(frappe.db.get_single_value("Selling Settings", "maintain_same_sales_rate")):
|
if cint(frappe.db.get_single_value("Selling Settings", "maintain_same_sales_rate")):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user