@accounter/client 0.0.7-alpha-20251021062721-ab43b5f013b9852ff5216bc141852da9dcfe0df7 → 0.0.8-alpha-20251021150501-2328478f6fd03d3eb9b501fe1840430e6983940d
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.
- package/CHANGELOG.md +109 -105
- package/dist/assets/index-CqaS5jWM.css +1 -0
- package/dist/assets/index-IlfO2QvT.js +1188 -0
- package/dist/assets/{index.es-NOVMdy_X.js → index.es-BaJmdn-u.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +5 -6
- package/src/app.tsx +4 -8
- package/src/components/business-transactions/business-extended-info.tsx +13 -9
- package/src/components/charges/charge-extended-info-menu.tsx +21 -27
- package/src/components/charges/charges-row.tsx +10 -12
- package/src/components/charges/charges-table.tsx +9 -15
- package/src/components/common/documents/issue-document/index.tsx +3 -3
- package/src/components/common/documents/issue-document/{recent-business-docs.tsx → recent-client-docs.tsx} +13 -19
- package/src/components/common/forms/business-card.tsx +0 -1
- package/src/components/common/forms/modify-business-fields.tsx +19 -2
- package/src/components/common/inputs/combo-box.tsx +1 -1
- package/src/components/reports/trial-balance-report/trial-balance-report-group.tsx +6 -4
- package/src/components/reports/trial-balance-report/trial-balance-report-sort-code.tsx +11 -8
- package/src/components/screens/documents/issue-documents/edit-issue-document-modal.tsx +4 -4
- package/src/gql/gql.ts +9 -93
- package/src/gql/graphql.ts +9 -285
- package/src/helpers/currency.ts +0 -5
- package/src/helpers/index.ts +0 -2
- package/src/hooks/use-get-all-contracts.ts +1 -0
- package/dist/assets/index-CJB5mMpd.js +0 -1224
- package/dist/assets/index-CzRRUK04.css +0 -1
- package/src/components/business/business-header.tsx +0 -65
- package/src/components/business/charges-section.tsx +0 -82
- package/src/components/business/charts-section.tsx +0 -115
- package/src/components/business/configurations-section.tsx +0 -835
- package/src/components/business/contact-info-section.tsx +0 -544
- package/src/components/business/contracts-section.tsx +0 -195
- package/src/components/business/documents-section.tsx +0 -26
- package/src/components/business/index.tsx +0 -171
- package/src/components/business/integrations-section.tsx +0 -479
- package/src/components/business/transactions-section.tsx +0 -26
- package/src/components/clients/contracts/modify-contract-dialog.tsx +0 -466
- package/src/components/clients/modify-client-dialog.tsx +0 -276
- package/src/components/screens/businesses/business.tsx +0 -50
- package/src/components/ui/progress.tsx +0 -25
- package/src/components/ui/skeleton.tsx +0 -12
- package/src/helpers/contracts.ts +0 -22
- package/src/helpers/pcn874.ts +0 -17
- package/src/hooks/use-create-contract.ts +0 -62
- package/src/hooks/use-delete-contract.ts +0 -64
- package/src/hooks/use-insert-client.ts +0 -80
- package/src/hooks/use-update-client.ts +0 -75
- package/src/hooks/use-update-contract.ts +0 -69
package/src/helpers/currency.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Currency } from '../gql/graphql.js';
|
|
2
|
-
import { formatStringifyAmount } from './index.js';
|
|
3
2
|
|
|
4
3
|
export function getCurrencyFormatter(
|
|
5
4
|
currency: Currency,
|
|
@@ -69,7 +68,3 @@ export const FIAT_CURRENCIES: Currency[] = [
|
|
|
69
68
|
Currency.Aud,
|
|
70
69
|
Currency.Sek,
|
|
71
70
|
] as const;
|
|
72
|
-
|
|
73
|
-
export function formatAmountWithCurrency(amount: number, currency: Currency, digits = 2): string {
|
|
74
|
-
return `${currencyCodeToSymbol(currency)} ${formatStringifyAmount(amount, digits)}`;
|
|
75
|
-
}
|
package/src/helpers/index.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from './charges.js';
|
|
2
2
|
export * from './clipboard.js';
|
|
3
3
|
export * from './consts.js';
|
|
4
|
-
export * from './contracts.js';
|
|
5
4
|
export * from './currency.js';
|
|
6
5
|
export * from './dates.js';
|
|
7
6
|
export * from './document-matches.js';
|
|
@@ -10,7 +9,6 @@ export * from './files.js';
|
|
|
10
9
|
export * from './form.js';
|
|
11
10
|
export * from './graphql-document-dedupe-fragments.js';
|
|
12
11
|
export * from './numbers.js';
|
|
13
|
-
export * from './pcn874.js';
|
|
14
12
|
export * from './strings-manipulations.js';
|
|
15
13
|
export * from './vat.js';
|
|
16
14
|
export * from './tags.js';
|