Compare commits
3 Commits
d380bcafe8
...
7b1ea963e2
Author | SHA1 | Date | |
---|---|---|---|
7b1ea963e2 | |||
8163be5022 | |||
1fdbf3b9ca |
@ -2,7 +2,6 @@
|
|||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include "controlBus.h"
|
#include "controlBus.h"
|
||||||
#include "dcBL.h"
|
#include "dcBL.h"
|
||||||
#include "interfaces.h"
|
|
||||||
|
|
||||||
static uint32_t hwapi_lastStartAmount;
|
static uint32_t hwapi_lastStartAmount;
|
||||||
static uint32_t hwapi_lastTotalAmount;
|
static uint32_t hwapi_lastTotalAmount;
|
||||||
@ -166,6 +165,7 @@ uint8_t T_runProc::cash_paymentProcessing(void)
|
|||||||
|
|
||||||
sub_getDynMachineConditions(&myDynMachCond);
|
sub_getDynMachineConditions(&myDynMachCond);
|
||||||
payInProg= myDynMachCond.paymentInProgress;
|
payInProg= myDynMachCond.paymentInProgress;
|
||||||
|
// Version Szeged: aug2023
|
||||||
// 0: stopped by timeout
|
// 0: stopped by timeout
|
||||||
// 1: running 2: wait4lastCoin
|
// 1: running 2: wait4lastCoin
|
||||||
// 3: payment stopped manually, coins in Escrow
|
// 3: payment stopped manually, coins in Escrow
|
||||||
@ -175,9 +175,26 @@ uint8_t T_runProc::cash_paymentProcessing(void)
|
|||||||
// 7: coins returned 2 cases: due to cancel-button or printer-error
|
// 7: coins returned 2 cases: due to cancel-button or printer-error
|
||||||
// 8: CoinChecker or MDB on Error
|
// 8: CoinChecker or MDB on Error
|
||||||
|
|
||||||
|
// since Schoenau with bill and changer, nov2023
|
||||||
|
//0 = no payment
|
||||||
|
//will be set to 1 by cash_startCollection()
|
||||||
|
//neu 1: wait for devices getting ready for payment
|
||||||
|
//2 = payment,
|
||||||
|
//3 = wait for last coin/bill
|
||||||
|
//4 = Bezahlvorgang manuell beendet
|
||||||
|
//5 = payment stopped autom, amount collected, coins in Escrow
|
||||||
|
//6 = Bezahlvorgang beendet weil ZK voll
|
||||||
|
//4,5,6: payment done, keep on polling, wait for cash or return command
|
||||||
|
//7 = encash collected money from coin escrow into cash box
|
||||||
|
//8 = return "amountToReturn", can be complete inserted amount or only overpayment
|
||||||
|
//9 = wait for changer result
|
||||||
|
//10= print refund receipt with "amountToReturn"
|
||||||
|
|
||||||
|
|
||||||
// qCritical() << "emitting signal payCancelled";
|
// qCritical() << "emitting signal payCancelled";
|
||||||
// emit runProc_payCancelled();
|
// emit runProc_payCancelled();
|
||||||
|
/*
|
||||||
|
// gabs bei Szeged, jetzt nicht mehr:
|
||||||
if (payInProg==8)
|
if (payInProg==8)
|
||||||
{
|
{
|
||||||
// coin checker faulty, cannot start
|
// coin checker faulty, cannot start
|
||||||
@ -188,11 +205,11 @@ uint8_t T_runProc::cash_paymentProcessing(void)
|
|||||||
emit runProc_coinCollectionAborted();
|
emit runProc_coinCollectionAborted();
|
||||||
//sendFDcmd_set(156, 0,0, 2,0,0,0); // cancel payment
|
//sendFDcmd_set(156, 0,0, 2,0,0,0); // cancel payment
|
||||||
}
|
}
|
||||||
|
|
||||||
return 10; // error cannot start
|
return 10; // error cannot start
|
||||||
}
|
}*/
|
||||||
|
|
||||||
if (empState>=10 && empState<=12 && (payInProg==1 || payInProg==2) )
|
// if (empState>=10 && empState<=12 && (payInProg==1 || payInProg==2) ) // Szeged
|
||||||
|
if ( payInProg==2 ) //8.12.23
|
||||||
{
|
{
|
||||||
// coin acceptance is active now:
|
// coin acceptance is active now:
|
||||||
if (hwapi_paymentStarted==1) // && (( payInProg==0) || ( payInProg>5))) //16.6.23
|
if (hwapi_paymentStarted==1) // && (( payInProg==0) || ( payInProg>5))) //16.6.23
|
||||||
@ -225,7 +242,8 @@ uint8_t T_runProc::cash_paymentProcessing(void)
|
|||||||
|
|
||||||
} else
|
} else
|
||||||
|
|
||||||
if (payInProg==3) // user pressed "Next/Continue", keep coin
|
//if (payInProg==3) // user pressed "Next/Continue", keep coin
|
||||||
|
if (payInProg==4) // user pressed "Next/Continue", keep coin since nov2023
|
||||||
{
|
{
|
||||||
hwapi_paymentStarted++;
|
hwapi_paymentStarted++;
|
||||||
collActiv=3;
|
collActiv=3;
|
||||||
@ -233,7 +251,8 @@ uint8_t T_runProc::cash_paymentProcessing(void)
|
|||||||
emit runProc_payStopByPushbutton();
|
emit runProc_payStopByPushbutton();
|
||||||
} else
|
} else
|
||||||
|
|
||||||
if (payInProg==4) // max achieved, keep coins
|
//if (payInProg==4) // max achieved, keep coins
|
||||||
|
if (payInProg==5) // max achieved, keep coins since nov2023
|
||||||
{
|
{
|
||||||
hwapi_paymentStarted++;
|
hwapi_paymentStarted++;
|
||||||
collActiv=4;
|
collActiv=4;
|
||||||
@ -241,7 +260,8 @@ uint8_t T_runProc::cash_paymentProcessing(void)
|
|||||||
emit runProc_payStopByMax();
|
emit runProc_payStopByMax();
|
||||||
} else
|
} else
|
||||||
|
|
||||||
if (payInProg==5) // escrow full, keep coins
|
//if (payInProg==5) // escrow full, keep coins
|
||||||
|
if (payInProg==6) // escrow full, keep coins since nov2023
|
||||||
{
|
{
|
||||||
hwapi_paymentStarted++;
|
hwapi_paymentStarted++;
|
||||||
collActiv=5;
|
collActiv=5;
|
||||||
@ -264,7 +284,8 @@ uint8_t T_runProc::cash_paymentProcessing(void)
|
|||||||
{
|
{
|
||||||
// coin collection finished, but coins kept until printing done
|
// coin collection finished, but coins kept until printing done
|
||||||
collActiv=2;
|
collActiv=2;
|
||||||
if (payInProg==6) // coins encashed
|
//if (payInProg==6) // coins encashed
|
||||||
|
if (payInProg==7) // coins encashed since nov2023
|
||||||
{
|
{
|
||||||
collActiv=6;
|
collActiv=6;
|
||||||
hwapi_paymentStarted++;
|
hwapi_paymentStarted++;
|
||||||
@ -272,7 +293,8 @@ uint8_t T_runProc::cash_paymentProcessing(void)
|
|||||||
emit runProc_coinProcessJustStopped();
|
emit runProc_coinProcessJustStopped();
|
||||||
} else
|
} else
|
||||||
|
|
||||||
if (payInProg==7) // coins returned, printing failed
|
//if (payInProg==7) // coins returned, printing failed
|
||||||
|
if (payInProg==0) // coins returned, printing failed since nov2023
|
||||||
{
|
{
|
||||||
collActiv=7;
|
collActiv=7;
|
||||||
hwapi_paymentStarted++;
|
hwapi_paymentStarted++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user