Skip to content

Fix: Correct Discount Application in Invoice Generation #83

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

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

Angemichel12
Copy link
Collaborator

What does this PR do?

Displays the price of products after discount on the invoice.

How should this be manually tested?

  1. Log in to the system.
  2. Add products with discounts to the cart.
  3. Pay for the products.
  4. Check if the discounted price of the products is correctly applied on the invoice.

(product.price - (product.price * product.discount) / 100) *
product.quantity
).toFixed(2)}{" "}
Rwf
</Text>
</View>
Copy link
Collaborator

@Tuyisenge2 Tuyisenge2 Jul 29, 2024

Choose a reason for hiding this comment

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

yes i can see the discounnt is being applied on each product bought but why on total has no discount included

Screenshot 2024-07-29 133025
Screenshot 2024-07-29 133038

Copy link
Collaborator

Choose a reason for hiding this comment

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

I have the same issue too

Copy link
Collaborator

Choose a reason for hiding this comment

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

i see that issue too

(product.price - (product.price * product.discount) / 100) *
product.quantity
).toFixed(2)}{" "}
Rwf
</Text>
</View>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I have the same issue too

@Angemichel12 Angemichel12 force-pushed the fix-discount-on-invoice branch from 6c85f3b to 8834a2b Compare July 29, 2024 11:48
Copy link

codeclimate bot commented Jul 29, 2024

Code Climate has analyzed commit 8834a2b and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (60% is the threshold).

This pull request will bring the total coverage in the repository to 96.2% (0.0% change).

View more on Code Climate.

@leandreAlly leandreAlly merged commit 63b4923 into develop Jul 29, 2024
6 checks passed
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.

5 participants