mirror of
https://github.com/bringout/oca-ocb-pos.git
synced 2026-04-26 08:22:04 +02:00
Initial commit: Pos packages
This commit is contained in:
commit
95dfb9edb0
1301 changed files with 264148 additions and 0 deletions
|
|
@ -0,0 +1,36 @@
|
|||
/** @odoo-module **/
|
||||
|
||||
import { PosLoyalty } from 'pos_loyalty.tour.PosCouponTourMethods';
|
||||
import { ProductScreen } from 'point_of_sale.tour.ProductScreenTourMethods';
|
||||
import { getSteps, startSteps } from 'point_of_sale.tour.utils';
|
||||
import Tour from 'web_tour.tour';
|
||||
|
||||
// First tour should not get any automatic rewards
|
||||
startSteps();
|
||||
|
||||
ProductScreen.do.confirmOpeningPopup();
|
||||
ProductScreen.do.clickHomeCategory();
|
||||
|
||||
// Not valid -> date
|
||||
ProductScreen.exec.addOrderline('Whiteboard Pen', '5');
|
||||
PosLoyalty.check.checkNoClaimableRewards();
|
||||
PosLoyalty.exec.finalizeOrder('Cash');
|
||||
|
||||
Tour.register('PosLoyaltyValidity1', { test: true, url: '/pos/web' }, getSteps());
|
||||
|
||||
// Second tour
|
||||
startSteps();
|
||||
|
||||
ProductScreen.do.clickHomeCategory();
|
||||
|
||||
// Valid
|
||||
ProductScreen.exec.addOrderline('Whiteboard Pen', '5');
|
||||
PosLoyalty.check.hasRewardLine('90% on the cheapest product', '-2.88');
|
||||
PosLoyalty.exec.finalizeOrder('Cash');
|
||||
|
||||
// Not valid -> usage
|
||||
ProductScreen.exec.addOrderline('Whiteboard Pen', '5');
|
||||
PosLoyalty.check.checkNoClaimableRewards();
|
||||
PosLoyalty.exec.finalizeOrder('Cash');
|
||||
|
||||
Tour.register('PosLoyaltyValidity2', { test: true, url: '/pos/web' }, getSteps());
|
||||
Loading…
Add table
Add a link
Reference in a new issue