Ops Etc
From UG
Contents |
Delivery Comment Check Box
- mantis: 984: [Ops.Common.EnterDeliveryCommentCheckBox]
General
- 1. add label "Enter Delivery Comment" + check box; default=unchecked
- 2. add above “DeliveryComment”
- 3. If unchecked then hide “DeliveryComment” label + textbox
Air
- On change from uncheck TO check:
- show “DeliveryComment” label + textbox
- copy ExpTab.14c.Airport Of Destination.ATA(rrival) value into ImpTab.ActualDeliveryDate
- On change from check TO uncheck:
- hide “DeliveryComment” label + textbox
- clear ImpTab.ActualDeliveryDate
- clear “DeliveryComment” textbox
LCL
- On change from uncheck TO check:
- show “DeliveryComment” label + textbox
- copy ExpTab.15c.Destination Terminal.ATA value into ImpTab.ActualDeliveryDate
- On change from check TO uncheck:
- hide “DeliveryComment” label + textbox
- clear ImpTab.ActualDeliveryDate
- clear “DeliveryComment” textbox
FCL
- On change from uncheck TO check:
- show “DeliveryComment” label + textbox
- copy ExpTab.15c.Destination Terminal.ATA value into ComTable.ContainerTable.ActualDeliveryDateDATEBOX (for EVERY container)
- On change from check TO uncheck:
- hide “DeliveryComment” label + textbox
- clear ComTable.ContainerTable.ActualDeliveryDateDATEBOX (for EVERY container)
- clear “DeliveryComment” textbox // added june 12
Delivery Comment Check Box Rel 1.1
- FCL logic update: apply logic not for EVERY container but for EVERY container with Cont. assigned?=true
- note: "Cont. assigned?" is a column in CT.ContainersTable
Delivery Comment Check Box Rel 1.2
- On change from uncheck TO check first see if "actual arrival date" that we copy into "delivery date" is not empty. If empty then do not allow to enter deliv comment/copy dates. Give error pop-up: "Can not add delivery comment - actual arrival date is empty"
Delivery Comment Check Box RFC
1 // For AIR, OCN.
ImpTab. Delivery Comment logic must be updated to block users from saving Delivery comment if Delivered date remains empty at the moment of Save. Reason: it creates inconsistent state - CT will be on Live CT with delivery comment set. (This happens when arrival dates are empty and systems "copy nothing" to deliv date.
2 // It is possible to clear "ImpTab.Actual Delivery Date" with "c" now. At the same time "Delivery Comment" will remain set. CT would be on Live Tab.
Possible solutions: a) Block users from clearing "ImpTab.Actual Delivery Date" if "Delivery Comment" is set; b) see #4 below
3 // It is possible now to set "Enter Delivery Comment" checkbox and Save. At the same time "Delivery Comment" would be empty. Is this confusing?
4 // As we can see delivery comment logic design is complex with a lot of possible cases and sub cases. Maybe we need to take radical approach and simplify "Delivery Comment" logic all together (for example have it as in CT1 without any dates propagation, check box states, etc.) Dates could be set by operator.
In CT1 there are only two cases (as far as I understand):
- IF Deliv Comment Textbox is not empty THEN ignore Actual Deliv Dates values and moved CT to "Delivered State"
- ELSE IF Deliv Comment Textbox is empty THEN "Delivered/Live State" will be defined by Actual Deliv Date(s)
One question with this simplified design is: somebody must still set Actual Deliv Dates for CT to switch on "Archived state" at some point