Commit graph

93 commits

Author SHA1 Message Date
Jérémy Munsch
cfac370e2e
feat(discount): implement published discounts filtering logic
Added logic to filter published discounts, including those with null start or end dates.
2026-10-29 19:19:22 +01:00
Jérémy Munsch
4ff3daecab
refactor(Auth): improve reset URL handling and validation
refactor(Helpers): update parameter types and remove ignores

refactor(Models): streamline order assignment logic

refactor(Enums): clarify unused constant warnings

refactor(Services): encapsulate cutoff week offset logic
2026-10-28 08:53:34 +01:00
Jérémy Munsch
50df658d58
feat(product-incos): implement actions, queries, sync job and command for Arcadia INCO sheets 2026-10-27 09:58:53 +01:00
Jérémy Munsch
f0667b7d3e
chore(database): drop legacy xml_incos table and model in favor of Arcadia API 2026-10-27 09:58:52 +01:00
Jérémy Munsch
bae633e312
style: fix phpcs sniffs and complexity warnings 2026-10-27 09:58:51 +01:00
Jérémy Munsch
9a334b5ed1
refactor(models): remove unused ProductType and OrdersStatus models 2026-10-27 09:58:49 +01:00
Jérémy Munsch
3c309dc356
feat(slides): indicate visibility in BO and fix conditional slider display in FO 2026-10-27 09:58:47 +01:00
Jérémy Munsch
bf3e7a93fd
refactor(i18n): harmonize translation keys to English and complete French translations
- Convert hardcoded strings and French translation keys to English keys across Blade templates, Vue components, TypeScript modules, models, and routes
- Complete and synchronize lang/fr.json and lang/en.json translation dictionaries
- Add timezone attribute in lang/fr/validation.php and lang/en/validation.php
- Add missing English lang files for parity: crud.php, models.php, search.php, and vue.php
2026-10-27 09:58:47 +01:00
Jérémy Munsch
8b96ce90be
test(casts): add tests for EmployeeSitesCast functionality
test(casts): add tests for ShopperEstablishmentCodeCast functionality

test(casts): add tests for ShopperServiceCodeCast functionality

test(casts): add tests for ShopperSiteCodeCast functionality

test(dto): update ProductDtoTest to include additional fields

test(dto): update SettingDtoTest to remove arcadiaSites assertions

test(events): update AnOrderHasBeenPlacedTest to use value objects

test(entities): update OrderTest to use value objects for employee details

test(value-objects): update EmployeeUpsertDataTest to use value objects

test(pagination): update PaginationTest to access value properties

test(services): update AppCustomerAuthServiceTest to use CrmHashcode

test(services): update CrmServiceTest to use CrmHashcode for customer retrieval
2026-10-27 09:58:45 +01:00
Jérémy Munsch
6b649a8e7d
refactor(models): update property types in Setting model
Updated the type annotations for employee_sites to allow mixed types and reordered arcadia_sites for clarity.
2026-10-27 09:58:45 +01:00
Jérémy Munsch
3b3997d547
feat(employees): automated sync with Arcadia API, BO settings, Shopper value objects, and pagination migration
- Implement automated synchronization of employees via Arcadia API (EmployeeSyncService, SynchronizeEmployeesWithArcadiaApi, FetchAndUpsertArcadiaEmployees)
- Add Back-Office application settings for employee sites (Setting singleton, GetSettingsQuery, UpdateSettings, SettingsController, EmployeeSitesInputComponent.vue)
- Strongly type Employee attributes using Domain Value Objects (ShopperEstablishmentCode, ShopperSiteCode, ShopperServiceCode) and Eloquent Casts
- Migrate pagination from Domain to Shared\Pagination namespace across queries and inputs
- Remove legacy and dead CSV employee import/export code
- Restore Domain\Ports\Services\CsvGenerator interface for Regate order generation
- Add comprehensive Pest unit, integration, and feature test coverage
2026-10-27 09:58:44 +01:00
Jérémy Munsch
2aa4fa8aed
feat(crm): implement unsubscribe from newsletter functionality
- Added UnsubscribeFromNewsletter action and input/output classes.
- Introduced CrmHashcode value object and its cast.
- Updated NewsletterController to use the new unsubscribe action.
- Enhanced validation in UnsubscribeNewsletterRequest.
2026-10-27 09:58:34 +01:00
Jérémy Munsch
42bdae01cc
feat: implement pagination using Pagination value object
- Updated DataTableService to accept a Pagination object for pagination parameters.
- Refactored paginateQuery method to utilize pageSize and pageNumber from Pagination.

refactor: replace ActionExecutor with Executor in controller traits

- Updated ChangesModelOrder, TogglesModelStar, and TogglesModelStatus traits to use Executor interface instead of ActionExecutor.

feat: add PictureMetadata and Slug value objects

- Introduced PictureMetadata for managing image metadata with validation.
- Added Slug value object for slug generation and validation.

feat: update breadcrumbs to support RangeDto

- Modified breadcrumbs-bo.php to accept RangeDto in the edit route.

test: add tests for RangesController

- Added tests for accessing, creating, updating, and deleting ranges.
- Included tests for toggling range status.

test: add integration tests for range actions

- Created tests for CreateRange, DeleteRange, and UpdateRange actions.
- Validated input handling and database interactions.

test: add unit tests for range input classes

- Implemented tests for CreateRangeInput and UpdateRangeInput to validate input constraints.

test: add unit tests for value objects

- Added tests for PictureMetadata and Slug to ensure proper validation and instantiation.

