diff --git a/src/app/(main)/report/ReportSelectionDashboard.tsx b/src/app/(main)/report/ReportSelectionDashboard.tsx index b5eb3802..48ea716f 100644 --- a/src/app/(main)/report/ReportSelectionDashboard.tsx +++ b/src/app/(main)/report/ReportSelectionDashboard.tsx @@ -23,6 +23,7 @@ import { useReportLabels } from "./reportI18n"; const REPORT_ICON_MAP: Record = { "rep-011": Inventory2OutlinedIcon, + "rep-020": Inventory2OutlinedIcon, "rep-007": MonetizationOnOutlinedIcon, "rep-012": LayersOutlinedIcon, "rep-021": Inventory2OutlinedIcon, diff --git a/src/app/(main)/report/reportCategories.ts b/src/app/(main)/report/reportCategories.ts index 2b2f7aa7..f8c88e6a 100644 --- a/src/app/(main)/report/reportCategories.ts +++ b/src/app/(main)/report/reportCategories.ts @@ -17,7 +17,7 @@ export const REPORT_CATEGORIES: ReportCategoryConfig[] = [ headerBg: "#b8e0b8", bodyBg: "#eef8ee", accent: "#2e7d32", - reportIds: ["rep-011", "rep-007", "rep-012", "rep-021", "rep-010"], + reportIds: ["rep-011", "rep-020", "rep-007", "rep-012", "rep-021", "rep-010"], }, { id: "inbound-outbound", diff --git a/src/config/reportConfig.ts b/src/config/reportConfig.ts index c6ed8b5b..467a10da 100644 --- a/src/config/reportConfig.ts +++ b/src/config/reportConfig.ts @@ -300,7 +300,6 @@ export const REPORTS: ReportDefinition[] = [ asyncItemCodeField(), ] }, - /* Hidden for now: 庫存流水帳報告 (rep-020) { id: "rep-020", title: "庫存流水帳報告", @@ -309,10 +308,9 @@ export const REPORTS: ReportDefinition[] = [ fields: [ { label: "期間起 Period From(永遠該月1日)", name: "lastInDateStart", type: "date", required: true }, { label: "期間迄 Period To", name: "lastInDateEnd", type: "date", required: true }, - { label: "貨品編號 Item Code", name: "itemCode", type: "text", required: false }, + asyncItemCodeField(), ], }, - */ /* { id: "rep-007", diff --git a/src/i18n/en/report.json b/src/i18n/en/report.json index 17af3c26..42227b9d 100644 --- a/src/i18n/en/report.json +++ b/src/i18n/en/report.json @@ -118,6 +118,14 @@ "itemCode": "Item Code" } }, + "rep-020": { + "title": "Stock Lot Ledger Report", + "fields": { + "lastInDateStart": "Period From (always 1st of month)", + "lastInDateEnd": "Period To", + "itemCode": "Item Code" + } + }, "rep-007": { "title": "Stock Balance Report", "fields": { diff --git a/src/i18n/zh/report.json b/src/i18n/zh/report.json index 52a2a638..31e168f5 100644 --- a/src/i18n/zh/report.json +++ b/src/i18n/zh/report.json @@ -118,6 +118,14 @@ "itemCode": "貨品編號" } }, + "rep-020": { + "title": "庫存流水帳報告", + "fields": { + "lastInDateStart": "期間起(永遠該月1日)", + "lastInDateEnd": "期間迄", + "itemCode": "貨品編號" + } + }, "rep-007": { "title": "庫存結餘報告", "fields": {