|
|
|
|
@ -255,8 +255,8 @@ class _MyInvoicesDetailsPageState extends State<MyInvoicesDetailsPage> {
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(flex: 3, child: (consultation.procedureName ?? '-').toText12(fontWeight: FontWeight.w500)),
|
|
|
|
|
Expanded(flex: 1, child: '${consultation.quantity ?? '-'}'.toText12(fontWeight: FontWeight.w500, isCenter: true)),
|
|
|
|
|
Expanded(flex: 2, child: '${consultation.price ?? '-'}'.toText12(fontWeight: FontWeight.w500, isCenter: true)),
|
|
|
|
|
Expanded(flex: 2, child: '${consultation.total ?? '-'}'.toText12(fontWeight: FontWeight.w500, isCenter: true)),
|
|
|
|
|
Expanded(flex: 2, child: '${NumberFormat.decimalPattern().format(consultation.price) ?? '-'}'.toText12(fontWeight: FontWeight.w500, isCenter: true)),
|
|
|
|
|
Expanded(flex: 2, child: '${NumberFormat.decimalPattern().format(consultation.total) ?? '-'}'.toText12(fontWeight: FontWeight.w500, isCenter: true)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -290,7 +290,8 @@ class _MyInvoicesDetailsPageState extends State<MyInvoicesDetailsPage> {
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.amountBeforeTax.tr(context: context).toText14(isBold: true),
|
|
|
|
|
Utils.getPaymentAmountWithSymbol(widget.getInvoiceDetailsResponseModel.listConsultation!.first.totalShare.toString().toText16(isBold: true), AppColors.blackColor, 13,
|
|
|
|
|
Utils.getPaymentAmountWithSymbol(
|
|
|
|
|
NumberFormat.decimalPattern().format(widget.getInvoiceDetailsResponseModel.listConsultation!.first.totalShare).toString().toText16(isBold: true), AppColors.blackColor, 13,
|
|
|
|
|
isSaudiCurrency: true),
|
|
|
|
|
],
|
|
|
|
|
).paddingSymmetrical(24.h, 0.h),
|
|
|
|
|
@ -299,7 +300,12 @@ class _MyInvoicesDetailsPageState extends State<MyInvoicesDetailsPage> {
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.vat15.tr(context: context).toText14(isBold: true, color: AppColors.greyTextColor),
|
|
|
|
|
Utils.getPaymentAmountWithSymbol(
|
|
|
|
|
widget.getInvoiceDetailsResponseModel.listConsultation!.first.totalVATAmount!.toString().toText14(isBold: true, color: AppColors.greyTextColor), AppColors.greyTextColor, 13,
|
|
|
|
|
NumberFormat.decimalPattern()
|
|
|
|
|
.format(widget.getInvoiceDetailsResponseModel.listConsultation!.first.totalVATAmount!)
|
|
|
|
|
.toString()
|
|
|
|
|
.toText14(isBold: true, color: AppColors.greyTextColor),
|
|
|
|
|
AppColors.greyTextColor,
|
|
|
|
|
13,
|
|
|
|
|
isSaudiCurrency: true),
|
|
|
|
|
],
|
|
|
|
|
).paddingSymmetrical(24.h, 0.h),
|
|
|
|
|
@ -308,7 +314,11 @@ class _MyInvoicesDetailsPageState extends State<MyInvoicesDetailsPage> {
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.discount.tr(context: context).toText14(isBold: true),
|
|
|
|
|
Utils.getPaymentAmountWithSymbol(widget.getInvoiceDetailsResponseModel.listConsultation!.first.discountAmount!.toString().toText14(isBold: true, color: AppColors.primaryRedColor),
|
|
|
|
|
Utils.getPaymentAmountWithSymbol(
|
|
|
|
|
NumberFormat.decimalPattern()
|
|
|
|
|
.format(widget.getInvoiceDetailsResponseModel.listConsultation!.first.discountAmount!)
|
|
|
|
|
.toString()
|
|
|
|
|
.toText14(isBold: true, color: AppColors.primaryRedColor),
|
|
|
|
|
AppColors.primaryRedColor, 13,
|
|
|
|
|
isSaudiCurrency: true),
|
|
|
|
|
],
|
|
|
|
|
@ -318,7 +328,9 @@ class _MyInvoicesDetailsPageState extends State<MyInvoicesDetailsPage> {
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.paid.tr(context: context).toText14(isBold: true),
|
|
|
|
|
Utils.getPaymentAmountWithSymbol(
|
|
|
|
|
widget.getInvoiceDetailsResponseModel.listConsultation!.first.grandTotal!.toString().toText14(isBold: true, color: AppColors.textColor), AppColors.textColor, 13,
|
|
|
|
|
NumberFormat.decimalPattern().format(widget.getInvoiceDetailsResponseModel.listConsultation!.first.grandTotal!).toString().toText14(isBold: true, color: AppColors.textColor),
|
|
|
|
|
AppColors.textColor,
|
|
|
|
|
13,
|
|
|
|
|
isSaudiCurrency: true),
|
|
|
|
|
],
|
|
|
|
|
).paddingSymmetrical(24.h, 0.h),
|
|
|
|
|
|