You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When upgrading the CPOS from version 10.0.32 to 10.0.35 the code in the PrePriceOverride stopped working.
For certain items a price override should not be allowed, so a dialog was shown and the code was completed with:
return Promise.resolve({ canceled: true });
The code has not been changed since 2021.
I tried to simplify always execute: return Promise.resolve({ canceled: true });
and nothing else but the code always showed the price change dialog. Show the code was simply:
import * as Triggers from "PosApi/Extend/Triggers/ProductTriggers";
import { ClientEntities } from "PosApi/Entities";
export default class PrePriceOverrideTrigger extends Triggers.PrePriceOverrideTrigger {
public async execute(options: Triggers.IPrePriceOverrideTriggerOptions): Promise {
return Promise.resolve({ canceled: true });
}
}
We have tried below and that's help mitigate the issue Any background story on why this changed in version 10.0.35?
Anything else we need to be aware of?
Hello @ahgamal-ms - thanks for reporting this. It looks like this was a regression that was introduced in 10.0.33. I have filed a bug for the payments team to fix this.
Hi @madyke same has reported with PreProductSaleTrigger. the return Promise.reject(new ClientEntities.ExtensionError(""));
is not working as expected and didn't prevent adding item to cart. i have adviced the customer to use return Promise.resolve({ canceled: true }); however they loss the error message dialog which require additional work on them.
So is there any reason why the Promise.reject stop working and if this a bug that would require a fix or if this is as designed ?
When upgrading the CPOS from version 10.0.32 to 10.0.35 the code in the PrePriceOverride stopped working.
For certain items a price override should not be allowed, so a dialog was shown and the code was completed with:
The code has not been changed since 2021.
I tried to simplify always execute: return Promise.resolve({ canceled: true });
and nothing else but the code always showed the price change dialog. Show the code was simply:
We have tried below and that's help mitigate the issue Any background story on why this changed in version 10.0.35?
Anything else we need to be aware of?
The text was updated successfully, but these errors were encountered: