mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 22:25:42 +00:00
Enhance internal payment handling and e2e testing setup
This commit is contained in:
@@ -172,11 +172,11 @@ function emptyUnit(): UnitDraft {
|
||||
function emptyLine(size: string): ContainerLineDraft {
|
||||
return {
|
||||
containerSize: size,
|
||||
quantity: "1",
|
||||
quantity: "0",
|
||||
hazardousQuantity: "0",
|
||||
reeferQuantity: "0",
|
||||
returnQuantity: "0",
|
||||
units: [emptyUnit()],
|
||||
units: [],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -742,16 +742,7 @@ export default function TrainScheduleV2DetailPage() {
|
||||
<WagonPlanGrid wagonPlan={displayWagonPlanOriented} freightType={freightType} />
|
||||
{canEditBookings && (previewResult || displayWagonPlan.length) ? (
|
||||
<Group>
|
||||
{!hasContainerStep ? (
|
||||
<Button
|
||||
color="edr-green"
|
||||
radius="md"
|
||||
loading={assign.isPending}
|
||||
onClick={handleAssign}
|
||||
>
|
||||
{assignedIds.length ? "Save assignments" : "Assign bookings"}
|
||||
</Button>
|
||||
) : (
|
||||
{hasContainerStep ? (
|
||||
<Button
|
||||
color="edr-green"
|
||||
radius="md"
|
||||
@@ -760,7 +751,7 @@ export default function TrainScheduleV2DetailPage() {
|
||||
>
|
||||
Continue to containers
|
||||
</Button>
|
||||
)}
|
||||
) : null}
|
||||
<Button variant="default" radius="md" onClick={() => void runPreview()}>
|
||||
Refresh preview
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user