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:
parent
921b5eab2f
commit
91dd7b174e
@ -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
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user