mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-26 20:54:21 +01:00
12 lines
320 B
Ruby
12 lines
320 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
# Periodically build the accounting data (AccountingLine) from the Invoices & Avoirs
|
||
|
class AccountingWorker
|
||
|
include Sidekiq::Worker
|
||
|
|
||
|
def perform
|
||
|
service = Accounting::AccountingService.new
|
||
|
service.build(DateTime.current.beginning_of_day, DateTime.current.end_of_day)
|
||
|
end
|
||
|
end
|