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

@@ -268,12 +268,12 @@ class StockListState extends ConsumerState<LowStock> {
DataCell(
onTap: () => navigateNextScreen(),
Text(
'$currency${formatPointNumber(lastStock?.productPurchasePrice ?? 0)}',
'$currency${formatWithSeparator(lastStock?.productPurchasePrice ?? 0)}',
style: theme.textTheme.bodyMedium?.copyWith())),
DataCell(
onTap: () => navigateNextScreen(),
Text(
'$currency${formatPointNumber(lastStock?.productSalePrice ?? 0)}',
'$currency${formatWithSeparator(lastStock?.productSalePrice ?? 0)}',
)),
],
);
@@ -306,7 +306,7 @@ class StockListState extends ConsumerState<LowStock> {
),
),
Text(
'$currency${formatPointNumber(totalStockValue)}',
'$currency${formatWithSeparator(totalStockValue)}',
style: theme.textTheme.titleMedium?.copyWith(fontWeight: FontWeight.w600),
),
],

View File

@@ -4,6 +4,7 @@ import 'package:intl/intl.dart';
import 'package:mobile_pos/generated/l10n.dart' as l;
import 'package:mobile_pos/Screens/Products/Model/product_model.dart';
import '../../constant.dart';
import '../../currency.dart';
import '../../service/check_user_role_permission_provider.dart';
class StockInVarriantList extends ConsumerStatefulWidget {
@@ -105,7 +106,7 @@ class _StockInBatchListState extends ConsumerState<StockInVarriantList> {
),
if (permissionService.hasPermission(Permit.stocksPriceView.value))
_buildCell(
widget.product.stocks![index].productPurchasePrice.toString(),
'$currency${formatWithSeparator(widget.product.stocks![index].productPurchasePrice ?? 0)}',
4,
theme,
TextAlign.center,

View File

@@ -636,7 +636,7 @@ class StockListState extends ConsumerState<StockList> {
DataCell(
onTap: () => navigateNextScreen(),
Text(
'$currency${formatPointNumber(lastStock?.productPurchasePrice ?? 0)}',
'$currency${formatWithSeparator(lastStock?.productPurchasePrice ?? 0)}',
textAlign: TextAlign.center,
style: theme.textTheme.bodyMedium?.copyWith(),
),
@@ -644,7 +644,7 @@ class StockListState extends ConsumerState<StockList> {
DataCell(
onTap: () => navigateNextScreen(),
Text(
'$currency${formatPointNumber(lastStock?.productSalePrice ?? 0)}',
'$currency${formatWithSeparator(lastStock?.productSalePrice ?? 0)}',
textAlign: TextAlign.center,
)),
],
@@ -681,7 +681,7 @@ class StockListState extends ConsumerState<StockList> {
),
),
Text(
'$currency${formatPointNumber(displayedStockValue)}',
'$currency${formatWithSeparator(displayedStockValue)}',
style: theme.textTheme.titleMedium?.copyWith(fontWeight: FontWeight.w600),
),
],