Skip to content

Implement shipping lines - #39

Merged
bahman026 merged 3 commits into
adminfrom
implement_shipping_lines
Jun 20, 2026
Merged

Implement shipping lines#39
bahman026 merged 3 commits into
adminfrom
implement_shipping_lines

Conversation

@bahman026

Copy link
Copy Markdown
Owner

No description provided.

bahman026 and others added 3 commits June 20, 2026 15:59
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>
@bahman026
bahman026 merged commit a29b3eb into admin Jun 20, 2026
1 check passed
@bahman026
bahman026 deleted the implement_shipping_lines branch June 20, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant