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

@@ -116,7 +116,7 @@ Widget salesTransactionWidget({
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'${lang.S.of(context).total} : $currency${formatPointNumber(sale.totalAmount ?? 0)}',
'${lang.S.of(context).total} : $currency${formatWithSeparator(sale.totalAmount ?? 0)}',
style: theme.textTheme.titleSmall?.copyWith(
color: kPeraColor,
fontWeight: FontWeight.w500,
@@ -125,7 +125,7 @@ Widget salesTransactionWidget({
const SizedBox(width: 4),
if (sale.dueAmount!.toInt() != 0)
Text(
'${lang.S.of(context).paid} : $currency${formatPointNumber(
'${lang.S.of(context).paid} : $currency${formatWithSeparator(
(sale.totalAmount!.toDouble() - sale.dueAmount!.toDouble()),
)}',
style: theme.textTheme.titleSmall?.copyWith(
@@ -143,7 +143,7 @@ Widget salesTransactionWidget({
if (fromLossProfit ?? false) ...{
Flexible(
child: Text(
'${lang.S.of(context).profit} : $currency ${formatPointNumber(sale.detailsSumLossProfit ?? 0)}',
'${lang.S.of(context).profit} : $currency ${formatWithSeparator(sale.detailsSumLossProfit ?? 0)}',
style: theme.textTheme.titleSmall?.copyWith(
color: Colors.green,
fontWeight: FontWeight.w500,
@@ -152,7 +152,7 @@ Widget salesTransactionWidget({
),
Flexible(
child: Text(
'${lang.S.of(context).loss}: $currency ${formatPointNumber(sale.detailsSumLossProfit!.abs())}',
'${lang.S.of(context).loss}: $currency ${formatWithSeparator(sale.detailsSumLossProfit!.abs())}',
style: theme.textTheme.titleSmall?.copyWith(
color: Colors.redAccent,
fontWeight: FontWeight.w500,
@@ -164,8 +164,8 @@ Widget salesTransactionWidget({
Flexible(
child: Text(
(returnAmount != null)
? '${_lang.returnedAmount}: $currency${formatPointNumber(returnAmount)}'
: '${lang.S.of(context).paid} : $currency${formatPointNumber((sale.totalAmount!.toDouble() - sale.dueAmount!.toDouble()))}',
? '${_lang.returnedAmount}: $currency${formatWithSeparator(returnAmount)}'
: '${lang.S.of(context).paid} : $currency${formatWithSeparator((sale.totalAmount!.toDouble() - sale.dueAmount!.toDouble()))}',
style: theme.textTheme.titleSmall?.copyWith(fontWeight: FontWeight.w500),
maxLines: 2,
),
@@ -174,8 +174,8 @@ Widget salesTransactionWidget({
Flexible(
child: Text(
(returnAmount != null)
? '${_lang.returnedAmount}: $currency${formatPointNumber(returnAmount)}'
: '${lang.S.of(context).due}: $currency${formatPointNumber(sale.dueAmount ?? 0)}',
? '${_lang.returnedAmount}: $currency${formatWithSeparator(returnAmount)}'
: '${lang.S.of(context).due}: $currency${formatWithSeparator(sale.dueAmount ?? 0)}',
maxLines: 2,
style: theme.textTheme.titleSmall?.copyWith(
fontWeight: FontWeight.w500,