Hi everyone,
Under some circumstances the amount shown on the admin order page are incorrect at the line item level.
In the following example, the “Spare fabric” line item was actually charged at £77.13, and not £77.08 as displayed. The summary section, showing the discount of £4.05 is correct however.
The amounts shown on the storefront also display correctly.
Here is the output from the discount function:
{
"discountApplicationStrategy": "ALL",
"discounts": [
{
"message": "5% off fabric",
"targets": [
{
"cartLine": {
"id": "gid://shopify/CartLine/0",
"quantity": 41
}
}
],
"value": {
"percentage": {
"value": "5.0"
}
}
}
]
}
Happy to supply any more details needed.
Cheers,
Dave.