commit | 1ac17ec1c4e402d384200954a0dc077d8083c662 | [log] [tgz] |
---|---|---|
author | Jigar Tarpara <jigartarpara68@gmail.com> | Tue Feb 19 10:21:01 2019 +0530 |
committer | Jigar Tarpara <jigartarpara68@gmail.com> | Tue Feb 19 10:21:01 2019 +0530 |
tree | 57ca86e147a08a59c834ba99fc8eb25cba9f4de1 | |
parent | 56cbfe4bb0ee301f4922ae3b84ce0c85b3998768 [diff] |
Add credit month in validation
diff --git a/erpnext/accounts/doctype/payment_terms_template/payment_terms_template.py b/erpnext/accounts/doctype/payment_terms_template/payment_terms_template.py index 7042df0..2b2b6af 100644 --- a/erpnext/accounts/doctype/payment_terms_template/payment_terms_template.py +++ b/erpnext/accounts/doctype/payment_terms_template/payment_terms_template.py
@@ -32,7 +32,7 @@ def check_duplicate_terms(self): terms = [] for term in self.terms: - term_info = (term.credit_days, term.due_date_based_on) + term_info = (term.credit_days, term.credit_months, term.due_date_based_on) if term_info in terms: frappe.msgprint( _('The Payment Term at row {0} is possibly a duplicate.').format(term.idx),