Step 1: On manager station in Service - Scripts – Operations create 2 operations:
var
summa:double;
begin
if not RKCheck.Valid then Exit;
summa:=RKCheck.CurrentOrder.Visit.GuestCnt*10;
if RKCheck.CurrentOrder.ToPaySum < summa then
begin
RKCheck.CreateCheckItemByReferenceCode(rkrefDiscounts, '150');
if SYS.ObjectInheritsFrom(TObject(RKCheck.CurrentCheckItem), 'TDiscountItem') then
begin
TDiscountItem(RKCheck.CurrentCheckItem).SrcAmount := summa - RKCheck.CurrentOrder.ToPaySum;
TDiscountItem(RKCheck.CurrentCheckItem).ValueChanged := True;
TDiscountItem(RKCheck.CurrentCheckItem).ChargeSource := chsHuman;
end;
end;
RK7.PostOperation(rkoPrintBill, 0);
end;
* 10 here is sum of minimal charge in basic currency
* 150 here is discount code
var
summa:double;
begin
if not RKCheck.Valid then Exit;
summa:=RKCheck.CurrentOrder.Visit.GuestCnt*10;
if RKCheck.CurrentOrder.ToPaySum < summa then
begin
RKCheck.CreateCheckItemByReferenceCode(rkrefDiscounts, '150');
if SYS.ObjectInheritsFrom(TObject(RKCheck.CurrentCheckItem), 'TDiscountItem') then
begin
TDiscountItem(RKCheck.CurrentCheckItem).SrcAmount := summa - RKCheck.CurrentOrder.ToPaySum;
TDiscountItem(RKCheck.CurrentCheckItem).ValueChanged := True;
TDiscountItem(RKCheck.CurrentCheckItem).ChargeSource := chsHuman;
end;
end;
RK7.PostOperation(RKOCalcOrder,0);
end;
* 10 here is sum of minimal charge in basic currency
* 150 here is discount code
Step 2: On manager station in Money - Discounts and Markups create markup with next adjustments:
Code: 150 (it may be different, but must be equal with rkrefDiscounts, '150' in script body)
Name: Minimal Charge (or Minimal Charge Rest)
Changeable value: ON
Count type: Amount (it is important!)
Combine any: ON
On order: ON
Other ticks are OFF and settings are DEFAULT.
There is no need to set any values in Details. Left it as is.
Step 3: On manager station in Service – Operation – User Operations:
Step 4: On manager station in Options – User interface – Function Keys – Order Operations – Operations Selector create:
Step 5: On manager station in Options – User interface – Selectors – Order – Operation Selector – Receipt: Operation Selector
Step 6: Now just add this selector (click on our Minimal Charge) in usage by clicking “gear” button and dragging it onto main screen.