Merge pull request #28205 from deepeshgarg007/lower_deduction_validation_fix
fix: Error on LDC creation
This commit is contained in:
commit
11e90cc0be
@ -31,7 +31,7 @@ class LowerDeductionCertificate(Document):
|
|||||||
<= fiscal_year.year_end_date):
|
<= fiscal_year.year_end_date):
|
||||||
frappe.throw(_("Valid Upto date not in Fiscal Year {0}").format(frappe.bold(self.fiscal_year)))
|
frappe.throw(_("Valid Upto date not in Fiscal Year {0}").format(frappe.bold(self.fiscal_year)))
|
||||||
|
|
||||||
def tax_withholding_category(self):
|
def validate_supplier_against_tax_category(self):
|
||||||
duplicate_certificate = frappe.db.get_value('Lower Deduction Certificate',
|
duplicate_certificate = frappe.db.get_value('Lower Deduction Certificate',
|
||||||
{'supplier': self.supplier, 'tax_withholding_category': self.tax_withholding_category, 'name': ("!=", self.name)},
|
{'supplier': self.supplier, 'tax_withholding_category': self.tax_withholding_category, 'name': ("!=", self.name)},
|
||||||
['name', 'valid_from', 'valid_upto'], as_dict=True)
|
['name', 'valid_from', 'valid_upto'], as_dict=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user