|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/ancillary_orders_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/buttons/button.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
@ -42,7 +43,31 @@ class _AnicllaryOrdersState extends State<AnicllaryOrdersDetails>
|
|
|
|
|
getPatientInfo(model),
|
|
|
|
|
getInvoiceDetails(model),
|
|
|
|
|
getInsuranceDetails(model),
|
|
|
|
|
getAncillaryDetails(model)
|
|
|
|
|
getAncillaryDetails(model),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).total,
|
|
|
|
|
fontSize: 20,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
getTotalValue(model),
|
|
|
|
|
fontSize: 20,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
children: [
|
|
|
|
|
Button(
|
|
|
|
|
label: TranslationBase.of(context).payNow,
|
|
|
|
|
onTap: () {},
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
])
|
|
|
|
|
: SizedBox())));
|
|
|
|
|
}
|
|
|
|
@ -208,7 +233,9 @@ class _AnicllaryOrdersState extends State<AnicllaryOrdersDetails>
|
|
|
|
|
);
|
|
|
|
|
list.add(Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: [getLabDetails(value)],
|
|
|
|
|
children: [
|
|
|
|
|
getLabDetails(value),
|
|
|
|
|
],
|
|
|
|
|
));
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -218,6 +245,13 @@ class _AnicllaryOrdersState extends State<AnicllaryOrdersDetails>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String getTotalValue(value) {
|
|
|
|
|
double total = 0.0;
|
|
|
|
|
value.ancillaryListsDetails[0].ancillaryOrderProcList
|
|
|
|
|
.forEach((result) => {total += result.companyShareWithTax});
|
|
|
|
|
return total.toStringAsFixed(2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getLabDetails(value) {
|
|
|
|
|
return Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|