Added Type

This commit is contained in:
Srinath 2026-02-11 15:50:20 +05:30
parent 97e2724525
commit 582b1381bc
1 changed files with 3 additions and 3 deletions

View File

@ -82,16 +82,16 @@ export const ReprintDetails = createAsyncThunk(
const { AppId, CompId, BranchId, OrderFromDate, OrderToDate, OrderId } = data || {}; const { AppId, CompId, BranchId, OrderFromDate, OrderToDate, OrderId } = data || {};
if (OrderId && !OrderFromDate && !OrderToDate) { if (OrderId && !OrderFromDate && !OrderToDate) {
return await axiosRetailInstanceData.get( return await axiosRetailInstanceData.get(
`/reprint?CompId=${CompId}&BranchId=${BranchId}&AppId=${AppId}&OrderId=${OrderId}&pageNumber=${data.PageNumber}` `/reprint?CompId=${CompId}&BranchId=${BranchId}&AppId=${AppId}&OrderId=${OrderId}&pageNumber=${data.PageNumber}&Type=${data.Type}`
); );
} }
if (OrderFromDate && OrderToDate) { if (OrderFromDate && OrderToDate) {
return await axiosRetailInstanceData.get( return await axiosRetailInstanceData.get(
`/reprint?CompId=${CompId}&BranchId=${BranchId}&AppId=${AppId}&orderFromDate=${OrderFromDate}&orderToDate=${OrderToDate} &pageNumber=${data.PageNumber}` `/reprint?CompId=${CompId}&BranchId=${BranchId}&AppId=${AppId}&orderFromDate=${OrderFromDate}&orderToDate=${OrderToDate} &pageNumber=${data.PageNumber}&Type=${data.Type}`
); );
} else { } else {
return await axiosRetailInstanceData.get( return await axiosRetailInstanceData.get(
`/reprint?CompId=${CompId}&BranchId=${BranchId}&AppId=${AppId}&pageNumber=${data.PageNumber}` `/reprint?CompId=${CompId}&BranchId=${BranchId}&AppId=${AppId}&pageNumber=${data.PageNumber}&Type=${data.Type}`
); );
} }
} }