CANCERYS\kw093 пре 1 месец
родитељ
комит
939d50348f
1 измењених фајлова са 11 додато и 1 уклоњено
  1. +11
    -1
      src/app/api/stockTake/actions.ts

+ 11
- 1
src/app/api/stockTake/actions.ts Прегледај датотеку

@@ -257,7 +257,14 @@ export const getStockTakeRecords = async () => {
export const getStockTakeRecordsPaged = async (
pageNum: number,
pageSize: number,
params?: { sectionDescription?: string; stockTakeSections?: string; status?: string; area?: string; storeId?: string }
params?: {
sectionDescription?: string;
stockTakeSections?: string;
status?: string;
area?: string;
storeId?: string;
onlyLatestRound?: boolean;
}
) => {
const searchParams = new URLSearchParams();
searchParams.set("pageNum", String(pageNum));
@@ -277,6 +284,9 @@ export const getStockTakeRecordsPaged = async (
if (params?.storeId && params.storeId !== "All") {
searchParams.set("storeId", params.storeId);
}
if (params?.onlyLatestRound != null) {
searchParams.set("onlyLatestRound", String(params.onlyLatestRound));
}
const url = `${BASE_API_URL}/stockTakeRecord/AllPickedStockOutRecordList?${searchParams.toString()}`;
const res = await serverFetchJson<RecordsRes<AllPickedStockTakeListReponse>>(url, { method: "GET" });
return res;


Loading…
Откажи
Сачувај