diff --git a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable1/BSBillingTable1.jsx b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable1/BSBillingTable1.jsx
index e0e0c9b..fe5830d 100644
--- a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable1/BSBillingTable1.jsx
+++ b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable1/BSBillingTable1.jsx
@@ -156,8 +156,8 @@ const BSBillingTable1 = () => {
OrderType === 'Hold'
? tableData?.filter((a, b) => a.BookingTypeName === 'TakeAway')
: tableData?.filter(
- (a, b) => a.BookingTypeName === 'TakeAway' && !a?.SalesId
- );
+ (a, b) => a.BookingTypeName === 'TakeAway' && !a?.SalesId
+ );
const OldtableDataDinein = tableData?.filter(
(a, b) => a.BookingTypeName === 'Dine In' && a?.SalesId
@@ -165,8 +165,8 @@ const BSBillingTable1 = () => {
const OldtableDataTakeAway =
OrderType != 'Hold'
? tableData?.filter(
- (a, b) => a.BookingTypeName === 'TakeAway' && a?.SalesId
- )
+ (a, b) => a.BookingTypeName === 'TakeAway' && a?.SalesId
+ )
: [];
const [OpenEditTotalAmt, setOpenEditTotalAmt] = useState(false);
const [OpenImeiDetail, setOpenImeiDetail] = useState(false);
@@ -1115,9 +1115,9 @@ const BSBillingTable1 = () => {
)?.map((item, idx) =>
idx === 0
? {
- ...item,
- FreeQty,
- }
+ ...item,
+ FreeQty,
+ }
: item
),
};
@@ -1217,6 +1217,7 @@ const BSBillingTable1 = () => {
CompleteRemove: true,
InwardDtlId: isPaidproduct?.InwardDtlId,
BuyInwardDtlId: null,
+ OrderRate: isPaidproduct?.OrderRate,
Offer: 0,
});
} else if (isPaidproduct?.OrderQty > item?.OrderQty) {
@@ -1390,6 +1391,7 @@ const BSBillingTable1 = () => {
CompleteRemove: true,
InwardDtlId: item?.InwardDtlId,
BuyInwardDtlId: null,
+ OrderRate: item?.OrderRate,
Offer: item?.Offer,
});
await ChangeFreeprodlistFn({
@@ -1468,6 +1470,7 @@ const BSBillingTable1 = () => {
OrderQty: isPaidproduct?.OrderQty,
CompleteRemove: true,
InwardDtlId: item?.InwardDtlId,
+ OrderRate:item?.OrderRate,
BuyInwardDtlId: null,
Offer: item?.Offer,
});
@@ -1503,6 +1506,7 @@ const BSBillingTable1 = () => {
InwardDtlId: item?.InwardDtlId,
BuyInwardDtlId: null,
Offer: item?.Offer,
+ OrderRate:item?.OrderRate,
});
await ChangeOfferAppliedProdsFn({
inwardDtlId: item?.InwardDtlId,
@@ -1532,6 +1536,7 @@ const BSBillingTable1 = () => {
OrderQty: isPaidProductAvailableInCart?.OrderQty,
CompleteRemove: true,
InwardDtlId: isPaidProductAvailableInCart?.InwardDtlId,
+ OrderRate:isPaidProductAvailableInCart?.OrderRate,
BuyInwardDtlId: null,
Offer: 0,
});
@@ -1617,6 +1622,7 @@ const BSBillingTable1 = () => {
InwardDtlId: item?.InwardDtlId,
BuyInwardDtlId: null,
Offer: item?.Offer,
+ OrderRate:item?.OrderRate,
});
await ChangeFreeprodlistFn({
OverAllFreeQty: freeProdList?.OverAllFreeQty,
@@ -1643,6 +1649,7 @@ const BSBillingTable1 = () => {
InwardDtlId: item?.InwardDtlId,
BuyInwardDtlId: null,
Offer: item?.Offer,
+ OrderRate:item?.OrderRate,
});
await ChangeFreeprodlistFn({
OverAllFreeQty: freeProdList?.OverAllFreeQty,
@@ -1975,6 +1982,7 @@ const BSBillingTable1 = () => {
CompleteRemove: true,
InwardDtlId: item?.InwardDtlId,
BuyInwardDtlId: item?.InwardDtlId,
+ OrderRate:item?.OrderRate,
Offer: item?.Offer,
});
await ChangeFreeprodlistFn({
@@ -1993,6 +2001,7 @@ const BSBillingTable1 = () => {
CompleteRemove: true,
InwardDtlId: item?.InwardDtlId,
BuyInwardDtlId: item?.InwardDtlId,
+ OrderRate:item?.OrderRate,
Offer: item?.Offer,
});
await ChangeFreeprodlistFn({
@@ -2135,7 +2144,7 @@ const BSBillingTable1 = () => {
OpenEditTotalAmount();
}
}}
- // onClick={tableData?.length>0? OpenEditTotalAmount :""}
+ // onClick={tableData?.length>0? OpenEditTotalAmount :""}
>
{!isMobile ? (
- {/* {row?.ProdVariantName} {row?.Size} {row?.UomName} */} - ( - {!row?.ProdVariantName?.toLowerCase()?.includes( - 'variant' - ) && {row?.ProdVariantName} } - {row?.Size} - {row?.SinglePc == 'Y' ? 'PCS' : row?.UomName}) -
- )} - {row?.Type === 'C' && - row.ProdDetail?.map((prod, idx) => ( -- {prod.ProdName} - {prod.Size} {prod.UomName} +
+ {/* {row?.ProdVariantName} {row?.Size} {row?.UomName} */} + ( + {!row?.ProdVariantName?.toLowerCase()?.includes( + 'variant' + ) && {row?.ProdVariantName} } + {row?.Size} + {row?.SinglePc == 'Y' ? 'PCS' : row?.UomName})
- ))} -+ {prod.ProdName} - {prod.Size} {prod.UomName} +
+ ))} + + )} {/* Barcode */} {item.OptionName === 'Barcode' && ( @@ -2591,11 +2600,10 @@ const ComboSalesBillTable = () => { }} key={`qty-${index}`} tabIndex={0} - className={`${ - EditQtyCombo && row?.localId === Index + className={`${EditQtyCombo && row?.localId === Index ? 'EditQTYcomboTD' : 'qtyTd' - } ${isActiveCell ? 'active-cell' : ''}`} + } ${isActiveCell ? 'active-cell' : ''}`} onClick={() => editField && handleEditQuantityCombo(row) } @@ -2658,9 +2666,9 @@ const ComboSalesBillTable = () => { > {row?.Offer > 0 ? `${( - (row.Offer / (row?.OrderQty * row?.OrderRate)) * - 100 - ).toFixed(2)}%` + (row.Offer / (row?.OrderQty * row?.OrderRate)) * + 100 + ).toFixed(2)}%` : '-'} )} @@ -2692,8 +2700,8 @@ const ComboSalesBillTable = () => { > {allowDecimal ? Number(row.TotalAmt - (row?.Offer || 0)).toFixed( - 2 - ) + 2 + ) : Number(row.TotalAmt - (row?.Offer || 0))} )} @@ -2736,7 +2744,7 @@ const ComboSalesBillTable = () => {