Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][IMP] sale_commission: print partial and document total in report #570

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

aleuffre
Copy link

No description provided.

@OCA-git-bot
Copy link
Contributor

Hi @pedrobaeza,
some modules you are maintaining are being modified, check this out!

@francesco-ooops
Copy link
Contributor

@pedrobaeza anything against this? It's a useful change when printing settlement reports for many different settlement lines. WDYS?

@pedrobaeza pedrobaeza added this to the 14.0 milestone Oct 18, 2024
@pedrobaeza
Copy link
Member

Not sure about understanding the changes. Some screenshots of the before and after?

Copy link
Contributor

@francesco-ooops francesco-ooops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure @pedrobaeza, on the left current version, on the right this PR

image

In red: "total" of a single settlement was printed on each page related to that settlement, making it confusing when printing multiple settlements at once.

Now "total" is printed only at the end of a single settlement.

In blue: The total of all settlements printed in the report is explicit.

<t t-foreach="docs" t-as="o">
<t t-call="web.internal_layout">
<div class="page">
<t t-if="show_doc_total">
<div class="text-right">
<strong>Document total:</strong>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Document total wording seems a bit confusing. Better to put it Global amount or Global commission amount.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the review. Changed the wording as you suggested

@aleuffre aleuffre force-pushed the 14.0-report-total-by-month branch from 78e7286 to 7687518 Compare October 21, 2024 10:21
@francesco-ooops
Copy link
Contributor

Hi @pedrobaeza can this be merged? It's quite a minor change.

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge minor

As always, please fw-port it

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 14.0-ocabot-merge-pr-570-by-pedrobaeza-bump-minor, awaiting test results.

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot OCA-git-bot merged commit af1f21a into OCA:14.0 Oct 23, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 9e9321d. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants