Containers and Contents Component

From UG

(Difference between revisions)
Jump to: navigation, search
(Version 1.1)
Line 20: Line 20:
ss1 //
ss1 //
 +
 +
== Misc ==
 +
 +
=== Old spec ===
 +
 +
Container related Logic and Use Cases for Master Ocean
 +
======================================================
 +
 +
1. Intro
 +
--------
 +
 +
1.1
 +
Containers in Master are managed through Master Containers List/Panel located
 +
on Master Details Tab.
 +
 +
1.2
 +
CTs that are part of the given Master have their own Container Panels located
 +
on ComTableTab
 +
being disabled. But commodity items in CT can be assigned to containers through
 +
CT's Commodity Tab.
 +
Commodity-to-container assignment dropdown is always showing Master Containers
 +
List.
 +
 +
1.3
 +
For every Master/CT use case we need to ask the following questions:
 +
 +
q1) what happens to containers list in M?
 +
q2) what happens to commodity-to-container assignment dropdown in CT?
 +
q3) what happens to commodity-to-container assignment in CT?
 +
 +
1.4
 +
There will be additional panel for assignment of contents in Master.
 +
Append it below Master Container Panel.
 +
Through this Panel User should be able to select subset of CTs (that are part
 +
of this Master).
 +
Then select ONE container from the Master Containers List. Then press "Move"
 +
button.
 +
As a result all content from selected CTs will be re-assigned to selected above
 +
container.
 +
 +
1.5
 +
If CT is deleted then remove CT from master
 +
 +
 +
2. Use cases
 +
------------
 +
 +
UC1) Create Master. Manage Master Conatiners. (Add, remove, edit)
 +
same as in individual CT
 +
 +
UC2) Create Master based on CT.
 +
-------------------------------
 +
* create new Master;
 +
* add all containers to M;
 +
 +
UC3) Add CT1,..., CTN to M (KEEP CONTAINERS=y)
 +
----------------------------------------------
 +
q1) what happens to containers list in M?
 +
this list is a superset of all containers in M and in all CT's
 +
 +
q2) what happens to commodity-to-container assignment dropdown in CT?
 +
all CTs have same Master Containers List in commodity-to-container assignment
 +
dropdown
 +
 +
q3) what happens to commodity-to-container assignment in CT?
 +
remains the same
 +
 +
UC4) Add CT1,..., CTN to M (KEEP CONTAINERS=n)
 +
----------------------------------------------
 +
q1) what happens to containers list in M?
 +
remains the same
 +
 +
q2) what happens to commodity-to-container assignment dropdown in CT?
 +
shows only containers from M's containers list
 +
 +
q3) what happens to commodity-to-container assignment in CT?
 +
all items assigned to "undefined"
 +
 +
UC5) Remove CT1,..., CTN from M
 +
-------------------------------
 +
q1) what happens to containers list in M?
 +
remains the same
 +
 +
q2) what happens to commodity-to-container assignment dropdown in CT?
 +
shows only "undefined"
 +
 +
q3) what happens to commodity-to-container assignment?
 +
all items assigned to "undefined"
 +
 +
3. Questions
 +
------------
 +
Example1:
 +
Day 1: CT#10. Container added: Cont# AAAA-222222-1, size/type: DV 20ft,
 +
seal#b123
 +
 +
Day 2: CT#11. Container added: Cont# AAAA-222222-1, size/type: HQ 40ft,
 +
seal#b123
 +
 +
Day 3: M#5. CT#10 added (keep containers=y) to M#5.
 +
Master Container list now has Cont# AAAA-222222-1, size/type: DV 20ft,
 +
seal#b123
 +
 +
Day 4: M#5. CT#11 added (keep containers=y) to M#5.
 +
Master Container list now has both:
 +
Cont# AAAA-222222-1, size/type: DV 20ft, seal#b123
 +
Cont# AAAA-222222-1, size/type: HQ 40ft, seal#b123
 +
This is probably incorrect - same container number but different types. System
 +
treats them as two different containers.
 +
 +
Suggested solution: System will keep record (register) all containers ever
 +
entered (container#/size/type/seal) and if user is trying to add
 +
existing container# but with new size/type then system would complain (or it
 +
could pre-fill size/type itself).
 +
 +
QUESTION: If we implement this then how to let users edit size/type in case
 +
they made error originally?
 +
If we let them edit then all "old" records will show "new" size/type for a
 +
given cont#. Is that OK?
 +
 +
Also, similar question is with seal#. Is it possible to have 2 containers with
 +
same cont#/size/type but different seal#?
 +
In what cases? What to do if user is trying to add these 2 containers to the
 +
same CT or M?
 +
 +
Another related example:
 +
Example2:
 +
Day 1: CT#10. Container added: Cont# AAAA-222222-1, size/type: DV 20ft,
 +
seal#ffff
 +
