Release/test #10

Merged
admin merged 40 commits from release/test into main 2026-09-28 15:59:06 +08:00
Showing only changes of commit df1ea86278 - Show all commits
@@ -1273,6 +1273,11 @@ async function autofillWarehouseSelections() {
if (form.receivingWarehouseId) {
await loadSelectedWarehouse(form.receivingWarehouseId)
}
if (form.destinationType !== 'PRIVATE' && !form.destinationWarehouseId && form.amazonWarehouseCode) {
const destinationCode = form.amazonWarehouseCode.trim().toUpperCase()
const matchedDestination = availableDestinationWarehouses.value.find((warehouse) => warehouse.code.trim().toUpperCase() === destinationCode)
if (matchedDestination) await selectDestinationWarehouse(matchedDestination.id)
}
if (form.destinationType !== 'PRIVATE' && !form.destinationWarehouseId && availableDestinationWarehouses.value.length === 1) {
await selectDestinationWarehouse(availableDestinationWarehouses.value[0].id)
}