Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
collection migration fix RAIN-1618 (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
kavi-egov authored Oct 8, 2020
1 parent a631214 commit 0f3a563
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,13 @@ private Payment getPayment(RequestInfo requestInfo, Receipt_v1 receipt, Bill new

payment.setPaymentStatus(PaymentStatusEnum.CANCELLED);
payment.setInstrumentStatus(InstrumentStatusEnum.CANCELLED);
Bill bill = payment.getPaymentDetails().get(0).getBill();
bill.setStatus(Bill.StatusEnum.CANCELLED);
bill.setIsCancelled(true);

} else {

payment.setInstrumentStatus(InstrumentStatusEnum.APPROVED);
if ((payment.getPaymentMode().toString()).equalsIgnoreCase(ONLINE.name())
|| payment.getPaymentMode().toString().equalsIgnoreCase(CARD.name())
|| (receiptHeaderStatus.equalsIgnoreCase(ReceiptStatus.REMITTED.toString()))) {
Expand Down

0 comments on commit 0f3a563

Please sign in to comment.