Account: insert NOTEs

This commit is contained in:
Siegfried Siegert 2023-11-29 12:31:52 +01:00
parent 07d812f5d9
commit 49a13fd333
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -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);
}