Merge pull request #28713 from frappe/mergify/bp/version-13-hotfix/pr-28708

fix: Invoice amount in KSA E Invoice QR Code (backport #28708)
This commit is contained in:
Deepesh Garg
2021-12-03 15:52:29 +05:30
committed by GitHub

View File

@@ -78,7 +78,7 @@ def create_qr_code(doc, method):
tlv_array.append(''.join([tag, length, value]))
# Invoice Amount
invoice_amount = str(doc.total)
invoice_amount = str(doc.grand_total)
tag = bytes([4]).hex()
length = bytes([len(invoice_amount)]).hex()
value = invoice_amount.encode('utf-8').hex()