优化
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user