From f36c3ee6c18d566f5329beca9cafe82511f3ed00 Mon Sep 17 00:00:00 2001 From: Rahul Dev Garg <34365102+rahuldevgarg@users.noreply.github.com> Date: Tue, 26 Sep 2023 07:51:30 +0530 Subject: [PATCH] PFM-4592 --- frontend/mgramseva/lib/model/connection/water_connection.g.dart | 2 +- .../mgramseva/lib/screeens/add_expense/expense_details.dart | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/mgramseva/lib/model/connection/water_connection.g.dart b/frontend/mgramseva/lib/model/connection/water_connection.g.dart index 598c971f8..f7abbfd0b 100644 --- a/frontend/mgramseva/lib/model/connection/water_connection.g.dart +++ b/frontend/mgramseva/lib/model/connection/water_connection.g.dart @@ -42,7 +42,7 @@ WaterConnection _$WaterConnectionFromJson(Map json) => json['processInstance'] as Map) ..paymentType = json['paymentType'] as String? ..penalty = (json['penalty'] as num?)?.toDouble() - ..advance = (json['advance'] as num?)?.toDouble(); + ..advance = (json['advance'] as num?)?.toDouble().abs(); Map _$WaterConnectionToJson(WaterConnection instance) => { diff --git a/frontend/mgramseva/lib/screeens/add_expense/expense_details.dart b/frontend/mgramseva/lib/screeens/add_expense/expense_details.dart index b77a86929..a546796fc 100644 --- a/frontend/mgramseva/lib/screeens/add_expense/expense_details.dart +++ b/frontend/mgramseva/lib/screeens/add_expense/expense_details.dart @@ -276,6 +276,7 @@ class _ExpenseDetailsState extends State { FilteringTextInputFormatter.allow( RegExp(r"^[1-9][0-9]{0,5}$")) ], + hint: '${i18.expense.AMOUNT} (₹)', labelSuffix: '(₹)', isDisabled: (expenseDetails.allowEdit ?? true) ? false