mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 01:48:12 +00:00
Enhance contract management by adding booking windows section and updating invoice logic for offloaded cargo
This commit is contained in:
@@ -646,7 +646,9 @@ function FinalInvoiceStep({
|
||||
const invoice = clearance.finalInvoice ?? null;
|
||||
const paid = invoice?.status === "PAID";
|
||||
|
||||
if (!clearance.offloaded && !invoice) {
|
||||
// Export: OFFLOADED is a DJ doc milestone that may never be recorded, so the
|
||||
// secured gate pass is enough to open invoicing. Sending an invoice is optional.
|
||||
if (!clearance.offloaded && !clearance.gatepassGranted && !invoice) {
|
||||
return (
|
||||
<StepStatus
|
||||
done={false}
|
||||
@@ -740,7 +742,7 @@ function FinalInvoiceStep({
|
||||
) : canDjAct && bookingId ? (
|
||||
<>
|
||||
<Text size="sm" c="dimmed">
|
||||
Cargo offloaded — send the final invoice to the customer.
|
||||
Send the final invoice to the customer if post-arrival charges apply (optional).
|
||||
</Text>
|
||||
<Button
|
||||
color="edr-green"
|
||||
|
||||
Reference in New Issue
Block a user