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

Commit

Permalink
Merge pull request #821 from egovernments/ISTE-159-Remarks-Remove
Browse files Browse the repository at this point in the history
ISTE -159 - Remarks removed
  • Loading branch information
pradeepkumarcm-egov authored Jun 20, 2024
2 parents 66974d1 + b215fdb commit d1e2b16
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ class ConsumerProvider with ChangeNotifier {
"aadharNumber": waterconnection.addharCtrl.text.trim().isEmpty
? null
: waterconnection.addharCtrl.text.trim(),
"remarks": property.owners?.first.remarks
"remarks": waterconnection.status == "Inactive" ? property.owners?.first.remarks : ""
});
} else {
waterconnection.additionalDetails!.locality =
Expand All @@ -338,8 +338,8 @@ class ConsumerProvider with ChangeNotifier {
waterconnection.previousReading;
waterconnection.additionalDetails!.propertyType = property.propertyType;

waterconnection.additionalDetails!.remarks =
property.owners?.first.remarks;
waterconnection.additionalDetails!.remarks = waterconnection.status == "Inactive" ?
property.owners?.first.remarks : "";
}

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -654,13 +654,15 @@ class _ConsumerDetailsState extends State<ConsumerDetails> {
(consumerProvider.waterconnection.status ==
"Inactive"),
child: Consumer<ConsumerProvider>(
builder: (_, consumerProvider, child) {
property.owners!.first.consumerRemarksCtrl
.text = consumerProvider.waterconnection
.additionalDetails!.remarks ??
"";
builder: (_, consumerProvider, child) {

property.owners!.first.consumerRemarksCtrl
.text = consumerProvider.waterconnection
.additionalDetails!.remarks ??
"";


return BuildTextField(

i18.consumer.CONSUMER_REMARKS,
property.owners!.first.consumerRemarksCtrl,
validator: (val) =>
Expand Down

0 comments on commit d1e2b16

Please sign in to comment.