Implement shipping lines - #39
Merged
Merged
Conversation
ShippingLines: - Migration, model, factory, ShippingLineSeeder (20 records in TestSeeder) - ShippingLineResource under new Logistics nav group - ShippingLineResourceTest: 5 tests Docs: - ShoFlow db doc: rewrite shipping_lines and shipping_methods sections; add shipping_line_id FK design decision to shipping_methods - IMPLEMENTATION.md: mark Shipping Lines done, clarify next steps - SHIPPING_GUIDE.md: new doc covering full 3-level hierarchy, table reference, step-by-step setup, and frontend checkout algorithm Co-authored-by: Cursor <cursoragent@cursor.com>
- ShippingMethodForEnum (CUSTOMER=10, PARTNER=20, EMPLOYEE=30) - Migration with shipping_line_id FK (restrictOnDelete), name, type, min_count, min_amount, for (enum), disable_from/to, status (bool) - ShippingMethod model, factory, ShippingMethodSeeder (20 records) - ShippingMethodResource under Logistics nav group with full form/table - ShippingMethodResourceTest: 5 tests - ShippingLine model: add shippingMethods() HasMany back-relation - Update ShoFlow db doc, IMPLEMENTATION.md, SHIPPING_GUIDE.md Co-authored-by: Cursor <cursoragent@cursor.com>
- Migration with shipping_method_id (cascade), province_id/city_id (nullOnDelete), pay_on_delivery, amount (null=postpaid, 0=free), sending_days, disable_from/to, delay, description, status - ShippingCity model with shippingMethod, province, city relations - ShippingMethod model: add shippingCities() HasMany back-relation - ShippingCityFactory, ShippingCitySeeder (20 records in TestSeeder) - ShippingCityResource under Logistics nav group (sort=3) - ShippingCityResourceTest: 6 tests including cascade delete - Update IMPLEMENTATION.md and SHIPPING_GUIDE.md Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.