qr "cancel" history removed

This commit is contained in:
moon 2026-06-03 14:47:48 +06:30
parent 7145000175
commit 7a317dede7
3 changed files with 15 additions and 6 deletions

View File

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

View File

@ -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")

View File

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