Skip to content

Commit

Permalink
refactor: 💡 rm redundant column of export ledger API
Browse files Browse the repository at this point in the history
✅ Closes: #3743
  • Loading branch information
arealclimber committed Dec 25, 2024
1 parent 5cb5bfe commit 8ad5c60
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions src/constants/export_ledger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ export enum ExportLedgerFileType {
}

export const LedgerFieldsMap: Record<ILedgerHeader, string> = {
accountId: '會計科目編號',
no: '會計科目代號',
no: '科目編號',
accountingTitle: '會計科目',
voucherNumber: '傳票編號',
voucherDate: '傳票日期',
Expand Down
1 change: 0 additions & 1 deletion src/lib/utils/ledger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ export const convertLedgerItemToCsvData = (
) => {
const csvData = ledgerItems.map((item) => {
return {
accountId: item.accountId,
no: item.no,
accountingTitle: item.accountingTitle,
voucherNumber: voucherMap.get(item.voucherId)?.no,
Expand Down
1 change: 0 additions & 1 deletion src/lib/utils/zod_schema/export_ledger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const exportLedgerFiltersSchema = z.object({
});

export const exportLedgerFieldsSchema = z.enum([
'accountId',
'no',
'accountingTitle',
'voucherNumber',
Expand Down

0 comments on commit 8ad5c60

Please sign in to comment.