@accounter/client 0.0.7-alpha-20251020201456-275b6a9424e58d4d2c7e9099986230d087ccd6cd → 0.0.8-alpha-20251021150028-9eb73ba6576d67c75a60786d0e4ab0876fd7a95c
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 +102 -105
- package/dist/assets/index-0eCf1BcD.css +1 -0
- package/dist/assets/index-DHTbHvtz.js +1188 -0
- package/dist/assets/{index.es-DldZjCMz.js → index.es-DHwHzag1.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -2
- 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/recent-client-docs.tsx +3 -5
- 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/gql/gql.ts +6 -72
- package/src/gql/graphql.ts +14 -193
- package/src/helpers/currency.ts +0 -5
- package/src/helpers/index.ts +0 -2
- package/dist/assets/index-BSNI6g4T.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 -426
- 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-insert-client.ts +0 -80
- package/src/hooks/use-update-client.ts +0 -75
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';
|