fix: Use all address lines instead of only first two

This commit is contained in:
Aditya Hase 2019-04-29 13:09:23 +05:30
parent ba61be93ae
commit 8afeda924d

View File

@ -165,7 +165,7 @@ class TallyMigration(Document):
"supplier_type": "Individual",
})
if party_type:
address = "\n".join([a.string for a in account.find_all("ADDRESS")[:2]])
address = "\n".join([a.string for a in account.find_all("ADDRESS")])
addresses.append({
"doctype": "Address",
"address_line1": address[:140].strip(),