Account: insert NOTEs
This commit is contained in:
parent
07d812f5d9
commit
49a13fd333
@ -360,6 +360,29 @@ void ATBDeviceControllerPlugin::private_getAccountData()
|
||||
qCritical() << "COIN_" + QString::number(i) + "_Value = " << accountData["COIN_" + QString::number(i) + "_Value"];
|
||||
}
|
||||
|
||||
// NOTES in stacker: --------------------------------------------------------
|
||||
|
||||
int numberOfBillVariants = sizeof(retVR.billsInStacker);
|
||||
|
||||
// DEBUG
|
||||
qCritical() << " numberOfBillVariants = " << numberOfBillVariants;
|
||||
|
||||
// limit numberOfBillVariants:
|
||||
if (numberOfBillVariants > 16) { numberOfBillVariants = 16; }
|
||||
|
||||
accountData.insert("NumberOfBillVariants", numberOfBillVariants);
|
||||
for (int i = 1; i <= numberOfBillVariants; ++i) {
|
||||
accountData.insert("NOTE_" + QString::number(i) + "_Quantity", retVR.coinsInVault[i]);
|
||||
accountData.insert("NOET_" + QString::number(i) + "_Value", retVR.coinDenomination[i]);
|
||||
|
||||
// DEBUG
|
||||
qCritical() << "NOTE_" + QString::number(i) + "_Quantity = " << accountData["COIN_" + QString::number(i) + "_Quantity"];
|
||||
qCritical() << "NOTE_" + QString::number(i) + "_Value = " << accountData["COIN_" + QString::number(i) + "_Value"];
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
emit requestAccountResponse(accountData);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user