perbaikan on possale string 1
This commit is contained in:
@@ -264,7 +264,9 @@ class AddSalesScreenState extends ConsumerState<AddAndUpdatePurchaseScreen> {
|
||||
children: [
|
||||
Text(lang.S.of(context).dueAmount),
|
||||
Text(
|
||||
widget.customerModel?.due == null ? '$currency 0' : '$currency${widget.customerModel?.due}',
|
||||
widget.customerModel?.due == null
|
||||
? '$currency${formatWithSeparator(0)}'
|
||||
: '$currency${formatWithSeparator(widget.customerModel?.due ?? 0)}',
|
||||
style: const TextStyle(color: Color(0xFFFF8C34)),
|
||||
),
|
||||
],
|
||||
@@ -348,7 +350,7 @@ class AddSalesScreenState extends ConsumerState<AddAndUpdatePurchaseScreen> {
|
||||
title: Text(providerData.cartItemList[index].productName.toString()),
|
||||
subtitle: permissionService.hasPermission(Permit.purchasesPriceView.value)
|
||||
? Text(
|
||||
'${providerData.cartItemList[index].quantities} X ${providerData.cartItemList[index].productPurchasePrice} = ${formatPointNumber((providerData.cartItemList[index].quantities ?? 0) * (providerData.cartItemList[index].productPurchasePrice ?? 0))} ${providerData.cartItemList[index].productType == ProductType.variant.name ? "[${providerData.cartItemList[index].batchNumber.isEmptyOrNull ? 'N/A' : providerData.cartItemList[index].batchNumber}]" : ''}')
|
||||
'${providerData.cartItemList[index].quantities} X $currency${formatWithSeparator(providerData.cartItemList[index].productPurchasePrice ?? 0)} = $currency${formatWithSeparator((providerData.cartItemList[index].quantities ?? 0) * (providerData.cartItemList[index].productPurchasePrice ?? 0))} ${providerData.cartItemList[index].productType == ProductType.variant.name ? "[${providerData.cartItemList[index].batchNumber.isEmptyOrNull ? 'N/A' : providerData.cartItemList[index].batchNumber}]" : ''}')
|
||||
: null,
|
||||
trailing: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
@@ -626,7 +628,7 @@ class AddSalesScreenState extends ConsumerState<AddAndUpdatePurchaseScreen> {
|
||||
),
|
||||
),
|
||||
Text(
|
||||
formatPointNumber(providerData.totalAmount),
|
||||
'$currency${formatWithSeparator(providerData.totalAmount)}',
|
||||
style: _theme.textTheme.titleSmall?.copyWith(
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
@@ -716,6 +718,7 @@ class AddSalesScreenState extends ConsumerState<AddAndUpdatePurchaseScreen> {
|
||||
hintStyle: _theme.textTheme.titleMedium?.copyWith(
|
||||
color: kPeraColor,
|
||||
),
|
||||
prefixText: discountType == 'Flat' ? '$currency ' : null,
|
||||
border: UnderlineInputBorder(borderSide: BorderSide(color: kBorder)),
|
||||
enabledBorder: UnderlineInputBorder(borderSide: BorderSide(color: kBorder)),
|
||||
focusedBorder: UnderlineInputBorder(),
|
||||
@@ -832,6 +835,7 @@ class AddSalesScreenState extends ConsumerState<AddAndUpdatePurchaseScreen> {
|
||||
hintStyle: _theme.textTheme.titleSmall?.copyWith(
|
||||
color: kPeraColor,
|
||||
),
|
||||
prefixText: '$currency ',
|
||||
border: UnderlineInputBorder(borderSide: BorderSide(color: kBorder)),
|
||||
enabledBorder: UnderlineInputBorder(borderSide: BorderSide(color: kBorder)),
|
||||
focusedBorder: UnderlineInputBorder(),
|
||||
@@ -870,6 +874,7 @@ class AddSalesScreenState extends ConsumerState<AddAndUpdatePurchaseScreen> {
|
||||
hintStyle: _theme.textTheme.titleSmall?.copyWith(
|
||||
color: kPeraColor,
|
||||
),
|
||||
prefixText: '$currency ',
|
||||
border: UnderlineInputBorder(borderSide: BorderSide(color: kBorder)),
|
||||
enabledBorder: UnderlineInputBorder(borderSide: BorderSide(color: kBorder)),
|
||||
focusedBorder: UnderlineInputBorder(),
|
||||
@@ -894,7 +899,7 @@ class AddSalesScreenState extends ConsumerState<AddAndUpdatePurchaseScreen> {
|
||||
),
|
||||
),
|
||||
Text(
|
||||
formatPointNumber(providerData.totalPayableAmount),
|
||||
'$currency${formatWithSeparator(providerData.totalPayableAmount)}',
|
||||
style: _theme.textTheme.titleSmall?.copyWith(
|
||||
color: kPeraColor,
|
||||
),
|
||||
@@ -930,6 +935,7 @@ class AddSalesScreenState extends ConsumerState<AddAndUpdatePurchaseScreen> {
|
||||
hintStyle: _theme.textTheme.titleSmall?.copyWith(
|
||||
color: kPeraColor,
|
||||
),
|
||||
prefixText: '$currency ',
|
||||
border: UnderlineInputBorder(borderSide: BorderSide(color: kBorder)),
|
||||
enabledBorder: UnderlineInputBorder(borderSide: BorderSide(color: kBorder)),
|
||||
focusedBorder: UnderlineInputBorder(),
|
||||
@@ -956,7 +962,7 @@ class AddSalesScreenState extends ConsumerState<AddAndUpdatePurchaseScreen> {
|
||||
),
|
||||
),
|
||||
Text(
|
||||
formatPointNumber(providerData.changeAmount),
|
||||
'$currency${formatWithSeparator(providerData.changeAmount)}',
|
||||
style: _theme.textTheme.titleSmall?.copyWith(
|
||||
color: kPeraColor,
|
||||
),
|
||||
@@ -982,7 +988,7 @@ class AddSalesScreenState extends ConsumerState<AddAndUpdatePurchaseScreen> {
|
||||
),
|
||||
),
|
||||
Text(
|
||||
formatPointNumber(providerData.dueAmount),
|
||||
'$currency${formatWithSeparator(providerData.dueAmount)}',
|
||||
style: _theme.textTheme.titleSmall?.copyWith(
|
||||
color: kPeraColor,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user