fix: Remove redundant variable declaration (#22641)

This commit is contained in:
Marica
2020-07-10 12:34:59 +05:30
committed by GitHub
parent fd28f1071e
commit eee12fbcb4

View File

@@ -121,7 +121,6 @@ class TransactionBase(StatusUpdater):
def validate_rate_with_reference_doc(self, ref_details):
buying_doctypes = ["Purchase Order", "Purchase Invoice", "Purchase Receipt"]
selling_doctypes = ["Sales Invoice", "Delivery Note"]
if self.doctype in buying_doctypes:
to_disable = "Maintain same rate throughout Purchase cycle"