Day 2: CT#10. Container added: Cont# AAAA-222222-1, size/type: HQ 40ft,
 +
seal#gggg
 +
 +
 +
------- Comment #1 From Natalia Mitasova 2008-11-19 16:29 [reply] -------
 +
 +
When clicked on "Move this CT to Master" and Master id not inputted
 +
  there is NullPointerException
 +
 +
 +
------- Comment #2 From Dmitriy Chagin 2008-11-19 16:51 [reply] -------
 +
 +
(In reply to comment #1)
 +
> When clicked on "Move this CT to Master" and Master id not inputted
 +
> there is NullPointerException
 +
>
 +
 +
Fixed.
 +
 +
 +
------- Comment #3 From Natalia Mitasova 2008-11-19 17:17 [reply] -------
 +
 +
In TruckingOcean CTs created containers don't save when pressing save button
 +
 +
 +
------- Comment #4 From Dmitriy Chagin 2008-11-19 19:10 [reply] -------
 +
 +
Additional trucking logic:
 +
 +
If trucking shipment is saved then containers doesn't become part of master.
 +
And if "keep containers" = off then containers will be deleted.
 +
 +
 +
------- Comment #5 From Dmitriy Chagin 2008-11-19 19:29 [reply] -------
 +
 +
(In reply to comment #3)
 +
> In TruckingOcean CTs created containers don't save when pressing save button
 +
>
 +
 +
Done.
 +
 +
(In reply to comment #4)
 +
> Additional trucking logic:
 +
>
 +
> If trucking shipment is saved then containers doesn't become part of master.
 +
> And if "keep containers" = off then containers will be deleted.
 +
>
 +
 +
Done.
 +
 +
 +
------- Comment #6 From Dmitriy Chagin 2008-11-19 19:58 [reply] -------
 +
 +
Fixed delete masters bug.
 +
 +
 +
------- Comment #7 From Natalia Mitasova 2008-11-20 13:45 [reply] -------
 +
 +
Logic:
 +
UC6) Remove M with CT1,..., CTN assigned to it
 +
 +
q1) what happens to CT?
 +
CT is no longer assigned to any master
 +
 +
q2) what happens to containers list in CT?
 +
there will be no containers
 +
 +
q3 what happens to commodity-to-container assignment dropdown in CT?
 +
all items assigned to "undefined"
 +
 +
q4) what happens to commodity-to-container assignment in CT?
 +
all items assigned to "undefined"
 +
 +
 +
------- Comment #8 From Dmitriy Putilov 2008-11-20 15:09 [reply] -------
 +
 +
Old emails removed.
 +
 +
 +
------- Comment #9 From Dmitriy Putilov 2008-11-20 15:10 [reply] -------
 +
 +
New developer added.
 +
 +
 +
------- Comment #10 From Dmitriy Chagin 2008-11-22 12:20 [reply] -------
 +
 +
*** Bug 10487 has been marked as a duplicate of this bug. ***
 +
 +
 +
------- Comment #11 From Alex Dobrovolsky 2008-12-03 09:47 [reply] -------
 +
 +
milestone ass
 +
 +
 +
------- Comment #12 From Dmitriy Chagin 2008-12-03 17:26 [reply] -------
 +
 +
Shall we close this bug if it's done?
 +
You tested it?

Revision as of 18:14, 9 October 2009


Note: Contents is synonym for Commodities

Contents

CT Containers Table

FCL vs LCL

Dates

Completness for Containers and Contents

At some point in life cycle of CT both Containers and Commodity tables become complete:

  • every container listed on Containers Table is not empty (has at least one commodity line assigned)
  • every line listed under Commodity Table is "assigned" to a container

Containers and Contents Completeness is required for some operations for example generating pdf

Version 1.1

ss1 //

Misc

Old spec

Container related Logic and Use Cases for Master Ocean

==========================================

1. Intro


1.1 Containers in Master are managed through Master Containers List/Panel located on Master Details Tab.

1.2 CTs that are part of the given Master have their own Container Panels located on ComTableTab being disabled. But commodity items in CT can be assigned to containers through CT's Commodity Tab. Commodity-to-container assignment dropdown is always showing Master Containers List.

1.3 For every Master/CT use case we need to ask the following questions:

q1) what happens to containers list in M? q2) what happens to commodity-to-container assignment dropdown in CT? q3) what happens to commodity-to-container assignment in CT?

1.4 There will be additional panel for assignment of contents in Master. Append it below Master Container Panel. Through this Panel User should be able to select subset of CTs (that are part of this Master). Then select ONE container from the Master Containers List. Then press "Move" button. As a result all content from selected CTs will be re-assigned to selected above container.

1.5 If CT is deleted then remove CT from master


2. Use cases


UC1) Create Master. Manage Master Conatiners. (Add, remove, edit) same as in individual CT

