simpian

Results 11 comments of simpian

hey @michaelbromley i tried implementing my own action, even though the action is reducing exactly $20 off the order, but the actual order still takes tax into account: ![image](https://user-images.githubusercontent.com/70731255/153103460-9ddb9106-d485-424b-a3ac-1d2fcfc18dca.png) I...

I'm really wondering how this discount is calculated. e.g. I have the following items: 1. apple x 1 case $15 x no tax 2. peach x 1 case $20 x...

I wrote an action to just discount the order by exact amount using the following logic: ``` async execute(ctx, order, args) { const weights = order.lines.map(l => l.proratedLinePriceWithTax); const distribution...

![image](https://user-images.githubusercontent.com/70731255/153301473-b6859304-8ec5-43fd-a34b-639197596d3e.png) two of the items have tax of 20%, and one is Zero tax. This causes promotion calculation to have a bug. I guess the prorate function is where this...

a related issue https://github.com/vendure-ecommerce/vendure/issues/1310 happens when I try to modify this order by canceling or refunding items. I get stuck on modifying state and cannot go to anywhere.

![image](https://user-images.githubusercontent.com/70731255/153302061-4f153fab-58cc-4f5d-b1b3-1f95b1618f81.png)

@michaelbromley do you think we can have a setting that gives admins the choice of giving discount on total before or after tax? in our case, we would need to...

Hope this helps ``` operationName: "SearchProducts" query: "query SearchProducts($input: SearchInput!) {\n search(input: $input) {\n items {\n productId\n productName\n productVariantId\n productVariantName\n collectionIds\n inStock\n productAsset {\n preview\n __typename\n }\n price {\n ......

I still have this issue, I'm wondering if it's because I have a custom search options, that may have overwritten your default filtering options?