refactor(firstleg): remove customer scope from trucking

This commit is contained in:
2026-09-01 09:51:59 +08:00
parent 936412f351
commit 249b182e7f
17 changed files with 357 additions and 463 deletions
@@ -114,14 +114,12 @@ export function truckAppointmentFieldGaps(record) {
return gaps(record, {
id: isPositiveId,
appointmentNo: isNonBlank,
oceanBookingId: (value) => value == null || isPositiveId(value),
containerBookingId: (value) => value == null || isPositiveId(value),
oceanBookingId: isPositiveId,
containerBookingId: isPositiveId,
loadingPlanId: (value) => value == null || isPositiveId(value),
warehouseId: (value) => value == null || isPositiveId(value),
plannedLoadingAt: isIsoDateTime,
status: isNonBlank,
customerId: isPositiveId,
customerName: isNonBlank,
carrierId: isPositiveId,
carrierName: isNonBlank,
attachmentCount: isNonNegativeNumber,