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

Receipt: Improve data display #5896

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

dennisreimann
Copy link
Member

@dennisreimann dennisreimann commented Apr 3, 2024

Once more an improvement for the receipt, which also fixes #5882:

  • Unify data displayed on the web and print version, format date and time on print version
  • Split cart and additional data and ensure additional data is displayed
  • Do not display extra subtotal row if there are no tips or discounts
  • Make PosData partial more universal and backwards-compatible by using case insensitive key lookups

receipt

print

@dstrukt dstrukt self-requested a review April 3, 2024 20:53
@dstrukt
Copy link
Member

dstrukt commented Apr 3, 2024

Minor immediate visual nit, let's reduce the bottom/top padding between the cards to maybe half (if 16 total ->, if 8 ->4) of what it is now.

Screen Shot 2024-04-03 at 1 54 32 PM

Looks great though - will give it a proper review this evening!

@NicolasDorier
Copy link
Member

ping @dstrukt

Once more an improvement for the receipt, which also fixes btcpayserver#5882:

- Unify data displayed on the web and print version
- Split cart and additional data and ensure additional data is displayed
- Do not display extra subtotal row if there are no tips or discounts
- Make PosData partial more universal and backwards-compatible by using case insensitive key lookups
Copy link
Member

@dstrukt dstrukt left a comment

Choose a reason for hiding this comment

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

tACK - great improvements @dennisreimann! could only find that original nit - excited to see this carry over to the app

@dennisreimann
Copy link
Member Author

Regarding the nit: that would make it different from the spacings we use elsewhere. Imho we should adapt it everywhere to stay consistent and file a separate issue for that.

@dennisreimann dennisreimann merged commit 56d57bb into btcpayserver:master Apr 24, 2024
2 of 4 checks passed
@dennisreimann dennisreimann deleted the receipt branch April 24, 2024 08:22
NicolasDorier pushed a commit that referenced this pull request May 23, 2024
Once more an improvement for the receipt, which also fixes #5882:

- Unify data displayed on the web and print version
- Split cart and additional data and ensure additional data is displayed
- Do not display extra subtotal row if there are no tips or discounts
- Make PosData partial more universal and backwards-compatible by using case insensitive key lookups
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.

[Bug]: Receipt Data does not show on printed paper version from POS.
3 participants