diff --git a/src/Features/BookingScreen/BookingData/BookingData.js b/src/Features/BookingScreen/BookingData/BookingData.js index 3706e29..6ba669b 100644 --- a/src/Features/BookingScreen/BookingData/BookingData.js +++ b/src/Features/BookingScreen/BookingData/BookingData.js @@ -432,7 +432,7 @@ export const getCustomerForHold = createAsyncThunk( export const getAllCustomerAndBranch = createAsyncThunk( 'product/getAllCustomerAndBranch', - async ({ CompId, AppId, BranchId }) => { + async ({ CompId, AppId, BranchId,selectedCustomertype }) => { if ( CompId != null && CompId != undefined && @@ -442,7 +442,7 @@ export const getAllCustomerAndBranch = createAsyncThunk( AppId != undefined ) { return await axiosRetailInstanceData.get( - `/Customer/AllCustomerBranchDropdown?compId=${CompId}&branchId=${BranchId}&appId=${AppId}` + `/Customer/AllCustomerBranchDropdown?compId=${CompId}&branchId=${BranchId}&appId=${AppId}&type=${selectedCustomertype}` ); } } diff --git a/src/Pages/BookingScreen/Components/UtillComponents/SalesDetailsNetAmountModal.jsx b/src/Pages/BookingScreen/Components/UtillComponents/SalesDetailsNetAmountModal.jsx index 44b02da..c162061 100644 --- a/src/Pages/BookingScreen/Components/UtillComponents/SalesDetailsNetAmountModal.jsx +++ b/src/Pages/BookingScreen/Components/UtillComponents/SalesDetailsNetAmountModal.jsx @@ -435,7 +435,8 @@ const SalesNetAmountModal = ({ color: '#2e7d32', }} > - {total-RefundAmt} + {/* {total-RefundAmt} */} + {total} ); diff --git a/src/Pages/BookingScreen/Template/RetailBookingClose.jsx b/src/Pages/BookingScreen/Template/RetailBookingClose.jsx index f709de7..2cac1a7 100644 --- a/src/Pages/BookingScreen/Template/RetailBookingClose.jsx +++ b/src/Pages/BookingScreen/Template/RetailBookingClose.jsx @@ -335,6 +335,13 @@ const RetailBookingClosing = (props) => { {safeRound(PaymentClosingData?.OverAllUpiAmount)} + {PaymentClosingData?.OverAllRefundAmount > 0 && (
Refund Amount
+Total Cash In Hand
Take Away:{' '} - {TakeAwayOrderCount + SelfTakeAwayOrderCount || 0} + {(TakeAwayOrderCount + SelfTakeAwayOrderCount || 0)}
)}Dine In: {DineInOrderCount + SelfDineInOrderCount || 0}
@@ -528,6 +530,20 @@ const SalesCountComponent = React.memo( )}Charges: {TotalCharges}
)} + {refundAmount > 0 && ( +Refund: {refundAmount}
+ )} {TotalDiscount > 0 && (Discount(-): {TotalDiscount}
)} --------------------------
{' '} - Net: {Math.round(TotalNetAmount + (TotalPreOrderAmount || 0))} + Net: {Math.round(TotalBillAmount + TaxAmount + (TotalPreOrderAmount || 0) - (refundAmount))}
Charges: {parseFloat(TotalCharges).toFixed(2)}
)} + {itemData?.[0]?.RefundAmount > 0 && ( +Refund: {parseFloat(itemData?.[0]?.RefundAmount).toFixed(2)}
+ )} {TotalDiscount > 0 && (Discount(-): { parseFloat(TotalDiscount).toFixed(2)}
)} @@ -190,7 +193,7 @@ const ItemWiseReportPdf = ({ (TotalTaxAmount || 0) + (TotalCharges || 0) + (TotalPreOrderAmount || 0) - - (TotalDiscount || 0) + (TotalDiscount || 0) - (itemData?.[0]?.RefundAmount || 0) )}