qr summary total fix
This commit is contained in:
parent
1cdf045d99
commit
ee297e8e77
1
.gitignore
vendored
1
.gitignore
vendored
@ -23,3 +23,4 @@ local.properties
|
||||
nexdlkey-lib/build/
|
||||
/nexsdk-lib
|
||||
/nexsdk-lib
|
||||
/cmhl
|
||||
|
||||
30
TODO.md
Normal file
30
TODO.md
Normal file
@ -0,0 +1,30 @@
|
||||
1. QR Host
|
||||
When we generate QR , this transaction not successful.
|
||||
But this transaction included as success transaction in summary report and history.
|
||||
Please remove "CANCEL" records in summary report and history.
|
||||
|
||||
|
||||
2. Card Host
|
||||
Settlement Screen
|
||||
|
||||
KBZ Host MMK - 3000 (Not include in total net amount for void , preauth , preauth cancel)
|
||||
Sale - 2000
|
||||
Void - 1000
|
||||
Preauth - 2500
|
||||
Preauth cancel - 500
|
||||
Preauth complete - 2000
|
||||
|
||||
|
||||
KBZ Host USD - 3000 (Not include in total net amount for void , preauth , preauth cancel)
|
||||
Sale - 2000
|
||||
Void - 1000
|
||||
Preauth - 2500
|
||||
Preauth cancel - 500
|
||||
Preauth complete - 2000
|
||||
|
||||
MMQR Pay - 3000 (Not include in total net amount for refund transaction and cancel transaction)
|
||||
QR pay - 4000
|
||||
Refund - 1000
|
||||
|
||||
3. Reprint Last Settlement Report
|
||||
Same process with settlement
|
||||
@ -1003,6 +1003,18 @@ public abstract class BaseXPrint {
|
||||
return true;
|
||||
}
|
||||
|
||||
private boolean isUnsuccessfulQrTransaction(PayDetail item) {
|
||||
int transactionType = item.getTransactionType();
|
||||
|
||||
if (transactionType != TransactionsType.MMQR.value
|
||||
&& transactionType != TransactionsType.MMQR_REFUND.value) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// qrTransStatus 1: Success; -1: Failure; 2: Trying; 3: Comm Error
|
||||
return item.getQrTransStatus() != 1;
|
||||
}
|
||||
|
||||
protected void printTransDetailSummary(PayDetail payDetail, List<PayDetail> list) {
|
||||
printTransDetailSummary(payDetail, list, null);
|
||||
}
|
||||
@ -1023,6 +1035,7 @@ public abstract class BaseXPrint {
|
||||
|
||||
if (item == null) continue;
|
||||
if (!matchesSummaryHostType(item, hostType)) continue;
|
||||
if (isUnsuccessfulQrTransaction(item)) continue;
|
||||
|
||||
String currency = item.getCurrencyCode();
|
||||
TempSummary s = currencyMap.get(currency);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user