fix: internal transfer flow

This commit is contained in:
Rohit Waghchaure
2022-09-06 16:22:00 +05:30
parent 404668fcc9
commit 4bac0daf9b
13 changed files with 257 additions and 23 deletions

View File

@@ -71,6 +71,9 @@ class TransactionBase(StatusUpdater):
self.validate_value(field, condition, prevdoc_values[field], doc)
def validate_rate_with_reference_doc(self, ref_details):
if self.get("is_internal_supplier"):
return
buying_doctypes = ["Purchase Order", "Purchase Invoice", "Purchase Receipt"]
if self.doctype in buying_doctypes: