| @@ -75,7 +75,7 @@ export const REPORTS: ReportDefinition[] = [ | |||||
| { label: "倉存類別 Stock Category", name: "stockCategory", type: "select", required: true, | { label: "倉存類別 Stock Category", name: "stockCategory", type: "select", required: true, | ||||
| multiple: true, | multiple: true, | ||||
| options: [ | options: [ | ||||
| { label: "All", value: "MAT,FG,WIP,NM,CMB"}, | |||||
| { label: "All", value: "All"}, | |||||
| { label: "MAT", value: "MAT" }, | { label: "MAT", value: "MAT" }, | ||||
| { label: "FG", value: "FG" }, | { label: "FG", value: "FG" }, | ||||
| { label: "WIP", value: "WIP" }, | { label: "WIP", value: "WIP" }, | ||||
| @@ -138,5 +138,30 @@ export const REPORTS: ReportDefinition[] = [ | |||||
| { label: "材料消耗日期:由 Last Out Date Start", name: "lastOutDateStart", type: "date", required: false }, | { label: "材料消耗日期:由 Last Out Date Start", name: "lastOutDateStart", type: "date", required: false }, | ||||
| { label: "材料消耗日期:至 Last Out Date End", name: "lastOutDateEnd", type: "date", required: false }, | { label: "材料消耗日期:至 Last Out Date End", name: "lastOutDateEnd", type: "date", required: false }, | ||||
| ] | ] | ||||
| }, | |||||
| { | |||||
| id: "rep-007", | |||||
| title: "庫存結餘報告", | |||||
| apiEndpoint: `${NEXT_PUBLIC_API_URL}/report/print-stock-balance`, | |||||
| fields: [ | |||||
| { label: "倉存類別 Stock Category", name: "stockCategory", type: "select", required: false, | |||||
| multiple: true, | |||||
| options: [ | |||||
| { label: "All", value: "All" }, | |||||
| { label: "MAT", value: "MAT" }, | |||||
| { label: "WIP", value: "WIP" }, | |||||
| { label: "NM", value: "NM" }, | |||||
| { label: "FG", value: "FG" }, | |||||
| { label: "CMB", value: "CMB" } | |||||
| ] }, | |||||
| { label: "物料編號 Item Code", name: "itemCode", type: "text", required: false}, | |||||
| { label: "存量:由 Current Balance Start", name: "balanceFilterStart", type: "number", required: false}, | |||||
| { label: "存量:至 Current Balance End", name: "balanceFilterEnd", type: "number", required: false}, | |||||
| { label: "存貨位置 Store Location", name: "storeLocation", type: "text", required: false, placeholder: "例如:2F-W201-#Z-01, 2F, W201" }, | |||||
| { label: "最後入倉日期:由 Last In Date Start", name: "lastInDateStart", type: "date", required: false }, | |||||
| { label: "最後入倉日期:至 Last In Date End", name: "lastInDateEnd", type: "date", required: false }, | |||||
| { label: "最後出倉日期:由 Last Out Date Start", name: "lastOutDateStart", type: "date", required: false }, | |||||
| { label: "最後出倉日期:至 Last Out Date End", name: "lastOutDateEnd", type: "date", required: false }, | |||||
| ] | |||||
| } | } | ||||
| ]; | ]; | ||||