Skip to content

feat(presentation_group_keys): Change invoice fee object to return only displayable in invoice presentation breakdowns#5539

Merged
tiagolupepic merged 3 commits into
feat/presentation-breakdowns-in-pdf-invoicesfrom
fix/change-fee-object-invoice-to-use-displayable-presentation-breakdowns
May 27, 2026
Merged

feat(presentation_group_keys): Change invoice fee object to return only displayable in invoice presentation breakdowns#5539
tiagolupepic merged 3 commits into
feat/presentation-breakdowns-in-pdf-invoicesfrom
fix/change-fee-object-invoice-to-use-displayable-presentation-breakdowns

Conversation

@tiagolupepic

Copy link
Copy Markdown
Contributor

This commit changes the Fees::Object to filter only the presentation_breakdowns where the display_in_invoice of charge is true.

We're also doing a refactor in FeeDisplayHelper to avoid repeat the same option to filter out the presentation breakdowns are not available in invoice.

Having this, we have the logic centralized in Fee and the FeeDisplayHelper is calling the methods responsible to provide the presentation_breakdowns.

@tiagolupepic
tiagolupepic force-pushed the fix/change-fee-object-invoice-to-use-displayable-presentation-breakdowns branch from 2d63008 to bfbfbad Compare May 19, 2026 17:33
displayable in invoice presentation breakdowns

This commit changes the Fees::Object to filter only the presentation_breakdowns
where the display_in_invoice of charge is true.

We're also doing a refactor in FeeDisplayHelper to avoid repeat the same
option to filter out the presentation breakdowns are not available in invoice.

Having this, we have the logic centralised in Fee and the
FeeDisplayHelper is calling the methods responsible to provide the presentation_breakdowns.
@tiagolupepic
tiagolupepic force-pushed the fix/change-fee-object-invoice-to-use-displayable-presentation-breakdowns branch 3 times, most recently from a63e07b to 0c15f8f Compare May 21, 2026 10:01
… instead of the value

Also, sum the presentation_breakdowns when exist duplicated keys
@tiagolupepic
tiagolupepic force-pushed the fix/change-fee-object-invoice-to-use-displayable-presentation-breakdowns branch from 0c15f8f to 4094cb4 Compare May 21, 2026 10:02
@tiagolupepic
tiagolupepic merged commit 6698dec into feat/presentation-breakdowns-in-pdf-invoices May 27, 2026
12 checks passed
@tiagolupepic
tiagolupepic deleted the fix/change-fee-object-invoice-to-use-displayable-presentation-breakdowns branch May 27, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant