Skip to content

Commit

Permalink
Merge pull request #31 from egovernments/PFM-4509-master-main
Browse files Browse the repository at this point in the history
fix custom things
  • Loading branch information
gargrahuldev authored Sep 7, 2023
2 parents 8639929 + e34e0bb commit c63e1d5
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ class ConsumerBillPaymentsState extends State<ConsumerBillPayments> {
ApplicationLocalizations.of(navigatorKey.currentContext!)
.translate(commonProvider
.userDetails!.selectedtenant!.code!)),
getPrinterlabel(i18.consumerReciepts.RECEIPT_CONSUMER_NO,
CommonMethods.getSplitStings(widget.waterconnection!.connectionNo!,16)),
getPrinterlabel(
getPrinterLabel(i18.consumerReciepts.RECEIPT_CONSUMER_NO,
CommonMethods.getSplitStings(widget.waterConnection!.connectionNo!,16)),
getPrinterLabel(
i18.consumerReciepts.RECEIPT_CONSUMER_NAME,
widget.waterConnection!.connectionHolders!.first.name,
),
Expand Down Expand Up @@ -224,7 +224,7 @@ class ConsumerBillPaymentsState extends State<ConsumerBillPayments> {
// .convert('en-in', item.totalAmountPaid!.toInt())
// .toString()) +
// ' only')),
getPrinterlabel(
getPrinterLabel(
i18.consumerReciepts.CONSUMER_PENDING_AMOUNT,
('₹' +
((item.totalDue ?? 0) - (item.totalAmountPaid ?? 0))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ class CollectPaymentProvider with ChangeNotifier {
SizedBox(
height: 4,
),
getPrinterlabel(
getPrinterLabel(
i18.consumerReciepts.GRAM_PANCHAYAT_WATER_SUPPLY_AND_SANITATION,
""),
SizedBox(
Expand All @@ -330,9 +330,9 @@ class CollectPaymentProvider with ChangeNotifier {
ApplicationLocalizations.of(navigatorKey.currentContext!)
.translate(commonProvider
.userDetails!.selectedtenant!.code!)),
getPrinterlabel(i18.consumerReciepts.RECEIPT_CONSUMER_NO,
getPrinterLabel(i18.consumerReciepts.RECEIPT_CONSUMER_NO,
'${CommonMethods.getSplitStings(fetchBill.consumerCode!,16)}'),
getPrinterlabel(
getPrinterLabel(
i18.consumerReciepts.RECEIPT_CONSUMER_NAME,
'${item.paidBy}',
),
Expand Down Expand Up @@ -399,7 +399,7 @@ class CollectPaymentProvider with ChangeNotifier {
// .convert('en-in', item.totalAmountPaid!.toInt())
// .toString()) +
// ' only')),
getPrinterlabel(
getPrinterLabel(
i18.consumerReciepts.CONSUMER_PENDING_AMOUNT,
('₹' +
((item.totalDue ?? 0) - (item.totalAmountPaid ?? 0))
Expand Down
22 changes: 9 additions & 13 deletions frontend/mgramseva/lib/repository/billing_service_repo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class BillingServiceRepository extends BaseService {
late DemandList demandList;
var res = await makeRequest(
url: Url.FETCH_DEMAND,
body: {'RequestInfo': {}},
requestInfo: getRequestInfo('_search'),
body: {},
queryParameters: queryparams,
// requestInfo: getRequestInfo('_search'),
method: RequestType.POST);
Expand All @@ -56,7 +57,8 @@ class BillingServiceRepository extends BaseService {
late UpdateDemandList demandList;
var res = await makeRequest(
url: Url.FETCH_UPDATE_DEMAND,
body: {'RequestInfo': {}, ...body},
requestInfo: getRequestInfo('_search'),
body: body,
queryParameters: queryparams,
// requestInfo: getRequestInfo('_search'),
method: RequestType.POST);
Expand Down Expand Up @@ -92,7 +94,8 @@ class BillingServiceRepository extends BaseService {
late BillList billList;
var res = await makeRequest(
url: Url.SEARCH_BILL,
body: {"RequestInfo": {}},
requestInfo: getRequestInfo('_search'),
body: {},
queryParameters: queryparams,
method: RequestType.POST);
if (res != null) {
Expand Down Expand Up @@ -124,7 +127,8 @@ class BillingServiceRepository extends BaseService {
late BillPayments billPaymentList;
var res = await makeRequest(
url: Url.FETCH_BILL_PAYMENTS,
body: {"RequestInfo": {}},
requestInfo: getRequestInfo('_search'),
body: {},
queryParameters: queryparams,
method: RequestType.POST);
if (res != null) {
Expand All @@ -140,15 +144,7 @@ class BillingServiceRepository extends BaseService {
url: Url.FETCH_FILESTORE_ID_PDF_SERVICE,
body: body,
queryParameters: params,
requestInfo: RequestInfo(
APIConstants.API_MODULE_NAME,
APIConstants.API_VERSION,
APIConstants.API_TS,
"_create",
APIConstants.API_DID,
APIConstants.API_KEY,
"string|" + 'en_IN',
""),
requestInfo: getRequestInfo('_create'),
method: RequestType.POST);
if (res != null) {
billPaymentpdf = PDFServiceResponse.fromJson(res);
Expand Down
2 changes: 2 additions & 0 deletions frontend/mgramseva/lib/repository/expenses_repo.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:io';

import 'package:mgramseva/model/expenses_details/expenses_details.dart';
import 'package:mgramseva/model/expenses_details/vendor.dart';
import 'package:mgramseva/providers/common_provider.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import 'package:mgramseva/widgets/footer.dart';
import 'package:mgramseva/widgets/help.dart';
import 'package:provider/provider.dart';

import '../../providers/language.dart';
import '../../utils/notifiers.dart';
import '../../widgets/bottom_button_bar.dart';
import '../../widgets/custom_app_bar.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class _GpwscDetails extends State<GPWSCDetails>
var departmentProvider = Provider.of<IfixHierarchyProvider>(
navigatorKey.currentContext!,
listen: false);
departmentProvider.getDepartments();
// departmentProvider.getDepartments();
departmentProvider.getBillingSlabs();
}

Expand Down Expand Up @@ -76,7 +76,7 @@ class _GpwscDetails extends State<GPWSCDetails>
controller: scrollController,
child: Column(
children: [
GPWSCBoundaryDetailCard(),
// GPWSCBoundaryDetailCard(),
SizedBox(
height: 10,
),
Expand Down
10 changes: 5 additions & 5 deletions frontend/mgramseva/lib/utils/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ class Constants {
(i18.dashboard.CORE_GPWSC_DETAILS_AND_RATE_INFO),
HomeIcons.gpwscdetails,
Routes.GPWSC_DETAILS_AND_RATE_INFO, {}),
HomeItem(
"CORE_REPORTS",
(i18.dashboard.CORE_REPORTS),
Icons.assessment,
Routes.REPORTS, {}),
// HomeItem(
// "CORE_REPORTS",
// (i18.dashboard.CORE_REPORTS),
// Icons.assessment,
// Routes.REPORTS, {}),
];

static List<KeyValue> SERVICECATEGORY = [
Expand Down

0 comments on commit c63e1d5

Please sign in to comment.