Differences between revisions 2 and 3
Revision 2 as of 2007-10-09 16:39:12
Size: 879
Revision 3 as of 2008-01-03 13:48:05
Size: 879
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

The merge method description:

merge( delivery_list )

context: main_delivery – has to be included in the delivery_list too

returns: newly created merged delivery


  • does sanity checks (check if deliveries have the same portal type, etc.) – if fail return an error
  • check existence of simulation movements
  • if no simulation movements:
    • create a temporary applied rule
    • add temporary simulation movements based on delivery lines
    • do merge by using the builder on a main delivery
  • if simulation movements exists:
    • in case of deliveries without orders:
      • move movements to main delivery's applied rule
      • rebuild with delivery builder
    • in case of deliveries with orders:
      • group chosen movements into the main delivery group
      • rebuild with delivery builder
  • cancel old deliveries

Discussion/MergingDeliveries (last edited 2008-01-03 13:48:05 by localhost)