UC2) Create Master based on CT.


  • create new Master;
  • add all containers to M;

UC3) Add CT1,..., CTN to M (KEEP CONTAINERS=y)


q1) what happens to containers list in M? this list is a superset of all containers in M and in all CT's

q2) what happens to commodity-to-container assignment dropdown in CT? all CTs have same Master Containers List in commodity-to-container assignment dropdown

q3) what happens to commodity-to-container assignment in CT? remains the same

UC4) Add CT1,..., CTN to M (KEEP CONTAINERS=n)


q1) what happens to containers list in M? remains the same

q2) what happens to commodity-to-container assignment dropdown in CT? shows only containers from M's containers list

q3) what happens to commodity-to-container assignment in CT? all items assigned to "undefined"

UC5) Remove CT1,..., CTN from M


q1) what happens to containers list in M? remains the same

q2) what happens to commodity-to-container assignment dropdown in CT? shows only "undefined"

q3) what happens to commodity-to-container assignment? all items assigned to "undefined"

3. Questions


Example1: Day 1: CT#10. Container added: Cont# AAAA-222222-1, size/type: DV 20ft, seal#b123

Day 2: CT#11. Container added: Cont# AAAA-222222-1, size/type: HQ 40ft, seal#b123

Day 3: M#5. CT#10 added (keep containers=y) to M#5. Master Container list now has Cont# AAAA-222222-1, size/type: DV 20ft, seal#b123

Day 4: M#5. CT#11 added (keep containers=y) to M#5. Master Container list now has both: Cont# AAAA-222222-1, size/type: DV 20ft, seal#b123 Cont# AAAA-222222-1, size/type: HQ 40ft, seal#b123 This is probably incorrect - same container number but different types. System treats them as two different containers.

Suggested solution: System will keep record (register) all containers ever entered (container#/size/type/seal) and if user is trying to add existing container# but with new size/type then system would complain (or it could pre-fill size/type itself).

QUESTION: If we implement this then how to let users edit size/type in case they made error originally? If we let them edit then all "old" records will show "new" size/type for a given cont#. Is that OK?

Also, similar question is with seal#. Is it possible to have 2 containers with same cont#/size/type but different seal#? In what cases? What to do if user is trying to add these 2 containers to the same CT or M?

Another related example: Example2: Day 1: CT#10. Container added: Cont# AAAA-222222-1, size/type: DV 20ft, seal#ffff Day 2: CT#10. Container added: Cont# AAAA-222222-1, size/type: HQ 40ft, seal#gggg



Comment #1 From Natalia Mitasova 2008-11-19 16:29 [reply] -------

When clicked on "Move this CT to Master" and Master id not inputted

 there is NullPointerException



Comment #2 From Dmitriy Chagin 2008-11-19 16:51 [reply] -------

(In reply to comment #1) > When clicked on "Move this CT to Master" and Master id not inputted > there is NullPointerException >

Fixed.



Comment #3 From Natalia Mitasova 2008-11-19 17:17 [reply] -------

In TruckingOcean CTs created containers don't save when pressing save button



Comment #4 From Dmitriy Chagin 2008-11-19 19:10 [reply] -------

Additional trucking logic:

If trucking shipment is saved then containers doesn't become part of master. And if "keep containers" = off then containers will be deleted.



Comment #5 From Dmitriy Chagin 2008-11-19 19:29 [reply] -------

(In reply to comment #3) > In TruckingOcean CTs created containers don't save when pressing save button >

Done.

(In reply to comment #4) > Additional trucking logic: > > If trucking shipment is saved then containers doesn't become part of master. > And if "keep containers" = off then containers will be deleted. >

Done.



Comment #6 From Dmitriy Chagin 2008-11-19 19:58 [reply] -------

Fixed delete masters bug.



Comment #7 From Natalia Mitasova 2008-11-20 13:45 [reply] -------

Logic: UC6) Remove M with CT1,..., CTN assigned to it

q1) what happens to CT? CT is no longer assigned to any master

q2) what happens to containers list in CT? there will be no containers

q3 what happens to commodity-to-container assignment dropdown in CT? all items assigned to "undefined"

q4) what happens to commodity-to-container assignment in CT? all items assigned to "undefined"



Comment #8 From Dmitriy Putilov 2008-11-20 15:09 [reply] -------

Old emails removed.



Comment #9 From Dmitriy Putilov 2008-11-20 15:10 [reply] -------

New developer added.



Comment #10 From Dmitriy Chagin 2008-11-22 12:20 [reply] -------
      • Bug 10487 has been marked as a duplicate of this bug. ***



Comment #11 From Alex Dobrovolsky 2008-12-03 09:47 [reply] -------

milestone ass



Comment #12 From Dmitriy Chagin 2008-12-03 17:26 [reply] -------

Shall we close this bug if it's done? You tested it?

Personal tools