fix: invoice cancellation (#18152)

This commit is contained in:
Mangesh-Khairnar 2019-07-04 11:37:20 +05:30 committed by Nabin Hait
parent ca9d13cc9b
commit 359a73e1aa

View File

@ -326,6 +326,9 @@ def get_company_country(company):
return frappe.get_cached_value('Company', company, 'country')
def get_e_invoice_attachments(invoice):
if not invoice.company_tax_id:
return []
out = []
attachments = get_attachments(invoice.doctype, invoice.name)
company_tax_id = invoice.company_tax_id if invoice.company_tax_id.startswith("IT") else "IT" + invoice.company_tax_id