perbaikan on possale string 1
This commit is contained in:
@@ -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),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user