Add variables for handling ptu-package-versions and append corresponding data

to CMD_SENDVERSION.
This commit is contained in:
2024-11-21 09:12:35 +01:00
parent 201a1cbab9
commit 7accabfa53
3 changed files with 12 additions and 4 deletions

View File

@@ -690,7 +690,8 @@ QString IsmasClient::updateOfPSASendVersion(PSAInstalled const &psa) {
"\"libTCP_ZVT_CCPlugin.so\" : {"
"\"VERSION\" : \"%s\""
"}"
"}"
"},"
"\"PTU-PACKAGE-VERSIONS\" : %s"
"}",
psa.versionInfo.reason.toStdString().c_str(),
psa.versionInfo.created.toStdString().c_str(),
@@ -801,9 +802,11 @@ QString IsmasClient::updateOfPSASendVersion(PSAInstalled const &psa) {
psa.pluginVersion.mobilisisCalculatePriceConfigUi.toStdString().c_str(),
psa.pluginVersion.prmCalculatePrice.toStdString().c_str(),
psa.pluginVersion.prmCalculatePriceConfigUi.toStdString().c_str(),
psa.pluginVersion.tcpZVT.toStdString().c_str());
psa.pluginVersion.tcpZVT.toStdString().c_str(),
qInfo() << buf;
psa.ptuPackageVersion.toStdString().c_str());
qInfo() << buf;
return buf;
}

View File

@@ -77,6 +77,8 @@ struct PSAInstalled {
DC2C print[32];
QString ptuPackageVersion;
explicit PSAInstalled() {
tariff.name = "N/A";
tariff.version = "N/A";