fix(repair): add edit action, mandatory validations, default date, and fix outbound SN mapping

This commit is contained in:
DXC
2026-04-09 08:49:50 +08:00
parent 09936cb045
commit 0a9c8cd39c
2 changed files with 65 additions and 20 deletions

View File

@ -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