perbaikan on possale string 1

This commit is contained in:
2026-04-18 22:45:08 +07:00
parent d912b1f63a
commit b1781625f2
2693 changed files with 366 additions and 6459 deletions

View File

@@ -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),