Commit adc1a653 by NitefullWind

1. Simphony的日结单行为暂时为"支付宝日结单"。

parent 3c7a68d0
......@@ -10,6 +10,8 @@
#include <QJsonParseError>
#include <QJsonDocument>
#include <QDateTime>
#include "fmp_settings.h"
#include "fmglobal.h"
//接受pos的请求转化为json
class JsonFactory
......@@ -205,6 +207,14 @@ private:
json[JSON_KEY_REQTYPE] = JSON_REQTYPE_ENDDAY;
json[JSON_KEY_ENDTIME] = QDateTime::currentDateTime().toString("yyyyMMddhhmmss");
json[JSON_KEY_PRINTACTION] = "101";
//! NOTE Simphony的日结单行为暂时为"支付宝日结单"
FMPSettings setting;
POSType posType = (POSType)setting.GetValue(CONFIG_ALL_PARTNER, SPCC).toInt();
if(posType == SIMPHONY) {
json[JSON_KEY_PRINTACTION] = "103";
}
return true;
}
static bool GetShiftJson(QJsonObject &json, const QJsonObject &request, QStringList list)
......
......@@ -5,7 +5,7 @@
#define VER_MINOR 2
#define VER_REVISION 1
#define VER_BUILD 0
#define VER_BUILD 1
//! Convert version numbers to string
#define _STR(S) #S
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment