ver. 0.295: Admin order product editing — add/remove/modify products, AJAX search, stock adjustment
- Order product CRUD in admin panel (add, delete, edit quantity/prices) - AJAX product search endpoint for order edit form - Automatic stock adjustment when editing order products - Transport cost recalculation based on free delivery threshold - Fix: promo price = 0 when equal to base price (no real promotion) - Clean up stale temp/ build artifacts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -417,10 +417,15 @@ class App
|
||||
},
|
||||
'ShopOrder' => function() {
|
||||
global $mdb;
|
||||
$productRepo = new \Domain\Product\ProductRepository( $mdb );
|
||||
return new \admin\Controllers\ShopOrderController(
|
||||
new \Domain\Order\OrderAdminService(
|
||||
new \Domain\Order\OrderRepository( $mdb )
|
||||
)
|
||||
new \Domain\Order\OrderRepository( $mdb ),
|
||||
$productRepo,
|
||||
new \Domain\Settings\SettingsRepository( $mdb ),
|
||||
new \Domain\Transport\TransportRepository( $mdb )
|
||||
),
|
||||
$productRepo
|
||||
);
|
||||
},
|
||||
'Update' => function() {
|
||||
|
||||
Reference in New Issue
Block a user