Merge pull request 'Design and bsc1 issue' (#268) from March-3-deployment into main
Reviewed-on: Pozomind/pozo-retail-app#268
This commit is contained in:
commit
be6836f785
|
|
@ -747,7 +747,8 @@ const BSC1Payment = (props) => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!preOrder) {
|
if (!preOrder) {
|
||||||
const totalSum = OrderCardDetail?.reduce(
|
const totalSum = OrderCardDetail?.reduce(
|
||||||
(acc, card) => acc + parseFloat(card.OrderRate * card.OrderQty || 0),
|
// (acc, card) => acc + parseFloat(card.OrderRate * card.OrderQty || 0),
|
||||||
|
(acc, card) => acc + parseFloat(card.TotalAmt || 0),
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -839,7 +840,7 @@ const BSC1Payment = (props) => {
|
||||||
? (Number(withdiscTotal) + Number(globalTipAmount)).toFixed(2)
|
? (Number(withdiscTotal) + Number(globalTipAmount)).toFixed(2)
|
||||||
: (Number(Total) + Number(globalTipAmount)).toFixed(2)
|
: (Number(Total) + Number(globalTipAmount)).toFixed(2)
|
||||||
);
|
);
|
||||||
|
console.log(currentOrderNetAmount,totalSum,"currentOrderNetAmount")
|
||||||
setTotalAmount(
|
setTotalAmount(
|
||||||
salesBillEdit
|
salesBillEdit
|
||||||
? currentOrderNetAmount > previousNetAmount
|
? currentOrderNetAmount > previousNetAmount
|
||||||
|
|
@ -2238,6 +2239,9 @@ const BSC1Payment = (props) => {
|
||||||
ModelNumber: a.ModelNumber,
|
ModelNumber: a.ModelNumber,
|
||||||
BatchRef: a.BatchRef,
|
BatchRef: a.BatchRef,
|
||||||
PackageDtl: a.PackageDtl,
|
PackageDtl: a.PackageDtl,
|
||||||
|
...(a?.DiscountValue && { DiscountValue: a.DiscountValue }),
|
||||||
|
...(a?.DiscountType && { DiscountType: a.DiscountType }),
|
||||||
|
...(a?.DiscountAmt && { DiscountAmt: a.DiscountAmt })
|
||||||
}));
|
}));
|
||||||
const NotSlectedTypeFind = temporderdetail?.find(
|
const NotSlectedTypeFind = temporderdetail?.find(
|
||||||
(a) => a?.BookingType != SelectedBookingType
|
(a) => a?.BookingType != SelectedBookingType
|
||||||
|
|
|
||||||
|
|
@ -843,7 +843,11 @@ console.log(dataSource, 'dataSource');
|
||||||
const descriptions = identifiers
|
const descriptions = identifiers
|
||||||
.filter((d) => d.Description)
|
.filter((d) => d.Description)
|
||||||
.map((d) => d.Description);
|
.map((d) => d.Description);
|
||||||
console.log(descriptions,identifiers,'descriptions')
|
console.log(
|
||||||
|
descriptions,
|
||||||
|
identifiers,
|
||||||
|
'descriptions'
|
||||||
|
);
|
||||||
const packageList =
|
const packageList =
|
||||||
PackageDetails?.filter(
|
PackageDetails?.filter(
|
||||||
(pkg) => pkg.ProdId === item.ProdId
|
(pkg) => pkg.ProdId === item.ProdId
|
||||||
|
|
@ -3595,6 +3599,7 @@ console.log(dataSource, 'dataSource');
|
||||||
...tableHeaderStyle,
|
...tableHeaderStyle,
|
||||||
width: '10px',
|
width: '10px',
|
||||||
textAlign: 'right',
|
textAlign: 'right',
|
||||||
|
paddingLeft: '4px',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Rate
|
Rate
|
||||||
|
|
@ -3606,6 +3611,7 @@ console.log(dataSource, 'dataSource');
|
||||||
...tableHeaderStyle,
|
...tableHeaderStyle,
|
||||||
width: '10px',
|
width: '10px',
|
||||||
textAlign: 'right',
|
textAlign: 'right',
|
||||||
|
paddingLeft: '4px',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Rate
|
Rate
|
||||||
|
|
@ -3689,9 +3695,15 @@ console.log(dataSource, 'dataSource');
|
||||||
))}
|
))}
|
||||||
|
|
||||||
{/* Description from first identifier */}
|
{/* Description from first identifier */}
|
||||||
{(item?.ProductIdentifierDtls?.length > 0 && item.ProductIdentifierDtls?.[0]?.Description)&&
|
{item?.ProductIdentifierDtls?.length > 0 &&
|
||||||
(
|
item.ProductIdentifierDtls?.[0]
|
||||||
<div>{item.ProductIdentifierDtls?.[0]?.Description}</div>
|
?.Description && (
|
||||||
|
<div>
|
||||||
|
{
|
||||||
|
item.ProductIdentifierDtls?.[0]
|
||||||
|
?.Description
|
||||||
|
}
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
</td>
|
</td>
|
||||||
)}
|
)}
|
||||||
|
|
@ -3737,9 +3749,17 @@ console.log(dataSource, 'dataSource');
|
||||||
))}
|
))}
|
||||||
|
|
||||||
{/* Description from first identifier */}
|
{/* Description from first identifier */}
|
||||||
{(item?.ProductIdentifierDtls?.length > 0 && item.ProductIdentifierDtls?.[0]?.Description)&&
|
{item?.ProductIdentifierDtls?.length >
|
||||||
(
|
0 &&
|
||||||
<div>{item.ProductIdentifierDtls?.[0]?.Description}</div>
|
item.ProductIdentifierDtls?.[0]
|
||||||
|
?.Description && (
|
||||||
|
<div>
|
||||||
|
{
|
||||||
|
item
|
||||||
|
.ProductIdentifierDtls?.[0]
|
||||||
|
?.Description
|
||||||
|
}
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
|
@ -4053,9 +4073,16 @@ console.log(dataSource, 'dataSource');
|
||||||
})
|
})
|
||||||
.join('')
|
.join('')
|
||||||
: '') +
|
: '') +
|
||||||
(item?.ProductIdentifierDtls?.length > 0 && item.ProductIdentifierDtls?.[0]?.Description)&&
|
(item?.ProductIdentifierDtls?.length >
|
||||||
(
|
0 &&
|
||||||
<div>{item.ProductIdentifierDtls?.[0]?.Description}</div>
|
item.ProductIdentifierDtls?.[0]
|
||||||
|
?.Description) && (
|
||||||
|
<div>
|
||||||
|
{
|
||||||
|
item.ProductIdentifierDtls?.[0]
|
||||||
|
?.Description
|
||||||
|
}
|
||||||
|
</div>
|
||||||
)
|
)
|
||||||
).trim()}
|
).trim()}
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue