Closed
Description
Preconditions (*)
- Magento 2.4.2
- tax/calculation/price_includes_tax = including tax
- tax/calculation/apply_after_discount = after discount
- tax/calculation/discount_tax = including tax
Steps to reproduce (*)
- Create a cart and add a product that's worth 1000 (incl tax) with a tax% of 25%.
- Set a discount on the cart for 10.
- Do the following graphql request
query getCartDetails($cartId: String!) {
cart(cart_id: $cartId) {
prices {
applied_taxes {
amount {
value
}
}
discount {
amount {
value
}
}
subtotal_including_tax {
value
}
subtotal_excluding_tax {
value
}
subtotal_with_discount_excluding_tax {
value
}
grand_total {
value
}
}
}
}
Expected result (*)
{
"data": {
"cart": {
"prices": {
"applied_taxes": [
{
"amount": {
"value": 198
}
}
],
"discount": {
"amount": {
"value": -10
}
},
"subtotal_including_tax": {
"value": 1000
},
"subtotal_excluding_tax": {
"value": 800
},
"subtotal_with_discount_excluding_tax": {
"value": 792
},
"grand_total": {
"value": 990
}
}
}
}
}
"subtotal_with_discount_excluding_tax" should be 1000 - 10 - 198 = 792
Which is same as 800 (Sub total) - 8 (Sub total discount) = 792
Actual result (*)
{
"data": {
"cart": {
"prices": {
"applied_taxes": [
{
"amount": {
"value": 198
}
}
],
"discount": {
"amount": {
"value": -10
}
},
"subtotal_including_tax": {
"value": 1000
},
"subtotal_excluding_tax": {
"value": 800
},
"subtotal_with_discount_excluding_tax": {
"value": 790
},
"grand_total": {
"value": 990
}
}
}
}
}
UI Issue: Payment Breakup details sum is not matching with Grand Total.
800 - 10 + 198 = 988 but not 990
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done