@lambda-development/erp-core 0.1.44 → 0.1.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -77,6 +77,11 @@ export declare const api: {
77
77
  total_credit: number;
78
78
  difference: number;
79
79
  }>;
80
+ chartOfAccounts: (params?: Record<string, string>) => Promise<{
81
+ accounts: any[];
82
+ from_date: string | null;
83
+ to_date: string | null;
84
+ }>;
80
85
  generalLedger: (params?: Record<string, string>) => Promise<{
81
86
  rows: any[];
82
87
  total: number;
@@ -14,6 +14,20 @@ export declare function useTrialBalance(params?: Record<string, string>): {
14
14
  difference: number;
15
15
  }, Error>>;
16
16
  };
17
+ export declare function useChartOfAccounts(params?: Record<string, string>): {
18
+ data: {
19
+ accounts: any[];
20
+ from_date: string | null;
21
+ to_date: string | null;
22
+ } | undefined;
23
+ isLoading: boolean;
24
+ error: Error | null;
25
+ refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<{
26
+ accounts: any[];
27
+ from_date: string | null;
28
+ to_date: string | null;
29
+ }, Error>>;
30
+ };
17
31
  export declare function useGeneralLedger(params?: Record<string, string>): {
18
32
  data: {
19
33
  rows: any[];
@@ -58,32 +58,96 @@ declare const _default: {
58
58
  "balance-sheet": "Bilanz",
59
59
  "ar-aging": "Offene Posten Debitoren",
60
60
  "ap-aging": "Offene Posten Kreditoren",
61
- "analytics": "Analysen"
61
+ "analytics": "Analysen",
62
+ "chart-of-accounts": "Kontenplan"
62
63
  },
63
64
  "doctypes": {
64
- "quotation": { "one": "Angebot", "other": "Angebote" },
65
- "proposal": { "one": "Sammelofferte", "other": "Sammelofferten" },
66
- "sales-order": { "one": "Kundenauftrag", "other": "Kundenaufträge" },
67
- "sales-invoice": { "one": "Ausgangsrechnung", "other": "Ausgangsrechnungen" },
68
- "pos-invoice": { "one": "Kassenbeleg", "other": "Kassenbelege" },
69
- "purchase-order": { "one": "Bestellung", "other": "Bestellungen" },
70
- "purchase-invoice": { "one": "Eingangsrechnung", "other": "Eingangsrechnungen" },
71
- "payment-entry": { "one": "Zahlung", "other": "Zahlungen" },
72
- "journal-entry": { "one": "Buchungssatz", "other": "Buchungssätze" },
73
- "bank-transaction": { "one": "Banktransaktion", "other": "Banktransaktionen" },
74
- "budget": { "one": "Budget", "other": "Budgets" },
75
- "subscription": { "one": "Abonnement", "other": "Abonnements" },
76
- "stock-entry": { "one": "Lagerbuchung", "other": "Lagerbuchungen" },
77
- "delivery-note": { "one": "Lieferschein", "other": "Lieferscheine" },
78
- "purchase-receipt": { "one": "Wareneingang", "other": "Wareneingänge" },
79
- "pricing-rule": { "one": "Preisregel", "other": "Preisregeln" }
65
+ "quotation": {
66
+ "one": "Angebot",
67
+ "other": "Angebote"
68
+ },
69
+ "proposal": {
70
+ "one": "Sammelofferte",
71
+ "other": "Sammelofferten"
72
+ },
73
+ "sales-order": {
74
+ "one": "Kundenauftrag",
75
+ "other": "Kundenaufträge"
76
+ },
77
+ "sales-invoice": {
78
+ "one": "Ausgangsrechnung",
79
+ "other": "Ausgangsrechnungen"
80
+ },
81
+ "pos-invoice": {
82
+ "one": "Kassenbeleg",
83
+ "other": "Kassenbelege"
84
+ },
85
+ "purchase-order": {
86
+ "one": "Bestellung",
87
+ "other": "Bestellungen"
88
+ },
89
+ "purchase-invoice": {
90
+ "one": "Eingangsrechnung",
91
+ "other": "Eingangsrechnungen"
92
+ },
93
+ "payment-entry": {
94
+ "one": "Zahlung",
95
+ "other": "Zahlungen"
96
+ },
97
+ "journal-entry": {
98
+ "one": "Buchungssatz",
99
+ "other": "Buchungssätze"
100
+ },
101
+ "bank-transaction": {
102
+ "one": "Banktransaktion",
103
+ "other": "Banktransaktionen"
104
+ },
105
+ "budget": {
106
+ "one": "Budget",
107
+ "other": "Budgets"
108
+ },
109
+ "subscription": {
110
+ "one": "Abonnement",
111
+ "other": "Abonnements"
112
+ },
113
+ "stock-entry": {
114
+ "one": "Lagerbuchung",
115
+ "other": "Lagerbuchungen"
116
+ },
117
+ "delivery-note": {
118
+ "one": "Lieferschein",
119
+ "other": "Lieferscheine"
120
+ },
121
+ "purchase-receipt": {
122
+ "one": "Wareneingang",
123
+ "other": "Wareneingänge"
124
+ },
125
+ "pricing-rule": {
126
+ "one": "Preisregel",
127
+ "other": "Preisregeln"
128
+ }
80
129
  },
81
130
  "masters": {
82
- "company": { "one": "Unternehmen", "other": "Unternehmen" },
83
- "customer": { "one": "Kunde", "other": "Kunden" },
84
- "supplier": { "one": "Lieferant", "other": "Lieferanten" },
85
- "item": { "one": "Artikel", "other": "Artikel" },
86
- "warehouse": { "one": "Lager", "other": "Lager" }
131
+ "company": {
132
+ "one": "Unternehmen",
133
+ "other": "Unternehmen"
134
+ },
135
+ "customer": {
136
+ "one": "Kunde",
137
+ "other": "Kunden"
138
+ },
139
+ "supplier": {
140
+ "one": "Lieferant",
141
+ "other": "Lieferanten"
142
+ },
143
+ "item": {
144
+ "one": "Artikel",
145
+ "other": "Artikel"
146
+ },
147
+ "warehouse": {
148
+ "one": "Lager",
149
+ "other": "Lager"
150
+ }
87
151
  },
88
152
  "nav": {
89
153
  "chats": "Chats",
@@ -136,7 +200,8 @@ declare const _default: {
136
200
  "Warehouse": "Lager",
137
201
  "General": "Allgemein",
138
202
  "Pricing Rule": "Preisregel",
139
- "Users & Team": "Benutzer & Team"
203
+ "Users & Team": "Benutzer & Team",
204
+ "Chart of Accounts": "Kontenplan"
140
205
  }
141
206
  },
142
207
  "login": {
@@ -609,6 +674,20 @@ declare const _default: {
609
674
  "rule": "horizontale Trennlinie",
610
675
  "price": "rechtsbündiger Preis neben dem Text darüber (z. B. Monatlich | CHF 380.—)",
611
676
  "block": "Trennen Sie Blöcke durch eine Leerzeile."
677
+ },
678
+ "coa": {
679
+ "period": "Periode",
680
+ "allTime": "Gesamter Zeitraum",
681
+ "semantics": "Bilanzkonten: Saldo per Periodenende. Erfolgskonten: Bewegung innerhalb der Periode. Konto anklicken für den Kontoauszug.",
682
+ "empty": "Keine Konten gefunden. Zuerst die Firmeneinrichtung abschliessen.",
683
+ "disabled": "deaktiviert",
684
+ "rootType": {
685
+ "Asset": "Aktiven",
686
+ "Liability": "Passiven",
687
+ "Equity": "Eigenkapital",
688
+ "Income": "Ertrag",
689
+ "Expense": "Aufwand"
690
+ }
612
691
  }
613
692
  }
614
693
  ;
@@ -58,7 +58,8 @@ declare const _default: {
58
58
  "balance-sheet": "Balance Sheet",
59
59
  "ar-aging": "Accounts Receivable Aging",
60
60
  "ap-aging": "Accounts Payable Aging",
61
- "analytics": "Analytics"
61
+ "analytics": "Analytics",
62
+ "chart-of-accounts": "Chart of Accounts"
62
63
  },
63
64
  "doctypes": {
64
65
  "quotation": {
@@ -199,7 +200,8 @@ declare const _default: {
199
200
  "Warehouse": "Warehouse",
200
201
  "General": "General",
201
202
  "Pricing Rule": "Pricing Rule",
202
- "Users & Team": "Users & Team"
203
+ "Users & Team": "Users & Team",
204
+ "Chart of Accounts": "Chart of Accounts"
203
205
  }
204
206
  },
205
207
  "login": {
@@ -672,6 +674,20 @@ declare const _default: {
672
674
  "rule": "horizontal divider line",
673
675
  "price": "right-aligned price beside the text above (e.g. Monthly | CHF 380.—)",
674
676
  "block": "Separate blocks with a blank line."
677
+ },
678
+ "coa": {
679
+ "period": "Period",
680
+ "allTime": "All time",
681
+ "semantics": "Balance-sheet accounts: closing balance at period end. P&L accounts: movement within the period. Click an account for its ledger.",
682
+ "empty": "No accounts found. Complete the company setup first.",
683
+ "disabled": "disabled",
684
+ "rootType": {
685
+ "Asset": "Assets",
686
+ "Liability": "Liabilities",
687
+ "Equity": "Equity",
688
+ "Income": "Income",
689
+ "Expense": "Expenses"
690
+ }
675
691
  }
676
692
  }
677
693
  ;
@@ -58,32 +58,96 @@ declare const _default: {
58
58
  "balance-sheet": "Bilan",
59
59
  "ar-aging": "Balance âgée clients",
60
60
  "ap-aging": "Balance âgée fournisseurs",
61
- "analytics": "Analyses"
61
+ "analytics": "Analyses",
62
+ "chart-of-accounts": "Plan comptable"
62
63
  },
63
64
  "doctypes": {
64
- "quotation": { "one": "Devis", "other": "Devis" },
65
- "proposal": { "one": "Offre groupée", "other": "Offres groupées" },
66
- "sales-order": { "one": "Commande client", "other": "Commandes client" },
67
- "sales-invoice": { "one": "Facture de vente", "other": "Factures de vente" },
68
- "pos-invoice": { "one": "Ticket de caisse", "other": "Tickets de caisse" },
69
- "purchase-order": { "one": "Bon de commande", "other": "Bons de commande" },
70
- "purchase-invoice": { "one": "Facture d'achat", "other": "Factures d'achat" },
71
- "payment-entry": { "one": "Paiement", "other": "Paiements" },
72
- "journal-entry": { "one": "Écriture comptable", "other": "Écritures comptables" },
73
- "bank-transaction": { "one": "Transaction bancaire", "other": "Transactions bancaires" },
74
- "budget": { "one": "Budget", "other": "Budgets" },
75
- "subscription": { "one": "Abonnement", "other": "Abonnements" },
76
- "stock-entry": { "one": "Mouvement de stock", "other": "Mouvements de stock" },
77
- "delivery-note": { "one": "Bon de livraison", "other": "Bons de livraison" },
78
- "purchase-receipt": { "one": "Bon de réception", "other": "Bons de réception" },
79
- "pricing-rule": { "one": "Règle de prix", "other": "Règles de prix" }
65
+ "quotation": {
66
+ "one": "Devis",
67
+ "other": "Devis"
68
+ },
69
+ "proposal": {
70
+ "one": "Offre groupée",
71
+ "other": "Offres groupées"
72
+ },
73
+ "sales-order": {
74
+ "one": "Commande client",
75
+ "other": "Commandes client"
76
+ },
77
+ "sales-invoice": {
78
+ "one": "Facture de vente",
79
+ "other": "Factures de vente"
80
+ },
81
+ "pos-invoice": {
82
+ "one": "Ticket de caisse",
83
+ "other": "Tickets de caisse"
84
+ },
85
+ "purchase-order": {
86
+ "one": "Bon de commande",
87
+ "other": "Bons de commande"
88
+ },
89
+ "purchase-invoice": {
90
+ "one": "Facture d'achat",
91
+ "other": "Factures d'achat"
92
+ },
93
+ "payment-entry": {
94
+ "one": "Paiement",
95
+ "other": "Paiements"
96
+ },
97
+ "journal-entry": {
98
+ "one": "Écriture comptable",
99
+ "other": "Écritures comptables"
100
+ },
101
+ "bank-transaction": {
102
+ "one": "Transaction bancaire",
103
+ "other": "Transactions bancaires"
104
+ },
105
+ "budget": {
106
+ "one": "Budget",
107
+ "other": "Budgets"
108
+ },
109
+ "subscription": {
110
+ "one": "Abonnement",
111
+ "other": "Abonnements"
112
+ },
113
+ "stock-entry": {
114
+ "one": "Mouvement de stock",
115
+ "other": "Mouvements de stock"
116
+ },
117
+ "delivery-note": {
118
+ "one": "Bon de livraison",
119
+ "other": "Bons de livraison"
120
+ },
121
+ "purchase-receipt": {
122
+ "one": "Bon de réception",
123
+ "other": "Bons de réception"
124
+ },
125
+ "pricing-rule": {
126
+ "one": "Règle de prix",
127
+ "other": "Règles de prix"
128
+ }
80
129
  },
81
130
  "masters": {
82
- "company": { "one": "Société", "other": "Sociétés" },
83
- "customer": { "one": "Client", "other": "Clients" },
84
- "supplier": { "one": "Fournisseur", "other": "Fournisseurs" },
85
- "item": { "one": "Article", "other": "Articles" },
86
- "warehouse": { "one": "Entrepôt", "other": "Entrepôts" }
131
+ "company": {
132
+ "one": "Société",
133
+ "other": "Sociétés"
134
+ },
135
+ "customer": {
136
+ "one": "Client",
137
+ "other": "Clients"
138
+ },
139
+ "supplier": {
140
+ "one": "Fournisseur",
141
+ "other": "Fournisseurs"
142
+ },
143
+ "item": {
144
+ "one": "Article",
145
+ "other": "Articles"
146
+ },
147
+ "warehouse": {
148
+ "one": "Entrepôt",
149
+ "other": "Entrepôts"
150
+ }
87
151
  },
88
152
  "nav": {
89
153
  "chats": "Discussions",
@@ -136,7 +200,8 @@ declare const _default: {
136
200
  "Warehouse": "Entrepôt",
137
201
  "General": "Général",
138
202
  "Pricing Rule": "Règle de prix",
139
- "Users & Team": "Utilisateurs et équipe"
203
+ "Users & Team": "Utilisateurs et équipe",
204
+ "Chart of Accounts": "Plan comptable"
140
205
  }
141
206
  },
142
207
  "login": {
@@ -609,6 +674,20 @@ declare const _default: {
609
674
  "rule": "ligne de séparation horizontale",
610
675
  "price": "prix aligné à droite à côté du texte ci-dessus (p. ex. Mensuel | CHF 380.—)",
611
676
  "block": "Séparez les blocs par une ligne vide."
677
+ },
678
+ "coa": {
679
+ "period": "Période",
680
+ "allTime": "Toute la période",
681
+ "semantics": "Comptes de bilan : solde à la fin de la période. Comptes de résultat : mouvement de la période. Cliquez sur un compte pour son grand livre.",
682
+ "empty": "Aucun compte trouvé. Terminez d'abord la configuration de l'entreprise.",
683
+ "disabled": "désactivé",
684
+ "rootType": {
685
+ "Asset": "Actifs",
686
+ "Liability": "Passifs",
687
+ "Equity": "Capitaux propres",
688
+ "Income": "Produits",
689
+ "Expense": "Charges"
690
+ }
612
691
  }
613
692
  }
614
693
  ;