-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Fix "Discounts not displayed properly in Orders panel" bug #2773 #2980
Conversation
- Include discount amount in getTotalByShop() computation
…to esther-fix-issue-2773
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just backout the change to getTotalsByShop
and this looks good to go. Discounts are showing up properly in a single-shop.
@@ -203,14 +203,16 @@ export const cartOrderTransform = { | |||
const subtotals = this.getSubtotalByShop(); | |||
const taxes = this.getTaxesByShop(); | |||
const shipping = parseFloat(this.getShippingTotal()); | |||
const discount = parseFloat(this.getDiscounts()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know I said we should be reflecting discount everywhere but this is actually the exception. We haven't finalized how we are handling discounts in a multi-shop scenario and I think this is going to give us odd results, so let's back out this change for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zenweasel when I add a discount, it's not reflected in Total
displayed on Orders page.
@efalayi ready for a review? |
@efalayi Can you add a little more context to your comment. In a multi-shop scenario or? Where on the orders page using what payment provider? When I tested it in a single shop I was seeing the discount show up |
Added this issue #3005 for Stripe, will deal with separately. |
Resolves #2773
"Add Discount" is displayed but the actual discount amount is not
Add Discount is a tag link which when clicked displays a form or list of discount codes
Total displayed does not reflect discount (if included)
Fix
Add Discount
tag with discount amountgetTotalByShop
function to include discount amountTest