CT Editor

From UG

(Difference between revisions)
Jump to: navigation, search
(SOW 3)
(SOW 2 Set Origin and Destination Countries automatically)
 
(6 intermediate revisions not shown)
Line 22: Line 22:
* Location of status line: above tabs
* Location of status line: above tabs
-
=== SOW 2 Sync Orig and Dest Countries with Orig and Dest door fields ===
+
=== SOW 2 Set Origin and Destination Countries automatically ===
mantis: 4191
mantis: 4191
Line 28: Line 28:
spec:
spec:
-
For all MOTs:
+
'''Business need:'''  To automatically pre-fill Origin / Dest country when user sets Shipper/Consignee or Origin/Dest Door. Offer user to update automatically as well when Shipper or Consignee or Origin Door or Destination Door has been changed.
-
* populate Origin/Dest Countries from Pickup/Delivery location
+
'''Solution''': See below
-
** when Pickup/Delivery location is assigned/changed
+
-
** only if Origin/Dest Countries are empty
+
-
** do it for entire CT group
+
-
* make sure validation for Origin/Dest Countries exists as defined in [[KPI#SOW_69_Validation_for_Origin_and_Destination_country]]
+
1) In CT Editor "on Save" look at [[CT#Origin Country]] or [[CT#Destination Country]] and do the following:
-
* apply script for old recs to populate Origin/Dest Countries from Pickup/Delivery location
+
* 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.
-
===  SOW 3 ===
+
* 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.
-
=== Commodity and Container related validations ===
+
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 ALL old CT records in the system to populate Origin/Dest Countries accordingly to algorithm defined in #1 above.
 +
 
 +
4) If country of Orig/Dest country field has changed and new value is different from country in Shipper/Consignee or Orig/Dest Doors then show warning to user.
 +
 
 +
=== SOW 3 Commodity and Container related validations ===
mantis: '''4206'''
mantis: '''4206'''

Current revision as of 15:31, 2 October 2013


Contents

[edit] Info

  • parent: 1650
  • category: CT Editor

[edit] Business Needs

[edit] Analysis and Solution

[edit] SOWs

[edit] 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

[edit] 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. Offer user to update automatically as well when Shipper or Consignee or Origin Door or Destination Door has been changed.

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 ALL old CT records in the system to populate Origin/Dest Countries accordingly to algorithm defined in #1 above.

4) If country of Orig/Dest country field has changed and new value is different from country in Shipper/Consignee or Orig/Dest Doors then show warning to user.

[edit] 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