1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

(bug) unable to export accounting if label not defined

This commit is contained in:
Sylvain 2023-01-19 15:25:20 +01:00
parent 921b5eab2f
commit 91dd7b174e
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@
- Improved SSO testing
- Fix a bug: unable to run task fix_invoice_item when some invoice items are associated with errors
- Fix a bug: invalid event date reported when the timezone in before UTC
- Fix a bug: unable to run accounting export if a line label was not defined
- [TODO DEPLOY] `rails fablab:fix:invoice_items_in_error` THEN `rails fablab:fix_invoice_items` THEN `rails db:migrate`
## v5.6.5 2023 January 9

View File

@ -62,9 +62,9 @@ class Accounting::AccountingExportService
when 'date'
row << line.date&.strftime(date_format)
when 'account_code'
row << line.account_code
row << line.account_code.to_s
when 'account_label'
row << line.account_label
row << line.account_label.to_s
when 'piece'
row << line.invoice.reference
when 'line_label'