@ -15,6 +15,7 @@ import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
import ' package:diplomaticquarterapp/uitl/utils.dart ' ;
import ' package:diplomaticquarterapp/uitl/utils_new.dart ' ;
import ' package:diplomaticquarterapp/widgets/buttons/defaultButton.dart ' ;
import ' package:diplomaticquarterapp/widgets/dialogs/alert_dialog.dart ' ;
import ' package:diplomaticquarterapp/widgets/dragable_sheet.dart ' ;
import ' package:diplomaticquarterapp/widgets/in_app_browser/InAppBrowser.dart ' ;
import ' package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart ' ;
@ -369,8 +370,10 @@ class _AnicllaryOrdersState extends State<AnicllaryOrdersDetails> with SingleTic
} ) ,
Utils . tableColumnValue ( ' ${ value [ i ] . procedureName } ' , isLast: true , isCapitable: false , mProjectViewModel: projectViewModel ) ,
Utils . tableColumnValue ( ' ${ value [ i ] . patientShare . toString ( ) + " " + TranslationBase . of ( context ) . sar . toUpperCase ( ) } ' , isLast: true , isCapitable: false , mProjectViewModel: projectViewModel ) ,
Utils . tableColumnValue ( ' ${ value [ i ] . patientTaxAmount . toString ( ) + " " + TranslationBase . of ( context ) . sar . toUpperCase ( ) } ' , isLast: true , isCapitable: false , mProjectViewModel: projectViewModel ) ,
Utils . tableColumnValue ( ' ${ value [ i ] . patientShareWithTax . toString ( ) + " " + TranslationBase . of ( context ) . sar . toUpperCase ( ) } ' , isLast: true , isCapitable: false , mProjectViewModel: projectViewModel ) ,
Utils . tableColumnValue ( ' ${ value [ i ] . patientTaxAmount . toString ( ) + " " + TranslationBase . of ( context ) . sar . toUpperCase ( ) } ' ,
isLast: true , isCapitable: false , mProjectViewModel: projectViewModel ) ,
Utils . tableColumnValue ( ' ${ value [ i ] . patientShareWithTax . toString ( ) + " " + TranslationBase . of ( context ) . sar . toUpperCase ( ) } ' ,
isLast: true , isCapitable: false , mProjectViewModel: projectViewModel ) ,
] ) ,
) ;
}
@ -500,8 +503,8 @@ class _AnicllaryOrdersState extends State<AnicllaryOrdersDetails> with SingleTic
DoctorsListService service = new DoctorsListService ( ) ;
service . autoGenerateAncillaryOrdersInvoice ( widget . orderNo , widget . projectID , widget . appoNo , selectedProcListAPI , AppGlobal . context ) . then ( ( res ) {
print ( res ) ;
GifLoaderDialogUtils . hideDialog ( AppGlobal . context ) ;
showAlertDialog ( res [ ' AncillaryOrderInvoiceList ' ] [ 0 ] [ ' InvoiceNo ' ] ) ;
} ) . catchError ( ( err ) {
GifLoaderDialogUtils . hideDialog ( AppGlobal . context ) ;
AppToast . showErrorToast ( message: err ) ;
@ -509,6 +512,17 @@ class _AnicllaryOrdersState extends State<AnicllaryOrdersDetails> with SingleTic
} ) ;
}
showAlertDialog ( dynamic invoiceNo ) {
AlertDialogBox (
context: context ,
confirmMessage: TranslationBase . of ( context ) . ancillaryOrderPaymentSuccess + invoiceNo . toString ( ) ,
okText: TranslationBase . of ( context ) . ok ,
okFunction: ( ) {
AlertDialogBox . closeAlertDialog ( context ) ;
Navigator . of ( context ) . pop ( ) ;
} ) . showAlertDialog ( context ) ;
}
bool checkIfProcedureSelected ( AncillaryOrderProcDetailsList ancillaryOrderProcDetailsList ) {
if ( selectedProcList . length > 0 ) {
if ( selectedProcList . contains ( ancillaryOrderProcDetailsList ) ) {