mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-15 00:24:09 +01:00
af3def0e2e
Previously, the accounting data were built on demand, extracting the data from the invoices on-the-fly. This is intended to be used only once in a while, so there was no performance issue with that. Now, we want those data to be accessed from the OpenAPI, so building them on-the-fly would be very much intensive and resouces heavy. So we build them each nights using a scheduled worker and save them in the database
9 lines
326 B
Ruby
9 lines
326 B
Ruby
# frozen_string_literal: false
|
|
|
|
# Stores an accounting datum related to an invoice, matching the French accounting system (PCG).
|
|
# Accounting data are configured by settings starting with accounting_* and by AdvancedAccounting
|
|
class AccountingLine < ApplicationRecord
|
|
belongs_to :invoice
|
|
belongs_to :invoicing_profile
|
|
end
|