Merge pull request #30949 from frappe/mergify/bp/version-13-hotfix/pr-30948
fix(india): invoice type for a debit note e-invoice (backport #30948)
This commit is contained in:
@@ -168,7 +168,12 @@ def get_doc_details(invoice):
|
||||
title=_("Not Allowed"),
|
||||
)
|
||||
|
||||
invoice_type = "CRN" if invoice.is_return else "INV"
|
||||
if invoice.is_return:
|
||||
invoice_type = "CRN"
|
||||
elif invoice.is_debit_note:
|
||||
invoice_type = "DBN"
|
||||
else:
|
||||
invoice_type = "INV"
|
||||
|
||||
invoice_name = invoice.name
|
||||
invoice_date = format_date(invoice.posting_date, "dd/mm/yyyy")
|
||||
|
||||
Reference in New Issue
Block a user