From 27ab5b540b78212ccd16b528d9770977e364f946 Mon Sep 17 00:00:00 2001 From: Aditya Hase Date: Sat, 2 Mar 2019 20:36:11 +0530 Subject: [PATCH] fix(tally): Use LEDSTATENAME instead of STATENAME --- .../doctype/tally_migration/tally_migration.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/erpnext/erpnext_integrations/doctype/tally_migration/tally_migration.py b/erpnext/erpnext_integrations/doctype/tally_migration/tally_migration.py index c8e2eba67a..8f3bf5d6cd 100644 --- a/erpnext/erpnext_integrations/doctype/tally_migration/tally_migration.py +++ b/erpnext/erpnext_integrations/doctype/tally_migration/tally_migration.py @@ -189,9 +189,11 @@ class TallyMigration(Document): "address_line1": address[:140].strip(), "address_line2": address[140:].strip(), "country": account.COUNTRYNAME.string if account.COUNTRYNAME else None, - "state": account.STATENAME.string if account.STATENAME else None, - "gst_state": account.STATENAME.string if account.STATENAME else None, + "state": account.LEDSTATENAME.string if account.LEDSTATENAME else None, + "gst_state": account.LEDSTATENAME.string if account.LEDSTATENAME else None, "pin_code": account.PINCODE.string if account.PINCODE else None, + "mobile": account.LEDGERPHONE.string if account.LEDGERPHONE else None, + "phone": account.LEDGERPHONE.string if account.LEDGERPHONE else None, "gstin": account.PARTYGSTIN.string if account.PARTYGSTIN else None, "links": [{"link_doctype": party_type, "link_name": account["NAME"]}], })