Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

feat: account drill down (#1018)

Brad Barbina7a6246c0a1d
diff --git a/.ai/docs/loop-system.md b/.ai/docs/loop-system.md
index 200504e44c..969cffe278 100644
--- a/.ai/docs/loop-system.md
+++ b/.ai/docs/loop-system.md
@@ -24,30 +24,27 @@ outer-loop (OpenClaw cron → Claude Code headless)
## Runtime Layout
-The entire `llm/` directory is **gitignored** — it holds only runtime state, never committed docs.
+Loop runtime state lives under `.ai/runs/<id>/` (`RUNS_DIR` in `layout.ts`). Per-run **directories** are gitignored (`.ai/runs/*/`); the committed markdown run logs from the plan/execute skills (`.ai/runs/*.md`) share the same root and stay tracked. Run dirs don't exist in a fresh checkout — `run-loop.ts` creates them when a loop executes.
```
-.ai/
-├── outer-loop/
-│ ├── agent-state.db # outer-loop scratch (SQLite)
-│ └── daily-notes/ # per-day operational logs
-└── loops/
- └── runs/<id>/ # one loop run's ephemeral artifacts
- ├── binding.loop.md # the binding this run was driven from
- ├── ledger.jsonl # append-only per-iteration record
- ├── run.log.jsonl # full event log
- ├── outcome.json # final LoopOutcome (machine-readable result)
- └── screenshots/ # behavior-gate captures (hosted on loop-artifacts branch)
+.ai/runs/<id>/ # one loop run's ephemeral artifacts — GITIGNORED
+├── binding.loop.md # the binding this run was driven from
+├── ledger.jsonl # append-only per-iteration record
+├── run.log.jsonl # full event log
+├── outcome.json # final LoopOutcome (machine-readable result)
+└── screenshots/ # behavior-gate captures (hosted on loop-artifacts branch)
```
+Outer-loop scratch (`agent-state.db`, daily notes) lives on the OpenClaw box, not in this repo.
+
**Key exports from `layout.ts`:**
-- `LOOPS_DIR`, `RUNS_DIR` — repo-relative roots
+- `RUNS_DIR` — repo-relative root for run artifacts
- `runDir(cwd, id)`, `bindingPath(cwd, id)`, `ledgerPath(cwd, id)`, `logPath(cwd, id)`, `outcomePath(cwd, id)`, `screenshotsDir(cwd, id)`, `hostedScreenshotPath(id, name)`
## Binding Format
-Bindings live at `.ai/loops/runs/<id>/binding.loop.md`. The parser (`parseBinding` in `binding.ts`) **only reads YAML frontmatter** — markdown body after `---` is supplementary context only.
+Bindings live at `.ai/runs/<id>/binding.loop.md`. The parser (`parseBinding` in `binding.ts`) **only reads YAML frontmatter** — markdown body after `---` is supplementary context only.
```markdown
---
diff --git a/.ai/docs/outer-loop.md b/.ai/docs/outer-loop.md
index dd6517a050..0b44c24d45 100644
--- a/.ai/docs/outer-loop.md
+++ b/.ai/docs/outer-loop.md
@@ -36,8 +36,8 @@ OpenClaw runtime (heartbeat · webhooks · cron · sandbox · SQLite)
crbn up --minimal --run 'pnpm --filter @carbon/harness loop <binding-path> --cwd <worktree-path>' --volumes
```
-- Drives a `Binding` (in `llm/loops/runs/<id>/binding.loop.md`) to a gated PR
-- Writes `llm/loops/runs/<id>/outcome.json` → `{ state, prUrl, reason }`
+- Drives a `Binding` (in `.ai/runs/<id>/binding.loop.md`) to a gated PR
+- Writes `.ai/runs/<id>/outcome.json` → `{ state, prUrl, reason }`
- `openPr` is idempotent (PR-feedback re-entry reuses the same branch/PR)
- GC: `pnpm --filter @carbon/harness run gc`
diff --git a/.ai/playbooks/account-ledger-drilldown.md b/.ai/playbooks/account-ledger-drilldown.md
new file mode 100644
index 0000000000..048e234451
--- /dev/null
+++ b/.ai/playbooks/account-ledger-drilldown.md
@@ -0,0 +1,83 @@
+# Account Ledger Drill-Down + Period Selector
+
+Last tested: 2026-07-02
+Routes: `/x/accounting/{trial-balance,balance-sheet,income-statement,charts}` + child `.../{ledger/}$accountId`
+Tracking spec: `.ai/specs/2026-07-02-account-ledger-drilldown.md`
+
+## Prerequisites
+- Dev stack up for this worktree (`crbn up`). If you launch the ERP dev server
+ manually, you MUST pass `NODE_EXTRA_CA_CERTS=$HOME/.portless/ca.pem` or the
+ Supabase auth fetch fails with "self-signed certificate in certificate chain"
+ → login shows "Authentication Error".
+- Authenticated via `/auth` ([email protected]).
+- **Journal data must exist.** A fresh stack has 0 journals → all balances blank.
+ Seed class-normalized lines directly (see below). Balances cap at *today*, so
+ seed postingDates on/before the current date.
+- **Chart of Accounts only:** the balance cell + "View Ledger" menu render **only
+ when `companySettings.accountingEnabled = true`** (false after reset). The three
+ report pages do NOT gate on this. Enable with:
+ `UPDATE "companySettings" SET "accountingEnabled"=true;` (id = companyId).
+
+## Seeding fixtures (psql via `docker exec <postgres-container> psql -U postgres`)
+- `amount` is class-normalized: `toDisplayDebit/Credit` in `@carbon/utils` treat
+ Asset/Expense as natural-debit. So for a Revenue (credit-normal) account:
+ `amount > 0` → **Credit** column, `amount < 0` → **Debit** column. For an Asset:
+ positive → Debit. Each side of a balanced entry is stored positive-on-its-natural-side
+ (a credit to Asset AR is stored NEGATIVE, not as a positive on a contra row).
+- Insert into `journal` (needs `journalEntryId` unique per company, `status`
+ Draft|Posted|Reversed, `postingDate`) then `journalLine` (needs `amount`,
+ `journalLineReference`, `companyId`, `accountId`). Leave `accountingPeriodId`,
+ `createdBy` null. Draft journals ARE counted in balances (no status filter).
+- To exercise the pager (50/page) put >50 lines on one account.
+- Full seed script used: `/tmp/seed-ledger.sql` (55 July sales + 1 June opening +
+ 1 return + 1 draft on account 4010 Sales / 1110 AR).
+
+## Steps
+### 1. Navigate + PeriodSelector
+- Open `/x/accounting/trial-balance`. A **PeriodSelector** button (default "All Time")
+ replaces the old date pickers.
+- Click it → popover with presets. **range** variant (TB/IS/charts): This Month,
+ Last Month, This Quarter, Last Quarter, Year to Date, Last Year, All Time, Custom.
+ **asOf** variant (Balance Sheet): Today, End of Last Month/Quarter/Year, Custom.
+- Selecting a preset writes literal ISO dates to `?startDate=&endDate=` (All Time
+ clears both). Active preset is inferred from the params.
+
+### 2. Drill a leaf account (open the drawer)
+- **Selector note:** the tree row is a plain `<div onClick>` (snapshot labels it
+ `treeitem`). An agent-browser ref-click can hit the expand chevron and just
+ toggle. Instead JS-click the name span:
+ ```
+ const row=[...document.querySelectorAll('div.cursor-pointer')].find(r=>r.textContent.includes('4010')&&r.textContent.includes('Sales'));
+ [...row.querySelectorAll('span')].find(s=>s.textContent.trim()==='Sales').click();
+ ```
+- Chart of Accounts is different: **row-click = edit** (`/charts/$accountId`);
+ the **balance cell** (a `button.w-32.underline`) drills to `/charts/ledger/$accountId`.
+ There's also a "View Ledger" item in the row's `⋮` menu (same `openLedger` fn;
+ Radix menu is hard to drive via synthetic click — verify by code equivalence).
+
+### 3. Verify the drawer
+- Header: account name, mono number, class badge (e.g. REVENUE), period label.
+- Summary strip: **Opening / Net Change / Closing**. Invariant:
+ `opening = closing − netChange`, and **Closing == the tree row's Ending** for the
+ same period. Balance Sheet child forces `startDate=null` (as-of → Opening 0 / "All Time").
+- Table: Date / Entry (link → `/x/journal-entry/$id/details`) / Description + source
+ type / Debit / Credit. Draft lines show a **DRAFT** badge.
+- Pager: 50/page, `?offset=50` param, "Next page"/"Previous page" aria-label icon
+ buttons; footer "1–50 of N". Lines are date-filtered by the period (opening-only
+ prior-period lines are NOT listed).
+
+### 4. Close
+- Escape (no explicit X). Returns to the parent route **preserving period params**,
+ dropping `offset`.
+
+## Verified 2026-07-02 (all PASS)
+- TB/IS/charts range PeriodSelector + Balance Sheet asOf variant; presets write URL dates.
+- Drill-down opens on all four pages; Closing ties out to the tree (500/5525/6025 under This Month; 0/6025/6025 under All Time).
+- Debit/Credit correct for credit-normal (Revenue: +→Credit, return −→Debit) AND debit-normal (AR: +→Debit).
+- DRAFT badge on unposted line; entry link opens the journal entry; pager pages; close preserves params.
+
+## Common failures
+- "Authentication Error" on login → ERP server missing `NODE_EXTRA_CA_CERTS`.
+- All balances blank → no journal data seeded, or seeded with future postingDates.
+- Charts balances/View Ledger absent → `accountingEnabled=false`.
+- Drill "does nothing" on a ref-click → clicked the chevron; JS-click the name span.
diff --git a/.ai/skills/conductor/SKILL.md b/.ai/skills/conductor/SKILL.md
index 13a3dc7278..37a11d35aa 100644
--- a/.ai/skills/conductor/SKILL.md
+++ b/.ai/skills/conductor/SKILL.md
@@ -29,7 +29,7 @@ The binding is a `.loop.md` file with frontmatter `id`, `kind`
(`bug|feature|usability|copy`), `title`, `risk`, optional `issue`, and an
`acceptance` list (field reference: `packages/harness/AGENTS.md`). If given a
binding path, read it; otherwise write one from the request to
-`llm/loops/runs/<id>/binding.loop.md` (gitignored runtime). Validate the shape:
+`.ai/runs/<id>/binding.loop.md` (gitignored runtime). Validate the shape:
```bash
pnpm --filter @carbon/harness exec tsx -e "import {parseBinding} from '@carbon/harness'; import {readFileSync} from 'node:fs'; console.log(JSON.stringify(parseBinding(readFileSync('<path>','utf8'))))"
@@ -115,7 +115,7 @@ Keep the change iff **every gate is green (including the behavior proof) AND
the judge approves**; otherwise revert it. Append one entry per iteration:
```bash
-pnpm --filter @carbon/harness exec tsx -e "import {appendLedger} from '@carbon/harness'; appendLedger('llm/loops/runs/<id>/ledger.jsonl', {iteration: <n>, change: '<summary>', gates: {<gate>: <bool>}, decision: '<keep|revert>', reason: '<why>', at: new Date().toISOString()})"
+pnpm --filter @carbon/harness exec tsx -e "import {appendLedger} from '@carbon/harness'; appendLedger('.ai/runs/<id>/ledger.jsonl', {iteration: <n>, change: '<summary>', gates: {<gate>: <bool>}, decision: '<keep|revert>', reason: '<why>', at: new Date().toISOString()})"
```
(The harness has no clock — you supply `at`.)
@@ -146,7 +146,7 @@ Before opening the PR:
- per acceptance criterion: **which gate proves it and how** (test name,
before/after screenshots, or CLI output),
- a ledger summary (iterations, kept/reverted and why).
-3. Loop artifacts (`llm/loops/runs/<id>/` — binding, ledger, screenshots) are
+3. Loop artifacts (`.ai/runs/<id>/` — binding, ledger, screenshots) are
gitignored runtime and never committed to the product tree; the harness's
`openPr` hosts screenshots for embedding.
4. Surface every design decision for the human to approve or improve — design
diff --git a/.ai/specs/2026-07-02-account-ledger-drilldown.md b/.ai/specs/2026-07-02-account-ledger-drilldown.md
new file mode 100644
index 0000000000..3569feecbf
--- /dev/null
+++ b/.ai/specs/2026-07-02-account-ledger-drilldown.md
@@ -0,0 +1,133 @@
+# Account Ledger Drill-Down + Period Selector
+
+> Status: implemented (pending visual verification)
+> Author: Claude (with Brad Barbin)
+> Date: 2026-07-02
+
+## TLDR
+
+The four financial report pages — Trial Balance, Balance Sheet, Income Statement, and Chart of Accounts — now support drilling from any leaf account into the journal lines behind its balance, via a shared **Account Ledger drawer** (right-side overlay with an Opening / Net Change / Closing tie-out strip and a paginated line table). The bare start/end date pickers on those pages are replaced by a shared **PeriodSelector**: preset ranges (This Month, Last Month, This Quarter, Last Quarter, fiscal-aware This/Last Fiscal Year and Fiscal Year to Date, All Time — each row shows its resolved dates) with a custom date range as the escape hatch; the Balance Sheet uses an "as of" variant (Today, End of Last Month/Quarter/Fiscal Year). Both pieces write the same `startDate`/`endDate` URL params the loaders already read, so report semantics are unchanged.
+
+## Tie-out contract (the important invariant)
+
+Report balances come from the `accountTreeBalancesByCompany` RPC
+(`packages/database/supabase/migrations/20260315000001_per-company-balance-rpc.sql`), whose line
+predicate is: join `journalLine` → `journal`, filter by optional single `companyId`, date-filter on
+`journal.postingDate`, **no journal-status filter** (Draft journals count toward balances).
+
+The drill-down mirrors this exactly:
+
+- Lines come from the new `journalLines` view (`journalLine ⋈ journal`, no status filter); Draft /
+ Reversed lines render with a status badge instead of being hidden.
+- The drawer's summary strip calls the **same RPC** with the same params and reads the account's row:
+ `closing = balanceAtDate`, `netChange`, `opening = closing − netChange` — identical numbers to the
+ tree's Beginning/Ending columns by construction.
+- Company scoping mirrors the pages: single selected company → `eq(companyId)`; `companies=all` →
+ no company filter (RPC's `p_company_id = NULL`). The chart of accounts (whole-group balances,
+ `bypassRls`) drills down with no company filter and `bypassRls`, matching its parent.
+- Stored `journalLine.amount` is class-normalized (positive = the account's natural side), so the
+ drawer's Debit/Credit columns use `toDisplayDebit` / `toDisplayCredit` from `@carbon/utils`.
+
+## Data model
+
+One migration, `20260702122210_journal-lines-view.sql`:
+
+```sql
+DROP VIEW IF EXISTS "journalLines";
+CREATE VIEW "journalLines" WITH(SECURITY_INVOKER=true) AS
+SELECT jl.*, j."postingDate", j."journalEntryId", j."status", j."sourceType",
+ j."description" AS "journalDescription"
+FROM "journalLine" jl
+JOIN "journal" j ON j."id" = jl."journalId";
+```
+
+No base-table changes; SECURITY_INVOKER defers to `journalLine`/`journal` RLS. Until the
+cloud-generated DB types include the view, the service queries it through a cast with a hand-kept
+row type (`AccountLedgerLine` in `types.ts`) — remove both once types regenerate.
+
+## Services (`apps/erp/app/modules/accounting/`)
+
+- `getAccountLedger(client, { accountId, companyId, startDate, endDate, limit, offset })` —
+ paginated view query, newest first (`postingDate`, `journalEntryId`, `id` desc), count exact.
+- `getAccountLedgerSummary(client, companyGroupId, companyId, { accountId, startDate, endDate })` —
+ RPC wrapper returning `{ opening, netChange, closing }`.
+- Types: `AccountLedgerLine`, `AccountLedgerSummary` in `types.ts`.
+
+## UI
+
+- **`PeriodSelector`** (`apps/erp/app/components/PeriodSelector.tsx`) — `variant: "range" | "asOf"`,
+ `fiscalStartMonth` (1–12, from `fiscalYearSettings.startMonth`; Fiscal Year to Date / Last Fiscal
+ Year are fiscal-aware, quarters calendar). Popover with a preset list (each row shows its resolved
+ date range so "Last Fiscal Year" is unambiguous) + in-place custom view (DatePickers + Apply).
+ Writes literal ISO dates to `startDate`/`endDate`; active preset is inferred by comparing params
+ to computed ranges. "All Time" clears both params.
+- **`AccountLedgerDrawer`** (`ui/Reports/AccountLedgerDrawer.tsx`) — `DrawerContent size="lg"`;
+ header (account name, mono number, class badge, period label); 3-cell summary strip; table of
+ Date / Entry (link to `path.to.journalEntryDetails`) / Description + source type / Debit / Credit;
+ offset-param pager (50/page); closing navigates back to the parent preserving params minus `offset`.
+- **Filter bars**: `ReportFilters.tsx` (+ `periodVariant`, `fiscalStartMonth` props) and
+ `ChartOfAccountsTableFilters.tsx` swap their date-range popovers for `PeriodSelector`.
+- **Drill-down affordances**: `TrialBalanceTree` / `FinancialStatementTree` take an optional
+ `ledgerPath(accountId)` prop — leaf-row click opens the ledger (groups still expand/collapse; the
+ synthetic Net Income row is excluded); the Ending/Balance cell underlines on row hover.
+ `ChartOfAccountsTree` keeps row-click = edit; the balance cell (and a "View Ledger" menu item)
+ opens the ledger. Its amount column shows `netChange` for every row — activity within the selected
+ period, always equal to the drawer's Net Change (never the RPC's all-time `balance`). The header
+ reads "Net Change" when a `startDate` is active, "Balance" otherwise (no `startDate` ⇒ the range
+ starts at inception, so `netChange` degenerates to the cumulative balance).
+- **`FinancialStatementTree`** takes a required `measure: "balanceAtDate" | "netChange"` and renders
+ a single amount column: the Balance Sheet passes `balanceAtDate` ("Balance"), the Income Statement
+ passes `netChange` ("Net Change"). The former Balance + Net Change column pair is gone — it showed
+ life-to-date cumulative balances on the Income Statement regardless of the selected period, and a
+ duplicated column on the Balance Sheet (which forces `startDate = null`). Known gap: the translated
+ column still comes from `translateTrialBalance`, which translates `balanceAtDate` only, so translated
+ Income Statement figures remain life-to-date until that RPC learns about `netChange`.
+
+## Routes
+
+- Child drawer routes (loaders: `view: "accounting"`, same param parsing as parents):
+ `trial-balance.$accountId.tsx`, `balance-sheet.$accountId.tsx` (forces `startDate = null`),
+ `income-statement.$accountId.tsx`, `charts.ledger.$accountId.tsx` (static `ledger` segment avoids
+ the existing `charts.$accountId` edit route). The three report parents gained `<Outlet />`.
+- Path helpers: `trialBalanceLedger`, `balanceSheetLedger`, `incomeStatementLedger`,
+ `chartOfAccountsLedger`.
+- All four parents export `shouldRevalidate = revalidateIgnoringOffset`
+ (`~/utils/revalidate.ts`): opening/closing the drawer and paging skip the expensive balance
+ RPCs; period/company changes and mutations revalidate normally.
+
+## Acceptance criteria
+
+- [x] PeriodSelector on TB/IS/charts shows presets + custom; Balance Sheet shows the as-of variant;
+ selecting a preset writes literal dates to the URL and the report updates. *(verified 2026-07-02:
+ "This Month" → `?startDate=2026-07-01&endDate=2026-07-31`; Balance Sheet shows Today / End of Last
+ Month/Quarter/Year.)*
+- [x] Clicking a leaf account on each of the four pages opens the drawer; Opening/Closing equal the
+ tree row's Beginning/Ending for the same period. *(verified on all four pages; This Month Sales
+ drawer Opening 500 / Net Change 5,525 / Closing 6,025 == tree row; Balance Sheet child forces
+ startDate=null.)*
+- [x] Debit/Credit split is correct for a credit-normal account (e.g. Revenue: credits in the Credit
+ column, positive stored amounts). *(verified: Revenue +100 → Credit, return −50 → Debit; Asset AR
+ +100 → Debit.)*
+- [x] Draft journal lines appear with a Draft badge (they are included in report balances today).
+ *(verified: DRAFT badge on the unposted line; +75 counted in the 6,025 balance.)*
+- [x] Entry links open the journal entry; pager works; closing the drawer preserves period params.
+ *(verified: link → `/x/journal-entry/$id/details`; pager `?offset=50`, "1–50 of N"; Escape returns
+ to parent keeping period params, dropping offset.)*
+- [ ] `tsgo --noEmit` (erp) and Biome pass. *(not run in the browser-verification pass.)*
+
+## Out of scope
+
+- Currency translation inside the drawer (`showTranslated` pages show untranslated company-currency
+ lines); group-account drill-down (leaf accounts only); per-row running balance; ledger CSV export;
+ fiscal quarters.
+
+## Changelog
+
+- 2026-07-02: Implemented (view migration, services, PeriodSelector, drawer, 4 child routes, tree
+ affordances, revalidation guards). Browser verification deferred at user request — do a visual
+ pass (tie-out + preset behavior) before moving to `implemented/`.
+- 2026-07-02: Browser-verified via `/test` against the local stack (seeded fixtures on Sales 4010 /
+ AR 1110). All acceptance criteria PASS except the `tsgo`/Biome gate, which was out of scope for this
+ visual pass. Screenshot: `.ai/scratch/e2e/account-ledger-drawer-trial-balance.png`. Playbook cached
+ at `.ai/playbooks/account-ledger-drilldown.md`. Ready to move to `implemented/` pending typecheck +
+ your OK.
diff --git a/.github/scripts/setup-agent-labels.sh b/.github/scripts/setup-agent-labels.sh
index 0799057a3d..6415809451 100755
--- a/.github/scripts/setup-agent-labels.sh
+++ b/.github/scripts/setup-agent-labels.sh
@@ -2,7 +2,7 @@
#
# Create/update the agent:* labels the outer loop (the OpenClaw orchestrator,
# acting as the `carbon-agent` machine user) drives. These are the GitHub-side
-# state machine for autonomous work — see llm/outer-loop/01-openclaw-plan.md §4.
+# state machine for autonomous work — see .ai/docs/outer-loop.md.
#
# Idempotent: `gh label create --force` updates an existing label's color and
# description instead of erroring, so this is safe to re-run.
diff --git a/.gitignore b/.gitignore
index cfd2b26f5e..c05d0c2c68 100644
--- a/.gitignore
+++ b/.gitignore
@@ -78,5 +78,9 @@ packages/database/supabase/snippets/**
# .ai/ scratch — runtime, not source
.ai/scratch/
+# Loop run artifacts (@carbon/harness RUNS_DIR) — directories only, so
+# committed markdown run logs (.ai/runs/*.md) stay tracked
+.ai/runs/*/
+
# Legacy llm/ — consolidated into .ai/ (docs, specs, runs)
llm/
diff --git a/apps/erp/app/components/PeriodSelector.tsx b/apps/erp/app/components/PeriodSelector.tsx
new file mode 100644
index 0000000000..6219da9b76
--- /dev/null
+++ b/apps/erp/app/components/PeriodSelector.tsx
@@ -0,0 +1,316 @@
+import {
+ Button,
+ DatePicker,
+ Popover,
+ PopoverContent,
+ PopoverTrigger
+} from "@carbon/react";
+import type { CalendarDate } from "@internationalized/date";
+import {
+ endOfMonth,
+ getLocalTimeZone,
+ parseDate,
+ startOfMonth,
+ today
+} from "@internationalized/date";
+import { Trans, useLingui } from "@lingui/react/macro";
+import { useMemo, useState } from "react";
+import { LuCalendarDays, LuCheck, LuChevronLeft } from "react-icons/lu";
+import { useUrlParams } from "~/hooks";
+
+type PeriodSelectorVariant = "range" | "asOf";
+
+type PeriodPreset = {
+ id: string;
+ label: string;
+ startDate?: string;
+ endDate?: string;
+};
+
+type PeriodSelectorProps = {
+ /**
+ * "range" writes startDate + endDate (trial balance, income statement,
+ * chart of accounts); "asOf" writes endDate only (balance sheet).
+ */
+ variant?: PeriodSelectorVariant;
+ /** Fiscal year start month (1-12) from fiscalYearSettings; defaults to January */
+ fiscalStartMonth?: number;
+};
+
+function quarterStart(date: CalendarDate): CalendarDate {
+ const month = Math.floor((date.month - 1) / 3) * 3 + 1;
+ return date.set({ month, day: 1 });
+}
+
+function fiscalYearStart(date: CalendarDate, startMonth: number): CalendarDate {
+ const year = date.month >= startMonth ? date.year : date.year - 1;
+ return date.set({ year, month: startMonth, day: 1 });
+}
+
+function formatDate(value: string): string {
+ return new Intl.DateTimeFormat(undefined, {
+ month: "short",
+ day: "numeric",
+ year: "numeric"
+ }).format(new Date(`${value}T00:00:00`));
+}
+
+function formatDateRange(start: string, end: string): string {
+ return new Intl.DateTimeFormat(undefined, {
+ month: "short",
+ day: "numeric",
+ year: "numeric"
+ }).formatRange(new Date(`${start}T00:00:00`), new Date(`${end}T00:00:00`));
+}
+
+function presetDates(preset: PeriodPreset): string | null {
+ if (preset.startDate && preset.endDate)
+ return formatDateRange(preset.startDate, preset.endDate);
+ if (preset.endDate) return formatDate(preset.endDate);
+ return null;
+}
+
+const PeriodSelector = ({
+ variant = "range",
+ fiscalStartMonth = 1
+}: PeriodSelectorProps) => {
+ const { t } = useLingui();
+ const [params, setParams] = useUrlParams();
+ const [open, setOpen] = useState(false);
+ const [view, setView] = useState<"presets" | "custom">("presets");
+
+ const startDate = params.get("startDate") ?? undefined;
+ const endDate = params.get("endDate") ?? undefined;
+
+ const [draftStart, setDraftStart] = useState<string | undefined>(startDate);
+ const [draftEnd, setDraftEnd] = useState<string | undefined>(endDate);
+
+ const presets = useMemo<PeriodPreset[]>(() => {
+ const now = today(getLocalTimeZone());
+ const fyStart = fiscalYearStart(now, fiscalStartMonth);
+ const thisQuarterStart = quarterStart(now);
+
+ if (variant === "asOf") {
+ return [
+ {
+ id: "today",
+ label: t`Today`,
+ endDate: now.toString()
+ },
+ {
+ id: "end-of-last-month",
+ label: t`End of Last Month`,
+ endDate: endOfMonth(now.subtract({ months: 1 })).toString()
+ },
+ {
+ id: "end-of-last-quarter",
+ label: t`End of Last Quarter`,
+ endDate: thisQuarterStart.subtract({ days: 1 }).toString()
+ },
+ {
+ id: "end-of-last-year",
+ label: t`End of Last Fiscal Year`,
+ endDate: fyStart.subtract({ days: 1 }).toString()
+ }
+ ];
+ }
+
+ const lastMonth = now.subtract({ months: 1 });
+ const lastQuarterStart = thisQuarterStart.subtract({ months: 3 });
+ const lastFyStart = fyStart.subtract({ years: 1 });
+
+ return [
+ {
+ id: "this-month",
+ label: t`This Month`,
+ startDate: startOfMonth(now).toString(),
+ endDate: endOfMonth(now).toString()
+ },
+ {
+ id: "last-month",
+ label: t`Last Month`,
+ startDate: startOfMonth(lastMonth).toString(),
+ endDate: endOfMonth(lastMonth).toString()
+ },
+ {
+ id: "this-quarter",
+ label: t`This Quarter`,
+ startDate: thisQuarterStart.toString(),
+ endDate: endOfMonth(thisQuarterStart.add({ months: 2 })).toString()
+ },
+ {
+ id: "last-quarter",
+ label: t`Last Quarter`,
+ startDate: lastQuarterStart.toString(),
+ endDate: thisQuarterStart.subtract({ days: 1 }).toString()
+ },
+ {
+ id: "this-year",
+ label: t`This Fiscal Year`,
+ startDate: fyStart.toString(),
+ endDate: fyStart.add({ years: 1 }).subtract({ days: 1 }).toString()
+ },
+ {
+ id: "last-year",
+ label: t`Last Fiscal Year`,
+ startDate: lastFyStart.toString(),
+ endDate: fyStart.subtract({ days: 1 }).toString()
+ },
+ {
+ id: "year-to-date",
+ label: t`Fiscal Year to Date`,
+ startDate: fyStart.toString(),
+ endDate: now.toString()
+ },
+ {
+ id: "all-time",
+ label: t`All Time`
+ }
+ ];
+ }, [variant, fiscalStartMonth, t]);
+
+ const activePreset = presets.find((preset) =>
+ variant === "asOf"
+ ? preset.endDate === endDate
+ : preset.startDate === startDate && preset.endDate === endDate
+ );
+
+ const triggerLabel = activePreset
+ ? activePreset.label
+ : variant === "asOf"
+ ? endDate
+ ? t`As of ${formatDate(endDate)}`
+ : t`Today`
+ : startDate && endDate
+ ? `${formatDate(startDate)} – ${formatDate(endDate)}`
+ : startDate
+ ? t`From ${formatDate(startDate)}`
+ : endDate
+ ? t`Through ${formatDate(endDate)}`
+ : t`All Time`;
+
+ const onSelectPreset = (preset: PeriodPreset) => {
+ if (variant === "asOf") {
+ setParams({ endDate: preset.endDate });
+ } else {
+ setParams({ startDate: preset.startDate, endDate: preset.endDate });
+ }
+ setOpen(false);
+ };
+
+ const onApplyCustom = () => {
+ if (variant === "asOf") {
+ setParams({ endDate: draftEnd });
+ } else {
+ setParams({ startDate: draftStart, endDate: draftEnd });
+ }
+ setOpen(false);
+ };
+
+ const onOpenChange = (nextOpen: boolean) => {
+ setOpen(nextOpen);
+ if (nextOpen) {
+ setView("presets");
+ setDraftStart(startDate);
+ setDraftEnd(endDate);
+ }
+ };
+
+ return (
+ <Popover open={open} onOpenChange={onOpenChange}>
+ <PopoverTrigger asChild>
+ <Button variant="secondary" leftIcon={<LuCalendarDays />}>
+ {triggerLabel}
+ </Button>
+ </PopoverTrigger>
+ <PopoverContent
+ align="start"
+ className={view === "presets" ? "w-[340px] p-1" : "w-[320px] p-3"}
+ >
+ {view === "presets" ? (
+ <div className="flex flex-col">
+ {presets.map((preset) => {
+ const isActive = preset.id === activePreset?.id;
+ const dates = presetDates(preset);
+ return (
+ <button
+ key={preset.id}
+ type="button"
+ className="flex h-8 w-full items-center justify-between gap-3 rounded-md px-2 text-sm outline-none hover:bg-accent focus-visible:bg-accent"
+ onClick={() => onSelectPreset(preset)}
+ >
+ <span className="whitespace-nowrap">{preset.label}</span>
+ <span className="flex items-center gap-2">
+ {dates && (
+ <span className="whitespace-nowrap text-xs text-muted-foreground tabular-nums">
+ {dates}
+ </span>
+ )}
+ {isActive && (
+ <LuCheck className="h-4 w-4 shrink-0 text-muted-foreground" />
+ )}
+ </span>
+ </button>
+ );
+ })}
+ <div className="my-1 h-px bg-border" />
+ <button
+ type="button"
+ className="flex h-8 w-full items-center justify-between rounded-md px-2 text-sm outline-none hover:bg-accent focus-visible:bg-accent"
+ onClick={() => setView("custom")}
+ >
+ <span>
+ <Trans>Custom…</Trans>
+ </span>
+ {!activePreset && (startDate || endDate) && (
+ <LuCheck className="h-4 w-4 text-muted-foreground" />
+ )}
+ </button>
+ </div>
+ ) : (
+ <div className="flex flex-col gap-3">
+ <div className="grid grid-cols-[1fr_2fr] items-center gap-y-2">
+ {variant === "range" && (
+ <>
+ <p className="text-sm text-muted-foreground">
+ <Trans>Start Date</Trans>
+ </p>
+ <DatePicker
+ value={draftStart ? parseDate(draftStart) : null}
+ onChange={(value) => setDraftStart(value?.toString())}
+ />
+ </>
+ )}
+ <p className="text-sm text-muted-foreground">
+ {variant === "asOf" ? (
+ <Trans>As of</Trans>
+ ) : (
+ <Trans>End Date</Trans>
+ )}
+ </p>
+ <DatePicker
+ value={draftEnd ? parseDate(draftEnd) : null}
+ onChange={(value) => setDraftEnd(value?.toString())}
+ />
+ </div>
+ <div className="flex items-center justify-between">
+ <Button
+ variant="ghost"
+ size="sm"
+ leftIcon={<LuChevronLeft />}
+ onClick={() => setView("presets")}
+ >
+ <Trans>Back</Trans>
+ </Button>
+ <Button variant="primary" size="sm" onClick={onApplyCustom}>
+ <Trans>Apply</Trans>
+ </Button>
+ </div>
+ </div>
+ )}
+ </PopoverContent>
+ </Popover>
+ );
+};
+
+export default PeriodSelector;
diff --git a/apps/erp/app/components/index.ts b/apps/erp/app/components/index.ts
index 2b4cc3ce6e..ec183a25f1 100644
--- a/apps/erp/app/components/index.ts
+++ b/apps/erp/app/components/index.ts
@@ -31,6 +31,7 @@ import { ItemLifecycleBadge } from "./ItemLifecycleBadge";
import ItemThumbnail from "./ItemThumbnail";
import Location from "./Location";
import New from "./New";
+import PeriodSelector from "./PeriodSelector";
import RealtimeDataProvider from "./RealtimeDataProvider";
import SearchFilter from "./SearchFilter";
import { SearchLandingPage } from "./SearchLandingPage";
@@ -68,6 +69,7 @@ export {
ModuleIcon,
New,
OperationStatusIcon,
+ PeriodSelector,
PrintButton,
RealtimeDataProvider,
SearchFilter,
diff --git a/apps/erp/app/modules/accounting/accounting.service.ts b/apps/erp/app/modules/accounting/accounting.service.ts
index 5cdd6be830..9689d9350f 100644
--- a/apps/erp/app/modules/accounting/accounting.service.ts
+++ b/apps/erp/app/modules/accounting/accounting.service.ts
@@ -5,7 +5,7 @@ import {
toDisplayDebit,
toStoredAmount
} from "@carbon/utils";
-import type { SupabaseClient } from "@supabase/supabase-js";
+import type { PostgrestError, SupabaseClient } from "@supabase/supabase-js";
import type { z } from "zod";
import { getNextSequence } from "~/modules/settings";
import type { GenericQueryFilters } from "~/utils/query";
@@ -28,7 +28,11 @@ import type {
paymentTermValidator,
taxDepreciationMethods
} from "./accounting.models";
-import type { Transaction, TranslatedBalance } from "./types";
+import type {
+ AccountLedgerLine,
+ Transaction,
+ TranslatedBalance
+} from "./types";
import { NET_INCOME_ACCOUNT_ID } from "./types";
/**
@@ -133,6 +137,85 @@ export async function getTrialBalance(
});
}
+export async function getAccountLedger(
+ client: SupabaseClient<Database>,
+ args: {
+ accountId: string;
+ companyId: string | null;
+ startDate: string | null;
+ endDate: string | null;
+ limit: number;
+ offset: number;
+ }
+) {
+ // The journalLines view intentionally has no journal-status filter so that
+ // the lines shown always sum to the balances from accountTreeBalancesByCompany
+ // (which also includes Draft journals).
+ // TODO: remove the cast once cloud-generated DB types include the view.
+ let query = client
+ .from("journalLines" as any)
+ .select("*", { count: "exact" })
+ .eq("accountId", args.accountId)
+ .gte(
+ "postingDate",
+ args.startDate ?? getDateNYearsAgo(50).toISOString().split("T")[0]
+ )
+ .lte("postingDate", args.endDate ?? new Date().toISOString().split("T")[0]);
+
+ if (args.companyId) {
+ query = query.eq("companyId", args.companyId);
+ }
+
+ const result = await query
+ .order("postingDate", { ascending: false })
+ .order("journalEntryId", { ascending: false })
+ .order("id", { ascending: false })
+ .range(args.offset, args.offset + args.limit - 1);
+
+ return result as unknown as {
+ data: AccountLedgerLine[] | null;
+ count: number | null;
+ error: PostgrestError | null;
+ };
+}
+
+export async function getAccountLedgerSummary(
+ client: SupabaseClient<Database>,
+ companyGroupId: string,
+ companyId: string | null,
+ args: {
+ accountId: string;
+ startDate: string | null;
+ endDate: string | null;
+ }
+) {
+ // Same RPC the report pages use, so the drawer ties out by construction
+ const balances = await client.rpc("accountTreeBalancesByCompany", {
+ p_company_group_id: companyGroupId,
+ p_company_id: companyId ?? undefined,
+ from_date:
+ args.startDate ?? getDateNYearsAgo(50).toISOString().split("T")[0],
+ to_date: args.endDate ?? new Date().toISOString().split("T")[0]
+ });
+
+ if (balances.error) {
+ return { data: null, error: balances.error };
+ }
+
+ const row = balances.data?.find((b) => b.accountId === args.accountId);
+ const closing = row?.balanceAtDate ?? 0;
+ const netChange = row?.netChange ?? 0;
+
+ return {
+ data: {
+ opening: closing - netChange,
+ netChange,
+ closing
+ },
+ error: null
+ };
+}
+
export async function getFinancialStatementBalances(
client: SupabaseClient<Database>,
companyGroupId: string,
diff --git a/apps/erp/app/modules/accounting/types.ts b/apps/erp/app/modules/accounting/types.ts
index 6fb97a5592..0df9ac07d1 100644
--- a/apps/erp/app/modules/accounting/types.ts
+++ b/apps/erp/app/modules/accounting/types.ts
@@ -1,4 +1,4 @@
-import type { Database } from "@carbon/database";
+import type { Database, Json } from "@carbon/database";
import type {
getAccount,
getAccountsList,
@@ -404,6 +404,45 @@ export type JournalEntryListItem = NonNullable<
export type JournalEntryLine = JournalEntry["journalLine"][number];
+/**
+ * Row shape of the journalLines view (journalLine joined to its journal
+ * header). Maintained by hand until the cloud-generated DB types include
+ * the view — keep in sync with 20260702122210_journal-lines-view.sql.
+ */
+export type AccountLedgerLine = {
+ id: string;
+ journalId: string;
+ accountId: string | null;
+ amount: number;
+ quantity: number;
+ accrual: boolean;
+ description: string | null;
+ documentType: Database["public"]["Enums"]["journalLineDocumentType"] | null;
+ documentId: string | null;
+ documentLineReference: string | null;
+ externalDocumentId: string | null;
+ intercompanyPartnerId: string | null;
+ journalLineReference: string;
+ companyId: string;
+ customFields: Json | null;
+ tags: string[] | null;
+ createdAt: string;
+ updatedAt: string | null;
+ updatedBy: string | null;
+ // journal header columns
+ postingDate: string;
+ journalEntryId: string;
+ status: Database["public"]["Enums"]["journalEntryStatus"];
+ sourceType: Database["public"]["Enums"]["journalEntrySourceType"];
+ journalDescription: string | null;
+};
+
+export type AccountLedgerSummary = {
+ opening: number;
+ netChange: number;
+ closing: number;
+};
+
// -- Fixed Asset types --
import type {
diff --git a/apps/erp/app/modules/accounting/ui/AccountDefaults/AccountDefaultsForm.tsx b/apps/erp/app/modules/accounting/ui/AccountDefaults/AccountDefaultsForm.tsx
index ae8988f442..fbe02c824d 100644
--- a/apps/erp/app/modules/accounting/ui/AccountDefaults/AccountDefaultsForm.tsx
+++ b/apps/erp/app/modules/accounting/ui/AccountDefaults/AccountDefaultsForm.tsx
@@ -10,15 +10,12 @@ import { path } from "~/utils/path";
import { defaultAccountValidator } from "../../accounting.models";
import type { AccountListItem } from "../../types";
-type AccountType = "income" | "balance";
-
type BadgeType = "Asset" | "Liability" | "Equity" | "Revenue" | "Expense";
type AccountDefaultField = {
name: string;
label: string;
description: string;
- accountType: AccountType;
badgeType: BadgeType;
termId?: TermId;
};
@@ -73,7 +70,6 @@ const AccountDefaultsForm = ({
name: "bankCashAccount",
label: t`Bank - Cash`,
description: t`Primary cash account for bank transactions`,
- accountType: "balance",
badgeType: "Asset",
termId: "account-default-bank-cash"
},
@@ -81,7 +77,6 @@ const AccountDefaultsForm = ({
name: "bankLocalCurrencyAccount",
label: t`Bank - Local Currency`,
description: t`Bank account denominated in the local currency`,
- accountType: "balance",
badgeType: "Asset",
termId: "account-default-bank-local-currency"
},
@@ -89,7 +84,6 @@ const AccountDefaultsForm = ({
name: "bankForeignCurrencyAccount",
label: t`Bank - Foreign Currency`,
description: t`Bank account denominated in a foreign currency`,
- accountType: "balance",
badgeType: "Asset",
termId: "account-default-bank-foreign-currency"
}
@@ -104,7 +98,6 @@ const AccountDefaultsForm = ({
name: "receivablesAccount",
label: t`Receivables`,
description: t`Accounts receivable for amounts owed by customers`,
- accountType: "balance",
badgeType: "Asset",
termId: "account-default-receivables"
},
@@ -112,7 +105,6 @@ const AccountDefaultsForm = ({
name: "prepaymentAccount",
label: t`Prepayments`,
description: t`Account for advance payments made before goods or services are received`,
- accountType: "balance",
badgeType: "Asset",
termId: "account-default-prepayments"
},
@@ -120,7 +112,6 @@ const AccountDefaultsForm = ({
name: "customerWriteOffAccount",
label: t`Customer Write-Off (Bad Debt)`,
description: t`Expense account for customer balances written off as uncollectable on AR settlement`,
- accountType: "income",
badgeType: "Expense"
}
]
@@ -134,7 +125,6 @@ const AccountDefaultsForm = ({
name: "inventoryAccount",
label: t`Inventory`,
description: t`Primary account for on-hand inventory valuation`,
- accountType: "balance",
badgeType: "Asset",
termId: "account-default-inventory"
},
@@ -142,7 +132,6 @@ const AccountDefaultsForm = ({
name: "workInProgressAccount",
label: t`Work in Progress (WIP)`,
description: t`Account for production orders not yet completed`,
- accountType: "balance",
badgeType: "Asset",
termId: "account-default-wip"
},
@@ -150,7 +139,6 @@ const AccountDefaultsForm = ({
name: "inventoryShippedNotInvoicedAccount",
label: t`Inventory Shipped Not Invoiced`,
description: t`Accrual for inventory shipped but not yet invoiced to customer`,
- accountType: "balance",
badgeType: "Asset",
termId: "account-default-inventory-shipped-not-invoiced"
}
@@ -165,7 +153,6 @@ const AccountDefaultsForm = ({
name: "assetAquisitionCostAccount",
label: t`Asset Acquisition Cost`,
description: t`Account for the purchase cost of fixed assets`,
- accountType: "balance",
badgeType: "Asset",
termId: "account-default-asset-acquisition-cost"
},
@@ -173,7 +160,6 @@ const AccountDefaultsForm = ({
name: "assetAquisitionCostOnDisposalAccount",
label: t`Asset Cost on Disposal`,
description: t`Account for the cost of fixed assets when disposed`,
- accountType: "balance",
badgeType: "Asset",
termId: "account-default-asset-cost-on-disposal"
},
@@ -181,7 +167,6 @@ const AccountDefaultsForm = ({
name: "accumulatedDepreciationAccount",
label: t`Accumulated Depreciation`,
description: t`Contra-asset account for total depreciation of fixed assets`,
- accountType: "balance",
badgeType: "Asset",
termId: "account-default-accumulated-depreciation"
},
@@ -189,7 +174,6 @@ const AccountDefaultsForm = ({
name: "accumulatedDepreciationOnDisposalAccount",
label: t`Accumulated Depreciation on Disposal`,
description: t`Depreciation reversal when a fixed asset is disposed`,
- accountType: "balance",
badgeType: "Asset",
termId: "account-default-accumulated-depreciation-on-disposal"
}
@@ -204,7 +188,6 @@ const AccountDefaultsForm = ({
name: "payablesAccount",
label: t`Payables`,
description: t`Accounts payable for amounts owed to suppliers`,
- accountType: "balance",
badgeType: "Liability",
termId: "account-default-payables"
},
@@ -212,7 +195,6 @@ const AccountDefaultsForm = ({
name: "goodsReceivedNotInvoicedAccount",
label: t`GR/IR Clearing`,
description: t`Clearing account for goods received / invoice received matching`,
- accountType: "balance",
badgeType: "Liability",
termId: "account-default-gr-ir"
},
@@ -220,7 +202,6 @@ const AccountDefaultsForm = ({
name: "supplierWriteOffAccount",
label: t`Vendor Write-Off Income`,
description: t`Other Income account for vendor balances cleared without full payment on AP settlement`,
- accountType: "income",
badgeType: "Revenue"
}
]
@@ -234,7 +215,6 @@ const AccountDefaultsForm = ({
name: "salesTaxPayableAccount",
label: t`Sales Tax Payable`,
description: t`Liability account for sales tax collected from customers`,
- accountType: "balance",
badgeType: "Liability",
termId: "account-default-sales-tax-payable"
},
@@ -242,7 +222,6 @@ const AccountDefaultsForm = ({
name: "purchaseTaxPayableAccount",
label: t`Purchase Tax Payable`,
description: t`Liability account for tax paid on purchases`,
- accountType: "balance",
badgeType: "Liability",
termId: "account-default-purchase-tax-payable"
},
@@ -250,7 +229,6 @@ const AccountDefaultsForm = ({
name: "reverseChargeSalesTaxPayableAccount",
label: t`Reverse Charge Sales Tax`,
description: t`Tax liability for reverse-charge transactions`,
- accountType: "balance",
badgeType: "Liability",
termId: "account-default-reverse-charge-sales-tax"
},
@@ -258,7 +236,6 @@ const AccountDefaultsForm = ({
name: "deferredTaxLiabilityAccountId",
label: t`Deferred Tax Liability`,
description: t`Liability account for deferred taxes from accelerated depreciation`,
- accountType: "balance",
badgeType: "Liability",
termId: "account-default-deferred-tax-liability"
}
@@ -273,7 +250,6 @@ const AccountDefaultsForm = ({
name: "retainedEarningsAccount",
label: t`Retained Earnings`,
description: t`Equity account for accumulated profits or losses`,
- accountType: "balance",
badgeType: "Equity",
termId: "account-default-retained-earnings"
},
@@ -281,7 +257,6 @@ const AccountDefaultsForm = ({
name: "currencyTranslationAccount",
label: t`Currency Translation`,
description: t`Equity account for currency translation adjustments (CTA)`,
- accountType: "balance",
badgeType: "Equity",
termId: "account-default-currency-translation"
}
@@ -296,7 +271,6 @@ const AccountDefaultsForm = ({
name: "salesAccount",
label: t`Sales`,
description: t`Default account for posting sales revenue from invoices`,
- accountType: "income",
badgeType: "Revenue",
termId: "account-default-sales"
},
@@ -304,7 +278,6 @@ const AccountDefaultsForm = ({
name: "salesDiscountAccount",
label: t`Sales Discounts`,
description: t`Contra-revenue account for discounts given on sales`,
- accountType: "income",
badgeType: "Revenue",
termId: "account-default-sales-discounts"
},
@@ -312,7 +285,6 @@ const AccountDefaultsForm = ({
name: "realizedExchangeGainAccount",
label: t`Realized Exchange Gain`,
description: t`Other Income account for FX gains when a payment settles a foreign-currency invoice at a more favorable rate`,
- accountType: "income",
badgeType: "Revenue"
}
]
@@ -326,7 +298,6 @@ const AccountDefaultsForm = ({
name: "costOfGoodsSoldAccount",
label: t`Cost of Goods Sold`,
description: t`Expense account for the cost of items sold`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-cogs"
},
@@ -334,7 +305,6 @@ const AccountDefaultsForm = ({
name: "indirectCostAccount",
label: t`Indirect Materials & Services`,
description: t`Expense account for non-inventory purchases (services, supplies)`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-indirect-materials-services"
},
@@ -342,7 +312,6 @@ const AccountDefaultsForm = ({
name: "laborAbsorptionAccount",
label: t`Labor & Machine Absorption`,
description: t`Credit account when labor/machine time is absorbed into WIP`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-labor-machine-absorption"
},
@@ -350,7 +319,6 @@ const AccountDefaultsForm = ({
name: "purchaseVarianceAccount",
label: t`Purchase Price Variance`,
description: t`Variance between actual purchase price and standard cost`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-purchase-price-variance"
},
@@ -358,7 +326,6 @@ const AccountDefaultsForm = ({
name: "inventoryAdjustmentVarianceAccount",
label: t`Inventory Adjustment`,
description: t`Variance from physical inventory count adjustments`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-inventory-adjustment"
},
@@ -366,7 +333,6 @@ const AccountDefaultsForm = ({
name: "materialVarianceAccount",
label: t`Material Usage Variance`,
description: t`Variance between actual and standard BOM component consumption`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-material-usage-variance"
},
@@ -374,7 +340,6 @@ const AccountDefaultsForm = ({
name: "laborAndMachineVarianceAccount",
label: t`Labor & Machine Variance`,
description: t`Variance between actual and standard routing hours and rates`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-labor-machine-variance"
},
@@ -382,7 +347,6 @@ const AccountDefaultsForm = ({
name: "overheadVarianceAccount",
label: t`Overhead Variance`,
description: t`Variance between applied and actual manufacturing overhead`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-overhead-variance"
},
@@ -390,7 +354,6 @@ const AccountDefaultsForm = ({
name: "lotSizeVarianceAccount",
label: t`Lot Size Variance`,
description: t`Fixed cost amortization variance when batch size differs from standard`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-lot-size-variance"
},
@@ -398,7 +361,6 @@ const AccountDefaultsForm = ({
name: "subcontractingVarianceAccount",
label: t`Subcontracting Variance`,
description: t`Variance in outside processing costs`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-subcontracting-variance"
}
@@ -413,7 +375,6 @@ const AccountDefaultsForm = ({
name: "maintenanceAccount",
label: t`Maintenance Expense`,
description: t`Expense account for equipment and facility maintenance`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-maintenance-expense"
},
@@ -421,7 +382,6 @@ const AccountDefaultsForm = ({
name: "assetDepreciationExpenseAccount",
label: t`Depreciation Expense`,
description: t`Periodic depreciation expense for fixed assets`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-depreciation-expense"
},
@@ -429,7 +389,6 @@ const AccountDefaultsForm = ({
name: "assetGainsAndLossesAccount",
label: t`Gains and Losses`,
description: t`Gains or losses recognized on disposal of fixed assets`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-gains-and-losses"
},
@@ -437,7 +396,6 @@ const AccountDefaultsForm = ({
name: "serviceChargeAccount",
label: t`Service Charges`,
description: t`Bank and financial service charge expenses`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-service-charges"
},
@@ -445,7 +403,6 @@ const AccountDefaultsForm = ({
name: "interestAccount",
label: t`Interest`,
description: t`Interest income or expense from banking activities`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-interest"
},
@@ -453,7 +410,6 @@ const AccountDefaultsForm = ({
name: "supplierPaymentDiscountAccount",
label: t`Supplier Payment Discounts`,
description: t`Discounts earned for early payment to suppliers`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-supplier-payment-discounts"
},
@@ -461,7 +417,6 @@ const AccountDefaultsForm = ({
name: "customerPaymentDiscountAccount",
label: t`Customer Payment Discounts`,
description: t`Discounts given to customers for early payment`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-customer-payment-discounts"
},
@@ -469,7 +424,6 @@ const AccountDefaultsForm = ({
name: "roundingAccount",
label: t`Rounding Account`,
description: t`Account for small rounding differences in transactions`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-rounding-account"
},
@@ -477,7 +431,6 @@ const AccountDefaultsForm = ({
name: "deferredTaxExpenseAccountId",
label: t`Deferred Tax Expense`,
description: t`Expense account for deferred tax adjustments on depreciation`,
- accountType: "income",
badgeType: "Expense",
termId: "account-default-deferred-tax-expense"
},
@@ -485,7 +438,6 @@ const AccountDefaultsForm = ({
name: "realizedExchangeLossAccount",
label: t`Realized Exchange Loss`,
description: t`Expense account for FX losses when a payment settles a foreign-currency invoice at a less favorable rate`,
- accountType: "income",
badgeType: "Expense"
}
]
@@ -495,35 +447,31 @@ const AccountDefaultsForm = ({
);
const accountOptions: Record<
- AccountType,
+ BadgeType,
{ value: string; label: string | JSX.Element }[]
- > = useMemo(
- () => ({
- income: incomeStatementAccounts.map((c) => ({
- value: c.id,
- label: (
- <div className="flex items-center gap-2">
- <span className="text-xs font-mono text-muted-foreground">
- {c.number}
- </span>
- <span className="text-xs text-foreground truncate">{c.name}</span>
- </div>
- )
- })),
- balance: balanceSheetAccounts.map((c) => ({
- value: c.id,
- label: (
- <div className="flex items-center gap-2">
- <span className="text-xs font-mono text-muted-foreground">
- {c.number}
- </span>
- <span className="text-xs text-foreground truncate">{c.name}</span>
- </div>
- )
- }))
- }),
- [incomeStatementAccounts, balanceSheetAccounts]
- );
+ > = useMemo(() => {
+ const toOption = (c: AccountListItem) => ({
+ value: c.id,
+ label: (
+ <div className="flex items-center gap-2">
+ <span className="text-xs font-mono text-muted-foreground">
+ {c.number}
+ </span>
+ <span className="text-xs text-foreground truncate">{c.name}</span>
+ </div>
+ )
+ });
+ const byClass = (accounts: AccountListItem[], accountClass: BadgeType) =>
+ accounts.filter((c) => c.class === accountClass).map(toOption);
+
+ return {
+ Asset: byClass(balanceSheetAccounts, "Asset"),
+ Liability: byClass(balanceSheetAccounts, "Liability"),
+ Equity: byClass(balanceSheetAccounts, "Equity"),
+ Revenue: byClass(incomeStatementAccounts, "Revenue"),
+ Expense: byClass(incomeStatementAccounts, "Expense")
+ };
+ }, [incomeStatementAccounts, balanceSheetAccounts]);
return (
<ValidatedForm
@@ -599,7 +547,7 @@ const AccountDefaultsForm = ({
<div className="flex-shrink-0 w-64">
<Combobox
name={field.name}
- options={accountOptions[field.accountType]}
+ options={accountOptions[field.badgeType]}
size="sm"
/>
</div>
diff --git a/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm.tsx b/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm.tsx
index 40a03aeb35..e11fa0291f 100644
--- a/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm.tsx
+++ b/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm.tsx
@@ -123,7 +123,7 @@ const ChartOfAccountForm = ({
<VStack spacing={4}>
<Combobox
name="parentId"
- label={t`Group`}
+ label={t`Parent Group`}
termId="chart-of-account-group"
options={groupAccounts
.filter((a) => a.class !== null)
diff --git a/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTableFilters.tsx b/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTableFilters.tsx
index 9d67666a2a..62809c6643 100644
--- a/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTableFilters.tsx
+++ b/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTableFilters.tsx
@@ -1,27 +1,23 @@
import {
Button,
- DatePicker,
HStack,
Input,
InputGroup,
- InputLeftElement,
- Popover,
- PopoverContent,
- PopoverHeader,
- PopoverTrigger
+ InputLeftElement
} from "@carbon/react";
-import { parseDate } from "@internationalized/date";
import { Trans, useLingui } from "@lingui/react/macro";
-import { LuCalendarDays, LuSearch, LuX } from "react-icons/lu";
-import { New } from "~/components";
+import { LuSearch, LuX } from "react-icons/lu";
+import { New, PeriodSelector } from "~/components";
import { usePermissions, useUrlParams } from "~/hooks";
type ChartOfAccountsTableFiltersProps = {
+ fiscalStartMonth?: number;
search: string;
onSearchChange: (value: string) => void;
};
const ChartOfAccountsTableFilters = ({
+ fiscalStartMonth,
search,
onSearchChange
}: ChartOfAccountsTableFiltersProps) => {
@@ -29,9 +25,6 @@ const ChartOfAccountsTableFilters = ({
const [params, setParams] = useUrlParams();
const permissions = usePermissions();
- const startDate = params.get("startDate");
- const endDate = params.get("endDate");
-
return (
<div className="flex px-4 py-3 items-center space-x-4 justify-between bg-card border-b border-border w-full">
<HStack>
@@ -45,44 +38,7 @@ const ChartOfAccountsTableFilters = ({
onChange={(e) => onSearchChange(e.target.value)}
/>
</InputGroup>
- <Popover>
- <PopoverTrigger asChild>
- <Button variant="secondary" leftIcon={<LuCalendarDays />}>
- <Trans>Date Range</Trans>
- </Button>
- </PopoverTrigger>
- <PopoverContent className="w-[390px]">
- <PopoverHeader>
- <p className="text-sm">
- <Trans>Edit date range</Trans>
- </p>
- <p className="text-xs text-muted-foreground">
- <Trans>
- Select date range to filter net change and balance at date
- </Trans>
- </p>
- </PopoverHeader>
-
- <div className="grid grid-cols-[1fr_3fr] gap-y-2 items-center">
- <p className="text-sm text-muted-foreground">
- <Trans>Start Date</Trans>
- </p>
- <DatePicker
- value={startDate ? parseDate(startDate) : null}
- onChange={(value) =>
- setParams({ startDate: value?.toString() })
- }
- />
- <p className="text-sm text-muted-foreground">
- <Trans>End Date</Trans>
- </p>
- <DatePicker
- value={endDate ? parseDate(endDate) : null}
- onChange={(value) => setParams({ endDate: value?.toString() })}
- />
- </div>
- </PopoverContent>
- </Popover>
+ <PeriodSelector variant="range" fiscalStartMonth={fiscalStartMonth} />
{[...params.entries()].length > 0 && (
<Button
variant="secondary"
diff --git a/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTree.tsx b/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTree.tsx
index db86d85a8f..43a627cf0c 100644
--- a/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTree.tsx
+++ b/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTree.tsx
@@ -21,7 +21,8 @@ import {
import { useNavigate } from "react-router";
import type { FlatTree, FlatTreeItem } from "~/components/TreeView";
import { LevelLine, TreeView, useTree } from "~/components/TreeView";
-import { useRealtime, useSettings } from "~/hooks";
+import { useRealtime, useSettings, useUrlParams } from "~/hooks";
+import { path } from "~/utils/path";
import type { Chart } from "../../types";
type ChartOfAccountsTreeProps = {
@@ -105,6 +106,27 @@ const ChartOfAccountsTree = memo(
const accountingEnabled = (settings as any).accountingEnabled ?? false;
const parentRef = useRef<HTMLDivElement>(null);
const navigate = useNavigate();
+ const [params] = useUrlParams();
+
+ const openLedger = (accountId: string) => {
+ const nextParams = new URLSearchParams(params);
+ nextParams.delete("offset");
+ const qs = nextParams.toString();
+ const to = path.to.chartOfAccountsLedger(accountId);
+ navigate(qs ? `${to}?${qs}` : to);
+ };
+
+ // Radix closes the portalled menu on select, after which the native click
+ // lands on the row underneath and fires its onClick (opening the ledger).
+ // Suppress that one phantom row click so the chosen menu action wins.
+ const suppressRowClickRef = useRef(false);
+ const runMenuAction = (action: () => void) => {
+ suppressRowClickRef.current = true;
+ window.setTimeout(() => {
+ suppressRowClickRef.current = false;
+ }, 300);
+ action();
+ };
const filtered = useMemo(
() => filterAccounts(data, search),
@@ -131,7 +153,9 @@ const ChartOfAccountsTree = memo(
<div className="sticky top-0 z-10 flex h-11 items-center pr-4 text-sm font-medium text-foreground/80 border-b border-border bg-card">
<div className="flex-1 px-4">Account</div>
{accountingEnabled && (
- <span className="w-32 text-right px-4">Balance</span>
+ <span className="w-32 text-right px-4">
+ {params.get("startDate") ? "Net Change" : "Balance"}
+ </span>
)}
</div>
<TreeView<Chart>
@@ -146,6 +170,10 @@ const ChartOfAccountsTree = memo(
const account = node.data;
const isGroup = account.isGroup;
const isExpanded = state.expanded;
+ // Activity within the selected period (= the drawer's Net Change).
+ // With no startDate the range starts at inception, so this is the
+ // cumulative balance — the classic chart of accounts view.
+ const balance = account.netChange ?? 0;
return (
<div
@@ -157,11 +185,15 @@ const ChartOfAccountsTree = memo(
isGroup && "font-semibold"
)}
onClick={() => {
+ if (suppressRowClickRef.current) {
+ suppressRowClickRef.current = false;
+ return;
+ }
selectNode(node.id, false);
if (isGroup) {
toggleExpandNode(node.id);
} else {
- navigate(account.id as string);
+ openLedger(account.id as string);
}
}}
>
@@ -215,11 +247,23 @@ const ChartOfAccountsTree = memo(
</div>
{/* Balance */}
- {accountingEnabled && (
- <span className="w-32 text-right tabular-nums shrink-0 text-muted-foreground">
- {formatCurrency(account.balance ?? 0)}
- </span>
- )}
+ {accountingEnabled &&
+ (isGroup ? (
+ <span className="w-32 text-right tabular-nums shrink-0 text-muted-foreground">
+ {formatCurrency(balance)}
+ </span>
+ ) : (
+ <button
+ type="button"
+ className="w-32 text-right tabular-nums shrink-0 text-muted-foreground hover:text-foreground hover:underline underline-offset-2 decoration-border"
+ onClick={(e) => {
+ e.stopPropagation();
+ openLedger(account.id as string);
+ }}
+ >
+ {formatCurrency(balance)}
+ </button>
+ ))}
{/* Actions menu */}
<DropdownMenu>
@@ -236,7 +280,11 @@ const ChartOfAccountsTree = memo(
<>
{!account.isSystem && (
<DropdownMenuItem
- onClick={() => navigate(account.id as string)}
+ onClick={() =>
+ runMenuAction(() =>
+ navigate(account.id as string)
+ )
+ }
>
<LuPencil className="mr-2 h-4 w-4" />
Edit Group
@@ -244,14 +292,20 @@ const ChartOfAccountsTree = memo(
)}
<DropdownMenuItem
onClick={() =>
- navigate(`new-group?parentId=${account.id}`)
+ runMenuAction(() =>
+ navigate(`new-group?parentId=${account.id}`)
+ )
}
>
<LuFolderPlus className="mr-2 h-4 w-4" />
Add Group
</DropdownMenuItem>
<DropdownMenuItem
- onClick={() => navigate(`new?parentId=${account.id}`)}
+ onClick={() =>
+ runMenuAction(() =>
+ navigate(`new?parentId=${account.id}`)
+ )
+ }
>
<LuFilePlus className="mr-2 h-4 w-4" />
Add Account
@@ -259,7 +313,11 @@ const ChartOfAccountsTree = memo(
{!account.isSystem && (
<DropdownMenuItem
className="text-destructive"
- onClick={() => navigate(`delete/${account.id}`)}
+ onClick={() =>
+ runMenuAction(() =>
+ navigate(`delete/${account.id}`)
+ )
+ }
>
<LuTrash2 className="mr-2 h-4 w-4" />
Delete
@@ -269,14 +327,20 @@ const ChartOfAccountsTree = memo(
) : (
<>
<DropdownMenuItem
- onClick={() => navigate(account.id as string)}
+ onClick={() =>
+ runMenuAction(() => navigate(account.id as string))
+ }
>
<LuPencil className="mr-2 h-4 w-4" />
Edit
</DropdownMenuItem>
<DropdownMenuItem
className="text-destructive"
- onClick={() => navigate(`delete/${account.id}`)}
+ onClick={() =>
+ runMenuAction(() =>
+ navigate(`delete/${account.id}`)
+ )
+ }
>
<LuTrash2 className="mr-2 h-4 w-4" />
Delete
diff --git a/apps/erp/app/modules/accounting/ui/Reports/AccountLedgerDrawer.tsx b/apps/erp/app/modules/accounting/ui/Reports/AccountLedgerDrawer.tsx
new file mode 100644
index 0000000000..10fd1b1009
--- /dev/null
+++ b/apps/erp/app/modules/accounting/ui/Reports/AccountLedgerDrawer.tsx
@@ -0,0 +1,247 @@
+import {
+ Badge,
+ Drawer,
+ DrawerBody,
+ DrawerContent,
+ DrawerHeader,
+ DrawerTitle,
+ IconButton,
+ Table,
+ Tbody,
+ Td,
+ Th,
+ Thead,
+ Tr
+} from "@carbon/react";
+import { toDisplayCredit, toDisplayDebit } from "@carbon/utils";
+import { Trans, useLingui } from "@lingui/react/macro";
+import { LuChevronLeft, LuChevronRight } from "react-icons/lu";
+import { Link, useNavigate } from "react-router";
+import { useUrlParams } from "~/hooks";
+import type {
+ AccountClass,
+ AccountLedgerLine,
+ AccountLedgerSummary
+} from "~/modules/accounting";
+import { path } from "~/utils/path";
+import JournalEntryStatus from "../JournalEntries/JournalEntryStatus";
+
+type AccountLedgerDrawerProps = {
+ account: {
+ id: string;
+ number: string | null;
+ name: string | null;
+ class: AccountClass | null;
+ };
+ lines: AccountLedgerLine[];
+ count: number;
+ summary: AccountLedgerSummary;
+ startDate: string | null;
+ endDate: string | null;
+ offset: number;
+ limit: number;
+ backTo: string;
+};
+
+function formatAmount(value: number): string {
+ return value.toLocaleString(undefined, {
+ minimumFractionDigits: 2,
+ maximumFractionDigits: 2
+ });
+}
+
+function formatDate(value: string): string {
+ return new Intl.DateTimeFormat(undefined, {
+ month: "short",
+ day: "numeric",
+ year: "numeric"
+ }).format(new Date(`${value}T00:00:00`));
+}
+
+const AccountLedgerDrawer = ({
+ account,
+ lines,
+ count,
+ summary,
+ startDate,
+ endDate,
+ offset,
+ limit,
+ backTo
+}: AccountLedgerDrawerProps) => {
+ const { t } = useLingui();
+ const navigate = useNavigate();
+ const [params, setParams] = useUrlParams();
+
+ const onClose = () => {
+ const backParams = new URLSearchParams(params);
+ backParams.delete("offset");
+ const search = backParams.toString();
+ navigate(search ? `${backTo}?${search}` : backTo);
+ };
+
+ const periodLabel =
+ startDate && endDate
+ ? `${formatDate(startDate)} – ${formatDate(endDate)}`
+ : endDate
+ ? t`Through ${formatDate(endDate)}`
+ : startDate
+ ? t`From ${formatDate(startDate)}`
+ : t`All Time`;
+
+ const accountClass = (account.class ?? "Asset") as AccountClass;
+ const from = count === 0 ? 0 : offset + 1;
+ const to = Math.min(offset + limit, count);
+
+ return (
+ <Drawer
+ open
+ onOpenChange={(open) => {
+ if (!open) onClose();
+ }}
+ >
+ <DrawerContent size="lg">
+ <DrawerHeader>
+ <DrawerTitle>{account.name}</DrawerTitle>
+ <div className="flex items-center gap-2 text-xs text-muted-foreground">
+ <span className="font-mono">{account.number}</span>
+ {account.class && (
+ <Badge variant="secondary">{account.class}</Badge>
+ )}
+ <span>{periodLabel}</span>
+ </div>
+ </DrawerHeader>
+ <DrawerBody className="p-0">
+ <div className="grid w-full grid-cols-3 divide-x divide-border border-b border-border">
+ <div className="px-4 py-3">
+ <p className="text-xs text-muted-foreground">
+ <Trans>Opening</Trans>
+ </p>
+ <p className="text-sm font-medium tabular-nums">
+ {formatAmount(summary.opening)}
+ </p>
+ </div>
+ <div className="px-4 py-3">
+ <p className="text-xs text-muted-foreground">
+ <Trans>Net Change</Trans>
+ </p>
+ <p className="text-sm font-medium tabular-nums">
+ {formatAmount(summary.netChange)}
+ </p>
+ </div>
+ <div className="px-4 py-3">
+ <p className="text-xs text-muted-foreground">
+ <Trans>Closing</Trans>
+ </p>
+ <p className="text-sm font-medium tabular-nums">
+ {formatAmount(summary.closing)}
+ </p>
+ </div>
+ </div>
+ {lines.length === 0 ? (
+ <div className="flex w-full items-center justify-center py-16 text-sm text-muted-foreground">
+ <Trans>No transactions in this period</Trans>
+ </div>
+ ) : (
+ <Table>
+ <Thead>
+ <Tr>
+ <Th className="px-4">
+ <Trans>Date</Trans>
+ </Th>
+ <Th className="px-4">
+ <Trans>Entry</Trans>
+ </Th>
+ <Th className="px-4 w-full">
+ <Trans>Description</Trans>
+ </Th>
+ <Th className="px-4 text-right">
+ <Trans>Debit</Trans>
+ </Th>
+ <Th className="px-4 text-right">
+ <Trans>Credit</Trans>
+ </Th>
+ </Tr>
+ </Thead>
+ <Tbody>
+ {lines.map((line) => {
+ const debit = toDisplayDebit(line.amount, accountClass);
+ const credit = toDisplayCredit(line.amount, accountClass);
+ return (
+ <Tr key={line.id} className="hover:bg-muted/50">
+ <Td className="px-4 whitespace-nowrap text-muted-foreground">
+ {formatDate(line.postingDate)}
+ </Td>
+ <Td className="px-4 whitespace-nowrap">
+ <div className="flex items-center gap-2">
+ <Link
+ to={path.to.journalEntryDetails(line.journalId)}
+ prefetch="intent"
+ className="font-mono text-xs text-foreground hover:underline"
+ >
+ {line.journalEntryId}
+ </Link>
+ {line.status !== "Posted" && (
+ <JournalEntryStatus status={line.status} />
+ )}
+ </div>
+ </Td>
+ <Td className="px-4">
+ <p className="line-clamp-1">
+ {line.description ?? line.journalDescription ?? "–"}
+ </p>
+ <p className="text-xs text-muted-foreground">
+ {line.sourceType}
+ </p>
+ </Td>
+ <Td className="px-4 text-right tabular-nums">
+ {debit !== 0 ? formatAmount(debit) : ""}
+ </Td>
+ <Td className="px-4 text-right tabular-nums">
+ {credit !== 0 ? formatAmount(credit) : ""}
+ </Td>
+ </Tr>
+ );
+ })}
+ </Tbody>
+ </Table>
+ )}
+ {count > limit && (
+ <div className="flex w-full items-center justify-between border-t border-border px-4 py-2">
+ <p className="text-xs text-muted-foreground tabular-nums">
+ <Trans>
+ {from}–{to} of {count}
+ </Trans>
+ </p>
+ <div className="flex items-center gap-1">
+ <IconButton
+ aria-label={t`Previous page`}
+ variant="ghost"
+ size="sm"
+ icon={<LuChevronLeft />}
+ isDisabled={offset === 0}
+ onClick={() =>
+ setParams({
+ offset:
+ offset - limit > 0 ? String(offset - limit) : undefined
+ })
+ }
+ />
+ <IconButton
+ aria-label={t`Next page`}
+ variant="ghost"
+ size="sm"
+ icon={<LuChevronRight />}
+ isDisabled={offset + limit >= count}
+ onClick={() => setParams({ offset: String(offset + limit) })}
+ />
+ </div>
+ </div>
+ )}
+ </DrawerBody>
+ </DrawerContent>
+ </Drawer>
+ );
+};
+
+export default AccountLedgerDrawer;
diff --git a/apps/erp/app/modules/accounting/ui/Reports/FinancialStatementTree.tsx b/apps/erp/app/modules/accounting/ui/Reports/FinancialStatementTree.tsx
index 1602cc2cfb..d7559d13a5 100644
--- a/apps/erp/app/modules/accounting/ui/Reports/FinancialStatementTree.tsx
+++ b/apps/erp/app/modules/accounting/ui/Reports/FinancialStatementTree.tsx
@@ -7,9 +7,10 @@ import {
LuFolder,
LuFolderOpen
} from "react-icons/lu";
+import { useNavigate } from "react-router";
import type { FlatTree, FlatTreeItem } from "~/components/TreeView";
import { LevelLine, TreeView, useTree } from "~/components/TreeView";
-import { useRealtime } from "~/hooks";
+import { useRealtime, useUrlParams } from "~/hooks";
import type { Chart } from "../../types";
import { NET_INCOME_ACCOUNT_ID } from "../../types";
@@ -20,9 +21,19 @@ type TranslatedChart = Chart & {
type FinancialStatementTreeProps = {
data: TranslatedChart[];
+ /**
+ * Which RPC measure the amount column shows. The Balance Sheet reads
+ * "balanceAtDate" (closing balance as of endDate = the ledger drawer's
+ * Closing); the Income Statement reads "netChange" (activity within the
+ * startDate–endDate range = the drawer's Net Change). Never the RPC's
+ * all-time "balance".
+ */
+ measure: "balanceAtDate" | "netChange";
showTranslated?: boolean;
parentCurrency?: string | null;
search: string;
+ /** When provided, clicking a leaf account opens its ledger drill-down */
+ ledgerPath?: (accountId: string) => string;
};
function accountsToFlatTree(
@@ -105,13 +116,26 @@ function formatCurrency(value: number): string {
const FinancialStatementTree = memo(
({
data,
+ measure,
showTranslated = false,
parentCurrency,
- search
+ search,
+ ledgerPath
}: FinancialStatementTreeProps) => {
+ const measureLabel = measure === "netChange" ? "Net Change" : "Balance";
useRealtime("journal");
+ const navigate = useNavigate();
+ const [params] = useUrlParams();
const parentRef = useRef<HTMLDivElement>(null);
+ const openLedger = (accountId: string) => {
+ if (!ledgerPath) return;
+ const nextParams = new URLSearchParams(params);
+ nextParams.delete("offset");
+ const qs = nextParams.toString();
+ navigate(qs ? `${ledgerPath(accountId)}?${qs}` : ledgerPath(accountId));
+ };
+
const filtered = useMemo(
() => filterAccounts(data, search),
[data, search]
@@ -137,14 +161,13 @@ const FinancialStatementTree = memo(
<div className="sticky top-0 z-10 flex h-11 items-center pr-4 text-sm font-medium text-foreground/80 border-b border-border bg-card">
<div className="flex-1 px-4">Account</div>
<span className="w-32 text-right px-4">
- {showTranslated ? "Local" : "Balance"}
+ {showTranslated ? "Local" : measureLabel}
</span>
{showTranslated && (
<span className="w-32 text-right px-4">
{parentCurrency ?? "Translated"}
</span>
)}
- <span className="w-32 text-right px-4">Net Change</span>
</div>
<TreeView<TranslatedChart>
tree={tree}
@@ -158,6 +181,8 @@ const FinancialStatementTree = memo(
const account = node.data;
const isGroup = account.isGroup;
const isExpanded = state.expanded;
+ const isDrillable =
+ !isGroup && !!ledgerPath && account.id !== NET_INCOME_ACCOUNT_ID;
return (
<div
@@ -172,6 +197,8 @@ const FinancialStatementTree = memo(
selectNode(node.id, false);
if (isGroup) {
toggleExpandNode(node.id);
+ } else if (isDrillable) {
+ openLedger(account.id);
}
}}
>
@@ -226,9 +253,15 @@ const FinancialStatementTree = memo(
)}
</div>
- {/* Balance */}
- <span className="w-32 text-right tabular-nums shrink-0 text-muted-foreground">
- {formatCurrency(account.balanceAtDate ?? 0)}
+ {/* Balance (as of endDate) or Net Change (within range) */}
+ <span
+ className={cn(
+ "w-32 text-right tabular-nums shrink-0 text-muted-foreground",
+ isDrillable &&
+ "group-hover/row:text-foreground group-hover/row:underline underline-offset-2 decoration-border"
+ )}
+ >
+ {formatCurrency(account[measure] ?? 0)}
</span>
{/* Translated Balance */}
@@ -239,11 +272,6 @@ const FinancialStatementTree = memo(
: "-"}
</span>
)}
-
- {/* Net Change */}
- <span className="w-32 text-right tabular-nums shrink-0 text-muted-foreground">
- {formatCurrency(account.netChange ?? 0)}
- </span>
</div>
);
}}
diff --git a/apps/erp/app/modules/accounting/ui/Reports/ReportFilters.tsx b/apps/erp/app/modules/accounting/ui/Reports/ReportFilters.tsx
index 39dbf69e55..8fd660383a 100644
--- a/apps/erp/app/modules/accounting/ui/Reports/ReportFilters.tsx
+++ b/apps/erp/app/modules/accounting/ui/Reports/ReportFilters.tsx
@@ -1,17 +1,13 @@
import {
Button,
- DatePicker,
HStack,
Input,
InputGroup,
- InputLeftElement,
- Popover,
- PopoverContent,
- PopoverHeader,
- PopoverTrigger
+ InputLeftElement
} from "@carbon/react";
-import { parseDate } from "@internationalized/date";
-import { LuCalendarDays, LuLanguages, LuSearch, LuX } from "react-icons/lu";
+import { useLingui } from "@lingui/react/macro";
+import { LuLanguages, LuSearch, LuX } from "react-icons/lu";
+import { PeriodSelector } from "~/components";
import { useUrlParams } from "~/hooks";
import CompanySelector from "./CompanySelector";
@@ -26,6 +22,8 @@ type ReportFiltersProps = {
isMultiCompany: boolean;
isForeignCurrency?: boolean;
parentCurrency?: string | null;
+ periodVariant?: "range" | "asOf";
+ fiscalStartMonth?: number;
search: string;
onSearchChange: (value: string) => void;
};
@@ -36,13 +34,14 @@ const ReportFilters = ({
isMultiCompany,
isForeignCurrency = false,
parentCurrency,
+ periodVariant = "range",
+ fiscalStartMonth,
search,
onSearchChange
}: ReportFiltersProps) => {
+ const { t } = useLingui();
const [params, setParams] = useUrlParams();
- const startDate = params.get("startDate");
- const endDate = params.get("endDate");
const showTranslated = params.get("showTranslated") === "true";
return (
@@ -53,7 +52,7 @@ const ReportFilters = ({
<LuSearch className="h-4 w-4 text-muted-foreground" />
</InputLeftElement>
<Input
- placeholder="Search accounts..."
+ placeholder={t`Search accounts...`}
value={search}
onChange={(e) => onSearchChange(e.target.value)}
/>
@@ -62,36 +61,10 @@ const ReportFilters = ({
companies={companies}
selectedCompanyIds={selectedCompanyIds}
/>
- <Popover>
- <PopoverTrigger asChild>
- <Button variant="secondary" leftIcon={<LuCalendarDays />}>
- Date Range
- </Button>
- </PopoverTrigger>
- <PopoverContent className="w-[390px]">
- <PopoverHeader>
- <p className="text-sm">Edit date range</p>
- <p className="text-xs text-muted-foreground">
- Select date range to filter balances
- </p>
- </PopoverHeader>
-
- <div className="grid grid-cols-[1fr_3fr] gap-y-2 items-center">
- <p className="text-sm text-muted-foreground">Start Date</p>
- <DatePicker
- value={startDate ? parseDate(startDate) : null}
- onChange={(value) =>
- setParams({ startDate: value?.toString() })
- }
- />
- <p className="text-sm text-muted-foreground">End Date</p>
- <DatePicker
- value={endDate ? parseDate(endDate) : null}
- onChange={(value) => setParams({ endDate: value?.toString() })}
- />
- </div>
- </PopoverContent>
- </Popover>
+ <PeriodSelector
+ variant={periodVariant}
+ fiscalStartMonth={fiscalStartMonth}
+ />
{!isMultiCompany && isForeignCurrency && parentCurrency && (
<Button
variant={showTranslated ? "primary" : "secondary"}
@@ -123,7 +96,7 @@ const ReportFilters = ({
})
}
>
- Reset
+ {t`Reset`}
</Button>
)}
</HStack>
diff --git a/apps/erp/app/modules/accounting/ui/Reports/TrialBalanceTree.tsx b/apps/erp/app/modules/accounting/ui/Reports/TrialBalanceTree.tsx
index a5c0f64051..950179a9a9 100644
--- a/apps/erp/app/modules/accounting/ui/Reports/TrialBalanceTree.tsx
+++ b/apps/erp/app/modules/accounting/ui/Reports/TrialBalanceTree.tsx
@@ -6,9 +6,10 @@ import {
LuFolder,
LuFolderOpen
} from "react-icons/lu";
+import { useNavigate } from "react-router";
import type { FlatTree, FlatTreeItem } from "~/components/TreeView";
import { LevelLine, TreeView, useTree } from "~/components/TreeView";
-import { useRealtime } from "~/hooks";
+import { useRealtime, useUrlParams } from "~/hooks";
import type { Chart } from "../../types";
type TrialBalanceChart = Chart & {
@@ -21,6 +22,8 @@ type TrialBalanceTreeProps = {
showTranslated?: boolean;
parentCurrency?: string | null;
search: string;
+ /** When provided, clicking a leaf account opens its ledger drill-down */
+ ledgerPath?: (accountId: string) => string;
};
function accountsToFlatTree(
@@ -135,11 +138,22 @@ const TrialBalanceTree = memo(
data,
showTranslated = false,
parentCurrency,
- search
+ search,
+ ledgerPath
}: TrialBalanceTreeProps) => {
useRealtime("journal");
+ const navigate = useNavigate();
+ const [params] = useUrlParams();
const parentRef = useRef<HTMLDivElement>(null);
+ const openLedger = (accountId: string) => {
+ if (!ledgerPath) return;
+ const nextParams = new URLSearchParams(params);
+ nextParams.delete("offset");
+ const qs = nextParams.toString();
+ navigate(qs ? `${ledgerPath(accountId)}?${qs}` : ledgerPath(accountId));
+ };
+
const filtered = useMemo(
() => filterAccounts(data, search),
[data, search]
@@ -211,6 +225,8 @@ const TrialBalanceTree = memo(
? (Math.abs(endingBalance) / Math.abs(parentBalance)) * 100
: 0;
+ const isDrillable = !isGroup && !!ledgerPath;
+
return (
<div
className={cn(
@@ -224,6 +240,8 @@ const TrialBalanceTree = memo(
selectNode(node.id, false);
if (isGroup) {
toggleExpandNode(node.id);
+ } else if (isDrillable) {
+ openLedger(account.id);
}
}}
>
@@ -291,7 +309,13 @@ const TrialBalanceTree = memo(
</span>
{/* Ending Balance */}
- <span className="w-28 text-right tabular-nums shrink-0 text-muted-foreground">
+ <span
+ className={cn(
+ "w-28 text-right tabular-nums shrink-0 text-muted-foreground",
+ isDrillable &&
+ "group-hover/row:text-foreground group-hover/row:underline underline-offset-2 decoration-border"
+ )}
+ >
{formatCurrency(endingBalance)}
</span>
diff --git a/apps/erp/app/modules/accounting/ui/Reports/index.ts b/apps/erp/app/modules/accounting/ui/Reports/index.ts
index 453e2aac6d..2bec9c50a8 100644
--- a/apps/erp/app/modules/accounting/ui/Reports/index.ts
+++ b/apps/erp/app/modules/accounting/ui/Reports/index.ts
@@ -1,3 +1,4 @@
+export { default as AccountLedgerDrawer } from "./AccountLedgerDrawer";
export { default as CompanySelector } from "./CompanySelector";
export { default as FinancialStatementTree } from "./FinancialStatementTree";
export { default as ReportFilters } from "./ReportFilters";
diff --git a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json
index 6661a3ab74..1ab4dc34f7 100644
--- a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json
+++ b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json
@@ -1,6 +1,6 @@
{
- "generated": "2026-07-02T04:41:07.819Z",
- "totalTools": 1252,
+ "generated": "2026-07-02T18:10:52.196Z",
+ "totalTools": 1254,
"modules": 15,
"tools": [
{
@@ -309,6 +309,94 @@
]
}
},
+ {
+ "name": "accounting_getAccountLedger",
+ "module": "accounting",
+ "classification": "READ",
+ "description": "get account ledger",
+ "paramCount": 5,
+ "serviceParams": [
+ "client",
+ "args"
+ ],
+ "injectAuth": [
+ "companyId"
+ ],
+ "schema": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string"
+ },
+ "startDate": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "endDate": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "limit": {
+ "type": "number"
+ },
+ "offset": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "accountId",
+ "startDate",
+ "endDate",
+ "limit",
+ "offset"
+ ]
+ }
+ },
+ {
+ "name": "accounting_getAccountLedgerSummary",
+ "module": "accounting",
+ "classification": "READ",
+ "description": "get account ledger summary",
+ "paramCount": 3,
+ "serviceParams": [
+ "client",
+ "companyGroupId",
+ "companyId",
+ "args"
+ ],
+ "injectAuth": [
+ "companyId"
+ ],
+ "schema": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string"
+ },
+ "startDate": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "endDate": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "accountId",
+ "startDate",
+ "endDate"
+ ]
+ }
+ },
{
"name": "accounting_getFinancialStatementBalances",
"module": "accounting",
diff --git a/apps/erp/app/routes/x+/accounting+/balance-sheet.$accountId.tsx b/apps/erp/app/routes/x+/accounting+/balance-sheet.$accountId.tsx
new file mode 100644
index 0000000000..6a64567339
--- /dev/null
+++ b/apps/erp/app/routes/x+/accounting+/balance-sheet.$accountId.tsx
@@ -0,0 +1,91 @@
+import { error, notFound } from "@carbon/auth";
+import { requirePermissions } from "@carbon/auth/auth.server";
+import { flash } from "@carbon/auth/session.server";
+import type { LoaderFunctionArgs } from "react-router";
+import { redirect, useLoaderData } from "react-router";
+import {
+ getAccount,
+ getAccountLedger,
+ getAccountLedgerSummary
+} from "~/modules/accounting";
+import { AccountLedgerDrawer } from "~/modules/accounting/ui/Reports";
+import { path } from "~/utils/path";
+
+const LEDGER_PAGE_SIZE = 50;
+
+export async function loader({ request, params }: LoaderFunctionArgs) {
+ const { client, companyId, companyGroupId } = await requirePermissions(
+ request,
+ {
+ view: "accounting",
+ role: "employee"
+ }
+ );
+
+ const { accountId } = params;
+ if (!accountId) throw notFound("accountId not found");
+
+ const url = new URL(request.url);
+ const searchParams = new URLSearchParams(url.search);
+ const companiesParam = searchParams.get("companies");
+ // The balance sheet is an as-of statement: the window is inception → endDate
+ const startDate = null;
+ const endDate = searchParams.get("endDate") || null;
+ const offset = Math.max(0, Number(searchParams.get("offset")) || 0);
+
+ const selectedCompanyId =
+ companiesParam === "all" ? null : (companiesParam ?? companyId);
+
+ const [account, ledger, summary] = await Promise.all([
+ getAccount(client, accountId),
+ getAccountLedger(client, {
+ accountId,
+ companyId: selectedCompanyId,
+ startDate,
+ endDate,
+ limit: LEDGER_PAGE_SIZE,
+ offset
+ }),
+ getAccountLedgerSummary(client, companyGroupId, selectedCompanyId, {
+ accountId,
+ startDate,
+ endDate
+ })
+ ]);
+
+ if (account.error || !account.data) {
+ throw redirect(
+ path.to.balanceSheet,
+ await flash(request, error(account.error, "Failed to load account"))
+ );
+ }
+
+ return {
+ account: account.data,
+ lines: ledger.data ?? [],
+ count: ledger.count ?? 0,
+ summary: summary.data ?? { opening: 0, netChange: 0, closing: 0 },
+ startDate,
+ endDate,
+ offset
+ };
+}
+
+export default function BalanceSheetLedgerRoute() {
+ const { account, lines, count, summary, startDate, endDate, offset } =
+ useLoaderData<typeof loader>();
+
+ return (
+ <AccountLedgerDrawer
+ account={account}
+ lines={lines}
+ count={count}
+ summary={summary}
+ startDate={startDate}
+ endDate={endDate}
+ offset={offset}
+ limit={LEDGER_PAGE_SIZE}
+ backTo={path.to.balanceSheet}
+ />
+ );
+}
diff --git a/apps/erp/app/routes/x+/accounting+/balance-sheet.tsx b/apps/erp/app/routes/x+/accounting+/balance-sheet.tsx
index 0f2af33a94..87fb276fdf 100644
--- a/apps/erp/app/routes/x+/accounting+/balance-sheet.tsx
+++ b/apps/erp/app/routes/x+/accounting+/balance-sheet.tsx
@@ -4,26 +4,31 @@ import { flash } from "@carbon/auth/session.server";
import { VStack } from "@carbon/react";
import { useState } from "react";
import type { LoaderFunctionArgs } from "react-router";
-import { redirect, useLoaderData } from "react-router";
+import { Outlet, redirect, useLoaderData } from "react-router";
import type { Chart } from "~/modules/accounting";
import {
getCompaniesInGroup,
getConsolidatedBalances,
getFinancialStatementBalances,
+ getFiscalYearSettings,
translateCompanyBalances
} from "~/modules/accounting";
import {
FinancialStatementTree,
ReportFilters
} from "~/modules/accounting/ui/Reports";
+import { months } from "~/modules/shared";
import type { Handle } from "~/utils/handle";
import { path } from "~/utils/path";
+import { revalidateIgnoringOffset } from "~/utils/revalidate";
export const handle: Handle = {
breadcrumb: "Balance Sheet",
to: path.to.balanceSheet
};
+export const shouldRevalidate = revalidateIgnoringOffset;
+
export async function loader({ request }: LoaderFunctionArgs) {
const { client, companyId, companyGroupId } = await requirePermissions(
request,
@@ -39,7 +44,12 @@ export async function loader({ request }: LoaderFunctionArgs) {
const endDate = searchParams.get("endDate") || null;
const showTranslated = searchParams.get("showTranslated") === "true";
- const companies = await getCompaniesInGroup(client, companyGroupId);
+ const [companies, fiscalYearSettings] = await Promise.all([
+ getCompaniesInGroup(client, companyGroupId),
+ getFiscalYearSettings(client, companyId)
+ ]);
+ const fiscalStartMonth =
+ months.indexOf(fiscalYearSettings.data?.startMonth ?? "January") + 1;
const companiesList = companies.data ?? [];
const parentCompany = companiesList.find((c) => !c.parentCompanyId);
const parentCurrency = parentCompany?.baseCurrencyCode ?? null;
@@ -83,7 +93,8 @@ export async function loader({ request }: LoaderFunctionArgs) {
showTranslated: true,
isMultiCompany: true,
isForeignCurrency: false,
- parentCurrency
+ parentCurrency,
+ fiscalStartMonth
};
}
@@ -161,7 +172,8 @@ export async function loader({ request }: LoaderFunctionArgs) {
showTranslated: showTranslated && isForeignCurrency,
isMultiCompany: false,
isForeignCurrency,
- parentCurrency
+ parentCurrency,
+ fiscalStartMonth
};
}
@@ -173,7 +185,8 @@ export default function BalanceSheetRoute() {
showTranslated,
isMultiCompany,
isForeignCurrency,
- parentCurrency
+ parentCurrency,
+ fiscalStartMonth
} = useLoaderData<typeof loader>();
const [search, setSearch] = useState("");
@@ -185,15 +198,20 @@ export default function BalanceSheetRoute() {
isMultiCompany={isMultiCompany}
isForeignCurrency={isForeignCurrency}
parentCurrency={parentCurrency}
+ periodVariant="asOf"
+ fiscalStartMonth={fiscalStartMonth}
search={search}
onSearchChange={setSearch}
/>
<FinancialStatementTree
data={balanceSheet}
+ measure="balanceAtDate"
showTranslated={showTranslated}
parentCurrency={parentCurrency}
search={search}
+ ledgerPath={path.to.balanceSheetLedger}
/>
+ <Outlet />
</VStack>
);
}
diff --git a/apps/erp/app/routes/x+/accounting+/charts.ledger.$accountId.tsx b/apps/erp/app/routes/x+/accounting+/charts.ledger.$accountId.tsx
new file mode 100644
index 0000000000..76232f6ec1
--- /dev/null
+++ b/apps/erp/app/routes/x+/accounting+/charts.ledger.$accountId.tsx
@@ -0,0 +1,86 @@
+import { error, notFound } from "@carbon/auth";
+import { requirePermissions } from "@carbon/auth/auth.server";
+import { flash } from "@carbon/auth/session.server";
+import type { LoaderFunctionArgs } from "react-router";
+import { redirect, useLoaderData } from "react-router";
+import {
+ getAccount,
+ getAccountLedger,
+ getAccountLedgerSummary
+} from "~/modules/accounting";
+import { AccountLedgerDrawer } from "~/modules/accounting/ui/Reports";
+import { path } from "~/utils/path";
+
+const LEDGER_PAGE_SIZE = 50;
+
+export async function loader({ request, params }: LoaderFunctionArgs) {
+ // bypassRls matches the chart of accounts page, whose balances span every
+ // company in the group regardless of the user's per-company roles
+ const { client, companyGroupId } = await requirePermissions(request, {
+ view: "accounting",
+ role: "employee",
+ bypassRls: true
+ });
+
+ const { accountId } = params;
+ if (!accountId) throw notFound("accountId not found");
+
+ const url = new URL(request.url);
+ const searchParams = new URLSearchParams(url.search);
+ const startDate = searchParams.get("startDate") || null;
+ const endDate = searchParams.get("endDate") || null;
+ const offset = Math.max(0, Number(searchParams.get("offset")) || 0);
+
+ const [account, ledger, summary] = await Promise.all([
+ getAccount(client, accountId),
+ getAccountLedger(client, {
+ accountId,
+ companyId: null,
+ startDate,
+ endDate,
+ limit: LEDGER_PAGE_SIZE,
+ offset
+ }),
+ getAccountLedgerSummary(client, companyGroupId, null, {
+ accountId,
+ startDate,
+ endDate
+ })
+ ]);
+
+ if (account.error || !account.data) {
+ throw redirect(
+ path.to.chartOfAccounts,
+ await flash(request, error(account.error, "Failed to load account"))
+ );
+ }
+
+ return {
+ account: account.data,
+ lines: ledger.data ?? [],
+ count: ledger.count ?? 0,
+ summary: summary.data ?? { opening: 0, netChange: 0, closing: 0 },
+ startDate,
+ endDate,
+ offset
+ };
+}
+
+export default function ChartOfAccountsLedgerRoute() {
+ const { account, lines, count, summary, startDate, endDate, offset } =
+ useLoaderData<typeof loader>();
+
+ return (
+ <AccountLedgerDrawer
+ account={account}
+ lines={lines}
+ count={count}
+ summary={summary}
+ startDate={startDate}
+ endDate={endDate}
+ offset={offset}
+ limit={LEDGER_PAGE_SIZE}
+ backTo={path.to.chartOfAccounts}
+ />
+ );
+}
diff --git a/apps/erp/app/routes/x+/accounting+/charts.tsx b/apps/erp/app/routes/x+/accounting+/charts.tsx
index 21e20a2563..ba81fa9db2 100644
--- a/apps/erp/app/routes/x+/accounting+/charts.tsx
+++ b/apps/erp/app/routes/x+/accounting+/charts.tsx
@@ -7,23 +7,33 @@ import { useState } from "react";
import type { LoaderFunctionArgs } from "react-router";
import { Outlet, redirect, useLoaderData } from "react-router";
import type { Chart } from "~/modules/accounting";
-import { getChartOfAccounts } from "~/modules/accounting";
+import {
+ getChartOfAccounts,
+ getFiscalYearSettings
+} from "~/modules/accounting";
import { ChartOfAccountsTree } from "~/modules/accounting/ui/ChartOfAccounts";
import ChartOfAccountsTableFilters from "~/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTableFilters";
+import { months } from "~/modules/shared";
import type { Handle } from "~/utils/handle";
import { path } from "~/utils/path";
+import { revalidateIgnoringOffset } from "~/utils/revalidate";
export const handle: Handle = {
breadcrumb: msg`Chart of Accounts`,
to: path.to.chartOfAccounts
};
+export const shouldRevalidate = revalidateIgnoringOffset;
+
export async function loader({ request }: LoaderFunctionArgs) {
- const { client, companyGroupId } = await requirePermissions(request, {
- view: "accounting",
- role: "employee",
- bypassRls: true
- });
+ const { client, companyId, companyGroupId } = await requirePermissions(
+ request,
+ {
+ view: "accounting",
+ role: "employee",
+ bypassRls: true
+ }
+ );
const url = new URL(request.url);
const searchParams = new URLSearchParams(url.search);
@@ -31,11 +41,14 @@ export async function loader({ request }: LoaderFunctionArgs) {
const startDate = searchParams.get("startDate") || null;
const endDate = searchParams.get("endDate") || null;
- const chartOfAccounts = await getChartOfAccounts(client, companyGroupId, {
- incomeBalance: null,
- startDate,
- endDate
- });
+ const [chartOfAccounts, fiscalYearSettings] = await Promise.all([
+ getChartOfAccounts(client, companyGroupId, {
+ incomeBalance: null,
+ startDate,
+ endDate
+ }),
+ getFiscalYearSettings(client, companyId)
+ ]);
if (chartOfAccounts.error) {
throw redirect(
@@ -48,17 +61,23 @@ export async function loader({ request }: LoaderFunctionArgs) {
}
return {
- chartOfAccounts: (chartOfAccounts.data ?? []) as Chart[]
+ chartOfAccounts: (chartOfAccounts.data ?? []) as Chart[],
+ fiscalStartMonth:
+ months.indexOf(fiscalYearSettings.data?.startMonth ?? "January") + 1
};
}
export default function ChartOfAccountsRoute() {
- const { chartOfAccounts } = useLoaderData<typeof loader>();
+ const { chartOfAccounts, fiscalStartMonth } = useLoaderData<typeof loader>();
const [search, setSearch] = useState("");
return (
<VStack spacing={0} className="h-full">
- <ChartOfAccountsTableFilters search={search} onSearchChange={setSearch} />
+ <ChartOfAccountsTableFilters
+ fiscalStartMonth={fiscalStartMonth}
+ search={search}
+ onSearchChange={setSearch}
+ />
<ChartOfAccountsTree data={chartOfAccounts} search={search} />
<Outlet />
</VStack>
diff --git a/apps/erp/app/routes/x+/accounting+/income-statement.$accountId.tsx b/apps/erp/app/routes/x+/accounting+/income-statement.$accountId.tsx
new file mode 100644
index 0000000000..5488a6da6a
--- /dev/null
+++ b/apps/erp/app/routes/x+/accounting+/income-statement.$accountId.tsx
@@ -0,0 +1,90 @@
+import { error, notFound } from "@carbon/auth";
+import { requirePermissions } from "@carbon/auth/auth.server";
+import { flash } from "@carbon/auth/session.server";
+import type { LoaderFunctionArgs } from "react-router";
+import { redirect, useLoaderData } from "react-router";
+import {
+ getAccount,
+ getAccountLedger,
+ getAccountLedgerSummary
+} from "~/modules/accounting";
+import { AccountLedgerDrawer } from "~/modules/accounting/ui/Reports";
+import { path } from "~/utils/path";
+
+const LEDGER_PAGE_SIZE = 50;
+
+export async function loader({ request, params }: LoaderFunctionArgs) {
+ const { client, companyId, companyGroupId } = await requirePermissions(
+ request,
+ {
+ view: "accounting",
+ role: "employee"
+ }
+ );
+
+ const { accountId } = params;
+ if (!accountId) throw notFound("accountId not found");
+
+ const url = new URL(request.url);
+ const searchParams = new URLSearchParams(url.search);
+ const companiesParam = searchParams.get("companies");
+ const startDate = searchParams.get("startDate") || null;
+ const endDate = searchParams.get("endDate") || null;
+ const offset = Math.max(0, Number(searchParams.get("offset")) || 0);
+
+ const selectedCompanyId =
+ companiesParam === "all" ? null : (companiesParam ?? companyId);
+
+ const [account, ledger, summary] = await Promise.all([
+ getAccount(client, accountId),
+ getAccountLedger(client, {
+ accountId,
+ companyId: selectedCompanyId,
+ startDate,
+ endDate,
+ limit: LEDGER_PAGE_SIZE,
+ offset
+ }),
+ getAccountLedgerSummary(client, companyGroupId, selectedCompanyId, {
+ accountId,
+ startDate,
+ endDate
+ })
+ ]);
+
+ if (account.error || !account.data) {
+ throw redirect(
+ path.to.incomeStatement,
+ await flash(request, error(account.error, "Failed to load account"))
+ );
+ }
+
+ return {
+ account: account.data,
+ lines: ledger.data ?? [],
+ count: ledger.count ?? 0,
+ summary: summary.data ?? { opening: 0, netChange: 0, closing: 0 },
+ startDate,
+ endDate,
+ offset
+ };
+}
+
+export default function IncomeStatementLedgerRoute() {
+ const { account, lines, count, summary, startDate, endDate, offset } =
+ useLoaderData<typeof loader>();
+
+ return (
+ <AccountLedgerDrawer
+ account={account}
+ lines={lines}
+ count={count}
+ summary={summary}
+ startDate={startDate}
+ endDate={endDate}
+ offset={offset}
+ limit={LEDGER_PAGE_SIZE}
+ backTo={path.to.incomeStatement}
+ />
+ );
+}
diff --git a/apps/erp/app/routes/x+/accounting+/income-statement.tsx b/apps/erp/app/routes/x+/accounting+/income-statement.tsx
index 01d9d5fd51..01a9708a42 100644
--- a/apps/erp/app/routes/x+/accounting+/income-statement.tsx
+++ b/apps/erp/app/routes/x+/accounting+/income-statement.tsx
@@ -4,26 +4,31 @@ import { flash } from "@carbon/auth/session.server";
import { VStack } from "@carbon/react";
import { useState } from "react";
import type { LoaderFunctionArgs } from "react-router";
-import { redirect, useLoaderData } from "react-router";
+import { Outlet, redirect, useLoaderData } from "react-router";
import type { Chart } from "~/modules/accounting";
import {
getCompaniesInGroup,
getConsolidatedBalances,
getFinancialStatementBalances,
+ getFiscalYearSettings,
translateCompanyBalances
} from "~/modules/accounting";
import {
FinancialStatementTree,
ReportFilters
} from "~/modules/accounting/ui/Reports";
+import { months } from "~/modules/shared";
import type { Handle } from "~/utils/handle";
import { path } from "~/utils/path";
+import { revalidateIgnoringOffset } from "~/utils/revalidate";
export const handle: Handle = {
breadcrumb: "Income Statement",
to: path.to.incomeStatement
};
+export const shouldRevalidate = revalidateIgnoringOffset;
+
export async function loader({ request }: LoaderFunctionArgs) {
const { client, companyId, companyGroupId } = await requirePermissions(
request,
@@ -40,7 +45,12 @@ export async function loader({ request }: LoaderFunctionArgs) {
const endDate = searchParams.get("endDate") || null;
const showTranslated = searchParams.get("showTranslated") === "true";
- const companies = await getCompaniesInGroup(client, companyGroupId);
+ const [companies, fiscalYearSettings] = await Promise.all([
+ getCompaniesInGroup(client, companyGroupId),
+ getFiscalYearSettings(client, companyId)
+ ]);
+ const fiscalStartMonth =
+ months.indexOf(fiscalYearSettings.data?.startMonth ?? "January") + 1;
const companiesList = companies.data ?? [];
const parentCompany = companiesList.find((c) => !c.parentCompanyId);
const parentCurrency = parentCompany?.baseCurrencyCode ?? null;
@@ -78,7 +88,8 @@ export async function loader({ request }: LoaderFunctionArgs) {
showTranslated: true,
isMultiCompany: true,
isForeignCurrency: false,
- parentCurrency
+ parentCurrency,
+ fiscalStartMonth
};
}
@@ -148,7 +159,8 @@ export async function loader({ request }: LoaderFunctionArgs) {
showTranslated: showTranslated && isForeignCurrency,
isMultiCompany: false,
isForeignCurrency,
- parentCurrency
+ parentCurrency,
+ fiscalStartMonth
};
}
@@ -160,7 +172,8 @@ export default function IncomeStatementRoute() {
showTranslated,
isMultiCompany,
isForeignCurrency,
- parentCurrency
+ parentCurrency,
+ fiscalStartMonth
} = useLoaderData<typeof loader>();
const [search, setSearch] = useState("");
@@ -172,15 +185,19 @@ export default function IncomeStatementRoute() {
isMultiCompany={isMultiCompany}
isForeignCurrency={isForeignCurrency}
parentCurrency={parentCurrency}
+ fiscalStartMonth={fiscalStartMonth}
search={search}
onSearchChange={setSearch}
/>
<FinancialStatementTree
data={incomeStatement}
+ measure="netChange"
showTranslated={showTranslated}
parentCurrency={parentCurrency}
search={search}
+ ledgerPath={path.to.incomeStatementLedger}
/>
+ <Outlet />
</VStack>
);
}
diff --git a/apps/erp/app/routes/x+/accounting+/trial-balance.$accountId.tsx b/apps/erp/app/routes/x+/accounting+/trial-balance.$accountId.tsx
new file mode 100644
index 0000000000..977c23be03
--- /dev/null
+++ b/apps/erp/app/routes/x+/accounting+/trial-balance.$accountId.tsx
@@ -0,0 +1,92 @@
+import { error, notFound } from "@carbon/auth";
+import { requirePermissions } from "@carbon/auth/auth.server";
+import { flash } from "@carbon/auth/session.server";
+import type { LoaderFunctionArgs } from "react-router";
+import { redirect, useLoaderData } from "react-router";
+import {
+ getAccount,
+ getAccountLedger,
+ getAccountLedgerSummary
+} from "~/modules/accounting";
+import { AccountLedgerDrawer } from "~/modules/accounting/ui/Reports";
+import { path } from "~/utils/path";
+
+const LEDGER_PAGE_SIZE = 50;
+
+export async function loader({ request, params }: LoaderFunctionArgs) {
+ const { client, companyId, companyGroupId } = await requirePermissions(
+ request,
+ {
+ view: "accounting",
+ role: "employee"
+ }
+ );
+
+ const { accountId } = params;
+ if (!accountId) throw notFound("accountId not found");
+
+ const url = new URL(request.url);
+ const searchParams = new URLSearchParams(url.search);
+ const companiesParam = searchParams.get("companies");
+ const startDate = searchParams.get("startDate") || null;
+ const endDate = searchParams.get("endDate") || null;
+ const offset = Math.max(0, Number(searchParams.get("offset")) || 0);
+
+ // Mirrors the parent page: a single selected company filters lines; "all"
+ // matches the RPC's null company filter (every company in the group)
+ const selectedCompanyId =
+ companiesParam === "all" ? null : (companiesParam ?? companyId);
+
+ const [account, ledger, summary] = await Promise.all([
+ getAccount(client, accountId),
+ getAccountLedger(client, {
+ accountId,
+ companyId: selectedCompanyId,
+ startDate,
+ endDate,
+ limit: LEDGER_PAGE_SIZE,
+ offset
+ }),
+ getAccountLedgerSummary(client, companyGroupId, selectedCompanyId, {
+ accountId,
+ startDate,
+ endDate
+ })
+ ]);
+
+ if (account.error || !account.data) {
+ throw redirect(
+ path.to.trialBalance,
+ await flash(request, error(account.error, "Failed to load account"))
+ );
+ }
+
+ return {
+ account: account.data,
+ lines: ledger.data ?? [],
+ count: ledger.count ?? 0,
+ summary: summary.data ?? { opening: 0, netChange: 0, closing: 0 },
+ startDate,
+ endDate,
+ offset
+ };
+}
+
+export default function TrialBalanceLedgerRoute() {
+ const { account, lines, count, summary, startDate, endDate, offset } =
+ useLoaderData<typeof loader>();
+
+ return (
+ <AccountLedgerDrawer
+ account={account}
+ lines={lines}
+ count={count}
+ summary={summary}
+ startDate={startDate}
+ endDate={endDate}
+ offset={offset}
+ limit={LEDGER_PAGE_SIZE}
+ backTo={path.to.trialBalance}
+ />
+ );
+}
diff --git a/apps/erp/app/routes/x+/accounting+/trial-balance.tsx b/apps/erp/app/routes/x+/accounting+/trial-balance.tsx
index fc959342ea..770e340f7d 100644
--- a/apps/erp/app/routes/x+/accounting+/trial-balance.tsx
+++ b/apps/erp/app/routes/x+/accounting+/trial-balance.tsx
@@ -4,26 +4,31 @@ import { flash } from "@carbon/auth/session.server";
import { VStack } from "@carbon/react";
import { useState } from "react";
import type { LoaderFunctionArgs } from "react-router";
-import { redirect, useLoaderData } from "react-router";
+import { Outlet, redirect, useLoaderData } from "react-router";
import type { Chart } from "~/modules/accounting";
import {
getCompaniesInGroup,
getConsolidatedBalances,
getFinancialStatementBalances,
+ getFiscalYearSettings,
translateCompanyBalances
} from "~/modules/accounting";
import {
ReportFilters,
TrialBalanceTree
} from "~/modules/accounting/ui/Reports";
+import { months } from "~/modules/shared";
import type { Handle } from "~/utils/handle";
import { path } from "~/utils/path";
+import { revalidateIgnoringOffset } from "~/utils/revalidate";
export const handle: Handle = {
breadcrumb: "Trial Balance",
to: path.to.trialBalance
};
+export const shouldRevalidate = revalidateIgnoringOffset;
+
export async function loader({ request }: LoaderFunctionArgs) {
const { client, companyId, companyGroupId } = await requirePermissions(
request,
@@ -40,7 +45,12 @@ export async function loader({ request }: LoaderFunctionArgs) {
const endDate = searchParams.get("endDate") || null;
const showTranslated = searchParams.get("showTranslated") === "true";
- const companies = await getCompaniesInGroup(client, companyGroupId);
+ const [companies, fiscalYearSettings] = await Promise.all([
+ getCompaniesInGroup(client, companyGroupId),
+ getFiscalYearSettings(client, companyId)
+ ]);
+ const fiscalStartMonth =
+ months.indexOf(fiscalYearSettings.data?.startMonth ?? "January") + 1;
const companiesList = companies.data ?? [];
const parentCompany = companiesList.find((c) => !c.parentCompanyId);
const parentCurrency = parentCompany?.baseCurrencyCode ?? null;
@@ -74,7 +84,8 @@ export async function loader({ request }: LoaderFunctionArgs) {
showTranslated: true,
isMultiCompany: true,
isForeignCurrency: false,
- parentCurrency
+ parentCurrency,
+ fiscalStartMonth
};
}
@@ -145,7 +156,8 @@ export async function loader({ request }: LoaderFunctionArgs) {
showTranslated: showTranslated && isForeignCurrency,
isMultiCompany: false,
isForeignCurrency,
- parentCurrency
+ parentCurrency,
+ fiscalStartMonth
};
}
@@ -157,7 +169,8 @@ export default function TrialBalanceRoute() {
showTranslated,
isMultiCompany,
isForeignCurrency,
- parentCurrency
+ parentCurrency,
+ fiscalStartMonth
} = useLoaderData<typeof loader>();
const [search, setSearch] = useState("");
@@ -169,6 +182,7 @@ export default function TrialBalanceRoute() {
isMultiCompany={isMultiCompany}
isForeignCurrency={isForeignCurrency}
parentCurrency={parentCurrency}
+ fiscalStartMonth={fiscalStartMonth}
search={search}
onSearchChange={setSearch}
/>
@@ -177,7 +191,9 @@ export default function TrialBalanceRoute() {
showTranslated={showTranslated}
parentCurrency={parentCurrency}
search={search}
+ ledgerPath={path.to.trialBalanceLedger}
/>
+ <Outlet />
</VStack>
);
}
diff --git a/apps/erp/app/utils/path.ts b/apps/erp/app/utils/path.ts
index 0b05d2623f..872963604a 100644
--- a/apps/erp/app/utils/path.ts
+++ b/apps/erp/app/utils/path.ts
@@ -568,14 +568,22 @@ export const path = {
chartOfAccount: (id: string) =>
generatePath(`${x}/accounting/charts/${id}`),
chartOfAccounts: `${x}/accounting/charts`,
+ chartOfAccountsLedger: (id: string) =>
+ generatePath(`${x}/accounting/charts/ledger/${id}`),
moveChartOfAccount: (id: string) =>
generatePath(`${x}/accounting/charts/move/${id}`),
costCenter: (id: string) =>
generatePath(`${x}/accounting/cost-centers/${id}`),
costCenters: `${x}/accounting/cost-centers`,
trialBalance: `${x}/accounting/trial-balance`,
+ trialBalanceLedger: (id: string) =>
+ generatePath(`${x}/accounting/trial-balance/${id}`),
balanceSheet: `${x}/accounting/balance-sheet`,
+ balanceSheetLedger: (id: string) =>
+ generatePath(`${x}/accounting/balance-sheet/${id}`),
incomeStatement: `${x}/accounting/income-statement`,
+ incomeStatementLedger: (id: string) =>
+ generatePath(`${x}/accounting/income-statement/${id}`),
company: `${x}/settings/company`,
companySwitch: (companyId: string) =>
generatePath(`${x}/settings/company/switch/${companyId}`),
diff --git a/apps/erp/app/utils/revalidate.ts b/apps/erp/app/utils/revalidate.ts
new file mode 100644
index 0000000000..0b87bae8cf
--- /dev/null
+++ b/apps/erp/app/utils/revalidate.ts
@@ -0,0 +1,27 @@
+import type { ShouldRevalidateFunction } from "react-router";
+
+/**
+ * Skips revalidation for navigations that only open/close a child drawer or
+ * page through it (`offset` param) — report loaders depend on the remaining
+ * search params only, and their balance RPCs are expensive. Mutations and any
+ * other param change revalidate as usual.
+ */
+export const revalidateIgnoringOffset: ShouldRevalidateFunction = ({
+ currentUrl,
+ nextUrl,
+ formMethod,
+ defaultShouldRevalidate
+}) => {
+ if (formMethod && formMethod !== "GET") return defaultShouldRevalidate;
+
+ const current = new URLSearchParams(currentUrl.search);
+ const next = new URLSearchParams(nextUrl.search);
+ current.delete("offset");
+ next.delete("offset");
+ current.sort();
+ next.sort();
+
+ if (current.toString() === next.toString()) return false;
+
+ return defaultShouldRevalidate;
+};
diff --git a/packages/database/supabase/migrations/20260702122210_journal-lines-view.sql b/packages/database/supabase/migrations/20260702122210_journal-lines-view.sql
new file mode 100644
index 0000000000..cb89d4d189
--- /dev/null
+++ b/packages/database/supabase/migrations/20260702122210_journal-lines-view.sql
@@ -0,0 +1,19 @@
+-- Line-level general ledger view for account drill-down (Account Ledger drawer).
+-- Joins journalLine to its journal header so lines can be filtered/sorted by
+-- postingDate and displayed with entry id, status, and source type.
+-- SECURITY_INVOKER so journalLine/journal RLS applies to the querying user.
+-- Intentionally no status filter: balance RPCs (accountTreeBalancesByCompany)
+-- include Draft journals, and the drill-down must tie out with them.
+
+DROP VIEW IF EXISTS "journalLines";
+
+CREATE VIEW "journalLines" WITH(SECURITY_INVOKER=true) AS
+SELECT
+ jl.*,
+ j."postingDate",
+ j."journalEntryId",
+ j."status",
+ j."sourceType",
+ j."description" AS "journalDescription"
+FROM "journalLine" jl
+JOIN "journal" j ON j."id" = jl."journalId";
diff --git a/packages/dev/bin/crbn b/packages/dev/bin/crbn
index 47c9ce02f8..a8e9576e9c 100755
--- a/packages/dev/bin/crbn
+++ b/packages/dev/bin/crbn
@@ -406,6 +406,14 @@ do_post_create() {
if ! ( cd "$target" && delegate_ts env sync >&2 ); then
warn "env sync step failed (worktree was still created)"
fi
+ # Link .ai skills/rules into .claude/.codex for this worktree. They're
+ # gitignored, so a fresh worktree has none until this runs. Output to stderr
+ # so the checkout stdout (the eval'd `cd`) stays clean.
+ if [[ -f "$target/.ai/scripts/install-skills.sh" ]]; then
+ if ! ( cd "$target" && bash .ai/scripts/install-skills.sh >&2 ); then
+ warn "install-skills step failed (worktree was still created)"
+ fi
+ fi
}
# Replace process with `crbn up` cd'd into the new worktree. Caller's shell
diff --git a/packages/dev/src/commands/up.ts b/packages/dev/src/commands/up.ts
index d8460b8630..577729fd26 100644
--- a/packages/dev/src/commands/up.ts
+++ b/packages/dev/src/commands/up.ts
@@ -9,6 +9,7 @@ import { onShutdown } from "../helpers.js";
import { pickApps, pickBorrowSlug } from "../prompts.js";
import {
installDeps,
+ installSkills,
spawnApps,
spawnStripeListener,
syncEnvSymlinks
@@ -182,6 +183,7 @@ export async function up(opts: UpOpts = {}) {
await refreshStaleCopyFiles(root);
await ensureDepsInstalled(root);
+ await ensureSkillsInstalled(root);
const ctx = await provisionSlot(root, slug, portless, borrowedEntry);
if (borrowedEntry) {
@@ -287,6 +289,15 @@ async function ensureDepsInstalled(root: string) {
else log.info("pnpm install skipped (lockfile in sync)");
}
+// Keep the .claude/.codex skill+rule symlinks in sync on every boot. They're
+// gitignored (absent in fresh worktrees) and `prepare` only runs when pnpm
+// install runs, so this is the reliable place to guarantee they exist.
+async function ensureSkillsInstalled(root: string) {
+ const ok = await installSkills(root);
+ if (ok) log.step("skills + rules linked");
+ else log.info("install-skills skipped");
+}
+
async function provisionSlot(
root: string,
slug: string,
diff --git a/packages/dev/src/services/apps.ts b/packages/dev/src/services/apps.ts
index 914f3d9297..0ef3484b09 100644
--- a/packages/dev/src/services/apps.ts
+++ b/packages/dev/src/services/apps.ts
@@ -277,6 +277,23 @@ export async function syncEnvSymlinks(root: string) {
}
}
+// Re-link .ai/ rules and skills into the .claude/ and .codex/ harness dirs.
+// Those symlinks are gitignored, so a fresh worktree has none until this runs;
+// and `pnpm install`'s `prepare` hook only fires when the lockfile changes, so
+// `crbn up` can't lean on it to keep them fresh. The script is idempotent and
+// fast (just recreates symlinks) — safe to run on every boot. Non-fatal: skills
+// are dev tooling, so a failure warns rather than aborting the stack boot.
+export async function installSkills(root: string): Promise<boolean> {
+ const script = join(root, ".ai", "scripts", "install-skills.sh");
+ if (!existsSync(script)) return false;
+ const r = await execa("bash", [script], { cwd: root, reject: false });
+ if (r.exitCode !== 0) {
+ process.stderr.write(r.stderr?.toString() ?? "");
+ return false;
+ }
+ return true;
+}
+
// ---------------------------------------------------------------------------
// Orphan cleanup — used by `crbn down` to kill host processes that survived
// a crashed `crbn up`. Dev servers and the stripe listener are spawned
diff --git a/packages/harness/AGENTS.md b/packages/harness/AGENTS.md
index 6870597334..a04791287e 100644
--- a/packages/harness/AGENTS.md
+++ b/packages/harness/AGENTS.md
@@ -43,5 +43,5 @@ pnpm --filter @carbon/harness gc # prune old run directories
- `packages/checks/` — `@carbon/checks test` and `clobbers` are floor gates
- `.ai/skills/conductor/SKILL.md` — the conductor skill that this harness implements
-- `llm/outer-loop/` — outer-loop design docs
+- `.ai/docs/outer-loop.md` — outer-loop design docs
- `packages/dev/` — `crbn up --run` for booting stacks in CI/headless
diff --git a/packages/harness/README.md b/packages/harness/README.md
index d3aee2cc34..15b04994e1 100644
--- a/packages/harness/README.md
+++ b/packages/harness/README.md
@@ -4,8 +4,8 @@ The deterministic substrate that powers the `build` conductor skill (loop conduc
## Concepts
-- **Bindings** — specs for a loop iteration, parsed from `llm/loops/<id>.loop.md` frontmatter.
-- **Ledger** — append-only JSONL log of each iteration's outcome, stored at `llm/loops/<id>/ledger.jsonl`.
+- **Bindings** — specs for a loop iteration, parsed from `.ai/runs/<id>/binding.loop.md` frontmatter.
+- **Ledger** — append-only JSONL log of each iteration's outcome, stored at `.ai/runs/<id>/ledger.jsonl`.
- **Floor gates** — cheap, deterministic checks that must pass before any iteration is recorded as `keep`.
## Usage
diff --git a/packages/harness/src/index.ts b/packages/harness/src/index.ts
index 80dab46e71..9c9d2dbc86 100644
--- a/packages/harness/src/index.ts
+++ b/packages/harness/src/index.ts
@@ -9,7 +9,6 @@ export {
export {
bindingPath,
hostedScreenshotPath,
- LOOPS_DIR,
ledgerPath,
logPath,
outcomePath,
diff --git a/packages/harness/src/layout.ts b/packages/harness/src/layout.ts
index c44ce6d5a2..8a9920ad03 100644
--- a/packages/harness/src/layout.ts
+++ b/packages/harness/src/layout.ts
@@ -2,25 +2,22 @@ import { join, resolve } from "node:path";
/**
* The single owner of the loop artifact layout. Every loop path is constructed
- * here — nothing else in the harness should hardcode `llm/loops/...`.
+ * here — nothing else in the harness should hardcode `.ai/runs/...`.
*
- * llm/loops/ committed docs (README, design) — TRACKED
- * llm/loops/runs/<id>/ one loop run's ephemeral artifacts — GITIGNORED
+ * .ai/runs/<id>/ one loop run's ephemeral artifacts — GITIGNORED (dirs only)
* binding.loop.md the binding the run was driven from
* ledger.jsonl append-only per-iteration record
* run.log.jsonl full event log
* outcome.json the final LoopOutcome (machine-readable result)
* screenshots/ behavior-gate captures
*
- * Keeping all runtime under one wholesale-ignored `runs/` dir is what keeps the
- * `llm/` tree clean: docs are tracked by default, runtime can't leak into git,
- * and `pruneRuns` (see runs.ts) has one place to GC.
+ * `.ai/runs/` also holds committed markdown run logs from the plan/execute
+ * skills — only the per-run *directories* are ignored, so runtime can't leak
+ * into git and `pruneRuns` (see runs.ts) has one place to GC.
*/
-/** Repo-relative root for committed loop docs. */
-export const LOOPS_DIR = "llm/loops";
-/** Repo-relative root for ephemeral per-run artifacts (gitignored wholesale). */
-export const RUNS_DIR = "llm/loops/runs";
+/** Repo-relative root for ephemeral per-run artifacts (directories gitignored). */
+export const RUNS_DIR = ".ai/runs";
/** Absolute dir holding one run's artifacts. */
export function runDir(cwd: string, id: string): string {
diff --git a/packages/harness/src/runner/pr.ts b/packages/harness/src/runner/pr.ts
index 4f288fc975..fbc5fbcf90 100644
--- a/packages/harness/src/runner/pr.ts
+++ b/packages/harness/src/runner/pr.ts
@@ -25,7 +25,7 @@ const ARTIFACTS_BRANCH = "loop-artifacts";
* Host the loop's screenshots so they render inline in the PR. Loop artifacts
* must not pollute the product tree (the conductor guardrail), so they live on
* ONE shared, non-merging `loop-artifacts` branch (gh-pages style) under
- * `llm/loops/runs/<id>/screenshots/` — appended via a temp index on the branch tip so
+ * `.ai/runs/<id>/screenshots/` — appended via a temp index on the branch tip so
* earlier loops' artifacts survive. All git plumbing, no checkout / working-tree
* change. Returns raw URLs GitHub renders, or null on any failure so the caller
* falls back to listing paths rather than failing the PR.
diff --git a/packages/harness/src/runner/types.ts b/packages/harness/src/runner/types.ts
index 8e23656470..1892e09ffc 100644
--- a/packages/harness/src/runner/types.ts
+++ b/packages/harness/src/runner/types.ts
@@ -98,7 +98,7 @@ export type RunnerDeps = {
export type RunnerConfig = {
/** Absolute path to the worktree the loop runs in. */
cwd: string;
- /** Where to append the ledger (e.g. llm/loops/<id>/ledger.jsonl). */
+ /** Where to append the ledger (e.g. .ai/runs/<id>/ledger.jsonl). */
ledgerPath: string;
/** Stop after this many consecutive iterations with no kept change. */
plateauAfter: number;
diff --git a/packages/harness/src/runs.ts b/packages/harness/src/runs.ts
index 552337791e..99dfa9e6da 100644
--- a/packages/harness/src/runs.ts
+++ b/packages/harness/src/runs.ts
@@ -23,7 +23,7 @@ export function readOutcome(cwd: string, id: string): LoopOutcome | null {
}
}
-/** Every run dir under `llm/loops/runs/`, newest first. */
+/** Every run dir under `.ai/runs/`, newest first. */
export function listRuns(cwd: string): RunSummary[] {
let names: string[];
try {
diff --git a/packages/harness/src/scripts/prune-runs.ts b/packages/harness/src/scripts/prune-runs.ts
index 2377814d92..bf604b7770 100644
--- a/packages/harness/src/scripts/prune-runs.ts
+++ b/packages/harness/src/scripts/prune-runs.ts
@@ -3,7 +3,7 @@ import { pruneRuns } from "../runs";
// Usage: tsx src/scripts/prune-runs.ts [--cwd <dir>] [--keep-last <n>] [--max-age-days <n>]
//
-// GC finished loop runs under llm/loops/runs/. Unfinished runs (no outcome.json)
+// GC finished loop runs under .ai/runs/. Unfinished runs (no outcome.json)
// are never touched. The OpenClaw janitor calls this each heartbeat to keep the
// box's disk from filling with stale loop artifacts. Prints the result as JSON.
const argv = process.argv.slice(2);
diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.po
index b2281675e5..b5066f3324 100644
--- a/packages/locale/locales/de/erp.po
+++ b/packages/locale/locales/de/erp.po
@@ -84,6 +84,9 @@ msgstr "{chainLabel}. Erwägen Sie, diesen Teil direkt auf den endgültigen Nach
msgid "{count, plural, one {# course} other {# courses}}"
msgstr "{count, plural, one {# Kurs} other {# Kurse}}"
+msgid "{from}–{to} of {count}"
+msgstr "{from}–{to} von {count}"
+
#. placeholder {0}: errors.length
#. placeholder {1}: skipped.length
msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."
@@ -731,6 +734,9 @@ msgstr "Alle Zeilen importiert — {inserted} eingefügt, {updated} aktualisiert
msgid "All Suppliers"
msgstr "Alle Lieferanten"
+msgid "All Time"
+msgstr "Gesamter Zeitraum"
+
msgid "All Types"
msgstr "Alle Typen"
@@ -871,6 +877,9 @@ msgstr "Gilt für alle"
msgid "Applies to all work centers"
msgstr "Gilt für alle Arbeitszentren"
+msgid "Apply"
+msgstr "Anwenden"
+
msgid "Apply available credits"
msgstr "Verfügbare Gutschriften anwenden"
@@ -1299,6 +1308,13 @@ msgstr "Sind Sie sicher?"
msgid "As needed"
msgstr "Nach Bedarf"
+msgid "As of"
+msgstr "Zum Stand von"
+
+#. placeholder {0}: formatDate(endDate)
+msgid "As of {0}"
+msgstr "Zum Stand von {0}"
+
msgid "As of:"
msgstr "Zum Stand von:"
@@ -2042,6 +2058,9 @@ msgstr "Geschlossen"
msgid "Closed Date"
msgstr "Schließungsdatum"
+msgid "Closing"
+msgstr "Schlussbilanz"
+
msgid "Closure blocked"
msgstr "Abschluss blockiert"
@@ -2929,6 +2948,9 @@ msgstr "Benutzerdefinierte Felder"
msgid "Custom SOW · we manage"
msgstr "Benutzerdefiniertes SOW · wir verwalten"
+msgid "Custom…"
+msgstr "Benutzerdefiniert…"
+
msgid "customer"
msgstr "Kunde"
@@ -3127,9 +3149,6 @@ msgstr "Ausstellungsdatum"
msgid "Date Paid"
msgstr "Zahlungsdatum"
-msgid "Date Range"
-msgstr "Datumsbereich"
-
msgid "Dates"
msgstr "Daten"
@@ -3995,9 +4014,6 @@ msgstr "Kundenstatus bearbeiten"
msgid "Edit Customer Type"
msgstr "Kundentyp bearbeiten"
-msgid "Edit date range"
-msgstr "Datumsbereich bearbeiten"
-
msgid "Edit Department"
msgstr "Abteilung bearbeiten"
@@ -4328,6 +4344,15 @@ msgstr "Aktiviert"
msgid "End Date"
msgstr "Enddatum"
+msgid "End of Last Fiscal Year"
+msgstr "Ende des letzten Geschäftsjahres"
+
+msgid "End of Last Month"
+msgstr "Ende des letzten Monats"
+
+msgid "End of Last Quarter"
+msgstr "Ende des letzten Quartals"
+
msgid "End Time"
msgstr "Endzeit"
@@ -4388,6 +4413,9 @@ msgstr "Entitätstyp"
msgid "Entity type cannot be changed"
msgstr "Entitätstyp kann nicht geändert werden"
+msgid "Entry"
+msgstr "Eintrag"
+
msgid "Entry Type"
msgstr "Eintragstyp"
@@ -5084,6 +5112,9 @@ msgstr "Geschäftsjahr"
msgid "Fiscal Year Settings"
msgstr "Einstellungen für Geschäftsjahr"
+msgid "Fiscal Year to Date"
+msgstr "Geschäftsjahr bis heute"
+
msgid "Fiscal Years"
msgstr "Geschäftsjahre"
@@ -5157,6 +5188,7 @@ msgstr "Häufigkeit"
msgid "Friday"
msgstr "Freitag"
+#. placeholder {0}: formatDate(startDate)
#. placeholder {0}: routeDataFromRoute.supersession.successorEffectivityDate
msgid "From {0}"
msgstr "Von {0}"
@@ -6295,9 +6327,18 @@ msgstr "Letzte Kalibrierung"
msgid "Last Calibration Date"
msgstr "Letztes Kalibrierungsdatum"
+msgid "Last Fiscal Year"
+msgstr "Letztes Geschäftsjahr"
+
+msgid "Last Month"
+msgstr "Letzter Monat"
+
msgid "Last Name"
msgstr "Nachname"
+msgid "Last Quarter"
+msgstr "Letztes Quartal"
+
#. placeholder {0}: formatDateTime(lastSyncedAt)
msgid "Last synced: {0}"
msgstr "Zuletzt synchronisiert: {0}"
@@ -7105,6 +7146,9 @@ msgstr "Negative Anpassung"
msgid "Net book value"
msgstr "Nettobuchwert"
+msgid "Net Change"
+msgstr "Nettoänderung"
+
msgid "Never"
msgstr "Nie"
@@ -7663,6 +7707,9 @@ msgstr "Noch keine Lieferanten"
msgid "No time entries for this week"
msgstr "Keine Zeiteinträge für diese Woche"
+msgid "No transactions in this period"
+msgstr "Keine Transaktionen in diesem Zeitraum"
+
msgid "No value needed"
msgstr "Kein Wert erforderlich"
@@ -7924,6 +7971,9 @@ msgstr "Offene Transaktionen"
msgid "Opened"
msgstr "Geöffnet"
+msgid "Opening"
+msgstr "Eröffnung"
+
msgid "Opening balance of depreciation already booked before this asset was added to Carbon (use 0 for new acquisitions)."
msgstr "Eröffnungssaldo der bereits vor dem Hinzufügen dieses Vermögenswerts zu Carbon gebuchten Abschreibung (für neue Akquisitionen 0 verwenden)."
@@ -10070,9 +10120,6 @@ msgstr "Kundentypen auswählen"
msgid "Select customers"
msgstr "Kunden auswählen"
-msgid "Select date range to filter net change and balance at date"
-msgstr "Wählen Sie einen Datumsbereich aus, um die Nettoänderung und den Saldo zum Stichtag zu filtern"
-
msgid "Select Employee"
msgstr "Mitarbeiter auswählen"
@@ -11900,6 +11947,9 @@ msgstr "Dieser Download-Link ist ungültig oder wurde manipuliert."
msgid "This file is no longer available, or you don't have permission to download it."
msgstr "Diese Datei ist nicht mehr verfügbar, oder Sie haben keine Berechtigung, sie herunterzuladen."
+msgid "This Fiscal Year"
+msgstr "Dieses Geschäftsjahr"
+
msgid "This information will be used on document headers"
msgstr "Diese Informationen werden in Dokumentkopfzeilen verwendet"
@@ -11936,6 +11986,9 @@ msgstr "Dieses Los ist abgelaufen und kann nicht entnommen werden."
msgid "This may take a moment. Hang tight."
msgstr "Das kann einen Moment dauern. Bleib dran."
+msgid "This Month"
+msgstr "Dieser Monat"
+
msgid "This page of your Implementation Hub is being built. Start from the command center while we finish it."
msgstr "Diese Seite deines Implementation Hub wird gerade aufgebaut. Starten Sie vom Command Center, während wir sie fertigstellen."
@@ -11951,6 +12004,9 @@ msgstr "Dieses Teil ist veraltet (Kein Bestand)."
msgid "This part is superseded and set to Stock Only — it's replenished to its spares reserve floor, independent of demand."
msgstr "Dieses Teil ist überholt und auf „Nur Bestand\" eingestellt — es wird bis zur Reservefläche für Ersatzteile aufgefüllt, unabhängig von der Nachfrage."
+msgid "This Quarter"
+msgstr "Dieses Quartal"
+
msgid "This sales order has associated jobs. Choose what to do with them."
msgstr "Diese Bestellung hat zugeordnete Aufträge. Wählen Sie, was damit geschehen soll."
@@ -11996,6 +12052,10 @@ msgstr "Dies schreibt den verbleibenden Buchwert des Vermögenswerts ab."
msgid "Three-way match"
msgstr "Dreiweg-Vergleich"
+#. placeholder {0}: formatDate(endDate)
+msgid "Through {0}"
+msgstr "Bis {0}"
+
msgid "Thumbnail"
msgstr "Miniaturansicht"
diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.po
index 813c4e12da..59b0d6167e 100644
--- a/packages/locale/locales/en/erp.po
+++ b/packages/locale/locales/en/erp.po
@@ -84,6 +84,9 @@ msgstr "{chainLabel}. Consider pointing this part directly at the final successo
msgid "{count, plural, one {# course} other {# courses}}"
msgstr "{count, plural, one {# course} other {# courses}}"
+msgid "{from}–{to} of {count}"
+msgstr "{from}–{to} of {count}"
+
#. placeholder {0}: errors.length
#. placeholder {1}: skipped.length
msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."
@@ -731,6 +734,9 @@ msgstr "All rows imported — {inserted} inserted, {updated} updated."
msgid "All Suppliers"
msgstr "All Suppliers"
+msgid "All Time"
+msgstr "All Time"
+
msgid "All Types"
msgstr "All Types"
@@ -871,6 +877,9 @@ msgstr "Applies to all"
msgid "Applies to all work centers"
msgstr "Applies to all work centers"
+msgid "Apply"
+msgstr "Apply"
+
msgid "Apply available credits"
msgstr "Apply available credits"
@@ -1299,6 +1308,13 @@ msgstr "Are you sure?"
msgid "As needed"
msgstr "As needed"
+msgid "As of"
+msgstr "As of"
+
+#. placeholder {0}: formatDate(endDate)
+msgid "As of {0}"
+msgstr "As of {0}"
+
msgid "As of:"
msgstr "As of:"
@@ -2042,6 +2058,9 @@ msgstr "Closed"
msgid "Closed Date"
msgstr "Closed Date"
+msgid "Closing"
+msgstr "Closing"
+
msgid "Closure blocked"
msgstr "Closure blocked"
@@ -2929,6 +2948,9 @@ msgstr "Custom Fields"
msgid "Custom SOW · we manage"
msgstr "Custom SOW · we manage"
+msgid "Custom…"
+msgstr "Custom…"
+
msgid "customer"
msgstr "customer"
@@ -3127,9 +3149,6 @@ msgstr "Date Issued"
msgid "Date Paid"
msgstr "Date Paid"
-msgid "Date Range"
-msgstr "Date Range"
-
msgid "Dates"
msgstr "Dates"
@@ -3995,9 +4014,6 @@ msgstr "Edit Customer Status"
msgid "Edit Customer Type"
msgstr "Edit Customer Type"
-msgid "Edit date range"
-msgstr "Edit date range"
-
msgid "Edit Department"
msgstr "Edit Department"
@@ -4328,6 +4344,15 @@ msgstr "Enabled"
msgid "End Date"
msgstr "End Date"
+msgid "End of Last Fiscal Year"
+msgstr "End of Last Fiscal Year"
+
+msgid "End of Last Month"
+msgstr "End of Last Month"
+
+msgid "End of Last Quarter"
+msgstr "End of Last Quarter"
+
msgid "End Time"
msgstr "End Time"
@@ -4388,6 +4413,9 @@ msgstr "Entity Type"
msgid "Entity type cannot be changed"
msgstr "Entity type cannot be changed"
+msgid "Entry"
+msgstr "Entry"
+
msgid "Entry Type"
msgstr "Entry Type"
@@ -5084,6 +5112,9 @@ msgstr "Fiscal Year"
msgid "Fiscal Year Settings"
msgstr "Fiscal Year Settings"
+msgid "Fiscal Year to Date"
+msgstr "Fiscal Year to Date"
+
msgid "Fiscal Years"
msgstr "Fiscal Years"
@@ -5157,6 +5188,7 @@ msgstr "Frequency"
msgid "Friday"
msgstr "Friday"
+#. placeholder {0}: formatDate(startDate)
#. placeholder {0}: routeDataFromRoute.supersession.successorEffectivityDate
msgid "From {0}"
msgstr "From {0}"
@@ -6295,9 +6327,18 @@ msgstr "Last Calibration"
msgid "Last Calibration Date"
msgstr "Last Calibration Date"
+msgid "Last Fiscal Year"
+msgstr "Last Fiscal Year"
+
+msgid "Last Month"
+msgstr "Last Month"
+
msgid "Last Name"
msgstr "Last Name"
+msgid "Last Quarter"
+msgstr "Last Quarter"
+
#. placeholder {0}: formatDateTime(lastSyncedAt)
msgid "Last synced: {0}"
msgstr "Last synced: {0}"
@@ -7105,6 +7146,9 @@ msgstr "Negative Adjustment"
msgid "Net book value"
msgstr "Net book value"
+msgid "Net Change"
+msgstr "Net Change"
+
msgid "Never"
msgstr "Never"
@@ -7663,6 +7707,9 @@ msgstr "No suppliers yet"
msgid "No time entries for this week"
msgstr "No time entries for this week"
+msgid "No transactions in this period"
+msgstr "No transactions in this period"
+
msgid "No value needed"
msgstr "No value needed"
@@ -7924,6 +7971,9 @@ msgstr "Open transactions"
msgid "Opened"
msgstr "Opened"
+msgid "Opening"
+msgstr "Opening"
+
msgid "Opening balance of depreciation already booked before this asset was added to Carbon (use 0 for new acquisitions)."
msgstr "Opening balance of depreciation already booked before this asset was added to Carbon (use 0 for new acquisitions)."
@@ -10070,9 +10120,6 @@ msgstr "Select customer types"
msgid "Select customers"
msgstr "Select customers"
-msgid "Select date range to filter net change and balance at date"
-msgstr "Select date range to filter net change and balance at date"
-
msgid "Select Employee"
msgstr "Select Employee"
@@ -11900,6 +11947,9 @@ msgstr "This download link is invalid or has been tampered with."
msgid "This file is no longer available, or you don't have permission to download it."
msgstr "This file is no longer available, or you don't have permission to download it."
+msgid "This Fiscal Year"
+msgstr "This Fiscal Year"
+
msgid "This information will be used on document headers"
msgstr "This information will be used on document headers"
@@ -11936,6 +11986,9 @@ msgstr "This lot is expired and can't be picked."
msgid "This may take a moment. Hang tight."
msgstr "This may take a moment. Hang tight."
+msgid "This Month"
+msgstr "This Month"
+
msgid "This page of your Implementation Hub is being built. Start from the command center while we finish it."
msgstr "This page of your Implementation Hub is being built. Start from the command center while we finish it."
@@ -11951,6 +12004,9 @@ msgstr "This part is obsolete (No Stock)."
msgid "This part is superseded and set to Stock Only — it's replenished to its spares reserve floor, independent of demand."
msgstr "This part is superseded and set to Stock Only — it's replenished to its spares reserve floor, independent of demand."
+msgid "This Quarter"
+msgstr "This Quarter"
+
msgid "This sales order has associated jobs. Choose what to do with them."
msgstr "This sales order has associated jobs. Choose what to do with them."
@@ -11996,6 +12052,10 @@ msgstr "This will write off the remaining book value of the asset."
msgid "Three-way match"
msgstr "Three-way match"
+#. placeholder {0}: formatDate(endDate)
+msgid "Through {0}"
+msgstr "Through {0}"
+
msgid "Thumbnail"
msgstr "Thumbnail"
diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.po
index 642c77a13f..292961ec21 100644
--- a/packages/locale/locales/es/erp.po
+++ b/packages/locale/locales/es/erp.po
@@ -84,6 +84,9 @@ msgstr "{chainLabel}. Considere apuntar esta pieza directamente al sucesor final
msgid "{count, plural, one {# course} other {# courses}}"
msgstr "{count, plural, one {# curso} other {# cursos}}"
+msgid "{from}–{to} of {count}"
+msgstr "{from}–{to} de {count}"
+
#. placeholder {0}: errors.length
#. placeholder {1}: skipped.length
msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."
@@ -731,6 +734,9 @@ msgstr "Todas las filas importadas — {inserted} insertadas, {updated} actualiz
msgid "All Suppliers"
msgstr "Todos los proveedores"
+msgid "All Time"
+msgstr "Todo el tiempo"
+
msgid "All Types"
msgstr "Todos los tipos"
@@ -871,6 +877,9 @@ msgstr "Se aplica a todos"
msgid "Applies to all work centers"
msgstr "Se aplica a todos los centros de trabajo"
+msgid "Apply"
+msgstr "Aplicar"
+
msgid "Apply available credits"
msgstr "Aplicar créditos disponibles"
@@ -1299,6 +1308,13 @@ msgstr "¿Estás seguro?"
msgid "As needed"
msgstr "Según sea necesario"
+msgid "As of"
+msgstr "A partir de"
+
+#. placeholder {0}: formatDate(endDate)
+msgid "As of {0}"
+msgstr "A partir de {0}"
+
msgid "As of:"
msgstr "A partir de:"
@@ -2042,6 +2058,9 @@ msgstr "Cerrado"
msgid "Closed Date"
msgstr "Fecha de Cierre"
+msgid "Closing"
+msgstr "Cierre"
+
msgid "Closure blocked"
msgstr "Cierre bloqueado"
@@ -2929,6 +2948,9 @@ msgstr "Campos Personalizados"
msgid "Custom SOW · we manage"
msgstr "SOW personalizado · nosotros gestionamos"
+msgid "Custom…"
+msgstr "Personalizado…"
+
msgid "customer"
msgstr "cliente"
@@ -3127,9 +3149,6 @@ msgstr "Fecha de Emisión"
msgid "Date Paid"
msgstr "Fecha Pagada"
-msgid "Date Range"
-msgstr "Rango de Fechas"
-
msgid "Dates"
msgstr "Fechas"
@@ -3995,9 +4014,6 @@ msgstr "Editar Estado del Cliente"
msgid "Edit Customer Type"
msgstr "Editar Tipo de Cliente"
-msgid "Edit date range"
-msgstr "Editar rango de fechas"
-
msgid "Edit Department"
msgstr "Editar Departamento"
@@ -4328,6 +4344,15 @@ msgstr "Habilitado"
msgid "End Date"
msgstr "Fecha de Fin"
+msgid "End of Last Fiscal Year"
+msgstr "Fin del Último Año Fiscal"
+
+msgid "End of Last Month"
+msgstr "Fin del mes anterior"
+
+msgid "End of Last Quarter"
+msgstr "Fin del Trimestre Anterior"
+
msgid "End Time"
msgstr "Hora de Finalización"
@@ -4388,6 +4413,9 @@ msgstr "Tipo de Entidad"
msgid "Entity type cannot be changed"
msgstr "El tipo de entidad no puede ser cambiado"
+msgid "Entry"
+msgstr "Entrada"
+
msgid "Entry Type"
msgstr "Tipo de Entrada"
@@ -5084,6 +5112,9 @@ msgstr "Año Fiscal"
msgid "Fiscal Year Settings"
msgstr "Configuración del Año Fiscal"
+msgid "Fiscal Year to Date"
+msgstr "Año Fiscal hasta la Fecha"
+
msgid "Fiscal Years"
msgstr "Años Fiscales"
@@ -5157,6 +5188,7 @@ msgstr "Frecuencia"
msgid "Friday"
msgstr "Viernes"
+#. placeholder {0}: formatDate(startDate)
#. placeholder {0}: routeDataFromRoute.supersession.successorEffectivityDate
msgid "From {0}"
msgstr "Desde {0}"
@@ -6295,9 +6327,18 @@ msgstr "Última Calibración"
msgid "Last Calibration Date"
msgstr "Última Fecha de Calibración"
+msgid "Last Fiscal Year"
+msgstr "Último Año Fiscal"
+
+msgid "Last Month"
+msgstr "Mes Pasado"
+
msgid "Last Name"
msgstr "Apellido"
+msgid "Last Quarter"
+msgstr "Trimestre Anterior"
+
#. placeholder {0}: formatDateTime(lastSyncedAt)
msgid "Last synced: {0}"
msgstr "Última sincronización: {0}"
@@ -7105,6 +7146,9 @@ msgstr "Ajuste Negativo"
msgid "Net book value"
msgstr "Valor en Libros Neto"
+msgid "Net Change"
+msgstr "Cambio Neto"
+
msgid "Never"
msgstr "Nunca"
@@ -7663,6 +7707,9 @@ msgstr "Sin proveedores aún"
msgid "No time entries for this week"
msgstr "No hay entradas de tiempo para esta semana"
+msgid "No transactions in this period"
+msgstr "No hay transacciones en este período"
+
msgid "No value needed"
msgstr "No se necesita valor"
@@ -7924,6 +7971,9 @@ msgstr "Transacciones abiertas"
msgid "Opened"
msgstr "Abierto"
+msgid "Opening"
+msgstr "Apertura"
+
msgid "Opening balance of depreciation already booked before this asset was added to Carbon (use 0 for new acquisitions)."
msgstr "Saldo de apertura de la depreciación ya contabilizada antes de que este activo se agregara a Carbon (use 0 para nuevas adquisiciones)."
@@ -10070,9 +10120,6 @@ msgstr "Seleccionar tipos de cliente"
msgid "Select customers"
msgstr "Seleccionar clientes"
-msgid "Select date range to filter net change and balance at date"
-msgstr "Selecciona el rango de fechas para filtrar el cambio neto y el saldo en la fecha"
-
msgid "Select Employee"
msgstr "Seleccionar Empleado"
@@ -11900,6 +11947,9 @@ msgstr "Este enlace de descarga es inválido o ha sido alterado."
msgid "This file is no longer available, or you don't have permission to download it."
msgstr "Este archivo ya no está disponible, o no tienes permiso para descargarlo."
+msgid "This Fiscal Year"
+msgstr "Este Año Fiscal"
+
msgid "This information will be used on document headers"
msgstr "Esta información se utilizará en los encabezados de documentos"
@@ -11936,6 +11986,9 @@ msgstr "Este lote ha expirado y no se puede seleccionar."
msgid "This may take a moment. Hang tight."
msgstr "Esto puede tomar un momento. Aguanta firme."
+msgid "This Month"
+msgstr "Este Mes"
+
msgid "This page of your Implementation Hub is being built. Start from the command center while we finish it."
msgstr "Esta página de tu Centro de Implementación está en construcción. Comienza desde el centro de comandos mientras la terminamos."
@@ -11951,6 +12004,9 @@ msgstr "Esta pieza está obsoleta (Sin Stock)."
msgid "This part is superseded and set to Stock Only — it's replenished to its spares reserve floor, independent of demand."
msgstr "Esta pieza está obsoleta y configurada como Stock Only — se repone hasta su nivel de reserva de repuestos, independientemente de la demanda."
+msgid "This Quarter"
+msgstr "Este Trimestre"
+
msgid "This sales order has associated jobs. Choose what to do with them."
msgstr "Este pedido de venta tiene trabajos asociados. Elige qué hacer con ellos."
@@ -11996,6 +12052,10 @@ msgstr "Esto liquidará el valor en libros restante del activo."
msgid "Three-way match"
msgstr "Coinciencia de tres vías"
+#. placeholder {0}: formatDate(endDate)
+msgid "Through {0}"
+msgstr "Hasta {0}"
+
msgid "Thumbnail"
msgstr "Miniatura"
diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.po
index 0c6d430bde..96aa5ef9f0 100644
--- a/packages/locale/locales/fr/erp.po
+++ b/packages/locale/locales/fr/erp.po
@@ -84,6 +84,9 @@ msgstr "{chainLabel}. Envisagez de pointer cette pièce directement vers le succ
msgid "{count, plural, one {# course} other {# courses}}"
msgstr "{count, plural, one {# cours} other {# cours}}"
+msgid "{from}–{to} of {count}"
+msgstr "{from}–{to} sur {count}"
+
#. placeholder {0}: errors.length
#. placeholder {1}: skipped.length
msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."
@@ -731,6 +734,9 @@ msgstr "Toutes les lignes importées — {inserted} insérées, {updated} mises
msgid "All Suppliers"
msgstr "Tous les fournisseurs"
+msgid "All Time"
+msgstr "Tous les temps"
+
msgid "All Types"
msgstr "Tous les types"
@@ -871,6 +877,9 @@ msgstr "S'applique à tous"
msgid "Applies to all work centers"
msgstr "S'applique à tous les centres de travail"
+msgid "Apply"
+msgstr "Appliquer"
+
msgid "Apply available credits"
msgstr "Appliquer les crédits disponibles"
@@ -1299,6 +1308,13 @@ msgstr "Êtes-vous sûr ?"
msgid "As needed"
msgstr "Selon les besoins"
+msgid "As of"
+msgstr "Au"
+
+#. placeholder {0}: formatDate(endDate)
+msgid "As of {0}"
+msgstr "Au {0}"
+
msgid "As of:"
msgstr "Au :"
@@ -2042,6 +2058,9 @@ msgstr "Fermé"
msgid "Closed Date"
msgstr "Date de fermeture"
+msgid "Closing"
+msgstr "Clôture"
+
msgid "Closure blocked"
msgstr "Fermeture bloquée"
@@ -2929,6 +2948,9 @@ msgstr "Champs personnalisés"
msgid "Custom SOW · we manage"
msgstr "SOW personnalisé · nous gérons"
+msgid "Custom…"
+msgstr "Personnalisé…"
+
msgid "customer"
msgstr "client"
@@ -3127,9 +3149,6 @@ msgstr "Date d'émission"
msgid "Date Paid"
msgstr "Date de paiement"
-msgid "Date Range"
-msgstr "Plage de dates"
-
msgid "Dates"
msgstr "Dates"
@@ -3995,9 +4014,6 @@ msgstr "Modifier le statut client"
msgid "Edit Customer Type"
msgstr "Modifier le type de client"
-msgid "Edit date range"
-msgstr "Modifier la plage de dates"
-
msgid "Edit Department"
msgstr "Modifier le département"
@@ -4328,6 +4344,15 @@ msgstr "Activé"
msgid "End Date"
msgstr "Date de fin"
+msgid "End of Last Fiscal Year"
+msgstr "Fin du dernier exercice fiscal"
+
+msgid "End of Last Month"
+msgstr "Fin du mois dernier"
+
+msgid "End of Last Quarter"
+msgstr "Fin du dernier trimestre"
+
msgid "End Time"
msgstr "Heure de fin"
@@ -4388,6 +4413,9 @@ msgstr "Type d'Entité"
msgid "Entity type cannot be changed"
msgstr "Le type d'entité ne peut pas être modifié"
+msgid "Entry"
+msgstr "Écriture"
+
msgid "Entry Type"
msgstr "Type d'entrée"
@@ -5084,6 +5112,9 @@ msgstr "Exercice fiscal"
msgid "Fiscal Year Settings"
msgstr "Paramètres de l'exercice fiscal"
+msgid "Fiscal Year to Date"
+msgstr "Exercice fiscal à ce jour"
+
msgid "Fiscal Years"
msgstr "Exercices fiscaux"
@@ -5157,6 +5188,7 @@ msgstr "Fréquence"
msgid "Friday"
msgstr "Vendredi"
+#. placeholder {0}: formatDate(startDate)
#. placeholder {0}: routeDataFromRoute.supersession.successorEffectivityDate
msgid "From {0}"
msgstr "À partir de {0}"
@@ -6295,9 +6327,18 @@ msgstr "Dernier étalonnage"
msgid "Last Calibration Date"
msgstr "Dernière date d'étalonnage"
+msgid "Last Fiscal Year"
+msgstr "Dernier exercice fiscal"
+
+msgid "Last Month"
+msgstr "Mois dernier"
+
msgid "Last Name"
msgstr "Nom de famille"
+msgid "Last Quarter"
+msgstr "Dernier trimestre"
+
#. placeholder {0}: formatDateTime(lastSyncedAt)
msgid "Last synced: {0}"
msgstr "Dernière synchronisation : {0}"
@@ -7105,6 +7146,9 @@ msgstr "Ajustement Négatif"
msgid "Net book value"
msgstr "Valeur Nette Comptable"
+msgid "Net Change"
+msgstr "Variation nette"
+
msgid "Never"
msgstr "Jamais"
@@ -7663,6 +7707,9 @@ msgstr "Aucun fournisseur pour le moment"
msgid "No time entries for this week"
msgstr "Aucune entrée de temps pour cette semaine"
+msgid "No transactions in this period"
+msgstr "Aucune transaction au cours de cette période"
+
msgid "No value needed"
msgstr "Aucune valeur requise"
@@ -7924,6 +7971,9 @@ msgstr "Transactions ouvertes"
msgid "Opened"
msgstr "Ouvert"
+msgid "Opening"
+msgstr "Ouverture"
+
msgid "Opening balance of depreciation already booked before this asset was added to Carbon (use 0 for new acquisitions)."
msgstr "Solde d'ouverture de l'amortissement déjà comptabilisé avant l'ajout de cet actif à Carbon (utilisez 0 pour les nouvelles acquisitions)."
@@ -10070,9 +10120,6 @@ msgstr "Sélectionner les types de clients"
msgid "Select customers"
msgstr "Sélectionner les clients"
-msgid "Select date range to filter net change and balance at date"
-msgstr "Sélectionnez une plage de dates pour filtrer la variation nette et le solde à la date"
-
msgid "Select Employee"
msgstr "Sélectionner un employé"
@@ -11900,6 +11947,9 @@ msgstr "Ce lien de téléchargement est invalide ou a été modifié."
msgid "This file is no longer available, or you don't have permission to download it."
msgstr "Ce fichier n'est plus disponible, ou vous n'avez pas la permission de le télécharger."
+msgid "This Fiscal Year"
+msgstr "Cet exercice fiscal"
+
msgid "This information will be used on document headers"
msgstr "Ces informations seront utilisées dans les en-têtes de document"
@@ -11936,6 +11986,9 @@ msgstr "Ce lot est expiré et ne peut pas être prélevé."
msgid "This may take a moment. Hang tight."
msgstr "Cela peut prendre un moment. Tenez bon."
+msgid "This Month"
+msgstr "Ce mois"
+
msgid "This page of your Implementation Hub is being built. Start from the command center while we finish it."
msgstr "Cette page de votre Implementation Hub est en cours de construction. Commencez par le centre de commande pendant que nous la finissons."
@@ -11951,6 +12004,9 @@ msgstr "Cette pièce est obsolète (Pas de stock)."
msgid "This part is superseded and set to Stock Only — it's replenished to its spares reserve floor, independent of demand."
msgstr "Cette pièce est obsolète et définie sur Stock Only — elle est réapprovisionnée jusqu'à son plancher de réserve de pièces de rechange, indépendamment de la demande."
+msgid "This Quarter"
+msgstr "Ce trimestre"
+
msgid "This sales order has associated jobs. Choose what to do with them."
msgstr "Cette commande client a des tâches associées. Choisissez ce que vous souhaitez en faire."
@@ -11996,6 +12052,10 @@ msgstr "Ceci annulera la valeur nette comptable restante de l'actif."
msgid "Three-way match"
msgstr "Rapprochement à trois voies"
+#. placeholder {0}: formatDate(endDate)
+msgid "Through {0}"
+msgstr "Jusqu'au {0}"
+
msgid "Thumbnail"
msgstr "Miniature"
diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.po
index bf0f2b0c89..ce3bc2de54 100644
--- a/packages/locale/locales/hi/erp.po
+++ b/packages/locale/locales/hi/erp.po
@@ -84,6 +84,9 @@ msgstr "{chainLabel}. इस भाग को सीधे अंतिम उ
msgid "{count, plural, one {# course} other {# courses}}"
msgstr "{count, plural, one {# कोर्स} other {# कोर्स}}"
+msgid "{from}–{to} of {count}"
+msgstr "{from}–{to} में से {count}"
+
#. placeholder {0}: errors.length
#. placeholder {1}: skipped.length
msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."
@@ -731,6 +734,9 @@ msgstr "सभी पंक्तियाँ आयात की गईं —
msgid "All Suppliers"
msgstr "सभी आपूर्तिकर्ता"
+msgid "All Time"
+msgstr "सभी समय"
+
msgid "All Types"
msgstr "सभी प्रकार"
@@ -871,6 +877,9 @@ msgstr "सभी पर लागू होता है"
msgid "Applies to all work centers"
msgstr "सभी कार्य केंद्रों पर लागू होता है"
+msgid "Apply"
+msgstr "लागू करें"
+
msgid "Apply available credits"
msgstr "उपलब्ध क्रेडिट लागू करें"
@@ -1299,6 +1308,13 @@ msgstr "क्या आप सुनिश्चित हैं?"
msgid "As needed"
msgstr "आवश्यकतानुसार"
+msgid "As of"
+msgstr "के अनुसार"
+
+#. placeholder {0}: formatDate(endDate)
+msgid "As of {0}"
+msgstr "{0} के अनुसार"
+
msgid "As of:"
msgstr "इसके अनुसार:"
@@ -2042,6 +2058,9 @@ msgstr "बंद"
msgid "Closed Date"
msgstr "बंद तारीख"
+msgid "Closing"
+msgstr "समापन"
+
msgid "Closure blocked"
msgstr "बंद करना अवरुद्ध"
@@ -2929,6 +2948,9 @@ msgstr "कस्टम फील्ड्स"
msgid "Custom SOW · we manage"
msgstr "कस्टम SOW · हम प्रबंधित करते हैं"
+msgid "Custom…"
+msgstr "कस्टम…"
+
msgid "customer"
msgstr "ग्राहक"
@@ -3127,9 +3149,6 @@ msgstr "जारी करने की तारीख"
msgid "Date Paid"
msgstr "भुगतान की तारीख"
-msgid "Date Range"
-msgstr "तारीख की सीमा"
-
msgid "Dates"
msgstr "तारीखें"
@@ -3995,9 +4014,6 @@ msgstr "ग्राहक स्थिति संपादित करें
msgid "Edit Customer Type"
msgstr "ग्राहक प्रकार संपादित करें"
-msgid "Edit date range"
-msgstr "तारीख की सीमा संपादित करें"
-
msgid "Edit Department"
msgstr "विभाग संपादित करें"
@@ -4328,6 +4344,15 @@ msgstr "सक्षम"
msgid "End Date"
msgstr "अंतिम तारीख"
+msgid "End of Last Fiscal Year"
+msgstr "पिछले वित्तीय वर्ष का अंत"
+
+msgid "End of Last Month"
+msgstr "पिछले महीने का अंत"
+
+msgid "End of Last Quarter"
+msgstr "पिछली तिमाही का अंत"
+
msgid "End Time"
msgstr "समाप्ति समय"
@@ -4388,6 +4413,9 @@ msgstr "इकाई प्रकार"
msgid "Entity type cannot be changed"
msgstr "इकाई प्रकार को परिवर्तित नहीं किया जा सकता"
+msgid "Entry"
+msgstr "प्रविष्टि"
+
msgid "Entry Type"
msgstr "प्रविष्टि प्रकार"
@@ -5084,6 +5112,9 @@ msgstr "वित्तीय वर्ष"
msgid "Fiscal Year Settings"
msgstr "वित्तीय वर्ष सेटिंग्स"
+msgid "Fiscal Year to Date"
+msgstr "वित्तीय वर्ष से अब तक"
+
msgid "Fiscal Years"
msgstr "वित्तीय वर्ष"
@@ -5157,6 +5188,7 @@ msgstr "आवृत्ति"
msgid "Friday"
msgstr "शुक्रवार"
+#. placeholder {0}: formatDate(startDate)
#. placeholder {0}: routeDataFromRoute.supersession.successorEffectivityDate
msgid "From {0}"
msgstr "{0} से"
@@ -6295,9 +6327,18 @@ msgstr "अंतिम अंशांकन"
msgid "Last Calibration Date"
msgstr "अंतिम अंशांकन तारीख"
+msgid "Last Fiscal Year"
+msgstr "पिछला वित्तीय वर्ष"
+
+msgid "Last Month"
+msgstr "पिछला महीना"
+
msgid "Last Name"
msgstr "अंतिम नाम"
+msgid "Last Quarter"
+msgstr "पिछली तिमाही"
+
#. placeholder {0}: formatDateTime(lastSyncedAt)
msgid "Last synced: {0}"
msgstr "अंतिम सिंक: {0}"
@@ -7105,6 +7146,9 @@ msgstr "नकारात्मक समायोजन"
msgid "Net book value"
msgstr "शुद्ध पुस्तक मूल्य"
+msgid "Net Change"
+msgstr "शुद्ध परिवर्तन"
+
msgid "Never"
msgstr "कभी नहीं"
@@ -7663,6 +7707,9 @@ msgstr "अभी तक कोई आपूर्तिकर्ता नह
msgid "No time entries for this week"
msgstr "इस सप्ताह के लिए कोई समय प्रविष्टि नहीं"
+msgid "No transactions in this period"
+msgstr "इस अवधि में कोई लेनदेन नहीं"
+
msgid "No value needed"
msgstr "कोई मान आवश्यक नहीं"
@@ -7924,6 +7971,9 @@ msgstr "खुले लेनदेन"
msgid "Opened"
msgstr "खुला हुआ"
+msgid "Opening"
+msgstr "शुरुआती"
+
msgid "Opening balance of depreciation already booked before this asset was added to Carbon (use 0 for new acquisitions)."
msgstr "अवक्षयण का खाता खोलने के संतुलन को पहले ही बुक किया गया है इससे पहले कि यह संपत्ति Carbon में जोड़ी गई थी (नई खरीद के लिए 0 का उपयोग करें)।"
@@ -10070,9 +10120,6 @@ msgstr "ग्राहक प्रकार चुनें"
msgid "Select customers"
msgstr "ग्राहकों का चयन करें"
-msgid "Select date range to filter net change and balance at date"
-msgstr "तारीख की सीमा चुनें नेट परिवर्तन और तारीख पर शेष को फ़िल्टर करने के लिए"
-
msgid "Select Employee"
msgstr "कर्मचारी चुनें"
@@ -11900,6 +11947,9 @@ msgstr "यह डाउनलोड लिंक अमान्य है य
msgid "This file is no longer available, or you don't have permission to download it."
msgstr "यह फ़ाइल अब उपलब्ध नहीं है, या आपके पास इसे डाउनलोड करने की अनुमति नहीं है।"
+msgid "This Fiscal Year"
+msgstr "यह वित्तीय वर्ष"
+
msgid "This information will be used on document headers"
msgstr "यह जानकारी दस्तावेज़ शीर्षलेख पर उपयोग की जाएगी"
@@ -11936,6 +11986,9 @@ msgstr "यह लॉट समाप्त हो गया है और इ
msgid "This may take a moment. Hang tight."
msgstr "यह एक पल ले सकता है। धैर्य रखें।"
+msgid "This Month"
+msgstr "इस महीने"
+
msgid "This page of your Implementation Hub is being built. Start from the command center while we finish it."
msgstr "आपके Implementation Hub का यह पृष्ठ बनाया जा रहा है। जब तक हम इसे पूरा करते हैं, command center से शुरू करें।"
@@ -11951,6 +12004,9 @@ msgstr "यह पार्ट अप्रचलित है (स्टॉक
msgid "This part is superseded and set to Stock Only — it's replenished to its spares reserve floor, independent of demand."
msgstr "यह पार्ट अप्रचलित है और Stock Only पर सेट है — इसे इसके स्पेयर रिजर्व फ्लोर तक भरा जाता है, मांग से स्वतंत्र।"
+msgid "This Quarter"
+msgstr "इस त्रैमासिक"
+
msgid "This sales order has associated jobs. Choose what to do with them."
msgstr "इस बिक्रय आदेश के संबंधित कार्य हैं। उनके साथ क्या करना है यह चुनें।"
@@ -11996,6 +12052,10 @@ msgstr "यह संपत्ति के शेष बही मूल्य
msgid "Three-way match"
msgstr "तीन-तरफा मेल"
+#. placeholder {0}: formatDate(endDate)
+msgid "Through {0}"
+msgstr "{0} तक"
+
msgid "Thumbnail"
msgstr "थंबनेल"
diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.po
index d05ba35b35..10300d2943 100644
--- a/packages/locale/locales/it/erp.po
+++ b/packages/locale/locales/it/erp.po
@@ -84,6 +84,9 @@ msgstr "{chainLabel}. Considera di indirizzare direttamente questa parte al succ
msgid "{count, plural, one {# course} other {# courses}}"
msgstr "{count, plural, one {# corso} other {# corsi}}"
+msgid "{from}–{to} of {count}"
+msgstr "{from}–{to} di {count}"
+
#. placeholder {0}: errors.length
#. placeholder {1}: skipped.length
msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."
@@ -731,6 +734,9 @@ msgstr "Tutte le righe importate — {inserted} inserite, {updated} aggiornate."
msgid "All Suppliers"
msgstr "Tutti i fornitori"
+msgid "All Time"
+msgstr "Tutto il tempo"
+
msgid "All Types"
msgstr "Tutti i tipi"
@@ -871,6 +877,9 @@ msgstr "Si applica a tutti"
msgid "Applies to all work centers"
msgstr "Si applica a tutti i centri di lavoro"
+msgid "Apply"
+msgstr "Applica"
+
msgid "Apply available credits"
msgstr "Applica crediti disponibili"
@@ -1299,6 +1308,13 @@ msgstr "Sei sicuro?"
msgid "As needed"
msgstr "Su richiesta"
+msgid "As of"
+msgstr "Al"
+
+#. placeholder {0}: formatDate(endDate)
+msgid "As of {0}"
+msgstr "Al {0}"
+
msgid "As of:"
msgstr "A partire da:"
@@ -2042,6 +2058,9 @@ msgstr "Chiuso"
msgid "Closed Date"
msgstr "Data di chiusura"
+msgid "Closing"
+msgstr "Chiusura"
+
msgid "Closure blocked"
msgstr "Chiusura bloccata"
@@ -2929,6 +2948,9 @@ msgstr "Campi Personalizzati"
msgid "Custom SOW · we manage"
msgstr "Custom SOW · gestiamo noi"
+msgid "Custom…"
+msgstr "Personalizzato…"
+
msgid "customer"
msgstr "cliente"
@@ -3127,9 +3149,6 @@ msgstr "Data di emissione"
msgid "Date Paid"
msgstr "Data Pagamento"
-msgid "Date Range"
-msgstr "Intervallo di date"
-
msgid "Dates"
msgstr "Date"
@@ -3995,9 +4014,6 @@ msgstr "Modifica Stato Cliente"
msgid "Edit Customer Type"
msgstr "Modifica Tipo di Cliente"
-msgid "Edit date range"
-msgstr "Modifica intervallo date"
-
msgid "Edit Department"
msgstr "Modifica Dipartimento"
@@ -4328,6 +4344,15 @@ msgstr "Abilitato"
msgid "End Date"
msgstr "Data di fine"
+msgid "End of Last Fiscal Year"
+msgstr "Fine dell'Ultimo Esercizio Fiscale"
+
+msgid "End of Last Month"
+msgstr "Fine del mese scorso"
+
+msgid "End of Last Quarter"
+msgstr "Fine dell'ultimo trimestre"
+
msgid "End Time"
msgstr "Ora di fine"
@@ -4388,6 +4413,9 @@ msgstr "Tipo di Entità"
msgid "Entity type cannot be changed"
msgstr "Il tipo di entità non può essere modificato"
+msgid "Entry"
+msgstr "Registrazione"
+
msgid "Entry Type"
msgstr "Tipo di Voce"
@@ -5084,6 +5112,9 @@ msgstr "Anno Fiscale"
msgid "Fiscal Year Settings"
msgstr "Impostazioni Anno Fiscale"
+msgid "Fiscal Year to Date"
+msgstr "Anno fiscale a oggi"
+
msgid "Fiscal Years"
msgstr "Anni Fiscali"
@@ -5157,6 +5188,7 @@ msgstr "Frequenza"
msgid "Friday"
msgstr "Venerdì"
+#. placeholder {0}: formatDate(startDate)
#. placeholder {0}: routeDataFromRoute.supersession.successorEffectivityDate
msgid "From {0}"
msgstr "Da {0}"
@@ -6295,9 +6327,18 @@ msgstr "Ultima Calibrazione"
msgid "Last Calibration Date"
msgstr "Data dell'ultima calibrazione"
+msgid "Last Fiscal Year"
+msgstr "Ultimo Esercizio Fiscale"
+
+msgid "Last Month"
+msgstr "Mese Scorso"
+
msgid "Last Name"
msgstr "Cognome"
+msgid "Last Quarter"
+msgstr "Ultimo Trimestre"
+
#. placeholder {0}: formatDateTime(lastSyncedAt)
msgid "Last synced: {0}"
msgstr "Ultimo sincronizzato: {0}"
@@ -7105,6 +7146,9 @@ msgstr "Rettifica Negativa"
msgid "Net book value"
msgstr "Valore Netto Contabile"
+msgid "Net Change"
+msgstr "Variazione netta"
+
msgid "Never"
msgstr "Mai"
@@ -7663,6 +7707,9 @@ msgstr "Nessun fornitore ancora"
msgid "No time entries for this week"
msgstr "Nessuna registrazione oraria per questa settimana"
+msgid "No transactions in this period"
+msgstr "Nessuna transazione in questo periodo"
+
msgid "No value needed"
msgstr "Nessun valore necessario"
@@ -7924,6 +7971,9 @@ msgstr "Transazioni aperte"
msgid "Opened"
msgstr "Aperto"
+msgid "Opening"
+msgstr "Apertura"
+
msgid "Opening balance of depreciation already booked before this asset was added to Carbon (use 0 for new acquisitions)."
msgstr "Saldo di apertura dell'ammortamento già contabilizzato prima dell'aggiunta di questo asset a Carbon (utilizzare 0 per le nuove acquisizioni)."
@@ -10070,9 +10120,6 @@ msgstr "Seleziona tipi di cliente"
msgid "Select customers"
msgstr "Seleziona clienti"
-msgid "Select date range to filter net change and balance at date"
-msgstr "Seleziona l'intervallo di date per filtrare la variazione netta e il saldo alla data"
-
msgid "Select Employee"
msgstr "Seleziona Dipendente"
@@ -11900,6 +11947,9 @@ msgstr "Questo link di download non è valido o è stato manomesso."
msgid "This file is no longer available, or you don't have permission to download it."
msgstr "Questo file non è più disponibile oppure non hai il permesso di scaricarlo."
+msgid "This Fiscal Year"
+msgstr "Questo Anno Fiscale"
+
msgid "This information will be used on document headers"
msgstr "Queste informazioni verranno utilizzate nelle intestazioni dei documenti"
@@ -11936,6 +11986,9 @@ msgstr "Questo lotto è scaduto e non può essere prelevato."
msgid "This may take a moment. Hang tight."
msgstr "Potrebbe volerci un momento. Stai tranquillo."
+msgid "This Month"
+msgstr "Questo Mese"
+
msgid "This page of your Implementation Hub is being built. Start from the command center while we finish it."
msgstr "Questa pagina del tuo Implementation Hub è in fase di costruzione. Inizia dal centro di comando mentre la completiamo."
@@ -11951,6 +12004,9 @@ msgstr "Questo pezzo è obsoleto (Nessun Stock)."
msgid "This part is superseded and set to Stock Only — it's replenished to its spares reserve floor, independent of demand."
msgstr "Questa parte è superata e impostata su Solo Stock — viene reintegrata al suo livello di riserva di ricambi, indipendentemente dalla domanda."
+msgid "This Quarter"
+msgstr "Questo Trimestre"
+
msgid "This sales order has associated jobs. Choose what to do with them."
msgstr "Questo ordine di vendita ha processi associati. Scegli cosa fare con loro."
@@ -11996,6 +12052,10 @@ msgstr "Questo cancellerà il valore netto contabile rimanente dell'asset."
msgid "Three-way match"
msgstr "Riconciliazione a tre vie"
+#. placeholder {0}: formatDate(endDate)
+msgid "Through {0}"
+msgstr "Fino a {0}"
+
msgid "Thumbnail"
msgstr "Miniatura"
diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.po
index 1ebf63b7c7..421d50e2e4 100644
--- a/packages/locale/locales/ja/erp.po
+++ b/packages/locale/locales/ja/erp.po
@@ -84,6 +84,9 @@ msgstr "{chainLabel}。このパーツを最終的な後継品に直接指定す
msgid "{count, plural, one {# course} other {# courses}}"
msgstr "{count, plural, one {# コース} other {# コース}}"
+msgid "{from}–{to} of {count}"
+msgstr "{from}–{to} / {count}"
+
#. placeholder {0}: errors.length
#. placeholder {1}: skipped.length
msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."
@@ -731,6 +734,9 @@ msgstr "すべての行をインポート—{inserted}行挿入、{updated}行
msgid "All Suppliers"
msgstr "すべてのサプライヤー"
+msgid "All Time"
+msgstr "すべての期間"
+
msgid "All Types"
msgstr "すべてのタイプ"
@@ -871,6 +877,9 @@ msgstr "すべてに適用"
msgid "Applies to all work centers"
msgstr "すべてのワークセンターに適用"
+msgid "Apply"
+msgstr "適用"
+
msgid "Apply available credits"
msgstr "利用可能なクレジットを適用"
@@ -1299,6 +1308,13 @@ msgstr "本当ですか?"
msgid "As needed"
msgstr "必要に応じて"
+msgid "As of"
+msgstr "現在時点で"
+
+#. placeholder {0}: formatDate(endDate)
+msgid "As of {0}"
+msgstr "{0}時点で"
+
msgid "As of:"
msgstr "以下の日付時点:"
@@ -2042,6 +2058,9 @@ msgstr "クローズ"
msgid "Closed Date"
msgstr "終了日"
+msgid "Closing"
+msgstr "終了残高"
+
msgid "Closure blocked"
msgstr "完了がブロックされています"
@@ -2929,6 +2948,9 @@ msgstr "カスタムフィールド"
msgid "Custom SOW · we manage"
msgstr "カスタムSOW · 当社が管理"
+msgid "Custom…"
+msgstr "カスタム…"
+
msgid "customer"
msgstr "顧客"
@@ -3127,9 +3149,6 @@ msgstr "発行日"
msgid "Date Paid"
msgstr "支払日"
-msgid "Date Range"
-msgstr "日付範囲"
-
msgid "Dates"
msgstr "日付"
@@ -3995,9 +4014,6 @@ msgstr "顧客ステータスを編集"
msgid "Edit Customer Type"
msgstr "顧客タイプを編集"
-msgid "Edit date range"
-msgstr "日付範囲を編集"
-
msgid "Edit Department"
msgstr "部門を編集"
@@ -4328,6 +4344,15 @@ msgstr "有効"
msgid "End Date"
msgstr "終了日"
+msgid "End of Last Fiscal Year"
+msgstr "前会計年度末"
+
+msgid "End of Last Month"
+msgstr "先月末"
+
+msgid "End of Last Quarter"
+msgstr "前四半期末"
+
msgid "End Time"
msgstr "終了時刻"
@@ -4388,6 +4413,9 @@ msgstr "エンティティタイプ"
msgid "Entity type cannot be changed"
msgstr "エンティティタイプは変更できません"
+msgid "Entry"
+msgstr "仕訳"
+
msgid "Entry Type"
msgstr "エントリータイプ"
@@ -5084,6 +5112,9 @@ msgstr "会計年度"
msgid "Fiscal Year Settings"
msgstr "会計年度設定"
+msgid "Fiscal Year to Date"
+msgstr "会計年度初めから現在まで"
+
msgid "Fiscal Years"
msgstr "会計年度"
@@ -5157,6 +5188,7 @@ msgstr "頻度"
msgid "Friday"
msgstr "金曜日"
+#. placeholder {0}: formatDate(startDate)
#. placeholder {0}: routeDataFromRoute.supersession.successorEffectivityDate
msgid "From {0}"
msgstr "{0}から"
@@ -6295,9 +6327,18 @@ msgstr "最後のキャリブレーション"
msgid "Last Calibration Date"
msgstr "最後のキャリブレーション日"
+msgid "Last Fiscal Year"
+msgstr "前年度"
+
+msgid "Last Month"
+msgstr "先月"
+
msgid "Last Name"
msgstr "姓"
+msgid "Last Quarter"
+msgstr "前四半期"
+
#. placeholder {0}: formatDateTime(lastSyncedAt)
msgid "Last synced: {0}"
msgstr "最後に同期: {0}"
@@ -7105,6 +7146,9 @@ msgstr "負の調整"
msgid "Net book value"
msgstr "純簿価額"
+msgid "Net Change"
+msgstr "純変化"
+
msgid "Never"
msgstr "なし"
@@ -7663,6 +7707,9 @@ msgstr "まだサプライヤーがありません"
msgid "No time entries for this week"
msgstr "今週のタイムエントリがありません"
+msgid "No transactions in this period"
+msgstr "この期間に取引がありません"
+
msgid "No value needed"
msgstr "値が不要です"
@@ -7924,6 +7971,9 @@ msgstr "未処理トランザクション"
msgid "Opened"
msgstr "開いている"
+msgid "Opening"
+msgstr "開始残高"
+
msgid "Opening balance of depreciation already booked before this asset was added to Carbon (use 0 for new acquisitions)."
msgstr "このアセットがCarbonに追加される前に既に予約されていた減価償却の期首残高(新規取得の場合は0を使用してください)。"
@@ -10070,9 +10120,6 @@ msgstr "顧客タイプを選択"
msgid "Select customers"
msgstr "顧客を選択"
-msgid "Select date range to filter net change and balance at date"
-msgstr "日付範囲を選択して、純変化と日付時点の残高をフィルタリングします"
-
msgid "Select Employee"
msgstr "従業員を選択"
@@ -11900,6 +11947,9 @@ msgstr "このダウンロードリンクは無効であるか、改ざんされ
msgid "This file is no longer available, or you don't have permission to download it."
msgstr "このファイルは利用できなくなっているか、ダウンロード権限がありません。"
+msgid "This Fiscal Year"
+msgstr "この会計年度"
+
msgid "This information will be used on document headers"
msgstr "この情報はドキュメントヘッダーで使用されます"
@@ -11936,6 +11986,9 @@ msgstr "このロットは期限切れであり、ピックできません。"
msgid "This may take a moment. Hang tight."
msgstr "これには少し時間がかかる場合があります。お待ちください。"
+msgid "This Month"
+msgstr "今月"
+
msgid "This page of your Implementation Hub is being built. Start from the command center while we finish it."
msgstr "このページのImplementation Hubは現在構築中です。完成するまでコマンドセンターから始めてください。"
@@ -11951,6 +12004,9 @@ msgstr "このパーツは廃止されています(在庫なし)。"
msgid "This part is superseded and set to Stock Only — it's replenished to its spares reserve floor, independent of demand."
msgstr "このパーツは廃止予定であり、「Stock Only」に設定されています。予備部品の予備フロアまで補充され、需要とは無関係に運用されます。"
+msgid "This Quarter"
+msgstr "今四半期"
+
msgid "This sales order has associated jobs. Choose what to do with them."
msgstr "この販売注文には関連するジョブがあります。それらをどうするかを選択してください。"
@@ -11996,6 +12052,10 @@ msgstr "これはアセットの残りの帳簿価額を償却します。"
msgid "Three-way match"
msgstr "3者照合"
+#. placeholder {0}: formatDate(endDate)
+msgid "Through {0}"
+msgstr "{0}まで"
+
msgid "Thumbnail"
msgstr "サムネイル"
diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.po
index 6435af6f84..038de26557 100644
--- a/packages/locale/locales/pl/erp.po
+++ b/packages/locale/locales/pl/erp.po
@@ -84,6 +84,9 @@ msgstr "{chainLabel}. Rozważ wskazanie tej części bezpośrednio na ostateczne
msgid "{count, plural, one {# course} other {# courses}}"
msgstr "{count, plural, one {# kurs} other {# kursy}}"
+msgid "{from}–{to} of {count}"
+msgstr "{from}–{to} z {count}"
+
#. placeholder {0}: errors.length
#. placeholder {1}: skipped.length
msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."
@@ -731,6 +734,9 @@ msgstr "Wszystkie wiersze zaimportowane — {inserted} wstawiono, {updated} zakt
msgid "All Suppliers"
msgstr "Wszyscy dostawcy"
+msgid "All Time"
+msgstr "Cały czas"
+
msgid "All Types"
msgstr "Wszystkie typy"
@@ -871,6 +877,9 @@ msgstr "Dotyczy wszystkich"
msgid "Applies to all work centers"
msgstr "Dotyczy wszystkich centrów pracy"
+msgid "Apply"
+msgstr "Zastosuj"
+
msgid "Apply available credits"
msgstr "Zastosuj dostępne kredyty"
@@ -1299,6 +1308,13 @@ msgstr "Jesteś pewny?"
msgid "As needed"
msgstr "W razie potrzeby"
+msgid "As of"
+msgstr "Na dzień"
+
+#. placeholder {0}: formatDate(endDate)
+msgid "As of {0}"
+msgstr "Od {0}"
+
msgid "As of:"
msgstr "Na dzień:"
@@ -2042,6 +2058,9 @@ msgstr "Zamknięty"
msgid "Closed Date"
msgstr "Data zamknięcia"
+msgid "Closing"
+msgstr "Zamknięcie"
+
msgid "Closure blocked"
msgstr "Zamknięcie zablokowane"
@@ -2929,6 +2948,9 @@ msgstr "Pola niestandardowe"
msgid "Custom SOW · we manage"
msgstr "Niestandardowy SOW · zarządzamy"
+msgid "Custom…"
+msgstr "Niestandardowe…"
+
msgid "customer"
msgstr "klient"
@@ -3127,9 +3149,6 @@ msgstr "Data wystawienia"
msgid "Date Paid"
msgstr "Data zapłaty"
-msgid "Date Range"
-msgstr "Zakres dat"
-
msgid "Dates"
msgstr "Daty"
@@ -3995,9 +4014,6 @@ msgstr "Edytuj status klienta"
msgid "Edit Customer Type"
msgstr "Edytuj typ klienta"
-msgid "Edit date range"
-msgstr "Edytuj zakres dat"
-
msgid "Edit Department"
msgstr "Edytuj Dział"
@@ -4328,6 +4344,15 @@ msgstr "Włączone"
msgid "End Date"
msgstr "Data końcowa"
+msgid "End of Last Fiscal Year"
+msgstr "Koniec ostatniego roku obrachunkowego"
+
+msgid "End of Last Month"
+msgstr "Koniec ostatniego miesiąca"
+
+msgid "End of Last Quarter"
+msgstr "Koniec ostatniego kwartału"
+
msgid "End Time"
msgstr "Czas zakończenia"
@@ -4388,6 +4413,9 @@ msgstr "Typ Jednostki"
msgid "Entity type cannot be changed"
msgstr "Typ jednostki nie może być zmieniony"
+msgid "Entry"
+msgstr "Wpis"
+
msgid "Entry Type"
msgstr "Typ wpisu"
@@ -5084,6 +5112,9 @@ msgstr "Rok obrachunkowy"
msgid "Fiscal Year Settings"
msgstr "Ustawienia roku obrachunkowego"
+msgid "Fiscal Year to Date"
+msgstr "Od początku roku obrachunkowego"
+
msgid "Fiscal Years"
msgstr "Lata obrachunkowe"
@@ -5157,6 +5188,7 @@ msgstr "Częstotliwość"
msgid "Friday"
msgstr "Piątek"
+#. placeholder {0}: formatDate(startDate)
#. placeholder {0}: routeDataFromRoute.supersession.successorEffectivityDate
msgid "From {0}"
msgstr "Od {0}"
@@ -6295,9 +6327,18 @@ msgstr "Ostatnia Kalibracja"
msgid "Last Calibration Date"
msgstr "Data ostatniej kalibracji"
+msgid "Last Fiscal Year"
+msgstr "Ostatni rok obrachunkowy"
+
+msgid "Last Month"
+msgstr "Ostatni miesiąc"
+
msgid "Last Name"
msgstr "Nazwisko"
+msgid "Last Quarter"
+msgstr "Ostatni kwartał"
+
#. placeholder {0}: formatDateTime(lastSyncedAt)
msgid "Last synced: {0}"
msgstr "Ostatnia synchronizacja: {0}"
@@ -7105,6 +7146,9 @@ msgstr "Ujemna Korekta"
msgid "Net book value"
msgstr "Wartość Netto w Księdze"
+msgid "Net Change"
+msgstr "Zmiana netto"
+
msgid "Never"
msgstr "Nigdy"
@@ -7663,6 +7707,9 @@ msgstr "Brak dostawców"
msgid "No time entries for this week"
msgstr "Brak wpisów czasu pracy w tym tygodniu"
+msgid "No transactions in this period"
+msgstr "Brak transakcji w tym okresie"
+
msgid "No value needed"
msgstr "Wartość nie jest wymagana"
@@ -7924,6 +7971,9 @@ msgstr "Otwarte transakcje"
msgid "Opened"
msgstr "Otwarty"
+msgid "Opening"
+msgstr "Otwarcie"
+
msgid "Opening balance of depreciation already booked before this asset was added to Carbon (use 0 for new acquisitions)."
msgstr "Saldo otwarcia amortyzacji już zaksięgowanej przed dodaniem tego zasobu do Carbon (użyj 0 dla nowych przejęć)."
@@ -10070,9 +10120,6 @@ msgstr "Wybierz typy klientów"
msgid "Select customers"
msgstr "Wybierz klientów"
-msgid "Select date range to filter net change and balance at date"
-msgstr "Wybierz zakres dat, aby filtrować zmianę netto i saldo na dzień"
-
msgid "Select Employee"
msgstr "Wybierz pracownika"
@@ -11900,6 +11947,9 @@ msgstr "Ten link pobierania jest nieprawidłowy lub został zmieniony."
msgid "This file is no longer available, or you don't have permission to download it."
msgstr "Ten plik nie jest już dostępny lub nie masz uprawnień do jego pobrania."
+msgid "This Fiscal Year"
+msgstr "Ten rok obrachunkowy"
+
msgid "This information will be used on document headers"
msgstr "Te informacje będą używane w nagłówkach dokumentów"
@@ -11936,6 +11986,9 @@ msgstr "Ta partia wygasła i nie można jej pobrać."
msgid "This may take a moment. Hang tight."
msgstr "To może chwilę potrwać. Czekaj cierpliwie."
+msgid "This Month"
+msgstr "Ten miesiąc"
+
msgid "This page of your Implementation Hub is being built. Start from the command center while we finish it."
msgstr "Ta strona Twojego Implementation Hub jest w trakcie budowy. Zacznij od centrum poleceń, podczas gdy ją dokańczamy."
@@ -11951,6 +12004,9 @@ msgstr "Ta część jest przestarzała (Brak zapasu)."
msgid "This part is superseded and set to Stock Only — it's replenished to its spares reserve floor, independent of demand."
msgstr "Ta część jest zastąpiona i ustawiona na Stock Only — jest uzupełniana do poziomu rezerwy części zamiennych, niezależnie od popytu."
+msgid "This Quarter"
+msgstr "Ten Kwartał"
+
msgid "This sales order has associated jobs. Choose what to do with them."
msgstr "To zamówienie sprzedaży ma powiązane zadania. Wybierz, co z nimi zrobić."
@@ -11996,6 +12052,10 @@ msgstr "Spowoduje to wpisanie pozostałej wartości netto w księgach zasobu."
msgid "Three-way match"
msgstr "Pojednanie trójstronnie"
+#. placeholder {0}: formatDate(endDate)
+msgid "Through {0}"
+msgstr "Do {0}"
+
msgid "Thumbnail"
msgstr "Miniatura"
diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.po
index 484e3eff0a..ffe6bb21ec 100644
--- a/packages/locale/locales/pt/erp.po
+++ b/packages/locale/locales/pt/erp.po
@@ -84,6 +84,9 @@ msgstr "{chainLabel}. Considere apontar esta peça diretamente para o sucessor f
msgid "{count, plural, one {# course} other {# courses}}"
msgstr "{count, plural, one {# curso} other {# cursos}}"
+msgid "{from}–{to} of {count}"
+msgstr "{from}–{to} de {count}"
+
#. placeholder {0}: errors.length
#. placeholder {1}: skipped.length
msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."
@@ -731,6 +734,9 @@ msgstr "Todas as linhas importadas — {inserted} inseridas, {updated} atualizad
msgid "All Suppliers"
msgstr "Todos os Fornecedores"
+msgid "All Time"
+msgstr "Sempre"
+
msgid "All Types"
msgstr "Todos os Tipos"
@@ -871,6 +877,9 @@ msgstr "Aplica-se a todos"
msgid "Applies to all work centers"
msgstr "Aplica-se a todos os centros de trabalho"
+msgid "Apply"
+msgstr "Aplicar"
+
msgid "Apply available credits"
msgstr "Aplicar créditos disponíveis"
@@ -1299,6 +1308,13 @@ msgstr "Tem a certeza?"
msgid "As needed"
msgstr "Conforme necessário"
+msgid "As of"
+msgstr "A partir de"
+
+#. placeholder {0}: formatDate(endDate)
+msgid "As of {0}"
+msgstr "A partir de {0}"
+
msgid "As of:"
msgstr "A partir de:"
@@ -2042,6 +2058,9 @@ msgstr "Fechado"
msgid "Closed Date"
msgstr "Data de Encerramento"
+msgid "Closing"
+msgstr "Encerramento"
+
msgid "Closure blocked"
msgstr "Encerramento bloqueado"
@@ -2929,6 +2948,9 @@ msgstr "Campos Personalizados"
msgid "Custom SOW · we manage"
msgstr "SOW personalizado · gerenciamos"
+msgid "Custom…"
+msgstr "Personalizado…"
+
msgid "customer"
msgstr "cliente"
@@ -3127,9 +3149,6 @@ msgstr "Data de Emissão"
msgid "Date Paid"
msgstr "Data de Pagamento"
-msgid "Date Range"
-msgstr "Intervalo de Datas"
-
msgid "Dates"
msgstr "Datas"
@@ -3995,9 +4014,6 @@ msgstr "Editar Status do Cliente"
msgid "Edit Customer Type"
msgstr "Editar Tipo de Cliente"
-msgid "Edit date range"
-msgstr "Editar intervalo de datas"
-
msgid "Edit Department"
msgstr "Editar Departamento"
@@ -4328,6 +4344,15 @@ msgstr "Ativado"
msgid "End Date"
msgstr "Data Final"
+msgid "End of Last Fiscal Year"
+msgstr "Fim do Último Ano Fiscal"
+
+msgid "End of Last Month"
+msgstr "Fim do Mês Anterior"
+
+msgid "End of Last Quarter"
+msgstr "Fim do Trimestre Anterior"
+
msgid "End Time"
msgstr "Hora de Término"
@@ -4388,6 +4413,9 @@ msgstr "Tipo de Entidade"
msgid "Entity type cannot be changed"
msgstr "O tipo de entidade não pode ser alterado"
+msgid "Entry"
+msgstr "Lançamento"
+
msgid "Entry Type"
msgstr "Tipo de Entrada"
@@ -5084,6 +5112,9 @@ msgstr "Ano Fiscal"
msgid "Fiscal Year Settings"
msgstr "Configurações do Ano Fiscal"
+msgid "Fiscal Year to Date"
+msgstr "Ano Fiscal até Hoje"
+
msgid "Fiscal Years"
msgstr "Anos Fiscais"
@@ -5157,6 +5188,7 @@ msgstr "Frequência"
msgid "Friday"
msgstr "Sexta-feira"
+#. placeholder {0}: formatDate(startDate)
#. placeholder {0}: routeDataFromRoute.supersession.successorEffectivityDate
msgid "From {0}"
msgstr "De {0}"
@@ -6295,9 +6327,18 @@ msgstr "Última Calibração"
msgid "Last Calibration Date"
msgstr "Data da Última Calibração"
+msgid "Last Fiscal Year"
+msgstr "Último Ano Fiscal"
+
+msgid "Last Month"
+msgstr "Mês Passado"
+
msgid "Last Name"
msgstr "Sobrenome"
+msgid "Last Quarter"
+msgstr "Último Trimestre"
+
#. placeholder {0}: formatDateTime(lastSyncedAt)
msgid "Last synced: {0}"
msgstr "Última sincronização: {0}"
@@ -7105,6 +7146,9 @@ msgstr "Ajuste Negativo"
msgid "Net book value"
msgstr "Valor Líquido Contábil"
+msgid "Net Change"
+msgstr "Alteração Líquida"
+
msgid "Never"
msgstr "Nunca"
@@ -7663,6 +7707,9 @@ msgstr "Nenhum fornecedor ainda"
msgid "No time entries for this week"
msgstr "Sem registros de tempo para esta semana"
+msgid "No transactions in this period"
+msgstr "Nenhuma transação neste período"
+
msgid "No value needed"
msgstr "Nenhum valor necessário"
@@ -7924,6 +7971,9 @@ msgstr "Transações abertas"
msgid "Opened"
msgstr "Aberto"
+msgid "Opening"
+msgstr "Abertura"
+
msgid "Opening balance of depreciation already booked before this asset was added to Carbon (use 0 for new acquisitions)."
msgstr "Saldo de abertura da depreciação já contabilizada antes de este ativo ser adicionado ao Carbon (use 0 para novas aquisições)."
@@ -10070,9 +10120,6 @@ msgstr "Selecionar tipos de cliente"
msgid "Select customers"
msgstr "Selecionar clientes"
-msgid "Select date range to filter net change and balance at date"
-msgstr "Selecione o intervalo de datas para filtrar a alteração líquida e o saldo na data"
-
msgid "Select Employee"
msgstr "Selecionar Funcionário"
@@ -11900,6 +11947,9 @@ msgstr "Este link de download é inválido ou foi alterado."
msgid "This file is no longer available, or you don't have permission to download it."
msgstr "Este arquivo não está mais disponível, ou você não tem permissão para baixá-lo."
+msgid "This Fiscal Year"
+msgstr "Este Ano Fiscal"
+
msgid "This information will be used on document headers"
msgstr "Esta informação será usada nos cabeçalhos de documentos"
@@ -11936,6 +11986,9 @@ msgstr "Este lote expirou e não pode ser selecionado."
msgid "This may take a moment. Hang tight."
msgstr "Isto pode levar um momento. Aguarde."
+msgid "This Month"
+msgstr "Este Mês"
+
msgid "This page of your Implementation Hub is being built. Start from the command center while we finish it."
msgstr "Esta página do seu Implementation Hub está sendo construída. Comece pelo centro de comando enquanto terminamos."
@@ -11951,6 +12004,9 @@ msgstr "Esta peça está obsoleta (Sem Estoque)."
msgid "This part is superseded and set to Stock Only — it's replenished to its spares reserve floor, independent of demand."
msgstr "Esta peça foi substituída e configurada como Stock Only — é reabastecida até seu piso de reserva de peças de reposição, independentemente da demanda."
+msgid "This Quarter"
+msgstr "Este Trimestre"
+
msgid "This sales order has associated jobs. Choose what to do with them."
msgstr "Esta ordem de venda tem trabalhos associados. Escolha o que fazer com eles."
@@ -11996,6 +12052,10 @@ msgstr "Isto removerá o valor líquido contábil restante do ativo."
msgid "Three-way match"
msgstr "Reconciliação de três vias"
+#. placeholder {0}: formatDate(endDate)
+msgid "Through {0}"
+msgstr "Até {0}"
+
msgid "Thumbnail"
msgstr "Miniatura"
diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.po
index 78980b9e79..5efb9e3210 100644
--- a/packages/locale/locales/ru/erp.po
+++ b/packages/locale/locales/ru/erp.po
@@ -84,6 +84,9 @@ msgstr "{chainLabel}. Рассмотрите возможность указан
msgid "{count, plural, one {# course} other {# courses}}"
msgstr "{count, plural, one {# курс} other {# курсов}}"
+msgid "{from}–{to} of {count}"
+msgstr "{from}–{to} из {count}"
+
#. placeholder {0}: errors.length
#. placeholder {1}: skipped.length
msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."
@@ -731,6 +734,9 @@ msgstr "Все строки импортированы — {inserted} встав
msgid "All Suppliers"
msgstr "Все поставщики"
+msgid "All Time"
+msgstr "Все время"
+
msgid "All Types"
msgstr "Все типы"
@@ -871,6 +877,9 @@ msgstr "Применяется ко всем"
msgid "Applies to all work centers"
msgstr "Применяется ко всем рабочим центрам"
+msgid "Apply"
+msgstr "Применить"
+
msgid "Apply available credits"
msgstr "Применить доступные кредиты"
@@ -1299,6 +1308,13 @@ msgstr "Вы уверены?"
msgid "As needed"
msgstr "По мере необходимости"
+msgid "As of"
+msgstr "На дату"
+
+#. placeholder {0}: formatDate(endDate)
+msgid "As of {0}"
+msgstr "По состоянию на {0}"
+
msgid "As of:"
msgstr "По состоянию на:"
@@ -2042,6 +2058,9 @@ msgstr "Закрыто"
msgid "Closed Date"
msgstr "Дата закрытия"
+msgid "Closing"
+msgstr "Закрытие"
+
msgid "Closure blocked"
msgstr "Закрытие заблокировано"
@@ -2929,6 +2948,9 @@ msgstr "Пользовательские поля"
msgid "Custom SOW · we manage"
msgstr "Пользовательское SOW · мы управляем"
+msgid "Custom…"
+msgstr "Пользовательский…"
+
msgid "customer"
msgstr "клиент"
@@ -3127,9 +3149,6 @@ msgstr "Дата выпуска"
msgid "Date Paid"
msgstr "Дата оплаты"
-msgid "Date Range"
-msgstr "Диапазон дат"
-
msgid "Dates"
msgstr "Даты"
@@ -3995,9 +4014,6 @@ msgstr "Редактировать статус клиента"
msgid "Edit Customer Type"
msgstr "Редактировать тип клиента"
-msgid "Edit date range"
-msgstr "Изменить диапазон дат"
-
msgid "Edit Department"
msgstr "Редактировать отдел"
@@ -4328,6 +4344,15 @@ msgstr "Включено"
msgid "End Date"
msgstr "Дата окончания"
+msgid "End of Last Fiscal Year"
+msgstr "Конец последнего финансового года"
+
+msgid "End of Last Month"
+msgstr "Конец последнего месяца"
+
+msgid "End of Last Quarter"
+msgstr "Конец последнего квартала"
+
msgid "End Time"
msgstr "Время окончания"
@@ -4388,6 +4413,9 @@ msgstr "Тип Сущности"
msgid "Entity type cannot be changed"
msgstr "Тип сущности не может быть изменён"
+msgid "Entry"
+msgstr "Запись"
+
msgid "Entry Type"
msgstr "Тип записи"
@@ -5084,6 +5112,9 @@ msgstr "Финансовый год"
msgid "Fiscal Year Settings"
msgstr "Параметры финансового года"
+msgid "Fiscal Year to Date"
+msgstr "Финансовый год на сегодняшний день"
+
msgid "Fiscal Years"
msgstr "Финансовые годы"
@@ -5157,6 +5188,7 @@ msgstr "Частота"
msgid "Friday"
msgstr "Пятница"
+#. placeholder {0}: formatDate(startDate)
#. placeholder {0}: routeDataFromRoute.supersession.successorEffectivityDate
msgid "From {0}"
msgstr "С {0}"
@@ -6295,9 +6327,18 @@ msgstr "Последняя калибровка"
msgid "Last Calibration Date"
msgstr "Дата последней калибровки"
+msgid "Last Fiscal Year"
+msgstr "Прошлый финансовый год"
+
+msgid "Last Month"
+msgstr "Прошлый месяц"
+
msgid "Last Name"
msgstr "Фамилия"
+msgid "Last Quarter"
+msgstr "Последний квартал"
+
#. placeholder {0}: formatDateTime(lastSyncedAt)
msgid "Last synced: {0}"
msgstr "Последняя синхронизация: {0}"
@@ -7105,6 +7146,9 @@ msgstr "Отрицательная корректировка"
msgid "Net book value"
msgstr "Чистая балансовая стоимость"
+msgid "Net Change"
+msgstr "Чистое изменение"
+
msgid "Never"
msgstr "Никогда"
@@ -7663,6 +7707,9 @@ msgstr "Поставщиков еще нет"
msgid "No time entries for this week"
msgstr "Нет записей о времени на эту неделю"
+msgid "No transactions in this period"
+msgstr "Нет транзакций в этом периоде"
+
msgid "No value needed"
msgstr "Значение не требуется"
@@ -7924,6 +7971,9 @@ msgstr "Открытые транзакции"
msgid "Opened"
msgstr "Открыт"
+msgid "Opening"
+msgstr "Открытие"
+
msgid "Opening balance of depreciation already booked before this asset was added to Carbon (use 0 for new acquisitions)."
msgstr "Начальный баланс амортизации, уже учтенный до добавления этого актива в Carbon (используйте 0 для новых приобретений)."
@@ -10070,9 +10120,6 @@ msgstr "Выберите типы клиентов"
msgid "Select customers"
msgstr "Выберите клиентов"
-msgid "Select date range to filter net change and balance at date"
-msgstr "Выберите диапазон дат для фильтрации чистого изменения и баланса на дату"
-
msgid "Select Employee"
msgstr "Выберите сотрудника"
@@ -11900,6 +11947,9 @@ msgstr "Эта ссылка для скачивания недействител
msgid "This file is no longer available, or you don't have permission to download it."
msgstr "Этот файл больше не доступен, или у вас нет разрешения на его загрузку."
+msgid "This Fiscal Year"
+msgstr "Этот финансовый год"
+
msgid "This information will be used on document headers"
msgstr "Эта информация будет использована в заголовках документов"
@@ -11936,6 +11986,9 @@ msgstr "Эта партия истекла и не может быть выбр
msgid "This may take a moment. Hang tight."
msgstr "Это может занять некоторое время. Не волнуйтесь."
+msgid "This Month"
+msgstr "Этот месяц"
+
msgid "This page of your Implementation Hub is being built. Start from the command center while we finish it."
msgstr "Эта страница вашего Implementation Hub находится в разработке. Начните с командного центра, пока мы её завершаем."
@@ -11951,6 +12004,9 @@ msgstr "Эта деталь снята с производства (нет в н
msgid "This part is superseded and set to Stock Only — it's replenished to its spares reserve floor, independent of demand."
msgstr "Эта деталь снята с производства и установлена в режим «Только запас» — она пополняется до минимального уровня резервного запаса независимо от спроса."
+msgid "This Quarter"
+msgstr "Этот квартал"
+
msgid "This sales order has associated jobs. Choose what to do with them."
msgstr "Этот заказ на продажу имеет связанные работы. Выберите, что с ними делать."
@@ -11996,6 +12052,10 @@ msgstr "Это спишет оставшуюся чистую балансову
msgid "Three-way match"
msgstr "Трёхсторонняя сверка"
+#. placeholder {0}: formatDate(endDate)
+msgid "Through {0}"
+msgstr "До {0}"
+
msgid "Thumbnail"
msgstr "Миниатюра"
diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.po
index 5511c48176..d1bb268af3 100644
--- a/packages/locale/locales/tr/erp.po
+++ b/packages/locale/locales/tr/erp.po
@@ -84,6 +84,9 @@ msgstr "{chainLabel}. Bu parçayı doğrudan son halefine yönlendirmeyi düşü
msgid "{count, plural, one {# course} other {# courses}}"
msgstr "{count, plural, one {# kurs} other {# kurs}}"
+msgid "{from}–{to} of {count}"
+msgstr "{from}–{to} / {count}"
+
#. placeholder {0}: errors.length
#. placeholder {1}: skipped.length
msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."
@@ -731,6 +734,9 @@ msgstr "{inserted} eklendi, {updated} güncellendi — tüm satırlar içe aktar
msgid "All Suppliers"
msgstr "Tüm Tedarikçiler"
+msgid "All Time"
+msgstr "Her Zaman"
+
msgid "All Types"
msgstr "Tüm Türler"
@@ -871,6 +877,9 @@ msgstr "Tümüne uygulanır"
msgid "Applies to all work centers"
msgstr "Tüm iş merkezlerine uygulanır"
+msgid "Apply"
+msgstr "Uygula"
+
msgid "Apply available credits"
msgstr "Mevcut kredileri uygula"
@@ -1299,6 +1308,13 @@ msgstr "Emin misiniz?"
msgid "As needed"
msgstr "Gerektiğinde"
+msgid "As of"
+msgstr "Itibaren"
+
+#. placeholder {0}: formatDate(endDate)
+msgid "As of {0}"
+msgstr "{0} itibariyle"
+
msgid "As of:"
msgstr "Şu tarih itibariyle:"
@@ -2042,6 +2058,9 @@ msgstr "Kapalı"
msgid "Closed Date"
msgstr "Kapatma Tarihi"
+msgid "Closing"
+msgstr "Kapanış"
+
msgid "Closure blocked"
msgstr "Kapanış engellendi"
@@ -2929,6 +2948,9 @@ msgstr "Özel Alanlar"
msgid "Custom SOW · we manage"
msgstr "Özel SOW · biz yönetiriz"
+msgid "Custom…"
+msgstr "Özel…"
+
msgid "customer"
msgstr "müşteri"
@@ -3127,9 +3149,6 @@ msgstr "Düzenleme Tarihi"
msgid "Date Paid"
msgstr "Ödeme Tarihi"
-msgid "Date Range"
-msgstr "Tarih Aralığı"
-
msgid "Dates"
msgstr "Tarihler"
@@ -3995,9 +4014,6 @@ msgstr "Müşteri Durumunu Düzenle"
msgid "Edit Customer Type"
msgstr "Müşteri Tipini Düzenle"
-msgid "Edit date range"
-msgstr "Tarih aralığını düzenle"
-
msgid "Edit Department"
msgstr "Departmanı Düzenle"
@@ -4328,6 +4344,15 @@ msgstr "Etkinleştirilmiş"
msgid "End Date"
msgstr "Bitiş Tarihi"
+msgid "End of Last Fiscal Year"
+msgstr "Son Mali Yılın Sonu"
+
+msgid "End of Last Month"
+msgstr "Geçen Ayın Sonu"
+
+msgid "End of Last Quarter"
+msgstr "Son Çeyreğin Sonu"
+
msgid "End Time"
msgstr "Bitiş Saati"
@@ -4388,6 +4413,9 @@ msgstr "Varlık Türü"
msgid "Entity type cannot be changed"
msgstr "Varlık türü değiştirilemez"
+msgid "Entry"
+msgstr "Giriş"
+
msgid "Entry Type"
msgstr "Giriş Türü"
@@ -5084,6 +5112,9 @@ msgstr "Mali Yılı"
msgid "Fiscal Year Settings"
msgstr "Mali Yılı Ayarları"
+msgid "Fiscal Year to Date"
+msgstr "Mali Yıldan Bugüne"
+
msgid "Fiscal Years"
msgstr "Mali Yıllar"
@@ -5157,6 +5188,7 @@ msgstr "Sıklık"
msgid "Friday"
msgstr "Cuma"
+#. placeholder {0}: formatDate(startDate)
#. placeholder {0}: routeDataFromRoute.supersession.successorEffectivityDate
msgid "From {0}"
msgstr "{0} tarihinden itibaren"
@@ -6295,9 +6327,18 @@ msgstr "Son Kalibrasyon"
msgid "Last Calibration Date"
msgstr "Son Kalibrasyon Tarihi"
+msgid "Last Fiscal Year"
+msgstr "Son Mali Yıl"
+
+msgid "Last Month"
+msgstr "Geçen Ay"
+
msgid "Last Name"
msgstr "Soyadı"
+msgid "Last Quarter"
+msgstr "Son Çeyrek"
+
#. placeholder {0}: formatDateTime(lastSyncedAt)
msgid "Last synced: {0}"
msgstr "Son senkronize edildi: {0}"
@@ -7105,6 +7146,9 @@ msgstr "Negatif Ayarlama"
msgid "Net book value"
msgstr "Net Defter Değeri"
+msgid "Net Change"
+msgstr "Net Değişim"
+
msgid "Never"
msgstr "Asla"
@@ -7663,6 +7707,9 @@ msgstr "Henüz tedarikçi yok"
msgid "No time entries for this week"
msgstr "Bu hafta için zaman girişi yok"
+msgid "No transactions in this period"
+msgstr "Bu dönemde işlem yok"
+
msgid "No value needed"
msgstr "Değer gerekmiyor"
@@ -7924,6 +7971,9 @@ msgstr "Açık işlemler"
msgid "Opened"
msgstr "Açık"
+msgid "Opening"
+msgstr "Açılış"
+
msgid "Opening balance of depreciation already booked before this asset was added to Carbon (use 0 for new acquisitions)."
msgstr "Bu varlık Carbon'a eklenmeden önce zaten deftere geçirilmiş amortismanın açılış bakiyesi (yeni satın almalar için 0 kullanın)."
@@ -10070,9 +10120,6 @@ msgstr "Müşteri türü seçin"
msgid "Select customers"
msgstr "Müşterileri seçin"
-msgid "Select date range to filter net change and balance at date"
-msgstr "Net değişim ve tarihteki bakiyeyi filtrelemek için tarih aralığı seçin"
-
msgid "Select Employee"
msgstr "Çalışan Seç"
@@ -11900,6 +11947,9 @@ msgstr "Bu indirme bağlantısı geçersiz veya değiştirilmiş."
msgid "This file is no longer available, or you don't have permission to download it."
msgstr "Bu dosya artık kullanılamıyor veya onu indirme izniniz yok."
+msgid "This Fiscal Year"
+msgstr "Bu Mali Yıl"
+
msgid "This information will be used on document headers"
msgstr "Bu bilgiler belge başlıklarında kullanılacaktır"
@@ -11936,6 +11986,9 @@ msgstr "Bu parti süresi dolmuş ve alınamaz."
msgid "This may take a moment. Hang tight."
msgstr "Bu biraz zaman alabilir. Sabrın."
+msgid "This Month"
+msgstr "Bu Ay"
+
msgid "This page of your Implementation Hub is being built. Start from the command center while we finish it."
msgstr "Bu Implementation Hub sayfası şu anda inşa edilmektedir. Biz bitirirken komut merkezinden başlayın."
@@ -11951,6 +12004,9 @@ msgstr "Bu parça kullanımdan kaldırılmıştır (Stok Yok)."
msgid "This part is superseded and set to Stock Only — it's replenished to its spares reserve floor, independent of demand."
msgstr "Bu parça kullanımdan kaldırılmış ve Yalnızca Stok olarak ayarlanmıştır — talep bağımsız olarak yedek rezerv tabanına kadar yenilenir."
+msgid "This Quarter"
+msgstr "Bu Çeyrek"
+
msgid "This sales order has associated jobs. Choose what to do with them."
msgstr "Bu satış siparişi ilgili işlere sahiptir. Onlarla ne yapılacağına karar verin."
@@ -11996,6 +12052,10 @@ msgstr "Bu, varlığın kalan net defter değerini silebilir."
msgid "Three-way match"
msgstr "Üç yönlü eşleşme"
+#. placeholder {0}: formatDate(endDate)
+msgid "Through {0}"
+msgstr "Şu tarihe kadar {0}"
+
msgid "Thumbnail"
msgstr "Küçük Resim"
diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.po
index 984a9219e1..e8ac73b446 100644
--- a/packages/locale/locales/zh/erp.po
+++ b/packages/locale/locales/zh/erp.po
@@ -84,6 +84,9 @@ msgstr "{chainLabel}。考虑将此零件直接指向最终后继产品。"
msgid "{count, plural, one {# course} other {# courses}}"
msgstr "{count, plural, one {# 门课程} other {# 门课程}}"
+msgid "{from}–{to} of {count}"
+msgstr "{from}–{to} 共 {count}"
+
#. placeholder {0}: errors.length
#. placeholder {1}: skipped.length
msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."
@@ -731,6 +734,9 @@ msgstr "所有行已导入—{inserted}行插入,{updated}行更新。"
msgid "All Suppliers"
msgstr "所有供应商"
+msgid "All Time"
+msgstr "所有时间"
+
msgid "All Types"
msgstr "所有类型"
@@ -871,6 +877,9 @@ msgstr "适用于全部"
msgid "Applies to all work centers"
msgstr "适用于所有工作中心"
+msgid "Apply"
+msgstr "应用"
+
msgid "Apply available credits"
msgstr "应用可用额度"
@@ -1299,6 +1308,13 @@ msgstr "你确定吗?"
msgid "As needed"
msgstr "按需"
+msgid "As of"
+msgstr "截至"
+
+#. placeholder {0}: formatDate(endDate)
+msgid "As of {0}"
+msgstr "截至 {0}"
+
msgid "As of:"
msgstr "截至:"
@@ -2042,6 +2058,9 @@ msgstr "已关闭"
msgid "Closed Date"
msgstr "关闭日期"
+msgid "Closing"
+msgstr "结余"
+
msgid "Closure blocked"
msgstr "关闭被阻止"
@@ -2929,6 +2948,9 @@ msgstr "自定义字段"
msgid "Custom SOW · we manage"
msgstr "自定义 SOW · 我们管理"
+msgid "Custom…"
+msgstr "自定义…"
+
msgid "customer"
msgstr "客户"
@@ -3127,9 +3149,6 @@ msgstr "签发日期"
msgid "Date Paid"
msgstr "支付日期"
-msgid "Date Range"
-msgstr "日期范围"
-
msgid "Dates"
msgstr "日期"
@@ -3995,9 +4014,6 @@ msgstr "编辑客户状态"
msgid "Edit Customer Type"
msgstr "编辑客户类型"
-msgid "Edit date range"
-msgstr "编辑日期范围"
-
msgid "Edit Department"
msgstr "编辑部门"
@@ -4328,6 +4344,15 @@ msgstr "已启用"
msgid "End Date"
msgstr "结束日期"
+msgid "End of Last Fiscal Year"
+msgstr "上一财政年度末"
+
+msgid "End of Last Month"
+msgstr "上月末"
+
+msgid "End of Last Quarter"
+msgstr "上一季度末"
+
msgid "End Time"
msgstr "结束时间"
@@ -4388,6 +4413,9 @@ msgstr "实体类型"
msgid "Entity type cannot be changed"
msgstr "实体类型无法更改"
+msgid "Entry"
+msgstr "条目"
+
msgid "Entry Type"
msgstr "条目类型"
@@ -5084,6 +5112,9 @@ msgstr "财政年度"
msgid "Fiscal Year Settings"
msgstr "财政年度设置"
+msgid "Fiscal Year to Date"
+msgstr "财政年度至今"
+
msgid "Fiscal Years"
msgstr "财政年度"
@@ -5157,6 +5188,7 @@ msgstr "频率"
msgid "Friday"
msgstr "星期五"
+#. placeholder {0}: formatDate(startDate)
#. placeholder {0}: routeDataFromRoute.supersession.successorEffectivityDate
msgid "From {0}"
msgstr "从 {0}"
@@ -6295,9 +6327,18 @@ msgstr "最后校准"
msgid "Last Calibration Date"
msgstr "上次校准日期"
+msgid "Last Fiscal Year"
+msgstr "上一财政年度"
+
+msgid "Last Month"
+msgstr "上个月"
+
msgid "Last Name"
msgstr "姓氏"
+msgid "Last Quarter"
+msgstr "上一季度"
+
#. placeholder {0}: formatDateTime(lastSyncedAt)
msgid "Last synced: {0}"
msgstr "最后同步: {0}"
@@ -7105,6 +7146,9 @@ msgstr "负调整"
msgid "Net book value"
msgstr "净账面价值"
+msgid "Net Change"
+msgstr "净变化"
+
msgid "Never"
msgstr "永不"
@@ -7663,6 +7707,9 @@ msgstr "还没有供应商"
msgid "No time entries for this week"
msgstr "本周没有时间条目"
+msgid "No transactions in this period"
+msgstr "此期间无交易"
+
msgid "No value needed"
msgstr "不需要值"
@@ -7924,6 +7971,9 @@ msgstr "未结交易"
msgid "Opened"
msgstr "打开"
+msgid "Opening"
+msgstr "期初"
+
msgid "Opening balance of depreciation already booked before this asset was added to Carbon (use 0 for new acquisitions)."
msgstr "在将此资产添加到Carbon之前已入账的折旧的期初余额(新购置的情况下使用0)。"
@@ -10070,9 +10120,6 @@ msgstr "选择客户类型"
msgid "Select customers"
msgstr "选择客户"
-msgid "Select date range to filter net change and balance at date"
-msgstr "选择日期范围以筛选净变化和日期余额"
-
msgid "Select Employee"
msgstr "选择员工"
@@ -11900,6 +11947,9 @@ msgstr "此下载链接无效或已被篡改。"
msgid "This file is no longer available, or you don't have permission to download it."
msgstr "此文件不再可用,或您没有权限下载它。"
+msgid "This Fiscal Year"
+msgstr "本财政年度"
+
msgid "This information will be used on document headers"
msgstr "此信息将用于文档标题"
@@ -11936,6 +11986,9 @@ msgstr "此批次已过期,无法领取。"
msgid "This may take a moment. Hang tight."
msgstr "这可能需要一些时间。请稍候。"
+msgid "This Month"
+msgstr "本月"
+
msgid "This page of your Implementation Hub is being built. Start from the command center while we finish it."
msgstr "您的实现中心的此页面正在构建中。请从命令中心开始,我们将继续完成它。"
@@ -11951,6 +12004,9 @@ msgstr "这个零件已过时(无库存)。"
msgid "This part is superseded and set to Stock Only — it's replenished to its spares reserve floor, independent of demand."
msgstr "此零件已被替代并设置为仅库存 — 它补充到其备件储备下限,与需求无关。"
+msgid "This Quarter"
+msgstr "本季度"
+
msgid "This sales order has associated jobs. Choose what to do with them."
msgstr "此销售订单有关联的工作。选择如何处理它们。"
@@ -11996,6 +12052,10 @@ msgstr "这将注销资产的剩余净账面价值。"
msgid "Three-way match"
msgstr "三方对账"
+#. placeholder {0}: formatDate(endDate)
+msgid "Through {0}"
+msgstr "至 {0}"
+
msgid "Thumbnail"
msgstr "缩略图"