I am encountering some refund error with the CF7900 MDB.
Paylink Firmware Genoa-V4-1-12-12
CF7900 MDB V1.21.49
I used those functions: SetDispenseQuantity(..) and PaySpecific().
LastPayStatus is always equal to PAY_FINISHED. Even if I remove the cassete/Dispensebox (not this test)
In these test the paylink say it refund 3 coins of 20 infact the refund made is only 1 coin of 20

May you help me? thank you in advance.
---
Befor refund :
Recy id =0 value=200 CoinCount=15 count=0 inhibit=Yes
Recy id =1 value=100 CoinCount=16 count=4 inhibit=No
Recy id =2 value=50 CoinCount=41 count=66 inhibit=No
Recy id =3 value=20 CoinCount=1 count=6 inhibit=No
Recy id =4 value=10 CoinCount=11 count=0 inhibit=Yes
Refund ASK:
SetDispenseQuantity OK : value[100] dispeserNum[1] Number of Coin[2]
SetDispenseQuantity OK : value[50] dispeserNum[2] Number of Coin[6]
SetDispenseQuantity OK : value[20] dispeserNum[3] Number of Coin[3]
After refund :
RecyValue[200] Count befor[0] after[0] -> [0]
RecyValue[100] Count befor[4] after[6] -> [2]
RecyValue[50] Count befor[66] after[72] -> [6]
RecyValue[20] Count befor[6] after[9] -> [3]
RecyValue[10] Count befor[0] after[0] -> [0]
RecyValue[200] coinCount befor[15] after[15] -> [0]
RecyValue[100] coinCount befor[16] after[14] -> [2]
RecyValue[50] coinCount befor[41] after[35] -> [6]
RecyValue[20] coinCount befor[1] after[0] -> [1]
RecyValue[10] coinCount befor[11] after[11] -> [0]
CurrentPaid() diff show 560 infact the refund is : 520
----------------------------------------------------------------------------------------------------
Paylink.log:
15:42:21.169 04:25
23 March 2021 Driver:1.2.0.1
15:42:47.384 PC: Driver restart (after crash)
15:42:47.412 Timeout: read 5000, write 5000
15:42:47.412 FT2232C end points in 2 out 129
15:42:47.412 FTDI chip type : 3
15:42:47.412 Baudrate : 9600
15:42:47.412 Bitbang mode state : 0
15:42:47.412 FT2232C interface number : 0
15:42:47.412 FT2232C index number : 0
15:42:47.412 Bitbang mode : 1
15:42:47.412 EEPROM size : 128
15:42:47.518 Config: Start of download
15:42:47.518 Config: Checked, OK
15:42:47.518 Config: Paylink Checked OK against file "/etc/AES/Standard.cfg"
15:42:47.518 Exec: USB task took 16 msec
15:42:47.521 PC: Memory Reset - new protocol
15:42:47.756 DP: MDB acceptor 2080300 at ba0 and 5 coins setup
15:42:48.042 DP: Level 2 Tube Hopper S/N 559, Address 13, Value 200 at d34 setup
15:42:48.112 DP: Level 2 Tube Hopper S/N 559, Address 12, Value 100 at d80 setup
15:42:48.182 DP: Level 2 Tube Hopper S/N 559, Address 11, Value 50 at dcc setup
15:42:48.252 DP: Level 2 Tube Hopper S/N 559, Address 10, Value 20 at e18 setup
15:42:48.322 DP: Level 2 Tube Hopper S/N 559, Address 9, Value 10 at e64 setup
15:42:48.400 DP: Level 3 Payout System Hopper S/N 559, Address 8, Value 10 at eb0 setup
15:42:48.709 DP
15:42:48.709 PC: *** USB unit major memory reset ***
15:42:48.709
23 March 2021 Firmware: 1.1.12.83 from Feb 16 2018 at 13:55:29 Driver:1.2.0.1
15:42:48.709 : Interface memory set up
15:42:48.709 Exec: DP task took 1145 msec
15:43:09.664
15:43:09.664 Ver 001.001.012.083-526 Feb 16 2018 13:55:29
15:43:09.664 DP: Application active
15:43:09.664 DP: Interface memory recovery
15:43:09.664 DP: Resending Events
15:43:09.664 DP: Event 0000e0 for Acceptor 0
15:43:09.664 DP: Turn off barcodes
15:43:09.664 DP: Pay request for 560, (127195 - 126635 (3421363195 - 3421236000))
15:43:09.664 Exec: DP task took 10 msec
15:43:10.179 DP: Pay 560 (2 @ 100) from Level 2 Tube @ 12
15:43:10.179 DP: 360 left unqueued
15:43:10.179 MDB Tube@12: Pay 2 coins, value 100
15:43:11.715 MDB Tube@12: for 100 - Done
15:43:11.715 DP: 200 paid so far.
15:43:11.715 DP: Cycle End, 2 coins @ 100 status: 1
15:43:11.874 DP: Payout still owes 360, (127195 - 126835)
15:43:11.874 DP: Pay 360 (6 @ 50) from Level 2 Tube @ 11
15:43:11.874 DP: 60 left unqueued
15:43:11.874 Exec: DP task took 156 msec
15:43:11.874 MDB Tube@11: Pay 6 coins, value 50
15:43:14.725 MDB Tube@11: for 50 - Done
15:43:14.725 DP: 300 paid so far.
15:43:14.725 DP: Cycle End, 6 coins @ 50 status: 1
15:43:14.844 DP: Payout still owes 60, (127195 - 127135)
15:43:14.844 DP: Pay 60 (3 @ 20) from Level 2 Tube @ 10
15:43:14.844 Exec: DP task took 117 msec
15:43:14.844 MDB Tube@10: Pay 3 coins, value 20
15:43:15.715 MDB Tube@10: for 20 - Done
15:43:15.715 DP: 60 paid so far.
15:43:15.715 DP: Cycle End, 3 coins @ 20 status: 1
15:43:15.855 DP: Finished - overall status: 1, paid now 127195
15:43:15.855 Exec: DP task took 143 msec
15:43:15.979 MDB Tube@10: for 20 - reported coins 1=>0
15:43:15.979 MDB Tube@11: for 50 - reported coins 41=>35
15:43:15.979 MDB Tube@12: for 100 - reported coins 16=>14
15:43:16.014 Exec: DP task took 37 msec
15:43:18.643
15:43:18.644 DP: System closedown received
15:43:18.644 DP: No more updates
15:43:18.644
15:43:18.644 DP: Application has gone away
15:43:18.644
15:43:22.066 04:26
My log:
Value paid to date: 126635
----------CHANGER TUBE 0 (Adr=0)------------
Tube Description : Level 2 Tube
Tube Value=200
Tube Count=000
Tube CoinsCount : 15
Tube Coins status : -1
Tube SN : 559
Tube Status : -7
Tube Unit : x01090000
Tube Unit Address : 13
Tube Inhibit : Yes
----------CHANGER TUBE 1 (Adr=1)------------
Tube Description : Level 2 Tube
Tube Value=100
Tube Count=004
Tube CoinsCount : 16
Tube Coins status : -1
Tube SN : 559
Tube Status : 1
Tube Unit : x01090000
Tube Unit Address : 12
Tube Inhibit : No
----------CHANGER TUBE 2 (Adr=2)------------
Tube Description : Level 2 Tube
Tube Value=050
Tube Count=066
Tube CoinsCount : 41
Tube Coins status : -1
Tube SN : 559
Tube Status : 1
Tube Unit : x01090000
Tube Unit Address : 11
Tube Inhibit : No
----------CHANGER TUBE 3 (Adr=3)------------
Tube Description : Level 2 Tube
Tube Value=020
Tube Count=006
Tube CoinsCount : 1
Tube Coins status : -1
Tube SN : 559
Tube Status : 1
Tube Unit : x01090000
Tube Unit Address : 10
Tube Inhibit : No
----------CHANGER TUBE 4 (Adr=4)------------
Tube Description : Level 2 Tube
Tube Value=010
Tube Count=000
Tube CoinsCount : 11
Tube Coins status : -1
Tube SN : 559
Tube Status : -7
Tube Unit : x01090000
Tube Unit Address : 9
Tube Inhibit : Yes
----------CHANGER TUBE 5 (Adr=5)------------
Tube Description : Level 3 Payout System
Tube Value=010
Tube Count=000
Tube CoinsCount : 0
Tube Coins status : 0
Tube SN : 559
Tube Status : 1
Tube Unit : x01080000
Tube Unit Address : 8
Tube Inhibit : No
No changer id[6]
No changer id[7]
No changer id[8]
No changer id[9]
No changer id[10]
No changer id[11]
No changer id[12]
No changer id[13]
No changer id[14]
No changer id[15]
---------------------------------
SetDispenseQuantity OK : value[100] dispeserNum[1] Number of Coin[2]
SetDispenseQuantity OK : value[50] dispeserNum[2] Number of Coin[6]
SetDispenseQuantity OK : value[20] dispeserNum[3] Number of Coin[3]
Recy id =0 value=200 CoinCount=15 count=0 inhibit=Yes
Recy id =1 value=100 CoinCount=16 count=4 inhibit=No
Recy id =2 value=50 CoinCount=41 count=66 inhibit=No
Recy id =3 value=20 CoinCount=1 count=6 inhibit=No
Recy id =4 value=10 CoinCount=11 count=0 inhibit=Yes
Recy id =5 value=10 CoinCount=0 count=0 inhibit=No
End SetDispenseQuantity - Lauch PaySpecific
Now paid out: 200
Now paid out: 300
Now paid out: 60
FINISH paid out TOTAL refund 560
RecyValue[200] Count befor[0] after[0] -> [0]
RecyValue[100] Count befor[4] after[6] -> [2]
RecyValue[50] Count befor[66] after[72] -> [6]
RecyValue[20] Count befor[6] after[9] -> [3]
RecyValue[10] Count befor[0] after[0] -> [0]
RecyValue[200] coinCount befor[15] after[15] -> [0]
RecyValue[100] coinCount befor[16] after[14] -> [2]
RecyValue[50] coinCount befor[41] after[35] -> [6]
RecyValue[20] coinCount befor[1] after[0] -> [1]
RecyValue[10] coinCount befor[11] after[11] -> [0]