From 0a9c8cd39c17e773681bba20a3c2ee031e47ead6 Mon Sep 17 00:00:00 2001 From: DXC Date: Thu, 9 Apr 2026 08:49:50 +0800 Subject: [PATCH] fix(repair): add edit action, mandatory validations, default date, and fix outbound SN mapping --- .../app/services/outbound_service.py | 3 +- .../src/views/stock/inbound/repair.vue | 82 ++++++++++++++----- 2 files changed, 65 insertions(+), 20 deletions(-) diff --git a/inventory-backend/app/services/outbound_service.py b/inventory-backend/app/services/outbound_service.py index a6df281..0075de0 100644 --- a/inventory-backend/app/services/outbound_service.py +++ b/inventory-backend/app/services/outbound_service.py @@ -94,7 +94,8 @@ class OutboundService: 'source_table': 'trans_repair', 'stock_quantity': 1, 'available_quantity': 1, - 'batch_number': '', + 'batch_number': repair.serial_number or '', + 'serial_number': repair.serial_number or '', 'warehouse_location': repair.customer_location or '', 'barcode': repair.sku, 'price': float(repair.sale_price) if repair.sale_price else 0 diff --git a/inventory-web/src/views/stock/inbound/repair.vue b/inventory-web/src/views/stock/inbound/repair.vue index b929c55..cbcbb70 100644 --- a/inventory-web/src/views/stock/inbound/repair.vue +++ b/inventory-web/src/views/stock/inbound/repair.vue @@ -49,12 +49,15 @@ - +