perbaikan on possale string 1
This commit is contained in:
@@ -177,14 +177,14 @@ class PurchaseReportState extends State<PurchaseListScreen> {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'${lang.S.of(context).total} : $currency ${purchaseTransactions[index].totalAmount.toString()}',
|
||||
'${lang.S.of(context).total} : $currency${formatWithSeparator(purchaseTransactions[index].totalAmount ?? 0)}',
|
||||
style: _theme.textTheme.bodyMedium
|
||||
?.copyWith(fontSize: 14, color: DAppColors.kSecondary),
|
||||
),
|
||||
const SizedBox(width: 4),
|
||||
if (purchaseTransactions[index].dueAmount!.toInt() != 0)
|
||||
Text(
|
||||
'${lang.S.of(context).paid} : $currency ${purchaseTransactions[index].totalAmount!.toDouble() - purchaseTransactions[index].dueAmount!.toDouble()}',
|
||||
'${lang.S.of(context).paid} : $currency ${formatWithSeparator(purchaseTransactions[index].totalAmount!.toDouble() - purchaseTransactions[index].dueAmount!.toDouble())}',
|
||||
style: _theme.textTheme.bodyMedium
|
||||
?.copyWith(fontSize: 14, color: DAppColors.kSecondary),
|
||||
),
|
||||
@@ -198,7 +198,7 @@ class PurchaseReportState extends State<PurchaseListScreen> {
|
||||
if (purchaseTransactions[index].dueAmount!.toInt() == 0)
|
||||
Flexible(
|
||||
child: Text(
|
||||
'${lang.S.of(context).paid} : $currency ${purchaseTransactions[index].totalAmount!.toDouble() - purchaseTransactions[index].dueAmount!.toDouble()}',
|
||||
'${lang.S.of(context).paid} : $currency${formatWithSeparator(purchaseTransactions[index].totalAmount!.toDouble() - purchaseTransactions[index].dueAmount!.toDouble())}',
|
||||
style: _theme.textTheme.bodyMedium?.copyWith(fontSize: 16),
|
||||
maxLines: 2,
|
||||
),
|
||||
@@ -206,7 +206,7 @@ class PurchaseReportState extends State<PurchaseListScreen> {
|
||||
if (purchaseTransactions[index].dueAmount!.toInt() != 0)
|
||||
Flexible(
|
||||
child: Text(
|
||||
'${lang.S.of(context).due}: $currency ${purchaseTransactions[index].dueAmount.toString()}',
|
||||
'${lang.S.of(context).due}: $currency${formatWithSeparator(purchaseTransactions[index].dueAmount ?? 0)}',
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: _theme.textTheme.bodyMedium?.copyWith(fontSize: 16),
|
||||
|
||||
Reference in New Issue
Block a user