test: add unit tests for RangeDto

- Created tests to verify RangeDto mapping from Range model.

test: add unit tests for RangePolicy

- Implemented tests for RangePolicy to validate permissions based on user roles.
2026-10-27 09:58:34 +01:00
Jérémy Munsch
31d7a789c4
refactor(slides): use fill() in slide actions and align model phpdocs with ide-helper 2026-10-27 09:58:33 +01:00
Jérémy Munsch
e2e2a357f7
refactor(slides): implement CQS actions, query, DTO, and DatePeriod VO for slides 2026-10-27 09:58:33 +01:00
Jérémy Munsch
797d1da1b2
refactor(faqs): implement CQS actions, query, and DTO for faqs 2026-10-27 09:58:32 +01:00
Jérémy Munsch
3ac95cc6f8
refactor(common): implement generic actions for controller traits (order, status, star) 2026-10-27 09:58:32 +01:00
Jérémy Munsch
149edff185
refactor: Closes #123 change the way stats are calculated and fixes employee radiation date 2026-10-27 09:58:15 +01:00
Jérémy Munsch
58af50b5c5
refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
Noah Lancien
06785a3cb8 feat: added boolean to show old price on discounts - #95 2026-02-25 15:27:24 +01:00
Karl Muller
79d9061bc9 fix: 🐛 user->id null on SalarieExportJob + add public holiday with cron + condition on public holiday's calendar 2025-02-12 10:29:03 +00:00
Vincent BRIDIER
0366644c4f
fix: Fix check on salarie and customer relation 2025-01-23 15:35:17 +01:00
Vincent BRIDIER
17f0365697 Merge branch 'issue-52' into 'develop'
fix: 📈 update dashboard statistics #52

See merge request ldc-web/projets/boutique-cnc-sable!61
2025-01-16 10:57:20 +00:00
Alexis Gousseau
f454d35960 fix: 📈 update dashboard statistics #52 2025-01-13 15:43:42 +01:00
Alexis Gousseau
e900b85583 feat: ✨ add new product filter on food products no art in back-end #53 2025-01-13 11:09:20 +01:00
Vincent BRIDIER
8ee5a940c4
fix: Update matricule format 2024-11-26 13:02:16 +01:00
Vincent BRIDIER
c332696024
feat: Make the fu**ing Salarie import works again 2024-11-26 12:56:39 +01:00
Vincent BRIDIER
895843eccf
feat: 💩 Update SalarieSite Enum and Salarie Magasin model method 2024-10-18 15:36:57 +02:00
Jérémy Munsch
68cb937a60
Fixex #43 import CSV 2024-04-22 12:11:15 +02:00
noah.lancien
995e1f9eb5 Issue 19 - Add dashboard stats 2023-08-30 08:03:04 +00:00
Vincent BRIDIER
27afc6b120
Issue 27 - Add salarie end_date management 2023-08-02 16:26:25 +02:00
Alexis Gousseau
2a1baea6c6 update import + add export on salarie table - issue #7 2023-07-28 07:25:36 +00:00
noah.lancien
44f72a3259 Reminder mail 2023-07-10 15:09:06 +00:00
noah.lancien
4056846e3a Changed text when the weight is fixed 2023-07-03 09:55:45 +00:00
Vincent BRIDIER
7892e82ecb Merge branch 'ts-1417' into 'develop'
ts-1417 - #6 - update available product

Closes #6

See merge request ldc-web/projets/boutique-cnc-sable!16
2023-04-03 10:15:09 +00:00
Vincent BRIDIER
11c9a94cfe Update is available product model method 2023-04-03 10:13:57 +00:00
Sebastien Hattry
274406ccc0 Add date end in the condition 2023-03-31 15:14:01 +00:00
Alexis Gousseau
68859350ec ts-1417 - #6 - update available product 2023-03-30 15:34:57 +02:00
Olivier Legat
b2a13a2043
activate prix barres 2023-03-15 10:45:53 +01:00
Olivier Legat
f04ea5fbf2
hide prix kg when necessary, minor texte changes RGPD 2022-11-02 14:08:29 +01:00
Alexis Gousseau
1f4455c950 quatrième retour 2022-10-21 10:35:34 +02:00
Alexis Gousseau
5810db9111 ranges page 2022-10-05 16:41:09 +02:00
Olivier Legat
121613a478
set collect point for each salarie, use this info to provide magasin in order tunnel 2022-09-21 16:12:03 +02:00
Olivier Legat
3411d0b5f6 add brand to Product, add corresponding Enum, add Brand selection to product edition/creation, add brand to product index(bo) and brand filtering for index(bo) 2022-09-12 17:48:10 +02:00
Olivier Legat
adb0789c57
sniffing and linting - NO refactoring 2022-09-08 13:02:16 +02:00
Olivier Legat
15e081c943
first auotmated clean 2022-09-08 11:29:39 +02:00
Jérémy Munsch
2b9d3d08ea
CRM V3 Migration
- require slevomat/coding-standard
- require ldc/ldccrmv2client
- update phpcs xml
2022-04-14 16:38:47 +02:00
Olivier Legat
8b3c3f31be add nom to xml_incos
null lst_allergenes
2022-03-12 12:04:40 +01:00
Olivier Legat
619bd199b8 Merge branch 'develop' of https://voight001.lesidc.com/boutique-cnc into develop 2021-11-18 14:55:21 +01:00
Olivier Legat
ec0a21dcf3 précision sur 3 chiffres après la virgule pour les prix 2021-11-18 14:47:57 +01:00