fix(india): escape for special characters in JSON (bp #24695) (#24705)

This commit is contained in:
Ankush Menat
2021-02-25 18:04:58 +05:30
committed by GitHub
parent e9f8e5814a
commit d389261230

View File

@@ -160,7 +160,7 @@ def get_item_list(invoice):
item.update(d.as_dict())
item.sr_no = d.idx
item.description = d.item_name.replace('"', '\\"')
item.description = json.dumps(d.item_name)[1:-1]
item.qty = abs(item.qty)
item.discount_amount = 0