CT Editor

From UG

(Difference between revisions)
Jump to: navigation, search
(SOW 2 Sync Orig and Dest Countries with Orig and Dest door fields)
(SOW 2 Set Origin and Destination Countries automatically)
Line 30: Line 30:
'''Business need:'''  To automatically pre-fill Origin / Dest country when user sets Shipper/Consignee or Origin/Dest Door.
'''Business need:'''  To automatically pre-fill Origin / Dest country when user sets Shipper/Consignee or Origin/Dest Door.
-
'''Solution''': see below
+
'''Solution''': See below
-
1) script that runs every hour will look at all open CTs that have origin or dest country missing and will do the following:
+
1) In CT Editor "on Save" look at [[CT#Origin Country]] or [[CT#Destination Country]] and do the following:
* If [[CT#Origin Country]] is empty and [[CT#Origin Door]] is set then copy country from Origin Door to Origin Country. If Origin Door is empty but [[CT#Shipper]] is set then copy country from Shipper to Origin Country.
* If [[CT#Origin Country]] is empty and [[CT#Origin Door]] is set then copy country from Origin Door to Origin Country. If Origin Door is empty but [[CT#Shipper]] is set then copy country from Shipper to Origin Country.
Line 38: Line 38:
* If [[CT#Destination Country]] is empty and [[CT#Destination Door]] is set then copy country from Destination Door to Destination Country. If Destination Door is empty but [[CT#Consignee]] is set then copy country from Consignee to Destination Country.
* If [[CT#Destination Country]] is empty and [[CT#Destination Door]] is set then copy country from Destination Door to Destination Country. If Destination Door is empty but [[CT#Consignee]] is set then copy country from Consignee to Destination Country.
-
2) if user changes Shipper/Origin Door or Consignee/Destination Door:
+
Above will be done without warning to user.
-
Check if corresponding country in Origin/Dest country is different. If it is then ask user if he wants to change it as well.
+
2) In CT Editor "on Save" look if country in Shipper or Consignee or Origin Door or Destination Door has been changed.
-
3) apply script for old recs to populate Origin/Dest Countries accordingly to algorithm defined on #1 above.
+
If user updated country in Shipper or Origin Door then check if corresponding country in Origin Country is different. If it is then ask user if he wants to change it as well. Country from Origin Door takes priority over country from Shipper.
 +
 
 +
Similarly, if user updated country in Consignee or Destination Door then check if corresponding country in Destination Country is different. If it is then ask user if he wants to change it as well. Country from Destination Door takes priority over country from Shipper.
 +
 
 +
3) Apply script for old recs to populate Origin/Dest Countries accordingly to algorithm defined on #1 above.
===  SOW 3 Commodity and Container related validations ===
===  SOW 3 Commodity and Container related validations ===

Revision as of 15:58, 30 September 2013


Contents

Info

  • parent: 1650
  • category: CT Editor

Business Needs

Analysis and Solution

SOWs

SOW 1 Replace confirm pop-ups with Status Line

mantis: 4269

spec:

  • Replace confirmation pop-ups with "status line" messages
  • Example of such pop up: "Shipment is saved [OK]"
  • Location of status line: above tabs

SOW 2 Set Origin and Destination Countries automatically

mantis: 4191

spec:

Business need: To automatically pre-fill Origin / Dest country when user sets Shipper/Consignee or Origin/Dest Door.

Solution: See below

1) In CT Editor "on Save" look at CT#Origin Country or CT#Destination Country and do the following:

  • If CT#Origin Country is empty and CT#Origin Door is set then copy country from Origin Door to Origin Country. If Origin Door is empty but CT#Shipper is set then copy country from Shipper to Origin Country.

Above will be done without warning to user.

2) In CT Editor "on Save" look if country in Shipper or Consignee or Origin Door or Destination Door has been changed.

If user updated country in Shipper or Origin Door then check if corresponding country in Origin Country is different. If it is then ask user if he wants to change it as well. Country from Origin Door takes priority over country from Shipper.

Similarly, if user updated country in Consignee or Destination Door then check if corresponding country in Destination Country is different. If it is then ask user if he wants to change it as well. Country from Destination Door takes priority over country from Shipper.

3) Apply script for old recs to populate Origin/Dest Countries accordingly to algorithm defined on #1 above.

SOW 3 Commodity and Container related validations

mantis: 4206

Add validations for the session when user sets Actual Departure Date:

  • 0/ there should be at least one commodity line (all MOTs)
  • 1/ there should be at least one container (all ocean MOTs)
  • 2/ all commodities must be assigned to containers (all ocean MOTs)
    • Error message should say: "Error: Not all commodities are assigned to containers"
  • 3/ each container of this CT record must have at least ONE commodity assigned (all ocean MOTs)
    • Error message should specify container's numbers that have no assignments
  • 4/ in Master case, system should validate all CTs contained in Master

NOTE: Now we have similar validation when Actual Delivery date is set. Remove it.

Also after Actual Departure Date is set and user attempts to:

  • remove all commod lines
  • change container assignments to leave one of them unassigned

system should prevent users giving error.

Personal tools