mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 10:14:59 +00:00
fix: Invocie amount in KSA E Invoice QR Code
(cherry picked from commit f2ffddf059)
This commit is contained in:
committed by
mergify-bot
parent
e4c9581d6e
commit
6fd7460abf
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user