1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

accounting export: display lable on all lignes

This commit is contained in:
Sylvain 2019-10-02 10:25:06 +02:00
parent 0ab2cbdea1
commit 2cc7fb0e44

View File

@ -75,13 +75,13 @@ class AccountingExportService
# Generate the "client" rows, which contains the debit to the client account, all taxes included
def client_rows(invoice)
rows = ''
invoice.payment_means.each_with_index do |details, index|
invoice.payment_means.each do |details|
rows << row(
invoice,
account(invoice, :client, means: details[:means]),
account(invoice, :client, means: details[:means], type: :label),
details[:amount] / 100.00,
line_label: index.zero? ? label(invoice) : '',
line_label: label(invoice),
debit_method: :debit_client,
credit_method: :credit_client
)