add is_duel_currency flag
This commit is contained in:
parent
2c87ee5828
commit
3c44f3d1ba
@ -633,6 +633,8 @@ public class TMSSetupsImpl implements TMSSetups{
|
||||
}
|
||||
else if(TextUtils.equals(name, "printer_enabled")){
|
||||
SystemParamsOperation.getInstance().setPrinterEnabled(parseBoolean(data));
|
||||
}else if(TextUtils.equals(name, "is_duel_currency")){
|
||||
SystemParamsOperation.getInstance().setDuelCurrencyStatus(parseBoolean(data));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1840,4 +1840,15 @@ public class SystemParamsOperation {
|
||||
SystemParamsSettings paramsSettings = getSystemParamsSettings();
|
||||
return paramsSettings.getPrinterEnabled();
|
||||
}
|
||||
|
||||
public void setDuelCurrencyStatus(boolean duelCurrencyStatus) {
|
||||
SystemParamsSettings paramsSettings = getSystemParamsSettings();
|
||||
paramsSettings.setDuelCurrencyStatus(duelCurrencyStatus);
|
||||
saveSystemParamsSettings(paramsSettings);
|
||||
}
|
||||
|
||||
public boolean getDuelCurrencyStatus(){
|
||||
SystemParamsSettings paramsSettings = getSystemParamsSettings();
|
||||
return paramsSettings.getDuelCurrencyStatus();
|
||||
}
|
||||
}
|
||||
|
||||
@ -268,6 +268,7 @@ public class SystemParamsSettings implements Serializable {
|
||||
private String certificateUrl = "";
|
||||
private String certificateClientUrl = "";
|
||||
private boolean printerEnabled = true;
|
||||
private boolean duelCurrencyStatus = false;
|
||||
|
||||
public boolean isQrPartialRefundEnable(){
|
||||
return qrPartialRefundEnable;
|
||||
@ -1117,6 +1118,14 @@ public class SystemParamsSettings implements Serializable {
|
||||
return printerEnabled;
|
||||
}
|
||||
|
||||
public void setDuelCurrencyStatus(boolean duelCurrencyStatus) {
|
||||
this.duelCurrencyStatus = duelCurrencyStatus;
|
||||
}
|
||||
|
||||
public boolean getDuelCurrencyStatus(){
|
||||
return duelCurrencyStatus;
|
||||
}
|
||||
|
||||
/* // 流水号起始
|
||||
private String serialNum = Configs.getInstance().SERIAL_NUM();
|
||||
// 批次号起始
|
||||
|
||||
Loading…
Reference in New Issue
Block a user