fix: truncate account names to max length
This commit is contained in:
parent
55c048f56c
commit
2976831560
@ -227,9 +227,18 @@ def get_suppliers(filters):
|
||||
|
||||
|
||||
def get_account_names(filters):
|
||||
return frappe.get_list("Account",
|
||||
fields=["account_number as Konto", "name as Kontenbeschriftung"],
|
||||
filters={"company": filters.get("company"), "is_group": "0"})
|
||||
return frappe.db.sql("""
|
||||
SELECT
|
||||
|
||||
account_number as 'Konto',
|
||||
LEFT(account_name, 40) as 'Kontenbeschriftung',
|
||||
'de-DE' as 'Sprach-ID'
|
||||
|
||||
FROM `tabAccount`
|
||||
WHERE company = %(company)s
|
||||
AND is_group = 0
|
||||
AND account_number != ''
|
||||
""", filters, as_dict=1)
|
||||
|
||||
|
||||
def get_datev_csv(data, filters, csv_class):
|
||||
|
Loading…
x
Reference in New Issue
Block a user