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

Commit

Permalink
PFM-4408 Payment date is not reflecting
Browse files Browse the repository at this point in the history
  • Loading branch information
Saloni-eGov committed Oct 4, 2023
1 parent 3f6927c commit 1740e16
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ class ExpensesDetailsModel {
expensesAmount?.first.amount ?? totalAmount?.toInt().toString() ?? '';
billDateCtrl.text = DateFormats.timeStampToDate(billDate);
paidDateCtrl.text =
paidDate == 0 ? '' : DateFormats.timeStampToDate(paidDate);
paidDate == null || paidDate == 0 ? '' : DateFormats.timeStampToDate(paidDate);
billIssuedDateCtrl.text =
billIssuedDate == 0 ? '' : DateFormats.timeStampToDate(billIssuedDate);
isBillPaid ??= false;
isBillPaid = paidDate != null && paidDate != 0 ? isBillPaid : false;
challanNumberCtrl.text = challanNo?.toString() ?? '';
fromDateCtrl.text = DateFormats.timeStampToDate(taxPeriodFrom);
toDateCtrl.text = DateFormats.timeStampToDate(taxPeriodTo);
Expand All @@ -179,7 +179,7 @@ class ExpensesDetailsModel {
selectedVendor = Vendor(vendorName ?? '', vendorId ?? '');
}

if (isBillPaid!) {
if (isBillPaid! && paidDate != null && paidDate != 0) {
allowEdit = false;
} else {
paidDateCtrl.text = '';
Expand Down

0 comments on commit 1740e16

Please sign in to comment.