Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit c51c077
Author: Ivan Novosad <[email protected]>
Date:   Thu Jan 9 14:15:28 2025 +0100

    feat(manual-payments): Add total paid and total due to pdf templates

commit 8e9e11d
Author: Vincent Pochet <[email protected]>
Date:   Fri Jan 24 16:46:44 2025 +0100

    fix(payment): Ensure payment status is checkd as a string (#3104)

    ## Description

    This PR is related to #3088 it
    ensure that none of the payment `status`, `payable_payment_status` and
    related payables's `payment_status` are updated if an unknown status is
    received from a payment provider

commit ec8ef1f
Author: Anna Velentsevich <[email protected]>
Date:   Fri Jan 24 16:15:29 2025 +0100

    Fix(rev-share): fix bugs found during QA (#3098)

    ## Context

    There were small issues found during the QA

    ## Description

    Fixed invoice numbering switching from customer-based to
    per-organization
    Do not allow edit customers via API if they are not editable

commit 4bbb63b
Author: Anna Velentsevich <[email protected]>
Date:   Fri Jan 24 15:30:06 2025 +0100

    add rescue when failing to update charge filters and charges (#3103)

    ## Context

    When an organization have charges or charge filters with wrong
    properties, the migration fails and it's hard to indicate what exactly
    went wrong

    ## Description

    Added rescue to migration that fixes double properties for charges and
    charges filters

commit 3881346
Author: brunomiguelpinto <[email protected]>
Date:   Fri Jan 24 13:56:37 2025 +0000

    fix: filter payments based on visible invoices (#3102)

    ## Context

    This changes the scope `for_organization` in the `Payment` model,
    allowing payments only for visible invoices to be considered.

    ## Description
    only let the Invoices with statuses defined in
    `Invoice::VISIBLE_STATUS`.

commit 035cea3
Author: Jérémy Denquin <[email protected]>
Date:   Fri Jan 24 12:14:33 2025 +0100

    fix(tasks): Fix signup task env var (#3101)
  • Loading branch information
ivannovosad committed Jan 24, 2025
1 parent f5a225c commit 9ae177e
Show file tree
Hide file tree
Showing 15 changed files with 93 additions and 13 deletions.
10 changes: 9 additions & 1 deletion app/views/templates/invoices/v3/_credit.slim
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,13 @@ table.invoice-resume-table width="100%"
table.total-table width="100%"
tr
td.body-2
td.body-1 = I18n.t('invoice.total_due')
td.body-1 = I18n.t('invoice.total')
td.body-1 = MoneyHelper.format(total_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_paid_amount')
td.body-1 = MoneyHelper.format(total_paid_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_due_amount')
td.body-1 = MoneyHelper.format(total_due_amount)
12 changes: 11 additions & 1 deletion app/views/templates/invoices/v3/_subscription_details.slim
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,19 @@
td.body-2 = '-' + MoneyHelper.format(prepaid_credit_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_due')
td.body-1 = I18n.t('invoice.total')
td.body-1
= MoneyHelper.format(total_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_paid_amount')
td.body-1
= MoneyHelper.format(total_paid_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_due_amount')
td.body-1
= MoneyHelper.format(total_due_amount)
- else
tr
td.body-2
Expand Down
10 changes: 9 additions & 1 deletion app/views/templates/invoices/v3/_subscriptions_summary.slim
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,13 @@ table.total-table width="100%"
td.body-2 = '-' + MoneyHelper.format(prepaid_credit_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_due')
td.body-1 = I18n.t('invoice.total')
td.body-1 = MoneyHelper.format(total_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_paid_amount')
td.body-1 = MoneyHelper.format(total_paid_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_due_amount')
td.body-1 = MoneyHelper.format(total_due_amount)
12 changes: 9 additions & 3 deletions app/views/templates/invoices/v3/one_off.slim
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,16 @@ html
td.body-2 = MoneyHelper.format(sub_total_including_taxes_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_due')
td.body-1 = I18n.t('invoice.total')
td.body-1 = MoneyHelper.format(total_amount)


tr
td.body-2
td.body-1 = I18n.t('invoice.total_paid_amount')
td.body-1 = MoneyHelper.format(total_paid_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_due_amount')
td.body-1 = MoneyHelper.format(total_due_amount)

- if applied_invoice_custom_sections.present?
== SlimHelper.render('templates/invoices/v3/_custom_sections', self)
Expand Down
12 changes: 10 additions & 2 deletions app/views/templates/invoices/v4/_credit.slim
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,13 @@ table.invoice-resume-table width="100%"
table.total-table width="100%"
tr
td.body-2
td.body-1 = I18n.t('invoice.total_due')
td.body-1 = MoneyHelper.format(total_amount)
td.body-1 = I18n.t('invoice.total')
td.body-1 = MoneyHelper.format(total_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_paid_amount')
td.body-1 = MoneyHelper.format(total_paid_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_due_amount')
td.body-1 = MoneyHelper.format(total_due_amount)
10 changes: 9 additions & 1 deletion app/views/templates/invoices/v4/_one_off.slim
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,13 @@ table.total-table width="100%"
td.body-2 = MoneyHelper.format(sub_total_including_taxes_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_due')
td.body-1 = I18n.t('invoice.total')
td.body-1 = MoneyHelper.format(total_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_paid_amount')
td.body-1 = MoneyHelper.format(total_paid_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_due_amount')
td.body-1 = MoneyHelper.format(total_due_amount)
12 changes: 11 additions & 1 deletion app/views/templates/invoices/v4/_subscription_details.slim
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,19 @@
td.body-2 = '-' + MoneyHelper.format(prepaid_credit_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_due')
td.body-1 = I18n.t('invoice.total')
td.body-1
= MoneyHelper.format(total_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_paid_amount')
td.body-1
= MoneyHelper.format(total_paid_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_due_amount')
td.body-1
= MoneyHelper.format(total_due_amount)
- else
- if progressive_billing_credit_amount_cents.positive?
- credits = progressice_billing_credits(invoice_subscription.subscription).all
Expand Down
10 changes: 9 additions & 1 deletion app/views/templates/invoices/v4/_subscriptions_summary.slim
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,13 @@ table.total-table width="100%"
td.body-2 = '-' + MoneyHelper.format(prepaid_credit_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_due')
td.body-1 = I18n.t('invoice.total')
td.body-1 = MoneyHelper.format(total_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_paid_amount')
td.body-1 = MoneyHelper.format(total_paid_amount)
tr
td.body-2
td.body-1 = I18n.t('invoice.total_due_amount')
td.body-1 = MoneyHelper.format(total_due_amount)
2 changes: 2 additions & 0 deletions config/locales/de/invoice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ de:
total_credits: Gesamtguthaben
total_credits_with_value: 'Gesamtguthaben: %{credit_amount} Credits'
total_due: Insgesamt fällig
total_due_amount: Betrag fällig
total_events: 'Ereignisse insgesamt: %{count}'
total_paid_amount: Betrag bezahlt
total_unit: 'Gesamte Einheiten: %{units}'
total_unit_interval: 'Gesamte Einheiten: %{events_count} Ereignisse für %{units}'
true_up_details: Mindestausgabe von %{min_amount} anteilig an den Nutzungstagen
Expand Down
2 changes: 2 additions & 0 deletions config/locales/en/invoice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ en:
total_credits: Total credits
total_credits_with_value: 'Total credits: %{credit_amount} credits'
total_due: Total due
total_due_amount: Amount due
total_events: 'Total events: %{count}'
total_paid_amount: Amount paid
total_unit: 'Total unit: %{units}'
total_unit_interval: 'Total unit: %{events_count} events for %{units}'
true_up_details: Minimum spend of %{min_amount} prorated on days of usage
Expand Down
4 changes: 3 additions & 1 deletion config/locales/es/invoice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ es:
total: Total
total_credits_with_value: 'Total de créditos con valor: %{credit_amount} créditos'
total_due: Total debido
total_event: Eventos totales
total_due_amount: Monto debido
total_events: 'Eventos totales: %{count}'
total_paid_amount: Monto pagado
total_unit: 'Total de unidades: %{units}'
total_unit_interval: 'Total de unidades: %{events_count} evento(s) para %{units}'
true_up_details: Gasto mínimo de %{min_amount} prorrateado en días de uso
Expand Down
2 changes: 2 additions & 0 deletions config/locales/fr/invoice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ fr:
total_credits: Total crédits
total_credits_with_value: 'Nombre total de crédits: %{credit_amount} crédits'
total_due: Total dû
total_due_amount: Montant dû
total_events: 'Nombre total d''événements: %{count}'
total_paid_amount: Montant payé
total_unit: 'Nombre total d''unités: %{units}'
total_unit_interval: 'Nombre total d''unités: %{events_count} événement(s) pour %{units}'
true_up_details: Dépense minimale de %{min_amount} au prorata des jours d'utilisation
Expand Down
2 changes: 2 additions & 0 deletions config/locales/it/invoice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ it:
total_credits: Crediti totali
total_credits_with_value: 'Crediti totali: %{credit_amount} crediti'
total_due: Totale dovuto
total_due_amount: Importo dovuto
total_events: 'Eventi totali: %{count}'
total_paid_amount: Importo pagato
total_unit: 'Unità totale: %{units}'
total_unit_interval: 'Unità totale: %{events_count} eventi per %{units}'
true_up_details: Spesa minima di %{min_amount} proporzionata sui giorni di utilizzo
Expand Down
2 changes: 2 additions & 0 deletions config/locales/nb/invoice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ nb:
total_credits: Antall kreditter
total_credits_with_value: 'Antall kreditter: %{credit_amount} kreditter'
total_due: Å betale
total_due_amount: Skyldig beløp
total_events: 'Totalt antall hendelser: %{count}'
total_paid_amount: Betalt beløp
total_unit: 'Antall enheter: %{units}'
total_unit_interval: 'Antall enheter: %{events_count} hendelser for %{units}'
true_up_details: Minimumsutgift på %{min_amount} beregnet etter antall brukte dager
Expand Down
4 changes: 3 additions & 1 deletion config/locales/sv/invoice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ sv:
total: Total
total_credits_with_value: 'Totalt antal krediter med värde: %{credit_amount} krediter'
total_due: Att betala
total_event: Totala händelser
total_due_amount: Att betala belopp
total_events: 'Totala händelser: %{count}'
total_paid_amount: Betalt belopp
total_unit: 'Totalt antal enheter: %{units}'
total_unit_interval: 'Totalt antal enheter: %{events_count} händelse(r) för %{units}'
true_up_details: Minsta utgift på %{min_amount} fördelat på användningsdagar
Expand Down

0 comments on commit 9ae177e

Please sign in to comment.