@accounter/client 0.0.7-alpha-20251020200226-c4c384016342edbee15e58d7c5eb760466cc5cc6 → 0.0.7-alpha-20251020200426-d69dcf4ba560a29b61cb27dbb3f425e7e68c9103
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 +17 -1
- package/dist/assets/{index-Dh8zU8Ik.js → index-katOP9ut.js} +332 -332
- package/dist/assets/{index.es-CNXdeXse.js → index.es-BzLEQ_e8.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/src/components/common/forms/modify-business-fields.tsx +13 -14
- package/src/components/common/modals/insert-business.tsx +4 -2
- package/src/gql/gql.ts +3 -3
- package/src/gql/graphql.ts +5 -2
- package/src/providers/user-provider.tsx +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @accounter/client
|
|
2
2
|
|
|
3
|
-
## 0.0.7-alpha-
|
|
3
|
+
## 0.0.7-alpha-20251020200426-d69dcf4ba560a29b61cb27dbb3f425e7e68c9103
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -357,6 +357,22 @@
|
|
|
357
357
|
[`react-hook-form@7.65.0` ↗︎](https://www.npmjs.com/package/react-hook-form/v/7.65.0) (from
|
|
358
358
|
`7.64.0`, in `dependencies`)
|
|
359
359
|
|
|
360
|
+
- [#2582](https://github.com/Urigo/accounter-fullstack/pull/2582)
|
|
361
|
+
[`2e8386d`](https://github.com/Urigo/accounter-fullstack/commit/2e8386d8deff6aa0c863f0c6995af6093dfda23e)
|
|
362
|
+
Thanks [@gilgardosh](https://github.com/gilgardosh)! - - **Database Schema Update**: Introduced a
|
|
363
|
+
'locality' column to the 'user_context' table and established foreign key relationships for
|
|
364
|
+
country codes in both 'user_context' and 'businesses' tables, linking them to a 'countries' table.
|
|
365
|
+
- **Dynamic Country Selection**: The 'Locality' field in the 'ModifyBusinessFields' component now
|
|
366
|
+
dynamically fetches and displays a list of all countries, replacing previous hardcoded options.
|
|
367
|
+
- **User-Contextual Default Country**: New businesses created via the 'InsertBusiness' modal will
|
|
368
|
+
now default their country based on the user's 'locality' from their 'userContext'.
|
|
369
|
+
- **Centralized Locality Management**: The 'admin-context' and 'user-context' modules on the
|
|
370
|
+
server-side have been updated to store and retrieve the user's 'locality', ensuring consistent
|
|
371
|
+
access across the application.
|
|
372
|
+
- **VAT Logic Enhancement**: VAT validation and deduction logic now utilize the dynamically
|
|
373
|
+
retrieved 'adminContext.locality' instead of a hardcoded country name, improving flexibility and
|
|
374
|
+
accuracy.
|
|
375
|
+
|
|
360
376
|
- [#2520](https://github.com/Urigo/accounter-fullstack/pull/2520)
|
|
361
377
|
[`b7b2776`](https://github.com/Urigo/accounter-fullstack/commit/b7b2776d29905ba6966f5f37635e03b8c58289d9)
|
|
362
378
|
Thanks [@gilgardosh](https://github.com/gilgardosh)! - - **New Feature**: An 'Issue Document'
|