fix(india): cannot generate e-invoice for is_pos invoices

* If mode of payment > 18 characters, the e-invoice portal throws error

(cherry picked from commit 0c26f9a8c8)
This commit is contained in:
Saqib Ansari
2022-04-04 12:28:09 +05:30
committed by mergify-bot
parent 6b1a27a641
commit 01404b2b5b

View File

@@ -388,7 +388,7 @@ def update_other_charges(
def get_payment_details(invoice):
payee_name = invoice.company
mode_of_payment = ", ".join([d.mode_of_payment for d in invoice.payments])
mode_of_payment = ""
paid_amount = invoice.base_paid_amount
outstanding_amount = invoice.outstanding_amount