From 2877bb39950273a469e0a8b284648e4472bb7a58 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Tue, 12 May 2026 09:41:12 +0300 Subject: [PATCH] updates --- .../my_invoices/my_invoices_list.dart | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/lib/presentation/my_invoices/my_invoices_list.dart b/lib/presentation/my_invoices/my_invoices_list.dart index 2dbbaf12..b71d6344 100644 --- a/lib/presentation/my_invoices/my_invoices_list.dart +++ b/lib/presentation/my_invoices/my_invoices_list.dart @@ -120,23 +120,23 @@ class _MyInvoicesListState extends State { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - SizedBox(height: 16.h), - CustomTabBar( - activeTextColor: Color(0xffED1C2B), - activeBackgroundColor: Color(0xffED1C2B).withValues(alpha: .1), - initialIndex: 0, - tabs: [ - CustomTabBarModel(null, LocaleKeys.visitsOrders.tr(context: context)), - CustomTabBarModel(null, LocaleKeys.pharmacy.tr(context: context)), - ], - onTabChange: (index) { - myInvoicesVM.onTabChanged(index); - if (index == 1 && myInvoicesVM.allPharmacyInvoicesList.isEmpty) { - // Load pharmacy invoices when pharmacy tab is selected and list is empty - myInvoicesVM.getAllPharmacyInvoices(); - } - }, - ).paddingSymmetrical(24.h, 0.h), + // SizedBox(height: 16.h), + // CustomTabBar( + // activeTextColor: Color(0xffED1C2B), + // activeBackgroundColor: Color(0xffED1C2B).withValues(alpha: .1), + // initialIndex: 0, + // tabs: [ + // CustomTabBarModel(null, LocaleKeys.visitsOrders.tr(context: context)), + // CustomTabBarModel(null, LocaleKeys.pharmacy.tr(context: context)), + // ], + // onTabChange: (index) { + // myInvoicesVM.onTabChanged(index); + // if (index == 1 && myInvoicesVM.allPharmacyInvoicesList.isEmpty) { + // // Load pharmacy invoices when pharmacy tab is selected and list is empty + // myInvoicesVM.getAllPharmacyInvoices(); + // } + // }, + // ).paddingSymmetrical(24.h, 0.h), myInvoicesVM.selectedTabIndex == 0 ? Column( children: [ SizedBox(height: 16.h), @@ -376,7 +376,7 @@ class _MyInvoicesListState extends State { myInvoicesViewModel.downloadPharmacyInvoicePDF( setupId: myInvoicesVM.allPharmacyInvoicesList[index].setupId ?? "", invoiceNo: myInvoicesVM.allPharmacyInvoicesList[index].invoiceNo ?? 0, - projectID: myInvoicesVM.allPharmacyInvoicesList[index].projectID ?? 0, + projectID: myInvoicesVM.allPharmacyInvoicesList[index].pharmacyProjectID ?? 0, locationID: myInvoicesVM.allPharmacyInvoicesList[index].locationID ?? 0, onError: (err) { LoaderBottomSheet.hideLoader();