This commit is contained in:
2026-09-15 11:54:14 +08:00
parent 3fb9909dd3
commit c1f01e1e87
56 changed files with 973 additions and 231 deletions
@@ -1,3 +1,5 @@
import { channelGroup } from './smart-loading-channel-group.mjs'
function text(value) { return value == null ? '' : String(value).trim() }
const PLATFORM_CHANNELS = '/api/platform/v1/ocean-bookings/channels'
@@ -73,6 +75,7 @@ export function oceanBookingDraft(context, suffix, master, labels = {}) {
}]
return {
...writableMaster,
channelCode: channelGroup(writableMaster.channelCode),
billOfLadingNo: labels.billOfLadingNo || `BL-${suffix}`,
carrierCode: labels.carrierCode || 'OTHER',
shippingCompanyId: labels.shippingCompanyId ?? null,