mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Merge pull request #1003 from Tria-plc/freight_feature/usermanagement
fix gl steps
This commit is contained in:
@@ -142,7 +142,7 @@ const ruleEngineCrudId = (
|
|||||||
): string => {
|
): string => {
|
||||||
const n =
|
const n =
|
||||||
RULE_ENGINE_RESOURCE_SLUGS.indexOf(slug) * 3 +
|
RULE_ENGINE_RESOURCE_SLUGS.indexOf(slug) * 3 +
|
||||||
RULE_ENGINE_CRUD_ACTIONS.indexOf(action) +
|
RULE_ENGINE_CRUD_ACTIONS.indexOf(action) +
|
||||||
1; // 1..36
|
1; // 1..36
|
||||||
return `b2000002-0001-4000-8000-${n.toString(16).padStart(12, '0')}`;
|
return `b2000002-0001-4000-8000-${n.toString(16).padStart(12, '0')}`;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -476,7 +476,7 @@ export function PhasedClearanceActionPanel({
|
|||||||
description="Advise amount and attach notice"
|
description="Advise amount and attach notice"
|
||||||
icon={<Receipt size={14} />}
|
icon={<Receipt size={14} />}
|
||||||
>
|
>
|
||||||
{showEt && canEt && activeStep === 3 ? (
|
{showEt && canEt && activeStep === 4 ? (
|
||||||
<DutyStep
|
<DutyStep
|
||||||
entityId={entityId}
|
entityId={entityId}
|
||||||
isBooking={isBooking}
|
isBooking={isBooking}
|
||||||
@@ -538,7 +538,7 @@ export function PhasedClearanceActionPanel({
|
|||||||
{showEt &&
|
{showEt &&
|
||||||
canEt &&
|
canEt &&
|
||||||
!bookingCreated &&
|
!bookingCreated &&
|
||||||
(activeStep >= 5 ||
|
(activeStep >= 6 ||
|
||||||
isMilestoneDone(clearance.milestones, "TRANSIT_PERMIT_UPLOADED")) ? (
|
isMilestoneDone(clearance.milestones, "TRANSIT_PERMIT_UPLOADED")) ? (
|
||||||
<TransitPermitStep
|
<TransitPermitStep
|
||||||
entityId={entityId}
|
entityId={entityId}
|
||||||
@@ -582,7 +582,7 @@ export function PhasedClearanceActionPanel({
|
|||||||
description="Hand off to GL Djibouti"
|
description="Hand off to GL Djibouti"
|
||||||
icon={<PackageCheck size={14} />}
|
icon={<PackageCheck size={14} />}
|
||||||
>
|
>
|
||||||
{showEt && canEt && activeStep === 6 ? (
|
{showEt && canEt && activeStep === 7 ? (
|
||||||
<FinalizePreClearanceStep
|
<FinalizePreClearanceStep
|
||||||
entityId={entityId}
|
entityId={entityId}
|
||||||
isBooking={isBooking}
|
isBooking={isBooking}
|
||||||
|
|||||||
Reference in New Issue
Block a user