qr "cancel" history removed
This commit is contained in:
parent
7145000175
commit
7a317dede7
@ -2,6 +2,7 @@ package com.utsmm.kbz.ui.core_viewmodel;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.graphics.Bitmap;
|
||||
import android.os.Looper;
|
||||
import android.util.Log;
|
||||
import android.widget.ListView;
|
||||
|
||||
@ -231,7 +232,15 @@ public class SharedViewModel extends ViewModel {
|
||||
|
||||
public void setPrintReceiptMsg(String msg) { this.printReceiptMsg.setValue(msg);}
|
||||
public void postPrintReceiptMsg(String msg) { this.printReceiptMsg.postValue(msg);}
|
||||
public void setPrintStatus(PrintStatus printStatus) { this.printStatus.postValue(printStatus); }
|
||||
public void setPrintStatus(PrintStatus printStatus) {
|
||||
// this.printStatus.postValue(printStatus);
|
||||
if (Looper.myLooper() == Looper.getMainLooper()) {
|
||||
this.printStatus.setValue(printStatus);
|
||||
} else {
|
||||
this.printStatus.postValue(printStatus);
|
||||
}
|
||||
|
||||
}
|
||||
public void postPrintStatus(PrintStatus printStatus) { this.printStatus.postValue(printStatus); }
|
||||
|
||||
public SingleLiveEvent<PrintStatus> getPrintStatus() { return this.printStatus; }
|
||||
|
||||
@ -186,7 +186,7 @@ public interface PayDetailDao {
|
||||
@Query("SELECT * FROM paydetail ORDER BY PID DESC")
|
||||
LiveData<List<PayDetail>> getAllTrans();
|
||||
|
||||
@Query("SELECT * FROM paydetail WHERE transactionType = 20 ORDER BY PID DESC")
|
||||
@Query("SELECT * FROM paydetail WHERE transactionType = 20 AND qrTransStatus = 1 ORDER BY PID DESC")
|
||||
LiveData<List<PayDetail>> getAllQRHistory();
|
||||
|
||||
@Query("SELECT * FROM paydetail WHERE transactionType = 20 AND qrTransStatus = 1 AND isCanceled = 0 ORDER BY PID DESC")
|
||||
|
||||
@ -254,8 +254,8 @@ public class NetworkModule {
|
||||
}
|
||||
|
||||
if (baseUrl.isEmpty()) {
|
||||
// baseUrl = "http://api-uat.kbzpay.com/payment/gateway/uat/"; //UAT
|
||||
baseUrl = "https://api.kbzpay.com/payment/gateway/"; //Prod
|
||||
baseUrl = "http://api-uat.kbzpay.com/payment/gateway/uat/"; //UAT
|
||||
// baseUrl = "https://api.kbzpay.com/payment/gateway/"; //Prod
|
||||
}
|
||||
return new Retrofit.Builder()
|
||||
.baseUrl(baseUrl)
|
||||
@ -311,8 +311,8 @@ public Retrofit provideKPayRefundRetrofit(@ApplicationContext Context context) {
|
||||
|
||||
// char[] password = "test123".toCharArray();
|
||||
|
||||
String refundBaseUrl = "https://api.kbzpay.com:8008/payment/gateway/";
|
||||
// String refundBaseUrl = "https://api-uat.kbzpay.com:18008/payment/gateway/uat/";
|
||||
// String refundBaseUrl = "https://api.kbzpay.com:8008/payment/gateway/";
|
||||
String refundBaseUrl = "https://api-uat.kbzpay.com:18008/payment/gateway/uat/";
|
||||
// String IpAddress = SystemParamsOperation.getInstance().getSecHostIpAddress();
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user