S Q L   Q u e r i e s   a n d   D a t a b a s e   R e f e r e n c e s   F o u n d   i n   S o u r c e   C o d e 
 
 G e n e r a t e d :   0 2 / 1 0 / 2 0 2 6   2 0 : 5 4 : 5 9 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ C o m m a n d s \ S h i p p i n g R e p o r t s \ P r e v i o u s M o n t h R e p o r t s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   e p i c o r ] : 
 
         1 :   < ? p h p   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s \ S h i p p i n g R e p o r t s ; 
 
         2 :   
 
   > >   3 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         4 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         5 :   u s e   I l l u m i n a t e \ S u p p o r t \ F a c a d e s \ S t o r a g e ; 
 
 
 
     L i n e   3 5   [ m a t c h :   e p i c o r ] : 
 
         3 3 :                   $ t h i s - > i n f o ( " R u n   S h i p p i n g   F o r   M o n t h   $ l a s t m o n t h " ) ; 
 
         3 4 :   
 
   > >   3 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r   * / 
 
         3 6 :                   $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 :   
 
 
 
     L i n e   3 6   [ m a t c h :   e p i c o r ] : 
 
         3 4 :   
 
         3 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r   * / 
 
   > >   3 6 :                   $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 :   
 
         3 8 :                   $ o r d e r s   =   $ e p i c o r - > g e t S h i p p i n g F o r M o n t h ( $ l a s t m o n t h ) ; 
 
 
 
     L i n e   3 8   [ m a t c h :   e p i c o r ] : 
 
         3 6 :                   $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 :   
 
   > >   3 8 :                   $ o r d e r s   =   $ e p i c o r - > g e t S h i p p i n g F o r M o n t h ( $ l a s t m o n t h ) ; 
 
         3 9 :   
 
         4 0 :                   $ f i l e n a m e   =   " S h i p p i n g R e p o r t - " . d a t e ( ' Y - m ' ,   s t r t o t i m e ( d a t e ( ' Y - m ' ) . "   - 1   m o n t h " ) ) . " . x l s x " ; 
 
 
 
     L i n e   3   [ m a t c h :   E p i c o r ] : 
 
         1 :   < ? p h p   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s \ S h i p p i n g R e p o r t s ; 
 
         2 :   
 
   > >   3 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         4 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         5 :   u s e   I l l u m i n a t e \ S u p p o r t \ F a c a d e s \ S t o r a g e ; 
 
 
 
     L i n e   3 5   [ m a t c h :   E p i c o r ] : 
 
         3 3 :                   $ t h i s - > i n f o ( " R u n   S h i p p i n g   F o r   M o n t h   $ l a s t m o n t h " ) ; 
 
         3 4 :   
 
   > >   3 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r   * / 
 
         3 6 :                   $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 :   
 
 
 
     L i n e   3 6   [ m a t c h :   E p i c o r ] : 
 
         3 4 :   
 
         3 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r   * / 
 
   > >   3 6 :                   $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 :   
 
         3 8 :                   $ o r d e r s   =   $ e p i c o r - > g e t S h i p p i n g F o r M o n t h ( $ l a s t m o n t h ) ; 
 
 
 
     L i n e   3 8   [ m a t c h :   E p i c o r ] : 
 
         3 6 :                   $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 :   
 
   > >   3 8 :                   $ o r d e r s   =   $ e p i c o r - > g e t S h i p p i n g F o r M o n t h ( $ l a s t m o n t h ) ; 
 
         3 9 :   
 
         4 0 :                   $ f i l e n a m e   =   " S h i p p i n g R e p o r t - " . d a t e ( ' Y - m ' ,   s t r t o t i m e ( d a t e ( ' Y - m ' ) . "   - 1   m o n t h " ) ) . " . x l s x " ; 
 
 
 
     L i n e   3   [ m a t c h :   E P I C O R ] : 
 
         1 :   < ? p h p   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s \ S h i p p i n g R e p o r t s ; 
 
         2 :   
 
   > >   3 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         4 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         5 :   u s e   I l l u m i n a t e \ S u p p o r t \ F a c a d e s \ S t o r a g e ; 
 
 
 
     L i n e   3 5   [ m a t c h :   E P I C O R ] : 
 
         3 3 :                   $ t h i s - > i n f o ( " R u n   S h i p p i n g   F o r   M o n t h   $ l a s t m o n t h " ) ; 
 
         3 4 :   
 
   > >   3 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r   * / 
 
         3 6 :                   $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 :   
 
 
 
     L i n e   3 6   [ m a t c h :   E P I C O R ] : 
 
         3 4 :   
 
         3 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r   * / 
 
   > >   3 6 :                   $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 :   
 
         3 8 :                   $ o r d e r s   =   $ e p i c o r - > g e t S h i p p i n g F o r M o n t h ( $ l a s t m o n t h ) ; 
 
 
 
     L i n e   3 8   [ m a t c h :   E P I C O R ] : 
 
         3 6 :                   $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 :   
 
   > >   3 8 :                   $ o r d e r s   =   $ e p i c o r - > g e t S h i p p i n g F o r M o n t h ( $ l a s t m o n t h ) ; 
 
         3 9 :   
 
         4 0 :                   $ f i l e n a m e   =   " S h i p p i n g R e p o r t - " . d a t e ( ' Y - m ' ,   s t r t o t i m e ( d a t e ( ' Y - m ' ) . "   - 1   m o n t h " ) ) . " . x l s x " ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ C o m m a n d s \ S h i p p i n g R e p o r t s \ S e e d C u r r e n t Y e a r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   e p i c o r ] : 
 
         1 :   < ? p h p   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s \ S h i p p i n g R e p o r t s ; 
 
         2 :   
 
   > >   3 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         4 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         5 :   u s e   I l l u m i n a t e \ S u p p o r t \ F a c a d e s \ S t o r a g e ; 
 
 
 
     L i n e   4 0   [ m a t c h :   e p i c o r ] : 
 
         3 8 :                           $ t h i s - > i n f o ( " R u n   S h i p p i n g   F o r   M o n t h   $ l a s t m o n t h " ) ; 
 
         3 9 :   
 
   > >   4 0 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r   * / 
 
         4 1 :                           $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 2 :   
 
 
 
     L i n e   4 1   [ m a t c h :   e p i c o r ] : 
 
         3 9 :   
 
         4 0 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r   * / 
 
   > >   4 1 :                           $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 2 :   
 
         4 3 :                           $ o r d e r s   =   $ e p i c o r - > g e t S h i p p i n g F o r M o n t h ( $ l a s t m o n t h ) ; 
 
 
 
     L i n e   4 3   [ m a t c h :   e p i c o r ] : 
 
         4 1 :                           $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 2 :   
 
   > >   4 3 :                           $ o r d e r s   =   $ e p i c o r - > g e t S h i p p i n g F o r M o n t h ( $ l a s t m o n t h ) ; 
 
         4 4 :   
 
         4 5 :                           $ f i l e n a m e   =   " S h i p p i n g R e p o r t - "   .   d a t e ( ' Y ' ) . ' - ' . d a t e ( ' m ' ,   s t r t o t i m e ( ' 2 0 2 3 - ' . $ l a s t m o n t h . ' - 0 1 ' ) )   .   " . x l s x " ; 
 
 
 
     L i n e   3   [ m a t c h :   E p i c o r ] : 
 
         1 :   < ? p h p   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s \ S h i p p i n g R e p o r t s ; 
 
         2 :   
 
   > >   3 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         4 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         5 :   u s e   I l l u m i n a t e \ S u p p o r t \ F a c a d e s \ S t o r a g e ; 
 
 
 
     L i n e   4 0   [ m a t c h :   E p i c o r ] : 
 
         3 8 :                           $ t h i s - > i n f o ( " R u n   S h i p p i n g   F o r   M o n t h   $ l a s t m o n t h " ) ; 
 
         3 9 :   
 
   > >   4 0 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r   * / 
 
         4 1 :                           $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 2 :   
 
 
 
     L i n e   4 1   [ m a t c h :   E p i c o r ] : 
 
         3 9 :   
 
         4 0 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r   * / 
 
   > >   4 1 :                           $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 2 :   
 
         4 3 :                           $ o r d e r s   =   $ e p i c o r - > g e t S h i p p i n g F o r M o n t h ( $ l a s t m o n t h ) ; 
 
 
 
     L i n e   4 3   [ m a t c h :   E p i c o r ] : 
 
         4 1 :                           $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 2 :   
 
   > >   4 3 :                           $ o r d e r s   =   $ e p i c o r - > g e t S h i p p i n g F o r M o n t h ( $ l a s t m o n t h ) ; 
 
         4 4 :   
 
         4 5 :                           $ f i l e n a m e   =   " S h i p p i n g R e p o r t - "   .   d a t e ( ' Y ' ) . ' - ' . d a t e ( ' m ' ,   s t r t o t i m e ( ' 2 0 2 3 - ' . $ l a s t m o n t h . ' - 0 1 ' ) )   .   " . x l s x " ; 
 
 
 
     L i n e   3   [ m a t c h :   E P I C O R ] : 
 
         1 :   < ? p h p   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s \ S h i p p i n g R e p o r t s ; 
 
         2 :   
 
   > >   3 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         4 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         5 :   u s e   I l l u m i n a t e \ S u p p o r t \ F a c a d e s \ S t o r a g e ; 
 
 
 
     L i n e   4 0   [ m a t c h :   E P I C O R ] : 
 
         3 8 :                           $ t h i s - > i n f o ( " R u n   S h i p p i n g   F o r   M o n t h   $ l a s t m o n t h " ) ; 
 
         3 9 :   
 
   > >   4 0 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r   * / 
 
         4 1 :                           $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 2 :   
 
 
 
     L i n e   4 1   [ m a t c h :   E P I C O R ] : 
 
         3 9 :   
 
         4 0 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r   * / 
 
   > >   4 1 :                           $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 2 :   
 
         4 3 :                           $ o r d e r s   =   $ e p i c o r - > g e t S h i p p i n g F o r M o n t h ( $ l a s t m o n t h ) ; 
 
 
 
     L i n e   4 3   [ m a t c h :   E P I C O R ] : 
 
         4 1 :                           $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 2 :   
 
   > >   4 3 :                           $ o r d e r s   =   $ e p i c o r - > g e t S h i p p i n g F o r M o n t h ( $ l a s t m o n t h ) ; 
 
         4 4 :   
 
         4 5 :                           $ f i l e n a m e   =   " S h i p p i n g R e p o r t - "   .   d a t e ( ' Y ' ) . ' - ' . d a t e ( ' m ' ,   s t r t o t i m e ( ' 2 0 2 3 - ' . $ l a s t m o n t h . ' - 0 1 ' ) )   .   " . x l s x " ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ C o m m a n d s \ S h i p p i n g R e p o r t s \ Y e a r T o D a t e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   e p i c o r ] : 
 
         1 :   < ? p h p   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s \ S h i p p i n g R e p o r t s ; 
 
         2 :   
 
   > >   3 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         4 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         5 :   u s e   I l l u m i n a t e \ S u p p o r t \ F a c a d e s \ S t o r a g e ; 
 
 
 
     L i n e   3 3   [ m a t c h :   e p i c o r ] : 
 
         3 1 :   
 
         3 2 :   
 
   > >   3 3 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r   * / 
 
         3 4 :                           $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 5 :   
 
 
 
     L i n e   3 4   [ m a t c h :   e p i c o r ] : 
 
         3 2 :   
 
         3 3 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r   * / 
 
   > >   3 4 :                           $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 5 :   
 
         3 6 :                           $ o r d e r s   =   $ e p i c o r - > g e t S h i p p i n g Y T D ( ) ; 
 
 
 
     L i n e   3 6   [ m a t c h :   e p i c o r ] : 
 
         3 4 :                           $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 5 :   
 
   > >   3 6 :                           $ o r d e r s   =   $ e p i c o r - > g e t S h i p p i n g Y T D ( ) ; 
 
         3 7 :   
 
         3 8 :                           $ f i l e n a m e   =   " A A A - S h i p p i n g R e p o r t - Y e a r T o D a t e . x l s x " ; 
 
 
 
     L i n e   3   [ m a t c h :   E p i c o r ] : 
 
         1 :   < ? p h p   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s \ S h i p p i n g R e p o r t s ; 
 
         2 :   
 
   > >   3 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         4 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         5 :   u s e   I l l u m i n a t e \ S u p p o r t \ F a c a d e s \ S t o r a g e ; 
 
 
 
     L i n e   3 3   [ m a t c h :   E p i c o r ] : 
 
         3 1 :   
 
         3 2 :   
 
   > >   3 3 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r   * / 
 
         3 4 :                           $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 5 :   
 
 
 
     L i n e   3 4   [ m a t c h :   E p i c o r ] : 
 
         3 2 :   
 
         3 3 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r   * / 
 
   > >   3 4 :                           $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 5 :   
 
         3 6 :                           $ o r d e r s   =   $ e p i c o r - > g e t S h i p p i n g Y T D ( ) ; 
 
 
 
     L i n e   3 6   [ m a t c h :   E p i c o r ] : 
 
         3 4 :                           $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 5 :   
 
   > >   3 6 :                           $ o r d e r s   =   $ e p i c o r - > g e t S h i p p i n g Y T D ( ) ; 
 
         3 7 :   
 
         3 8 :                           $ f i l e n a m e   =   " A A A - S h i p p i n g R e p o r t - Y e a r T o D a t e . x l s x " ; 
 
 
 
     L i n e   3   [ m a t c h :   E P I C O R ] : 
 
         1 :   < ? p h p   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s \ S h i p p i n g R e p o r t s ; 
 
         2 :   
 
   > >   3 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         4 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         5 :   u s e   I l l u m i n a t e \ S u p p o r t \ F a c a d e s \ S t o r a g e ; 
 
 
 
     L i n e   3 3   [ m a t c h :   E P I C O R ] : 
 
         3 1 :   
 
         3 2 :   
 
   > >   3 3 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r   * / 
 
         3 4 :                           $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 5 :   
 
 
 
     L i n e   3 4   [ m a t c h :   E P I C O R ] : 
 
         3 2 :   
 
         3 3 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r   * / 
 
   > >   3 4 :                           $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 5 :   
 
         3 6 :                           $ o r d e r s   =   $ e p i c o r - > g e t S h i p p i n g Y T D ( ) ; 
 
 
 
     L i n e   3 6   [ m a t c h :   E P I C O R ] : 
 
         3 4 :                           $ e p i c o r   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 5 :   
 
   > >   3 6 :                           $ o r d e r s   =   $ e p i c o r - > g e t S h i p p i n g Y T D ( ) ; 
 
         3 7 :   
 
         3 8 :                           $ f i l e n a m e   =   " A A A - S h i p p i n g R e p o r t - Y e a r T o D a t e . x l s x " ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ C o m m a n d s \ v o r t e q \ f i x s c h e d u l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 3 3   [ m a t c h :   F R O M   ] : 
 
         2 3 1 :                   / /   L o o p   t h r o u g h   d i r e c t o r y   u s i n g   g l o b   w i t h   p a t t e r n 
 
         2 3 2 :                   f o r e a c h   ( g l o b ( $ d i r e c t o r y   .   " / p a i n t _ s c h e d u l e _ f o r m d a t a * . t x t " )   a s   $ f i l e P a t h )   { 
 
   > >   2 3 3 :                           / /   E x t r a c t   t i m e s t a m p   f r o m   f i l e n a m e 
 
         2 3 4 :                           $ p a r t s   =   e x p l o d e ( " _ " ,   b a s e n a m e ( $ f i l e P a t h ) ) ; 
 
         2 3 5 :                           $ t i m e s t a m p   =   a r r a y _ p o p ( $ p a r t s ) ; 
 
 
 
     L i n e   2 8 4   [ m a t c h :   F R O M   ] : 
 
         2 8 2 :   
 
         2 8 3 :   
 
   > >   2 8 4 :                           $ s q l   =   " D E L E T E   F R O M   d b o . p a i n t _ S c h e d u l e   W H E R E   P l a n t L i n e   I N   ( ' $ l i n e ' ) " ; 
 
         2 8 5 :                           $ t h i s - > w a r n ( " r e s t o r i n g   $ l i n e   $ s q l " ) ; 
 
         2 8 6 :                           / * *   @ v a r   E M C o n t a i n e r   $ E M s   * / 
 
 
 
     L i n e   2 8 4   [ m a t c h :   D E L E T E   F R O M ] : 
 
         2 8 2 :   
 
         2 8 3 :   
 
   > >   2 8 4 :                           $ s q l   =   " D E L E T E   F R O M   d b o . p a i n t _ S c h e d u l e   W H E R E   P l a n t L i n e   I N   ( ' $ l i n e ' ) " ; 
 
         2 8 5 :                           $ t h i s - > w a r n ( " r e s t o r i n g   $ l i n e   $ s q l " ) ; 
 
         2 8 6 :                           / * *   @ v a r   E M C o n t a i n e r   $ E M s   * / 
 
 
 
     L i n e   1 0 8   [ m a t c h :   e p i c o r ] : 
 
         1 0 6 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t   $ P a i n t P l a n t   * / 
 
         1 0 7 :                   f o r e a c h   ( $ t h e p l a n t s   A S   $ P a i n t P l a n t ) 
 
   > >   1 0 8 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ]   =   $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ; 
 
         1 0 9 :   
 
         1 1 0 :   
 
 
 
     L i n e   1 2 1   [ m a t c h :   e p i c o r ] : 
 
         1 1 9 :                   / * *   @ v a r   p a i n t _ P l a n t L i n e   $ P a i n t P l a n t L i n e   * / 
 
         1 2 0 :                   f o r e a c h ( $ t h e l i n e s   A S   $ P a i n t P l a n t L i n e ) 
 
   > >   1 2 1 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t L i n e - > g e t P a i n t P l a n t ( ) - > g e t E p i c o r K e y ( ) . " - " . $ P a i n t P l a n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ]   =   t r u e ; 
 
         1 2 2 :                   / / p r o d _ c o d e 
 
         1 2 3 :   
 
 
 
     L i n e   1 0 8   [ m a t c h :   E p i c o r ] : 
 
         1 0 6 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t   $ P a i n t P l a n t   * / 
 
         1 0 7 :                   f o r e a c h   ( $ t h e p l a n t s   A S   $ P a i n t P l a n t ) 
 
   > >   1 0 8 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ]   =   $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ; 
 
         1 0 9 :   
 
         1 1 0 :   
 
 
 
     L i n e   1 2 1   [ m a t c h :   E p i c o r ] : 
 
         1 1 9 :                   / * *   @ v a r   p a i n t _ P l a n t L i n e   $ P a i n t P l a n t L i n e   * / 
 
         1 2 0 :                   f o r e a c h ( $ t h e l i n e s   A S   $ P a i n t P l a n t L i n e ) 
 
   > >   1 2 1 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t L i n e - > g e t P a i n t P l a n t ( ) - > g e t E p i c o r K e y ( ) . " - " . $ P a i n t P l a n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ]   =   t r u e ; 
 
         1 2 2 :                   / / p r o d _ c o d e 
 
         1 2 3 :   
 
 
 
     L i n e   1 0 8   [ m a t c h :   E P I C O R ] : 
 
         1 0 6 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t   $ P a i n t P l a n t   * / 
 
         1 0 7 :                   f o r e a c h   ( $ t h e p l a n t s   A S   $ P a i n t P l a n t ) 
 
   > >   1 0 8 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ]   =   $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ; 
 
         1 0 9 :   
 
         1 1 0 :   
 
 
 
     L i n e   1 2 1   [ m a t c h :   E P I C O R ] : 
 
         1 1 9 :                   / * *   @ v a r   p a i n t _ P l a n t L i n e   $ P a i n t P l a n t L i n e   * / 
 
         1 2 0 :                   f o r e a c h ( $ t h e l i n e s   A S   $ P a i n t P l a n t L i n e ) 
 
   > >   1 2 1 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t L i n e - > g e t P a i n t P l a n t ( ) - > g e t E p i c o r K e y ( ) . " - " . $ P a i n t P l a n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ]   =   t r u e ; 
 
         1 2 2 :                   / / p r o d _ c o d e 
 
         1 2 3 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ C o m m a n d s \ B a r C o d e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4   [ m a t c h :   e p i c o r ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         6 :   u s e   S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ; 
 
 
 
     L i n e   4   [ m a t c h :   E p i c o r ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         6 :   u s e   S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ; 
 
 
 
     L i n e   4   [ m a t c h :   E P I C O R ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         6 :   u s e   S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ C o m m a n d s \ C l e a r O l d I n v o i c e s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 1   [ m a t c h :   F R O M   ] : 
 
         4 9 :                 i n v _ U p l o a d . I D   a s   i n v _ U p l o a d _ I D 
 
         5 0 :   
 
   > >   5 1 :       F R O M   [ i n v _ U p l o a d ] 
 
         5 2 :   
 
         5 3 :       W H E R E   U p l o a d D T   <   C O N V E R T ( d a t e , G E T D A T E ( )   -   3 0 ) 
 
 
 
     L i n e   1 0 7   [ m a t c h :   F R O M   ] : 
 
         1 0 5 :                           } 
 
         1 0 6 :   
 
   > >   1 0 7 :                           $ s t h   =   $ p d o - > p r e p a r e ( " D E L E T E   F R O M   d b o . i n v _ U p l o a d E n t r y   W H E R E   i n v _ U p l o a d _ I D   = " . $ r e s u l t [ ' i n v _ U p l o a d _ I D ' ] ) ; 
 
         1 0 8 :                           $ s t h - > e x e c u t e ( ) ; 
 
         1 0 9 :   
 
 
 
     L i n e   1 1 0   [ m a t c h :   F R O M   ] : 
 
         1 0 8 :                           $ s t h - > e x e c u t e ( ) ; 
 
         1 0 9 :   
 
   > >   1 1 0 :                           $ s t h   =   $ p d o - > p r e p a r e ( " D E L E T E   F R O M   i n v _ U p l o a d   W H E R E   I D   =   " . $ r e s u l t [ ' i n v _ U p l o a d _ I D ' ] ) ; 
 
         1 1 1 :                           $ s t h - > e x e c u t e ( ) ; 
 
         1 1 2 :   
 
 
 
     L i n e   4 8   [ m a t c h :   S E L E C T   ] : 
 
         4 6 :   
 
         4 7 :                   $ s q l   =   " 
 
   > >   4 8 :   S E L E C T   i n v _ U p l o a d . U p l o a d D T , 
 
         4 9 :                 i n v _ U p l o a d . I D   a s   i n v _ U p l o a d _ I D 
 
         5 0 :   
 
 
 
     L i n e   1 0 7   [ m a t c h :   D E L E T E   F R O M ] : 
 
         1 0 5 :                           } 
 
         1 0 6 :   
 
   > >   1 0 7 :                           $ s t h   =   $ p d o - > p r e p a r e ( " D E L E T E   F R O M   d b o . i n v _ U p l o a d E n t r y   W H E R E   i n v _ U p l o a d _ I D   = " . $ r e s u l t [ ' i n v _ U p l o a d _ I D ' ] ) ; 
 
         1 0 8 :                           $ s t h - > e x e c u t e ( ) ; 
 
         1 0 9 :   
 
 
 
     L i n e   1 1 0   [ m a t c h :   D E L E T E   F R O M ] : 
 
         1 0 8 :                           $ s t h - > e x e c u t e ( ) ; 
 
         1 0 9 :   
 
   > >   1 1 0 :                           $ s t h   =   $ p d o - > p r e p a r e ( " D E L E T E   F R O M   i n v _ U p l o a d   W H E R E   I D   =   " . $ r e s u l t [ ' i n v _ U p l o a d _ I D ' ] ) ; 
 
         1 1 1 :                           $ s t h - > e x e c u t e ( ) ; 
 
         1 1 2 :   
 
 
 
     L i n e   5   [ m a t c h :   w a v e ] : 
 
         3 :   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s ; 
 
         4 :   
 
   > >   5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         7 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
 
 
     L i n e   6   [ m a t c h :   w a v e ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   6 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         7 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         8 :   u s e   S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ; 
 
 
 
     L i n e   5   [ m a t c h :   W a v e ] : 
 
         3 :   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s ; 
 
         4 :   
 
   > >   5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         7 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
 
 
     L i n e   6   [ m a t c h :   W a v e ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   6 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         7 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         8 :   u s e   S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ; 
 
 
 
     L i n e   5   [ m a t c h :   W A V E ] : 
 
         3 :   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s ; 
 
         4 :   
 
   > >   5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         7 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
 
 
     L i n e   6   [ m a t c h :   W A V E ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   6 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         7 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         8 :   u s e   S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ C o m m a n d s \ E x p o r t E m a i l s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4   [ m a t c h :   e p i c o r ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y   a s   q u e s t _ C o m p a n y R e p o ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         6 :   u s e   P h p O f f i c e \ P h p S p r e a d s h e e t \ I O F a c t o r y ; 
 
 
 
     L i n e   4 5   [ m a t c h :   e p i c o r ] : 
 
         4 3 :                           d i e ( ' I n v a l i d   e m a i l   o p t i o n ' ) ; 
 
         4 4 :   
 
   > >   4 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         4 6 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 7 :                   / * *   @ v a r   q u e s t _ C o m p a n y R e p o   $ R O C o m p a n y R e p o   * / 
 
 
 
     L i n e   4 6   [ m a t c h :   e p i c o r ] : 
 
         4 4 :   
 
         4 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   4 6 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 7 :                   / * *   @ v a r   q u e s t _ C o m p a n y R e p o   $ R O C o m p a n y R e p o   * / 
 
         4 8 :                   $ R O C o m p a n y R e p o   =   a p p ( q u e s t _ C o m p a n y R e p o : : c l a s s ) ; 
 
 
 
     L i n e   5 0   [ m a t c h :   e p i c o r ] : 
 
         4 8 :                   $ R O C o m p a n y R e p o   =   a p p ( q u e s t _ C o m p a n y R e p o : : c l a s s ) ; 
 
         4 9 :   
 
   > >   5 0 :                   $ E p i c o r C u s t o m e r N a m e s B y I D   =   $ E p i c o r D a t a b a s e - > g e t A l l C u s t o m e r N a m e s B y I D ( ) ; 
 
         5 1 :                   $ E m a i l s B y C u s t o m e r I D   =   $ R O C o m p a n y R e p o - > g e t E m a i l s B y C u s t o m e r I D ( $ w h i c h ) ; 
 
         5 2 :   
 
 
 
     L i n e   5 3   [ m a t c h :   e p i c o r ] : 
 
         5 1 :                   $ E m a i l s B y C u s t o m e r I D   =   $ R O C o m p a n y R e p o - > g e t E m a i l s B y C u s t o m e r I D ( $ w h i c h ) ; 
 
         5 2 :   
 
   > >   5 3 :                   $ p r o g r e s s B a r   =   $ t h i s - > o u t p u t - > c r e a t e P r o g r e s s B a r ( c o u n t ( $ E p i c o r C u s t o m e r N a m e s B y I D ) ) ; 
 
         5 4 :                   $ p r o g r e s s B a r - > s t a r t ( ) ; 
 
         5 5 :   
 
 
 
     L i n e   6 5   [ m a t c h :   e p i c o r ] : 
 
         6 3 :                   ] ; 
 
         6 4 :   
 
   > >   6 5 :                   f o r e a c h ( $ E p i c o r C u s t o m e r N a m e s B y I D   a s   $ E p i c o r C u s t o m e r I D   = >   $ E p i c o r C u s t o m e r N a m e ) 
 
         6 6 :                   { 
 
         6 7 :                           a r r a y _ p u s h ( $ s p r e a d s h e e t D a t a ,   [ 
 
 
 
     L i n e   6 8   [ m a t c h :   e p i c o r ] : 
 
         6 6 :                   { 
 
         6 7 :                           a r r a y _ p u s h ( $ s p r e a d s h e e t D a t a ,   [ 
 
   > >   6 8 :                                   $ E p i c o r C u s t o m e r N a m e , 
 
         6 9 :                                   $ E p i c o r C u s t o m e r I D , 
 
         7 0 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   ' Y e s '   :   ' N o ' ) , 
 
 
 
     L i n e   6 9   [ m a t c h :   e p i c o r ] : 
 
         6 7 :                           a r r a y _ p u s h ( $ s p r e a d s h e e t D a t a ,   [ 
 
         6 8 :                                   $ E p i c o r C u s t o m e r N a m e , 
 
   > >   6 9 :                                   $ E p i c o r C u s t o m e r I D , 
 
         7 0 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   ' Y e s '   :   ' N o ' ) , 
 
         7 1 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   $ E m a i l s B y C u s t o m e r I D [ $ E p i c o r C u s t o m e r I D ]   :   n u l l ) 
 
 
 
     L i n e   7 0   [ m a t c h :   e p i c o r ] : 
 
         6 8 :                                   $ E p i c o r C u s t o m e r N a m e , 
 
         6 9 :                                   $ E p i c o r C u s t o m e r I D , 
 
   > >   7 0 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   ' Y e s '   :   ' N o ' ) , 
 
         7 1 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   $ E m a i l s B y C u s t o m e r I D [ $ E p i c o r C u s t o m e r I D ]   :   n u l l ) 
 
         7 2 :                           ] ) ; 
 
 
 
     L i n e   7 1   [ m a t c h :   e p i c o r ] : 
 
         6 9 :                                   $ E p i c o r C u s t o m e r I D , 
 
         7 0 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   ' Y e s '   :   ' N o ' ) , 
 
   > >   7 1 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   $ E m a i l s B y C u s t o m e r I D [ $ E p i c o r C u s t o m e r I D ]   :   n u l l ) 
 
         7 2 :                           ] ) ; 
 
         7 3 :   
 
 
 
     L i n e   4   [ m a t c h :   E p i c o r ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y   a s   q u e s t _ C o m p a n y R e p o ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         6 :   u s e   P h p O f f i c e \ P h p S p r e a d s h e e t \ I O F a c t o r y ; 
 
 
 
     L i n e   4 5   [ m a t c h :   E p i c o r ] : 
 
         4 3 :                           d i e ( ' I n v a l i d   e m a i l   o p t i o n ' ) ; 
 
         4 4 :   
 
   > >   4 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         4 6 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 7 :                   / * *   @ v a r   q u e s t _ C o m p a n y R e p o   $ R O C o m p a n y R e p o   * / 
 
 
 
     L i n e   4 6   [ m a t c h :   E p i c o r ] : 
 
         4 4 :   
 
         4 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   4 6 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 7 :                   / * *   @ v a r   q u e s t _ C o m p a n y R e p o   $ R O C o m p a n y R e p o   * / 
 
         4 8 :                   $ R O C o m p a n y R e p o   =   a p p ( q u e s t _ C o m p a n y R e p o : : c l a s s ) ; 
 
 
 
     L i n e   5 0   [ m a t c h :   E p i c o r ] : 
 
         4 8 :                   $ R O C o m p a n y R e p o   =   a p p ( q u e s t _ C o m p a n y R e p o : : c l a s s ) ; 
 
         4 9 :   
 
   > >   5 0 :                   $ E p i c o r C u s t o m e r N a m e s B y I D   =   $ E p i c o r D a t a b a s e - > g e t A l l C u s t o m e r N a m e s B y I D ( ) ; 
 
         5 1 :                   $ E m a i l s B y C u s t o m e r I D   =   $ R O C o m p a n y R e p o - > g e t E m a i l s B y C u s t o m e r I D ( $ w h i c h ) ; 
 
         5 2 :   
 
 
 
     L i n e   5 3   [ m a t c h :   E p i c o r ] : 
 
         5 1 :                   $ E m a i l s B y C u s t o m e r I D   =   $ R O C o m p a n y R e p o - > g e t E m a i l s B y C u s t o m e r I D ( $ w h i c h ) ; 
 
         5 2 :   
 
   > >   5 3 :                   $ p r o g r e s s B a r   =   $ t h i s - > o u t p u t - > c r e a t e P r o g r e s s B a r ( c o u n t ( $ E p i c o r C u s t o m e r N a m e s B y I D ) ) ; 
 
         5 4 :                   $ p r o g r e s s B a r - > s t a r t ( ) ; 
 
         5 5 :   
 
 
 
     L i n e   6 5   [ m a t c h :   E p i c o r ] : 
 
         6 3 :                   ] ; 
 
         6 4 :   
 
   > >   6 5 :                   f o r e a c h ( $ E p i c o r C u s t o m e r N a m e s B y I D   a s   $ E p i c o r C u s t o m e r I D   = >   $ E p i c o r C u s t o m e r N a m e ) 
 
         6 6 :                   { 
 
         6 7 :                           a r r a y _ p u s h ( $ s p r e a d s h e e t D a t a ,   [ 
 
 
 
     L i n e   6 8   [ m a t c h :   E p i c o r ] : 
 
         6 6 :                   { 
 
         6 7 :                           a r r a y _ p u s h ( $ s p r e a d s h e e t D a t a ,   [ 
 
   > >   6 8 :                                   $ E p i c o r C u s t o m e r N a m e , 
 
         6 9 :                                   $ E p i c o r C u s t o m e r I D , 
 
         7 0 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   ' Y e s '   :   ' N o ' ) , 
 
 
 
     L i n e   6 9   [ m a t c h :   E p i c o r ] : 
 
         6 7 :                           a r r a y _ p u s h ( $ s p r e a d s h e e t D a t a ,   [ 
 
         6 8 :                                   $ E p i c o r C u s t o m e r N a m e , 
 
   > >   6 9 :                                   $ E p i c o r C u s t o m e r I D , 
 
         7 0 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   ' Y e s '   :   ' N o ' ) , 
 
         7 1 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   $ E m a i l s B y C u s t o m e r I D [ $ E p i c o r C u s t o m e r I D ]   :   n u l l ) 
 
 
 
     L i n e   7 0   [ m a t c h :   E p i c o r ] : 
 
         6 8 :                                   $ E p i c o r C u s t o m e r N a m e , 
 
         6 9 :                                   $ E p i c o r C u s t o m e r I D , 
 
   > >   7 0 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   ' Y e s '   :   ' N o ' ) , 
 
         7 1 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   $ E m a i l s B y C u s t o m e r I D [ $ E p i c o r C u s t o m e r I D ]   :   n u l l ) 
 
         7 2 :                           ] ) ; 
 
 
 
     L i n e   7 1   [ m a t c h :   E p i c o r ] : 
 
         6 9 :                                   $ E p i c o r C u s t o m e r I D , 
 
         7 0 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   ' Y e s '   :   ' N o ' ) , 
 
   > >   7 1 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   $ E m a i l s B y C u s t o m e r I D [ $ E p i c o r C u s t o m e r I D ]   :   n u l l ) 
 
         7 2 :                           ] ) ; 
 
         7 3 :   
 
 
 
     L i n e   4   [ m a t c h :   E P I C O R ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y   a s   q u e s t _ C o m p a n y R e p o ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         6 :   u s e   P h p O f f i c e \ P h p S p r e a d s h e e t \ I O F a c t o r y ; 
 
 
 
     L i n e   4 5   [ m a t c h :   E P I C O R ] : 
 
         4 3 :                           d i e ( ' I n v a l i d   e m a i l   o p t i o n ' ) ; 
 
         4 4 :   
 
   > >   4 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         4 6 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 7 :                   / * *   @ v a r   q u e s t _ C o m p a n y R e p o   $ R O C o m p a n y R e p o   * / 
 
 
 
     L i n e   4 6   [ m a t c h :   E P I C O R ] : 
 
         4 4 :   
 
         4 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   4 6 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 7 :                   / * *   @ v a r   q u e s t _ C o m p a n y R e p o   $ R O C o m p a n y R e p o   * / 
 
         4 8 :                   $ R O C o m p a n y R e p o   =   a p p ( q u e s t _ C o m p a n y R e p o : : c l a s s ) ; 
 
 
 
     L i n e   5 0   [ m a t c h :   E P I C O R ] : 
 
         4 8 :                   $ R O C o m p a n y R e p o   =   a p p ( q u e s t _ C o m p a n y R e p o : : c l a s s ) ; 
 
         4 9 :   
 
   > >   5 0 :                   $ E p i c o r C u s t o m e r N a m e s B y I D   =   $ E p i c o r D a t a b a s e - > g e t A l l C u s t o m e r N a m e s B y I D ( ) ; 
 
         5 1 :                   $ E m a i l s B y C u s t o m e r I D   =   $ R O C o m p a n y R e p o - > g e t E m a i l s B y C u s t o m e r I D ( $ w h i c h ) ; 
 
         5 2 :   
 
 
 
     L i n e   5 3   [ m a t c h :   E P I C O R ] : 
 
         5 1 :                   $ E m a i l s B y C u s t o m e r I D   =   $ R O C o m p a n y R e p o - > g e t E m a i l s B y C u s t o m e r I D ( $ w h i c h ) ; 
 
         5 2 :   
 
   > >   5 3 :                   $ p r o g r e s s B a r   =   $ t h i s - > o u t p u t - > c r e a t e P r o g r e s s B a r ( c o u n t ( $ E p i c o r C u s t o m e r N a m e s B y I D ) ) ; 
 
         5 4 :                   $ p r o g r e s s B a r - > s t a r t ( ) ; 
 
         5 5 :   
 
 
 
     L i n e   6 5   [ m a t c h :   E P I C O R ] : 
 
         6 3 :                   ] ; 
 
         6 4 :   
 
   > >   6 5 :                   f o r e a c h ( $ E p i c o r C u s t o m e r N a m e s B y I D   a s   $ E p i c o r C u s t o m e r I D   = >   $ E p i c o r C u s t o m e r N a m e ) 
 
         6 6 :                   { 
 
         6 7 :                           a r r a y _ p u s h ( $ s p r e a d s h e e t D a t a ,   [ 
 
 
 
     L i n e   6 8   [ m a t c h :   E P I C O R ] : 
 
         6 6 :                   { 
 
         6 7 :                           a r r a y _ p u s h ( $ s p r e a d s h e e t D a t a ,   [ 
 
   > >   6 8 :                                   $ E p i c o r C u s t o m e r N a m e , 
 
         6 9 :                                   $ E p i c o r C u s t o m e r I D , 
 
         7 0 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   ' Y e s '   :   ' N o ' ) , 
 
 
 
     L i n e   6 9   [ m a t c h :   E P I C O R ] : 
 
         6 7 :                           a r r a y _ p u s h ( $ s p r e a d s h e e t D a t a ,   [ 
 
         6 8 :                                   $ E p i c o r C u s t o m e r N a m e , 
 
   > >   6 9 :                                   $ E p i c o r C u s t o m e r I D , 
 
         7 0 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   ' Y e s '   :   ' N o ' ) , 
 
         7 1 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   $ E m a i l s B y C u s t o m e r I D [ $ E p i c o r C u s t o m e r I D ]   :   n u l l ) 
 
 
 
     L i n e   7 0   [ m a t c h :   E P I C O R ] : 
 
         6 8 :                                   $ E p i c o r C u s t o m e r N a m e , 
 
         6 9 :                                   $ E p i c o r C u s t o m e r I D , 
 
   > >   7 0 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   ' Y e s '   :   ' N o ' ) , 
 
         7 1 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   $ E m a i l s B y C u s t o m e r I D [ $ E p i c o r C u s t o m e r I D ]   :   n u l l ) 
 
         7 2 :                           ] ) ; 
 
 
 
     L i n e   7 1   [ m a t c h :   E P I C O R ] : 
 
         6 9 :                                   $ E p i c o r C u s t o m e r I D , 
 
         7 0 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   ' Y e s '   :   ' N o ' ) , 
 
   > >   7 1 :                                   ( a r r a y _ k e y _ e x i s t s ( $ E p i c o r C u s t o m e r I D ,   $ E m a i l s B y C u s t o m e r I D )   ?   $ E m a i l s B y C u s t o m e r I D [ $ E p i c o r C u s t o m e r I D ]   :   n u l l ) 
 
         7 2 :                           ] ) ; 
 
         7 3 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ C o m m a n d s \ G r o u p C S V . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4   [ m a t c h :   e p i c o r ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         6 :   u s e   S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ; 
 
 
 
     L i n e   3 2   [ m a t c h :   e p i c o r ] : 
 
         3 0 :           p u b l i c   f u n c t i o n   h a n d l e ( ) 
 
         3 1 :           { 
 
   > >   3 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         3 3 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 4 :   
 
 
 
     L i n e   3 3   [ m a t c h :   e p i c o r ] : 
 
         3 1 :           { 
 
         3 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   3 3 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 4 :   
 
         3 5 :                   e c h o   " P R O C E S S   T E S T " ; 
 
 
 
     L i n e   3 7   [ m a t c h :   e p i c o r ] : 
 
         3 5 :                   e c h o   " P R O C E S S   T E S T " ; 
 
         3 6 :   
 
   > >   3 7 :                   v a r _ d u m p ( $ E p i c o r D a t a b a s e - > c r e a t e G r o u p C S V ( s t o r a g e _ p a t h ( ' a p p / g r o u p s a m p l e / 1 . x l s x ' ) ) ) ; 
 
         3 8 :   
 
         3 9 :           } 
 
 
 
     L i n e   4   [ m a t c h :   E p i c o r ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         6 :   u s e   S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ; 
 
 
 
     L i n e   3 2   [ m a t c h :   E p i c o r ] : 
 
         3 0 :           p u b l i c   f u n c t i o n   h a n d l e ( ) 
 
         3 1 :           { 
 
   > >   3 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         3 3 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 4 :   
 
 
 
     L i n e   3 3   [ m a t c h :   E p i c o r ] : 
 
         3 1 :           { 
 
         3 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   3 3 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 4 :   
 
         3 5 :                   e c h o   " P R O C E S S   T E S T " ; 
 
 
 
     L i n e   3 7   [ m a t c h :   E p i c o r ] : 
 
         3 5 :                   e c h o   " P R O C E S S   T E S T " ; 
 
         3 6 :   
 
   > >   3 7 :                   v a r _ d u m p ( $ E p i c o r D a t a b a s e - > c r e a t e G r o u p C S V ( s t o r a g e _ p a t h ( ' a p p / g r o u p s a m p l e / 1 . x l s x ' ) ) ) ; 
 
         3 8 :   
 
         3 9 :           } 
 
 
 
     L i n e   4   [ m a t c h :   E P I C O R ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         6 :   u s e   S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ; 
 
 
 
     L i n e   3 2   [ m a t c h :   E P I C O R ] : 
 
         3 0 :           p u b l i c   f u n c t i o n   h a n d l e ( ) 
 
         3 1 :           { 
 
   > >   3 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         3 3 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 4 :   
 
 
 
     L i n e   3 3   [ m a t c h :   E P I C O R ] : 
 
         3 1 :           { 
 
         3 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   3 3 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 4 :   
 
         3 5 :                   e c h o   " P R O C E S S   T E S T " ; 
 
 
 
     L i n e   3 7   [ m a t c h :   E P I C O R ] : 
 
         3 5 :                   e c h o   " P R O C E S S   T E S T " ; 
 
         3 6 :   
 
   > >   3 7 :                   v a r _ d u m p ( $ E p i c o r D a t a b a s e - > c r e a t e G r o u p C S V ( s t o r a g e _ p a t h ( ' a p p / g r o u p s a m p l e / 1 . x l s x ' ) ) ) ; 
 
         3 8 :   
 
         3 9 :           } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ C o m m a n d s \ I m p o r t E m a i l s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 1 0   [ m a t c h :   U P D A T E   ] : 
 
         1 0 8 :                                                   $ e m a i l P i e c e s   =   e x p l o d e ( $ d e l i m i t e r ,   $ e m a i l s ) ; 
 
         1 0 9 :   
 
   > >   1 1 0 :                                                   $ e m a i l s F o r U p d a t e   =   [ ] ; 
 
         1 1 1 :   
 
         1 1 2 :                                                   f o r e a c h ( $ e m a i l P i e c e s   a s   $ e m a i l P i e c e ) 
 
 
 
     L i n e   1 3 0   [ m a t c h :   U P D A T E   ] : 
 
         1 2 8 :                                           e l s e   i f ( $ e m a i l s C o n t a i n C a r r o t s ) 
 
         1 2 9 :                                           { 
 
   > >   1 3 0 :                                                   $ e m a i l s F o r U p d a t e   =   [ ] ; 
 
         1 3 1 :                                                   $ e m a i l s F o r U p d a t e [ ]   =   $ t h i s - > _ g e t S t r i n g B e t w e e n ( $ e m a i l s ,   ' < ' ,   ' > ' ) ; 
 
         1 3 2 :                                                   $ t h i s - > _ u p d a t e E m a i l s ( $ q u e s t _ C o m p a n y ,   $ e m a i l s F o r U p d a t e ,   $ w h i c h ) ; 
 
 
 
     L i n e   1 3 6   [ m a t c h :   U P D A T E   ] : 
 
         1 3 4 :                                           e l s e   i f ( $ e m a i l s C o n t a i n P a r e n t h e s e s ) 
 
         1 3 5 :                                           { 
 
   > >   1 3 6 :                                                   $ e m a i l s F o r U p d a t e   =   [ ] ; 
 
         1 3 7 :                                                   $ e m a i l s F o r U p d a t e [ ]   =   $ t h i s - > _ g e t S t r i n g B e t w e e n ( $ e m a i l s ,   ' ( ' ,   ' ) ' ) ; 
 
         1 3 8 :                                                   $ t h i s - > _ u p d a t e E m a i l s ( $ q u e s t _ C o m p a n y ,   $ e m a i l s F o r U p d a t e ,   $ w h i c h ) ; 
 
 
 
     L i n e   1 4 2   [ m a t c h :   U P D A T E   ] : 
 
         1 4 0 :                                           e l s e 
 
         1 4 1 :                                           { 
 
   > >   1 4 2 :                                                   $ e m a i l s F o r U p d a t e   =   [ ] ; 
 
         1 4 3 :                                                   $ e m a i l s F o r U p d a t e [ ]   =   $ e m a i l s ; 
 
         1 4 4 :                                                   $ t h i s - > _ u p d a t e E m a i l s ( $ q u e s t _ C o m p a n y ,   $ e m a i l s F o r U p d a t e ,   $ w h i c h ) ; 
 
 
 
     L i n e   8 5   [ m a t c h :   e p i c o r ] : 
 
         8 3 :                                   { 
 
         8 4 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y | n u l l   $ q u e s t _ C o m p a n y   * / 
 
   > >   8 5 :                                           $ q u e s t _ C o m p a n y   =   $ q u e s t _ C o m p a n y R e p o - > f i n d O n e B y ( [ ' E p i c o r C u s t I D '   = >   $ c u s t o m e r I d ] ) ; 
 
         8 6 :   
 
         8 7 :                                           i f ( i s _ n u l l ( $ q u e s t _ C o m p a n y ) ) 
 
 
 
     L i n e   1 7 0   [ m a t c h :   e p i c o r ] : 
 
         1 6 8 :                   $ d a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
         1 6 9 :                   $ d a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
   > >   1 7 0 :                           ' E p i c o r C u s t I D '   = >   $ c u s t o m e r I d , 
 
         1 7 1 :                           ' e p i _ N a m e '   = >   $ c u s t o m e r N a m e , 
 
         1 7 2 :                           ' c a l c _ D i s p l a y N a m e '   = >   $ c u s t o m e r I d   .   '   -   '   .   $ c u s t o m e r N a m e , 
 
 
 
     L i n e   8 5   [ m a t c h :   E p i c o r ] : 
 
         8 3 :                                   { 
 
         8 4 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y | n u l l   $ q u e s t _ C o m p a n y   * / 
 
   > >   8 5 :                                           $ q u e s t _ C o m p a n y   =   $ q u e s t _ C o m p a n y R e p o - > f i n d O n e B y ( [ ' E p i c o r C u s t I D '   = >   $ c u s t o m e r I d ] ) ; 
 
         8 6 :   
 
         8 7 :                                           i f ( i s _ n u l l ( $ q u e s t _ C o m p a n y ) ) 
 
 
 
     L i n e   1 7 0   [ m a t c h :   E p i c o r ] : 
 
         1 6 8 :                   $ d a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
         1 6 9 :                   $ d a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
   > >   1 7 0 :                           ' E p i c o r C u s t I D '   = >   $ c u s t o m e r I d , 
 
         1 7 1 :                           ' e p i _ N a m e '   = >   $ c u s t o m e r N a m e , 
 
         1 7 2 :                           ' c a l c _ D i s p l a y N a m e '   = >   $ c u s t o m e r I d   .   '   -   '   .   $ c u s t o m e r N a m e , 
 
 
 
     L i n e   8 5   [ m a t c h :   E P I C O R ] : 
 
         8 3 :                                   { 
 
         8 4 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y | n u l l   $ q u e s t _ C o m p a n y   * / 
 
   > >   8 5 :                                           $ q u e s t _ C o m p a n y   =   $ q u e s t _ C o m p a n y R e p o - > f i n d O n e B y ( [ ' E p i c o r C u s t I D '   = >   $ c u s t o m e r I d ] ) ; 
 
         8 6 :   
 
         8 7 :                                           i f ( i s _ n u l l ( $ q u e s t _ C o m p a n y ) ) 
 
 
 
     L i n e   1 7 0   [ m a t c h :   E P I C O R ] : 
 
         1 6 8 :                   $ d a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
         1 6 9 :                   $ d a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
   > >   1 7 0 :                           ' E p i c o r C u s t I D '   = >   $ c u s t o m e r I d , 
 
         1 7 1 :                           ' e p i _ N a m e '   = >   $ c u s t o m e r N a m e , 
 
         1 7 2 :                           ' c a l c _ D i s p l a y N a m e '   = >   $ c u s t o m e r I d   .   '   -   '   .   $ c u s t o m e r N a m e , 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ C o m m a n d s \ I n s e r t P l a n t C o d e s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6   [ m a t c h :   w a v e ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ I n v e n t o r y T y p e ; 
 
   > >   6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         8 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
 
 
     L i n e   7   [ m a t c h :   w a v e ] : 
 
         5 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ I n v e n t o r y T y p e ; 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         8 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         9 :   u s e   S a v v i o r \ D a t a \ D a t a H a n d l e r ; 
 
 
 
     L i n e   6   [ m a t c h :   W a v e ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ I n v e n t o r y T y p e ; 
 
   > >   6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         8 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
 
 
     L i n e   7   [ m a t c h :   W a v e ] : 
 
         5 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ I n v e n t o r y T y p e ; 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         8 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         9 :   u s e   S a v v i o r \ D a t a \ D a t a H a n d l e r ; 
 
 
 
     L i n e   6   [ m a t c h :   W A V E ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ I n v e n t o r y T y p e ; 
 
   > >   6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         8 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
 
 
     L i n e   7   [ m a t c h :   W A V E ] : 
 
         5 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ I n v e n t o r y T y p e ; 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         8 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         9 :   u s e   S a v v i o r \ D a t a \ D a t a H a n d l e r ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ C o m m a n d s \ P o p u l a t e J o b N u m b e r s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 5   [ m a t c h :   F R O M   ] : 
 
         4 3 :     S E T   J o b N u m b e r   =   [ J o b P r o d ] . [ J o b N u m ] 
 
         4 4 :   
 
   > >   4 5 :     F R O M     E p i c o r 1 0 L i v e . E r p . I n v c H e a d   a s   I n v c H e a d 
 
         4 6 :   i n n e r   j o i n   E p i c o r 1 0 L i v e . E r p . I n v c D t l   a s   I n v c D t l   o n 
 
         4 7 :   	 I n v c H e a d . C o m p a n y   =   I n v c D t l . C o m p a n y 
 
 
 
     L i n e   4 1   [ m a t c h :   U P D A T E   ] : 
 
         3 9 :   
 
         4 0 :   
 
   > >   4 1 :                   $ s q l   =   "   U P D A T E   d b o . i n v _ U p l o a d E n t r y 
 
         4 2 :   
 
         4 3 :     S E T   J o b N u m b e r   =   [ J o b P r o d ] . [ J o b N u m ] 
 
 
 
     L i n e   4 6   [ m a t c h :   I N N E R   J O I N ] : 
 
         4 4 :   
 
         4 5 :     F R O M     E p i c o r 1 0 L i v e . E r p . I n v c H e a d   a s   I n v c H e a d 
 
   > >   4 6 :   i n n e r   j o i n   E p i c o r 1 0 L i v e . E r p . I n v c D t l   a s   I n v c D t l   o n 
 
         4 7 :   	 I n v c H e a d . C o m p a n y   =   I n v c D t l . C o m p a n y 
 
         4 8 :   A n d 
 
 
 
     L i n e   5 2   [ m a t c h :   I N N E R   J O I N ] : 
 
         5 0 :     a n d   (   I n v c D t l . I n v o i c e L i n e   =   1     ) 
 
         5 1 :   
 
   > >   5 2 :   i n n e r   j o i n   E p i c o r 1 0 L i v e . E r p . J o b P r o d   a s   J o b P r o d   o n 
 
         5 3 :   	 I n v c D t l . C o m p a n y   =   J o b P r o d . C o m p a n y 
 
         5 4 :   A n d 
 
 
 
     L i n e   4   [ m a t c h :   e p i c o r ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         6 :   u s e   S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ; 
 
 
 
     L i n e   4 5   [ m a t c h :   e p i c o r ] : 
 
         4 3 :     S E T   J o b N u m b e r   =   [ J o b P r o d ] . [ J o b N u m ] 
 
         4 4 :   
 
   > >   4 5 :     F R O M     E p i c o r 1 0 L i v e . E r p . I n v c H e a d   a s   I n v c H e a d 
 
         4 6 :   i n n e r   j o i n   E p i c o r 1 0 L i v e . E r p . I n v c D t l   a s   I n v c D t l   o n 
 
         4 7 :   	 I n v c H e a d . C o m p a n y   =   I n v c D t l . C o m p a n y 
 
 
 
     L i n e   4 6   [ m a t c h :   e p i c o r ] : 
 
         4 4 :   
 
         4 5 :     F R O M     E p i c o r 1 0 L i v e . E r p . I n v c H e a d   a s   I n v c H e a d 
 
   > >   4 6 :   i n n e r   j o i n   E p i c o r 1 0 L i v e . E r p . I n v c D t l   a s   I n v c D t l   o n 
 
         4 7 :   	 I n v c H e a d . C o m p a n y   =   I n v c D t l . C o m p a n y 
 
         4 8 :   A n d 
 
 
 
     L i n e   5 2   [ m a t c h :   e p i c o r ] : 
 
         5 0 :     a n d   (   I n v c D t l . I n v o i c e L i n e   =   1     ) 
 
         5 1 :   
 
   > >   5 2 :   i n n e r   j o i n   E p i c o r 1 0 L i v e . E r p . J o b P r o d   a s   J o b P r o d   o n 
 
         5 3 :   	 I n v c D t l . C o m p a n y   =   J o b P r o d . C o m p a n y 
 
         5 4 :   A n d 
 
 
 
     L i n e   4   [ m a t c h :   E p i c o r ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         6 :   u s e   S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ; 
 
 
 
     L i n e   4 5   [ m a t c h :   E p i c o r ] : 
 
         4 3 :     S E T   J o b N u m b e r   =   [ J o b P r o d ] . [ J o b N u m ] 
 
         4 4 :   
 
   > >   4 5 :     F R O M     E p i c o r 1 0 L i v e . E r p . I n v c H e a d   a s   I n v c H e a d 
 
         4 6 :   i n n e r   j o i n   E p i c o r 1 0 L i v e . E r p . I n v c D t l   a s   I n v c D t l   o n 
 
         4 7 :   	 I n v c H e a d . C o m p a n y   =   I n v c D t l . C o m p a n y 
 
 
 
     L i n e   4 6   [ m a t c h :   E p i c o r ] : 
 
         4 4 :   
 
         4 5 :     F R O M     E p i c o r 1 0 L i v e . E r p . I n v c H e a d   a s   I n v c H e a d 
 
   > >   4 6 :   i n n e r   j o i n   E p i c o r 1 0 L i v e . E r p . I n v c D t l   a s   I n v c D t l   o n 
 
         4 7 :   	 I n v c H e a d . C o m p a n y   =   I n v c D t l . C o m p a n y 
 
         4 8 :   A n d 
 
 
 
     L i n e   5 2   [ m a t c h :   E p i c o r ] : 
 
         5 0 :     a n d   (   I n v c D t l . I n v o i c e L i n e   =   1     ) 
 
         5 1 :   
 
   > >   5 2 :   i n n e r   j o i n   E p i c o r 1 0 L i v e . E r p . J o b P r o d   a s   J o b P r o d   o n 
 
         5 3 :   	 I n v c D t l . C o m p a n y   =   J o b P r o d . C o m p a n y 
 
         5 4 :   A n d 
 
 
 
     L i n e   4   [ m a t c h :   E P I C O R ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         6 :   u s e   S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ; 
 
 
 
     L i n e   4 5   [ m a t c h :   E P I C O R ] : 
 
         4 3 :     S E T   J o b N u m b e r   =   [ J o b P r o d ] . [ J o b N u m ] 
 
         4 4 :   
 
   > >   4 5 :     F R O M     E p i c o r 1 0 L i v e . E r p . I n v c H e a d   a s   I n v c H e a d 
 
         4 6 :   i n n e r   j o i n   E p i c o r 1 0 L i v e . E r p . I n v c D t l   a s   I n v c D t l   o n 
 
         4 7 :   	 I n v c H e a d . C o m p a n y   =   I n v c D t l . C o m p a n y 
 
 
 
     L i n e   4 6   [ m a t c h :   E P I C O R ] : 
 
         4 4 :   
 
         4 5 :     F R O M     E p i c o r 1 0 L i v e . E r p . I n v c H e a d   a s   I n v c H e a d 
 
   > >   4 6 :   i n n e r   j o i n   E p i c o r 1 0 L i v e . E r p . I n v c D t l   a s   I n v c D t l   o n 
 
         4 7 :   	 I n v c H e a d . C o m p a n y   =   I n v c D t l . C o m p a n y 
 
         4 8 :   A n d 
 
 
 
     L i n e   5 2   [ m a t c h :   E P I C O R ] : 
 
         5 0 :     a n d   (   I n v c D t l . I n v o i c e L i n e   =   1     ) 
 
         5 1 :   
 
   > >   5 2 :   i n n e r   j o i n   E p i c o r 1 0 L i v e . E r p . J o b P r o d   a s   J o b P r o d   o n 
 
         5 3 :   	 I n v c D t l . C o m p a n y   =   J o b P r o d . C o m p a n y 
 
         5 4 :   A n d 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ C o m m a n d s \ P r o c e s s W a v e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 2   [ m a t c h :   F R O M   ] : 
 
         2 0 :                     {   - - d a t e =   :   T h e   p r o c e s s i n g   d a t e   } 
 
         2 1 :                     {   - - a l l   :   s p e c i f y   i f   a l l   p r o c e s s e s   s h o u l d   r u n ,   y o u   c a n   s p e c i f y   a n y t h i n g   a s   t h e   P r o c e s s C o d i n g K e y ,   i t   w i l l   b e   i g n o r e d   } 
 
   > >   2 2 :                     {   - - a u t o   :   t h i s   s h o u l d   o n l y   b e   s p e c i f i e d   i f   t h e   c o m m a n d   i s   r u n n i n g   f r o m   t h e   s c h e d u l e r   } ' ; 
 
         2 3 :   
 
         2 4 :           / * * 
 
 
 
     L i n e   5   [ m a t c h :   w a v e ] : 
 
         3 :   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s ; 
 
         4 :   
 
   > >   5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         6 :   
 
         7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
 
 
     L i n e   7   [ m a t c h :   w a v e ] : 
 
         5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         6 :   
 
   > >   7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         8 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e V P ; 
 
         9 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
 
 
     L i n e   8   [ m a t c h :   w a v e ] : 
 
         6 :   
 
         7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
   > >   8 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e V P ; 
 
         9 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         1 0 :   
 
 
 
     L i n e   1 1   [ m a t c h :   w a v e ] : 
 
         9 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         1 0 :   
 
   > >   1 1 :   c l a s s   P r o c e s s W a v e   e x t e n d s   C o m m a n d 
 
         1 2 :   { 
 
         1 3 :           / * * 
 
 
 
     L i n e   1 9   [ m a t c h :   w a v e ] : 
 
         1 7 :             * / 
 
         1 8 :           p r o t e c t e d   $ s i g n a t u r e   =   ' e d i : r u n 
 
   > >   1 9 :                     {   - - p r o c e s s =   :   T h e   w a v e _ P r o c e s s   C o d i n g K e y   } 
 
         2 0 :                     {   - - d a t e =   :   T h e   p r o c e s s i n g   d a t e   } 
 
         2 1 :                     {   - - a l l   :   s p e c i f y   i f   a l l   p r o c e s s e s   s h o u l d   r u n ,   y o u   c a n   s p e c i f y   a n y t h i n g   a s   t h e   P r o c e s s C o d i n g K e y ,   i t   w i l l   b e   i g n o r e d   } 
 
 
 
     L i n e   2 9   [ m a t c h :   w a v e ] : 
 
         2 7 :             *   @ v a r   s t r i n g 
 
         2 8 :             * / 
 
   > >   2 9 :           p r o t e c t e d   $ d e s c r i p t i o n   =   ' R u n s   a   s p e c i f i e d   W a v e   E D I   p r o c e s s ' ; 
 
         3 0 :   
 
         3 1 :           p u b l i c   f u n c t i o n   h a n d l e ( ) 
 
 
 
     L i n e   4 1   [ m a t c h :   w a v e ] : 
 
         3 9 :   
 
         4 0 :                                   i f   ( $ z   = = 0 )   { 
 
   > >   4 1 :                                           $ t h i s - > i n f o ( " R u n n i n g   W a v e   E D I   P r o c e s s " ) ; 
 
         4 2 :   
 
         4 3 :                                           / * *   @ v a r   W a v e S e r v i c e   $ W a v e S e r v i c e   * / 
 
 
 
     L i n e   4 3   [ m a t c h :   w a v e ] : 
 
         4 1 :                                           $ t h i s - > i n f o ( " R u n n i n g   W a v e   E D I   P r o c e s s " ) ; 
 
         4 2 :   
 
   > >   4 3 :                                           / * *   @ v a r   W a v e S e r v i c e   $ W a v e S e r v i c e   * / 
 
         4 4 :                                           $ W a v e S e r v i c e   =   a p p ( W a v e S e r v i c e : : c l a s s ) ; 
 
         4 5 :                                   } 
 
 
 
     L i n e   4 4   [ m a t c h :   w a v e ] : 
 
         4 2 :   
 
         4 3 :                                           / * *   @ v a r   W a v e S e r v i c e   $ W a v e S e r v i c e   * / 
 
   > >   4 4 :                                           $ W a v e S e r v i c e   =   a p p ( W a v e S e r v i c e : : c l a s s ) ; 
 
         4 5 :                                   } 
 
         4 6 :                                   e l s e 
 
 
 
     L i n e   4 8   [ m a t c h :   w a v e ] : 
 
         4 6 :                                   e l s e 
 
         4 7 :                                   { 
 
   > >   4 8 :                                           $ t h i s - > i n f o ( " R u n n i n g   W a v e   E D I   P r o c e s s   V P " ) ; 
 
         4 9 :                                           / * *   @ v a r   W a v e S e r v i c e V P   $ W a v e S e r v i c e   * / 
 
         5 0 :                                           $ W a v e S e r v i c e   =   a p p ( W a v e S e r v i c e V P : : c l a s s ) ; 
 
 
 
     L i n e   4 9   [ m a t c h :   w a v e ] : 
 
         4 7 :                                   { 
 
         4 8 :                                           $ t h i s - > i n f o ( " R u n n i n g   W a v e   E D I   P r o c e s s   V P " ) ; 
 
   > >   4 9 :                                           / * *   @ v a r   W a v e S e r v i c e V P   $ W a v e S e r v i c e   * / 
 
         5 0 :                                           $ W a v e S e r v i c e   =   a p p ( W a v e S e r v i c e V P : : c l a s s ) ; 
 
         5 1 :                                   } 
 
 
 
     L i n e   5 0   [ m a t c h :   w a v e ] : 
 
         4 8 :                                           $ t h i s - > i n f o ( " R u n n i n g   W a v e   E D I   P r o c e s s   V P " ) ; 
 
         4 9 :                                           / * *   @ v a r   W a v e S e r v i c e V P   $ W a v e S e r v i c e   * / 
 
   > >   5 0 :                                           $ W a v e S e r v i c e   =   a p p ( W a v e S e r v i c e V P : : c l a s s ) ; 
 
         5 1 :                                   } 
 
         5 2 :   
 
 
 
     L i n e   6 3   [ m a t c h :   w a v e ] : 
 
         6 1 :   
 
         6 2 :                                   i f   ( $ S h o u l d R u n A l l )   { 
 
   > >   6 3 :                                           / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
         6 4 :                                           $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         6 5 :   
 
 
 
     L i n e   6 4   [ m a t c h :   w a v e ] : 
 
         6 2 :                                   i f   ( $ S h o u l d R u n A l l )   { 
 
         6 3 :                                           / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
   > >   6 4 :                                           $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         6 5 :   
 
         6 6 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s [ ]   $ w a v e _ P r o c e s s e s   * / 
 
 
 
     L i n e   6 6   [ m a t c h :   w a v e ] : 
 
         6 4 :                                           $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         6 5 :   
 
   > >   6 6 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s [ ]   $ w a v e _ P r o c e s s e s   * / 
 
         6 7 :                                           $ w a v e _ P r o c e s s e s   =   $ w a v e _ P r o c e s s R e p o - > g e t E n a b l e d B y P r o c e s s O r d e r ( ) ; 
 
         6 8 :   
 
 
 
     L i n e   6 7   [ m a t c h :   w a v e ] : 
 
         6 5 :   
 
         6 6 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s [ ]   $ w a v e _ P r o c e s s e s   * / 
 
   > >   6 7 :                                           $ w a v e _ P r o c e s s e s   =   $ w a v e _ P r o c e s s R e p o - > g e t E n a b l e d B y P r o c e s s O r d e r ( ) ; 
 
         6 8 :   
 
         6 9 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
 
 
     L i n e   6 9   [ m a t c h :   w a v e ] : 
 
         6 7 :                                           $ w a v e _ P r o c e s s e s   =   $ w a v e _ P r o c e s s R e p o - > g e t E n a b l e d B y P r o c e s s O r d e r ( ) ; 
 
         6 8 :   
 
   > >   6 9 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
         7 0 :                                           f o r e a c h   ( $ w a v e _ P r o c e s s e s   a s   $ w a v e _ P r o c e s s )   { 
 
         7 1 :                                                   i f   ( $ w a v e _ P r o c e s s - > g e t C o d i n g K e y ( )   ! = =   ' W A V E _ E N D _ O F _ M O N T H ' )   { 
 
 
 
     L i n e   7 0   [ m a t c h :   w a v e ] : 
 
         6 8 :   
 
         6 9 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
   > >   7 0 :                                           f o r e a c h   ( $ w a v e _ P r o c e s s e s   a s   $ w a v e _ P r o c e s s )   { 
 
         7 1 :                                                   i f   ( $ w a v e _ P r o c e s s - > g e t C o d i n g K e y ( )   ! = =   ' W A V E _ E N D _ O F _ M O N T H ' )   { 
 
         7 2 :                                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
 
 
     L i n e   7 1   [ m a t c h :   w a v e ] : 
 
         6 9 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
         7 0 :                                           f o r e a c h   ( $ w a v e _ P r o c e s s e s   a s   $ w a v e _ P r o c e s s )   { 
 
   > >   7 1 :                                                   i f   ( $ w a v e _ P r o c e s s - > g e t C o d i n g K e y ( )   ! = =   ' W A V E _ E N D _ O F _ M O N T H ' )   { 
 
         7 2 :                                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
         7 3 :                                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
 
 
     L i n e   7 2   [ m a t c h :   w a v e ] : 
 
         7 0 :                                           f o r e a c h   ( $ w a v e _ P r o c e s s e s   a s   $ w a v e _ P r o c e s s )   { 
 
         7 1 :                                                   i f   ( $ w a v e _ P r o c e s s - > g e t C o d i n g K e y ( )   ! = =   ' W A V E _ E N D _ O F _ M O N T H ' )   { 
 
   > >   7 2 :                                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
         7 3 :                                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
         7 4 :                                                           $ W a v e S e r v i c e - > r u n P r o c e s s ( ) ; 
 
 
 
     L i n e   7 3   [ m a t c h :   w a v e ] : 
 
         7 1 :                                                   i f   ( $ w a v e _ P r o c e s s - > g e t C o d i n g K e y ( )   ! = =   ' W A V E _ E N D _ O F _ M O N T H ' )   { 
 
         7 2 :                                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
   > >   7 3 :                                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
         7 4 :                                                           $ W a v e S e r v i c e - > r u n P r o c e s s ( ) ; 
 
         7 5 :                                                   } 
 
 
 
     L i n e   7 4   [ m a t c h :   w a v e ] : 
 
         7 2 :                                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
         7 3 :                                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
   > >   7 4 :                                                           $ W a v e S e r v i c e - > r u n P r o c e s s ( ) ; 
 
         7 5 :                                                   } 
 
         7 6 :                                           } 
 
 
 
     L i n e   7 8   [ m a t c h :   w a v e ] : 
 
         7 6 :                                           } 
 
         7 7 :                                   }   e l s e   { 
 
   > >   7 8 :                                           $ w a v e _ P r o c e s s   =   $ W a v e S e r v i c e - > l o o k u p P r o c e s s ( $ P r o c e s s C o d i n g K e y ) ; 
 
         7 9 :                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
         8 0 :                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
 
 
     L i n e   7 9   [ m a t c h :   w a v e ] : 
 
         7 7 :                                   }   e l s e   { 
 
         7 8 :                                           $ w a v e _ P r o c e s s   =   $ W a v e S e r v i c e - > l o o k u p P r o c e s s ( $ P r o c e s s C o d i n g K e y ) ; 
 
   > >   7 9 :                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
         8 0 :                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
         8 1 :                                           $ W a v e S e r v i c e - > s e t W a s M a n u a l ( $ W a s M a n u a l ) ; 
 
 
 
     L i n e   8 0   [ m a t c h :   w a v e ] : 
 
         7 8 :                                           $ w a v e _ P r o c e s s   =   $ W a v e S e r v i c e - > l o o k u p P r o c e s s ( $ P r o c e s s C o d i n g K e y ) ; 
 
         7 9 :                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
   > >   8 0 :                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
         8 1 :                                           $ W a v e S e r v i c e - > s e t W a s M a n u a l ( $ W a s M a n u a l ) ; 
 
         8 2 :   
 
 
 
     L i n e   8 1   [ m a t c h :   w a v e ] : 
 
         7 9 :                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
         8 0 :                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
   > >   8 1 :                                           $ W a v e S e r v i c e - > s e t W a s M a n u a l ( $ W a s M a n u a l ) ; 
 
         8 2 :   
 
         8 3 :                                           i f   ( $ w a v e _ P r o c e s s   = = =   n u l l )   { 
 
 
 
     L i n e   8 3   [ m a t c h :   w a v e ] : 
 
         8 1 :                                           $ W a v e S e r v i c e - > s e t W a s M a n u a l ( $ W a s M a n u a l ) ; 
 
         8 2 :   
 
   > >   8 3 :                                           i f   ( $ w a v e _ P r o c e s s   = = =   n u l l )   { 
 
         8 4 :                                                   $ t h i s - > e r r o r ( ' P r o c e s s   C o d i n g   K e y   n o t   f o u n d ' ) ; 
 
         8 5 :                                                   t h r o w   n e w   \ E x c e p t i o n ( " P r o c e s s   C o d i n g   K e y   n o t   f o u n d : :   W A V E   E D I   P R O C E S S " ) ; 
 
 
 
     L i n e   8 5   [ m a t c h :   w a v e ] : 
 
         8 3 :                                           i f   ( $ w a v e _ P r o c e s s   = = =   n u l l )   { 
 
         8 4 :                                                   $ t h i s - > e r r o r ( ' P r o c e s s   C o d i n g   K e y   n o t   f o u n d ' ) ; 
 
   > >   8 5 :                                                   t h r o w   n e w   \ E x c e p t i o n ( " P r o c e s s   C o d i n g   K e y   n o t   f o u n d : :   W A V E   E D I   P R O C E S S " ) ; 
 
         8 6 :   
 
         8 7 :                                                   / / a b o r t ( 5 0 0 ) ; 
 
 
 
     L i n e   9 0   [ m a t c h :   w a v e ] : 
 
         8 8 :                                           } 
 
         8 9 :   
 
   > >   9 0 :                                           $ W a v e S e r v i c e - > r u n P r o c e s s ( ) ; 
 
         9 1 :                                   } 
 
         9 2 :                           }   c a t c h   ( \ E x c e p t i o n   $ e )   { 
 
 
 
     L i n e   5   [ m a t c h :   W a v e ] : 
 
         3 :   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s ; 
 
         4 :   
 
   > >   5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         6 :   
 
         7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
 
 
     L i n e   7   [ m a t c h :   W a v e ] : 
 
         5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         6 :   
 
   > >   7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         8 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e V P ; 
 
         9 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
 
 
     L i n e   8   [ m a t c h :   W a v e ] : 
 
         6 :   
 
         7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
   > >   8 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e V P ; 
 
         9 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         1 0 :   
 
 
 
     L i n e   1 1   [ m a t c h :   W a v e ] : 
 
         9 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         1 0 :   
 
   > >   1 1 :   c l a s s   P r o c e s s W a v e   e x t e n d s   C o m m a n d 
 
         1 2 :   { 
 
         1 3 :           / * * 
 
 
 
     L i n e   1 9   [ m a t c h :   W a v e ] : 
 
         1 7 :             * / 
 
         1 8 :           p r o t e c t e d   $ s i g n a t u r e   =   ' e d i : r u n 
 
   > >   1 9 :                     {   - - p r o c e s s =   :   T h e   w a v e _ P r o c e s s   C o d i n g K e y   } 
 
         2 0 :                     {   - - d a t e =   :   T h e   p r o c e s s i n g   d a t e   } 
 
         2 1 :                     {   - - a l l   :   s p e c i f y   i f   a l l   p r o c e s s e s   s h o u l d   r u n ,   y o u   c a n   s p e c i f y   a n y t h i n g   a s   t h e   P r o c e s s C o d i n g K e y ,   i t   w i l l   b e   i g n o r e d   } 
 
 
 
     L i n e   2 9   [ m a t c h :   W a v e ] : 
 
         2 7 :             *   @ v a r   s t r i n g 
 
         2 8 :             * / 
 
   > >   2 9 :           p r o t e c t e d   $ d e s c r i p t i o n   =   ' R u n s   a   s p e c i f i e d   W a v e   E D I   p r o c e s s ' ; 
 
         3 0 :   
 
         3 1 :           p u b l i c   f u n c t i o n   h a n d l e ( ) 
 
 
 
     L i n e   4 1   [ m a t c h :   W a v e ] : 
 
         3 9 :   
 
         4 0 :                                   i f   ( $ z   = = 0 )   { 
 
   > >   4 1 :                                           $ t h i s - > i n f o ( " R u n n i n g   W a v e   E D I   P r o c e s s " ) ; 
 
         4 2 :   
 
         4 3 :                                           / * *   @ v a r   W a v e S e r v i c e   $ W a v e S e r v i c e   * / 
 
 
 
     L i n e   4 3   [ m a t c h :   W a v e ] : 
 
         4 1 :                                           $ t h i s - > i n f o ( " R u n n i n g   W a v e   E D I   P r o c e s s " ) ; 
 
         4 2 :   
 
   > >   4 3 :                                           / * *   @ v a r   W a v e S e r v i c e   $ W a v e S e r v i c e   * / 
 
         4 4 :                                           $ W a v e S e r v i c e   =   a p p ( W a v e S e r v i c e : : c l a s s ) ; 
 
         4 5 :                                   } 
 
 
 
     L i n e   4 4   [ m a t c h :   W a v e ] : 
 
         4 2 :   
 
         4 3 :                                           / * *   @ v a r   W a v e S e r v i c e   $ W a v e S e r v i c e   * / 
 
   > >   4 4 :                                           $ W a v e S e r v i c e   =   a p p ( W a v e S e r v i c e : : c l a s s ) ; 
 
         4 5 :                                   } 
 
         4 6 :                                   e l s e 
 
 
 
     L i n e   4 8   [ m a t c h :   W a v e ] : 
 
         4 6 :                                   e l s e 
 
         4 7 :                                   { 
 
   > >   4 8 :                                           $ t h i s - > i n f o ( " R u n n i n g   W a v e   E D I   P r o c e s s   V P " ) ; 
 
         4 9 :                                           / * *   @ v a r   W a v e S e r v i c e V P   $ W a v e S e r v i c e   * / 
 
         5 0 :                                           $ W a v e S e r v i c e   =   a p p ( W a v e S e r v i c e V P : : c l a s s ) ; 
 
 
 
     L i n e   4 9   [ m a t c h :   W a v e ] : 
 
         4 7 :                                   { 
 
         4 8 :                                           $ t h i s - > i n f o ( " R u n n i n g   W a v e   E D I   P r o c e s s   V P " ) ; 
 
   > >   4 9 :                                           / * *   @ v a r   W a v e S e r v i c e V P   $ W a v e S e r v i c e   * / 
 
         5 0 :                                           $ W a v e S e r v i c e   =   a p p ( W a v e S e r v i c e V P : : c l a s s ) ; 
 
         5 1 :                                   } 
 
 
 
     L i n e   5 0   [ m a t c h :   W a v e ] : 
 
         4 8 :                                           $ t h i s - > i n f o ( " R u n n i n g   W a v e   E D I   P r o c e s s   V P " ) ; 
 
         4 9 :                                           / * *   @ v a r   W a v e S e r v i c e V P   $ W a v e S e r v i c e   * / 
 
   > >   5 0 :                                           $ W a v e S e r v i c e   =   a p p ( W a v e S e r v i c e V P : : c l a s s ) ; 
 
         5 1 :                                   } 
 
         5 2 :   
 
 
 
     L i n e   6 3   [ m a t c h :   W a v e ] : 
 
         6 1 :   
 
         6 2 :                                   i f   ( $ S h o u l d R u n A l l )   { 
 
   > >   6 3 :                                           / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
         6 4 :                                           $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         6 5 :   
 
 
 
     L i n e   6 4   [ m a t c h :   W a v e ] : 
 
         6 2 :                                   i f   ( $ S h o u l d R u n A l l )   { 
 
         6 3 :                                           / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
   > >   6 4 :                                           $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         6 5 :   
 
         6 6 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s [ ]   $ w a v e _ P r o c e s s e s   * / 
 
 
 
     L i n e   6 6   [ m a t c h :   W a v e ] : 
 
         6 4 :                                           $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         6 5 :   
 
   > >   6 6 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s [ ]   $ w a v e _ P r o c e s s e s   * / 
 
         6 7 :                                           $ w a v e _ P r o c e s s e s   =   $ w a v e _ P r o c e s s R e p o - > g e t E n a b l e d B y P r o c e s s O r d e r ( ) ; 
 
         6 8 :   
 
 
 
     L i n e   6 7   [ m a t c h :   W a v e ] : 
 
         6 5 :   
 
         6 6 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s [ ]   $ w a v e _ P r o c e s s e s   * / 
 
   > >   6 7 :                                           $ w a v e _ P r o c e s s e s   =   $ w a v e _ P r o c e s s R e p o - > g e t E n a b l e d B y P r o c e s s O r d e r ( ) ; 
 
         6 8 :   
 
         6 9 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
 
 
     L i n e   6 9   [ m a t c h :   W a v e ] : 
 
         6 7 :                                           $ w a v e _ P r o c e s s e s   =   $ w a v e _ P r o c e s s R e p o - > g e t E n a b l e d B y P r o c e s s O r d e r ( ) ; 
 
         6 8 :   
 
   > >   6 9 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
         7 0 :                                           f o r e a c h   ( $ w a v e _ P r o c e s s e s   a s   $ w a v e _ P r o c e s s )   { 
 
         7 1 :                                                   i f   ( $ w a v e _ P r o c e s s - > g e t C o d i n g K e y ( )   ! = =   ' W A V E _ E N D _ O F _ M O N T H ' )   { 
 
 
 
     L i n e   7 0   [ m a t c h :   W a v e ] : 
 
         6 8 :   
 
         6 9 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
   > >   7 0 :                                           f o r e a c h   ( $ w a v e _ P r o c e s s e s   a s   $ w a v e _ P r o c e s s )   { 
 
         7 1 :                                                   i f   ( $ w a v e _ P r o c e s s - > g e t C o d i n g K e y ( )   ! = =   ' W A V E _ E N D _ O F _ M O N T H ' )   { 
 
         7 2 :                                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
 
 
     L i n e   7 1   [ m a t c h :   W a v e ] : 
 
         6 9 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
         7 0 :                                           f o r e a c h   ( $ w a v e _ P r o c e s s e s   a s   $ w a v e _ P r o c e s s )   { 
 
   > >   7 1 :                                                   i f   ( $ w a v e _ P r o c e s s - > g e t C o d i n g K e y ( )   ! = =   ' W A V E _ E N D _ O F _ M O N T H ' )   { 
 
         7 2 :                                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
         7 3 :                                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
 
 
     L i n e   7 2   [ m a t c h :   W a v e ] : 
 
         7 0 :                                           f o r e a c h   ( $ w a v e _ P r o c e s s e s   a s   $ w a v e _ P r o c e s s )   { 
 
         7 1 :                                                   i f   ( $ w a v e _ P r o c e s s - > g e t C o d i n g K e y ( )   ! = =   ' W A V E _ E N D _ O F _ M O N T H ' )   { 
 
   > >   7 2 :                                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
         7 3 :                                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
         7 4 :                                                           $ W a v e S e r v i c e - > r u n P r o c e s s ( ) ; 
 
 
 
     L i n e   7 3   [ m a t c h :   W a v e ] : 
 
         7 1 :                                                   i f   ( $ w a v e _ P r o c e s s - > g e t C o d i n g K e y ( )   ! = =   ' W A V E _ E N D _ O F _ M O N T H ' )   { 
 
         7 2 :                                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
   > >   7 3 :                                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
         7 4 :                                                           $ W a v e S e r v i c e - > r u n P r o c e s s ( ) ; 
 
         7 5 :                                                   } 
 
 
 
     L i n e   7 4   [ m a t c h :   W a v e ] : 
 
         7 2 :                                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
         7 3 :                                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
   > >   7 4 :                                                           $ W a v e S e r v i c e - > r u n P r o c e s s ( ) ; 
 
         7 5 :                                                   } 
 
         7 6 :                                           } 
 
 
 
     L i n e   7 8   [ m a t c h :   W a v e ] : 
 
         7 6 :                                           } 
 
         7 7 :                                   }   e l s e   { 
 
   > >   7 8 :                                           $ w a v e _ P r o c e s s   =   $ W a v e S e r v i c e - > l o o k u p P r o c e s s ( $ P r o c e s s C o d i n g K e y ) ; 
 
         7 9 :                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
         8 0 :                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
 
 
     L i n e   7 9   [ m a t c h :   W a v e ] : 
 
         7 7 :                                   }   e l s e   { 
 
         7 8 :                                           $ w a v e _ P r o c e s s   =   $ W a v e S e r v i c e - > l o o k u p P r o c e s s ( $ P r o c e s s C o d i n g K e y ) ; 
 
   > >   7 9 :                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
         8 0 :                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
         8 1 :                                           $ W a v e S e r v i c e - > s e t W a s M a n u a l ( $ W a s M a n u a l ) ; 
 
 
 
     L i n e   8 0   [ m a t c h :   W a v e ] : 
 
         7 8 :                                           $ w a v e _ P r o c e s s   =   $ W a v e S e r v i c e - > l o o k u p P r o c e s s ( $ P r o c e s s C o d i n g K e y ) ; 
 
         7 9 :                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
   > >   8 0 :                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
         8 1 :                                           $ W a v e S e r v i c e - > s e t W a s M a n u a l ( $ W a s M a n u a l ) ; 
 
         8 2 :   
 
 
 
     L i n e   8 1   [ m a t c h :   W a v e ] : 
 
         7 9 :                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
         8 0 :                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
   > >   8 1 :                                           $ W a v e S e r v i c e - > s e t W a s M a n u a l ( $ W a s M a n u a l ) ; 
 
         8 2 :   
 
         8 3 :                                           i f   ( $ w a v e _ P r o c e s s   = = =   n u l l )   { 
 
 
 
     L i n e   8 3   [ m a t c h :   W a v e ] : 
 
         8 1 :                                           $ W a v e S e r v i c e - > s e t W a s M a n u a l ( $ W a s M a n u a l ) ; 
 
         8 2 :   
 
   > >   8 3 :                                           i f   ( $ w a v e _ P r o c e s s   = = =   n u l l )   { 
 
         8 4 :                                                   $ t h i s - > e r r o r ( ' P r o c e s s   C o d i n g   K e y   n o t   f o u n d ' ) ; 
 
         8 5 :                                                   t h r o w   n e w   \ E x c e p t i o n ( " P r o c e s s   C o d i n g   K e y   n o t   f o u n d : :   W A V E   E D I   P R O C E S S " ) ; 
 
 
 
     L i n e   8 5   [ m a t c h :   W a v e ] : 
 
         8 3 :                                           i f   ( $ w a v e _ P r o c e s s   = = =   n u l l )   { 
 
         8 4 :                                                   $ t h i s - > e r r o r ( ' P r o c e s s   C o d i n g   K e y   n o t   f o u n d ' ) ; 
 
   > >   8 5 :                                                   t h r o w   n e w   \ E x c e p t i o n ( " P r o c e s s   C o d i n g   K e y   n o t   f o u n d : :   W A V E   E D I   P R O C E S S " ) ; 
 
         8 6 :   
 
         8 7 :                                                   / / a b o r t ( 5 0 0 ) ; 
 
 
 
     L i n e   9 0   [ m a t c h :   W a v e ] : 
 
         8 8 :                                           } 
 
         8 9 :   
 
   > >   9 0 :                                           $ W a v e S e r v i c e - > r u n P r o c e s s ( ) ; 
 
         9 1 :                                   } 
 
         9 2 :                           }   c a t c h   ( \ E x c e p t i o n   $ e )   { 
 
 
 
     L i n e   5   [ m a t c h :   W A V E ] : 
 
         3 :   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s ; 
 
         4 :   
 
   > >   5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         6 :   
 
         7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
 
 
     L i n e   7   [ m a t c h :   W A V E ] : 
 
         5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         6 :   
 
   > >   7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         8 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e V P ; 
 
         9 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
 
 
     L i n e   8   [ m a t c h :   W A V E ] : 
 
         6 :   
 
         7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
   > >   8 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e V P ; 
 
         9 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         1 0 :   
 
 
 
     L i n e   1 1   [ m a t c h :   W A V E ] : 
 
         9 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         1 0 :   
 
   > >   1 1 :   c l a s s   P r o c e s s W a v e   e x t e n d s   C o m m a n d 
 
         1 2 :   { 
 
         1 3 :           / * * 
 
 
 
     L i n e   1 9   [ m a t c h :   W A V E ] : 
 
         1 7 :             * / 
 
         1 8 :           p r o t e c t e d   $ s i g n a t u r e   =   ' e d i : r u n 
 
   > >   1 9 :                     {   - - p r o c e s s =   :   T h e   w a v e _ P r o c e s s   C o d i n g K e y   } 
 
         2 0 :                     {   - - d a t e =   :   T h e   p r o c e s s i n g   d a t e   } 
 
         2 1 :                     {   - - a l l   :   s p e c i f y   i f   a l l   p r o c e s s e s   s h o u l d   r u n ,   y o u   c a n   s p e c i f y   a n y t h i n g   a s   t h e   P r o c e s s C o d i n g K e y ,   i t   w i l l   b e   i g n o r e d   } 
 
 
 
     L i n e   2 9   [ m a t c h :   W A V E ] : 
 
         2 7 :             *   @ v a r   s t r i n g 
 
         2 8 :             * / 
 
   > >   2 9 :           p r o t e c t e d   $ d e s c r i p t i o n   =   ' R u n s   a   s p e c i f i e d   W a v e   E D I   p r o c e s s ' ; 
 
         3 0 :   
 
         3 1 :           p u b l i c   f u n c t i o n   h a n d l e ( ) 
 
 
 
     L i n e   4 1   [ m a t c h :   W A V E ] : 
 
         3 9 :   
 
         4 0 :                                   i f   ( $ z   = = 0 )   { 
 
   > >   4 1 :                                           $ t h i s - > i n f o ( " R u n n i n g   W a v e   E D I   P r o c e s s " ) ; 
 
         4 2 :   
 
         4 3 :                                           / * *   @ v a r   W a v e S e r v i c e   $ W a v e S e r v i c e   * / 
 
 
 
     L i n e   4 3   [ m a t c h :   W A V E ] : 
 
         4 1 :                                           $ t h i s - > i n f o ( " R u n n i n g   W a v e   E D I   P r o c e s s " ) ; 
 
         4 2 :   
 
   > >   4 3 :                                           / * *   @ v a r   W a v e S e r v i c e   $ W a v e S e r v i c e   * / 
 
         4 4 :                                           $ W a v e S e r v i c e   =   a p p ( W a v e S e r v i c e : : c l a s s ) ; 
 
         4 5 :                                   } 
 
 
 
     L i n e   4 4   [ m a t c h :   W A V E ] : 
 
         4 2 :   
 
         4 3 :                                           / * *   @ v a r   W a v e S e r v i c e   $ W a v e S e r v i c e   * / 
 
   > >   4 4 :                                           $ W a v e S e r v i c e   =   a p p ( W a v e S e r v i c e : : c l a s s ) ; 
 
         4 5 :                                   } 
 
         4 6 :                                   e l s e 
 
 
 
     L i n e   4 8   [ m a t c h :   W A V E ] : 
 
         4 6 :                                   e l s e 
 
         4 7 :                                   { 
 
   > >   4 8 :                                           $ t h i s - > i n f o ( " R u n n i n g   W a v e   E D I   P r o c e s s   V P " ) ; 
 
         4 9 :                                           / * *   @ v a r   W a v e S e r v i c e V P   $ W a v e S e r v i c e   * / 
 
         5 0 :                                           $ W a v e S e r v i c e   =   a p p ( W a v e S e r v i c e V P : : c l a s s ) ; 
 
 
 
     L i n e   4 9   [ m a t c h :   W A V E ] : 
 
         4 7 :                                   { 
 
         4 8 :                                           $ t h i s - > i n f o ( " R u n n i n g   W a v e   E D I   P r o c e s s   V P " ) ; 
 
   > >   4 9 :                                           / * *   @ v a r   W a v e S e r v i c e V P   $ W a v e S e r v i c e   * / 
 
         5 0 :                                           $ W a v e S e r v i c e   =   a p p ( W a v e S e r v i c e V P : : c l a s s ) ; 
 
         5 1 :                                   } 
 
 
 
     L i n e   5 0   [ m a t c h :   W A V E ] : 
 
         4 8 :                                           $ t h i s - > i n f o ( " R u n n i n g   W a v e   E D I   P r o c e s s   V P " ) ; 
 
         4 9 :                                           / * *   @ v a r   W a v e S e r v i c e V P   $ W a v e S e r v i c e   * / 
 
   > >   5 0 :                                           $ W a v e S e r v i c e   =   a p p ( W a v e S e r v i c e V P : : c l a s s ) ; 
 
         5 1 :                                   } 
 
         5 2 :   
 
 
 
     L i n e   6 3   [ m a t c h :   W A V E ] : 
 
         6 1 :   
 
         6 2 :                                   i f   ( $ S h o u l d R u n A l l )   { 
 
   > >   6 3 :                                           / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
         6 4 :                                           $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         6 5 :   
 
 
 
     L i n e   6 4   [ m a t c h :   W A V E ] : 
 
         6 2 :                                   i f   ( $ S h o u l d R u n A l l )   { 
 
         6 3 :                                           / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
   > >   6 4 :                                           $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         6 5 :   
 
         6 6 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s [ ]   $ w a v e _ P r o c e s s e s   * / 
 
 
 
     L i n e   6 6   [ m a t c h :   W A V E ] : 
 
         6 4 :                                           $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         6 5 :   
 
   > >   6 6 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s [ ]   $ w a v e _ P r o c e s s e s   * / 
 
         6 7 :                                           $ w a v e _ P r o c e s s e s   =   $ w a v e _ P r o c e s s R e p o - > g e t E n a b l e d B y P r o c e s s O r d e r ( ) ; 
 
         6 8 :   
 
 
 
     L i n e   6 7   [ m a t c h :   W A V E ] : 
 
         6 5 :   
 
         6 6 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s [ ]   $ w a v e _ P r o c e s s e s   * / 
 
   > >   6 7 :                                           $ w a v e _ P r o c e s s e s   =   $ w a v e _ P r o c e s s R e p o - > g e t E n a b l e d B y P r o c e s s O r d e r ( ) ; 
 
         6 8 :   
 
         6 9 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
 
 
     L i n e   6 9   [ m a t c h :   W A V E ] : 
 
         6 7 :                                           $ w a v e _ P r o c e s s e s   =   $ w a v e _ P r o c e s s R e p o - > g e t E n a b l e d B y P r o c e s s O r d e r ( ) ; 
 
         6 8 :   
 
   > >   6 9 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
         7 0 :                                           f o r e a c h   ( $ w a v e _ P r o c e s s e s   a s   $ w a v e _ P r o c e s s )   { 
 
         7 1 :                                                   i f   ( $ w a v e _ P r o c e s s - > g e t C o d i n g K e y ( )   ! = =   ' W A V E _ E N D _ O F _ M O N T H ' )   { 
 
 
 
     L i n e   7 0   [ m a t c h :   W A V E ] : 
 
         6 8 :   
 
         6 9 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
   > >   7 0 :                                           f o r e a c h   ( $ w a v e _ P r o c e s s e s   a s   $ w a v e _ P r o c e s s )   { 
 
         7 1 :                                                   i f   ( $ w a v e _ P r o c e s s - > g e t C o d i n g K e y ( )   ! = =   ' W A V E _ E N D _ O F _ M O N T H ' )   { 
 
         7 2 :                                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
 
 
     L i n e   7 1   [ m a t c h :   W A V E ] : 
 
         6 9 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
         7 0 :                                           f o r e a c h   ( $ w a v e _ P r o c e s s e s   a s   $ w a v e _ P r o c e s s )   { 
 
   > >   7 1 :                                                   i f   ( $ w a v e _ P r o c e s s - > g e t C o d i n g K e y ( )   ! = =   ' W A V E _ E N D _ O F _ M O N T H ' )   { 
 
         7 2 :                                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
         7 3 :                                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
 
 
     L i n e   7 2   [ m a t c h :   W A V E ] : 
 
         7 0 :                                           f o r e a c h   ( $ w a v e _ P r o c e s s e s   a s   $ w a v e _ P r o c e s s )   { 
 
         7 1 :                                                   i f   ( $ w a v e _ P r o c e s s - > g e t C o d i n g K e y ( )   ! = =   ' W A V E _ E N D _ O F _ M O N T H ' )   { 
 
   > >   7 2 :                                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
         7 3 :                                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
         7 4 :                                                           $ W a v e S e r v i c e - > r u n P r o c e s s ( ) ; 
 
 
 
     L i n e   7 3   [ m a t c h :   W A V E ] : 
 
         7 1 :                                                   i f   ( $ w a v e _ P r o c e s s - > g e t C o d i n g K e y ( )   ! = =   ' W A V E _ E N D _ O F _ M O N T H ' )   { 
 
         7 2 :                                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
   > >   7 3 :                                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
         7 4 :                                                           $ W a v e S e r v i c e - > r u n P r o c e s s ( ) ; 
 
         7 5 :                                                   } 
 
 
 
     L i n e   7 4   [ m a t c h :   W A V E ] : 
 
         7 2 :                                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
         7 3 :                                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
   > >   7 4 :                                                           $ W a v e S e r v i c e - > r u n P r o c e s s ( ) ; 
 
         7 5 :                                                   } 
 
         7 6 :                                           } 
 
 
 
     L i n e   7 8   [ m a t c h :   W A V E ] : 
 
         7 6 :                                           } 
 
         7 7 :                                   }   e l s e   { 
 
   > >   7 8 :                                           $ w a v e _ P r o c e s s   =   $ W a v e S e r v i c e - > l o o k u p P r o c e s s ( $ P r o c e s s C o d i n g K e y ) ; 
 
         7 9 :                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
         8 0 :                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
 
 
     L i n e   7 9   [ m a t c h :   W A V E ] : 
 
         7 7 :                                   }   e l s e   { 
 
         7 8 :                                           $ w a v e _ P r o c e s s   =   $ W a v e S e r v i c e - > l o o k u p P r o c e s s ( $ P r o c e s s C o d i n g K e y ) ; 
 
   > >   7 9 :                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
         8 0 :                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
         8 1 :                                           $ W a v e S e r v i c e - > s e t W a s M a n u a l ( $ W a s M a n u a l ) ; 
 
 
 
     L i n e   8 0   [ m a t c h :   W A V E ] : 
 
         7 8 :                                           $ w a v e _ P r o c e s s   =   $ W a v e S e r v i c e - > l o o k u p P r o c e s s ( $ P r o c e s s C o d i n g K e y ) ; 
 
         7 9 :                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
   > >   8 0 :                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
         8 1 :                                           $ W a v e S e r v i c e - > s e t W a s M a n u a l ( $ W a s M a n u a l ) ; 
 
         8 2 :   
 
 
 
     L i n e   8 1   [ m a t c h :   W A V E ] : 
 
         7 9 :                                           $ W a v e S e r v i c e - > s e t W a v e P r o c e s s ( $ w a v e _ P r o c e s s ) ; 
 
         8 0 :                                           $ W a v e S e r v i c e - > s e t P r o c e s s D a t e ( $ P r o c e s s D a t e ) ; 
 
   > >   8 1 :                                           $ W a v e S e r v i c e - > s e t W a s M a n u a l ( $ W a s M a n u a l ) ; 
 
         8 2 :   
 
         8 3 :                                           i f   ( $ w a v e _ P r o c e s s   = = =   n u l l )   { 
 
 
 
     L i n e   8 3   [ m a t c h :   W A V E ] : 
 
         8 1 :                                           $ W a v e S e r v i c e - > s e t W a s M a n u a l ( $ W a s M a n u a l ) ; 
 
         8 2 :   
 
   > >   8 3 :                                           i f   ( $ w a v e _ P r o c e s s   = = =   n u l l )   { 
 
         8 4 :                                                   $ t h i s - > e r r o r ( ' P r o c e s s   C o d i n g   K e y   n o t   f o u n d ' ) ; 
 
         8 5 :                                                   t h r o w   n e w   \ E x c e p t i o n ( " P r o c e s s   C o d i n g   K e y   n o t   f o u n d : :   W A V E   E D I   P R O C E S S " ) ; 
 
 
 
     L i n e   8 5   [ m a t c h :   W A V E ] : 
 
         8 3 :                                           i f   ( $ w a v e _ P r o c e s s   = = =   n u l l )   { 
 
         8 4 :                                                   $ t h i s - > e r r o r ( ' P r o c e s s   C o d i n g   K e y   n o t   f o u n d ' ) ; 
 
   > >   8 5 :                                                   t h r o w   n e w   \ E x c e p t i o n ( " P r o c e s s   C o d i n g   K e y   n o t   f o u n d : :   W A V E   E D I   P R O C E S S " ) ; 
 
         8 6 :   
 
         8 7 :                                                   / / a b o r t ( 5 0 0 ) ; 
 
 
 
     L i n e   9 0   [ m a t c h :   W A V E ] : 
 
         8 8 :                                           } 
 
         8 9 :   
 
   > >   9 0 :                                           $ W a v e S e r v i c e - > r u n P r o c e s s ( ) ; 
 
         9 1 :                                   } 
 
         9 2 :                           }   c a t c h   ( \ E x c e p t i o n   $ e )   { 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ C o m m a n d s \ R e a c t i v a t e C u s t o m e r s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5   [ m a t c h :   w a v e ] : 
 
         3 :   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s ; 
 
         4 :   
 
   > >   5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         7 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
 
 
     L i n e   6   [ m a t c h :   w a v e ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   6 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         7 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         8 :   
 
 
 
     L i n e   5   [ m a t c h :   W a v e ] : 
 
         3 :   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s ; 
 
         4 :   
 
   > >   5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         7 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
 
 
     L i n e   6   [ m a t c h :   W a v e ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   6 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         7 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         8 :   
 
 
 
     L i n e   5   [ m a t c h :   W A V E ] : 
 
         3 :   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s ; 
 
         4 :   
 
   > >   5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         7 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
 
 
     L i n e   6   [ m a t c h :   W A V E ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   6 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         7 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         8 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ C o m m a n d s \ R e f r e s h A l l C o m p a n y N a m e s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 2   [ m a t c h :   F R O M   ] : 
 
         2 0 :             *   @ v a r   s t r i n g 
 
         2 1 :             * / 
 
   > >   2 2 :           p r o t e c t e d   $ d e s c r i p t i o n   =   ' C o m m a n d   t o   r e f r e s h   a l l   c o m p a n y   n a m e s   f r o m   E p i c o r ' ; 
 
         2 3 :   
 
         2 4 :           p u b l i c   f u n c t i o n   h a n d l e ( ) 
 
 
 
     L i n e   4   [ m a t c h :   e p i c o r ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         6 :   u s e   S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ; 
 
 
 
     L i n e   2 2   [ m a t c h :   e p i c o r ] : 
 
         2 0 :             *   @ v a r   s t r i n g 
 
         2 1 :             * / 
 
   > >   2 2 :           p r o t e c t e d   $ d e s c r i p t i o n   =   ' C o m m a n d   t o   r e f r e s h   a l l   c o m p a n y   n a m e s   f r o m   E p i c o r ' ; 
 
         2 3 :   
 
         2 4 :           p u b l i c   f u n c t i o n   h a n d l e ( ) 
 
 
 
     L i n e   2 6   [ m a t c h :   e p i c o r ] : 
 
         2 4 :           p u b l i c   f u n c t i o n   h a n d l e ( ) 
 
         2 5 :           { 
 
   > >   2 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         2 7 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 8 :   
 
 
 
     L i n e   2 7   [ m a t c h :   e p i c o r ] : 
 
         2 5 :           { 
 
         2 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   2 7 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 8 :   
 
         2 9 :                   / * *   @ v a r   E M C o n t a i n e r   $ E M s   * / 
 
 
 
     L i n e   3 7   [ m a t c h :   e p i c o r ] : 
 
         3 5 :                   f o r e a c h ( $ A l l C o m p a n i e s   a s   $ C o m p a n y ) 
 
         3 6 :                   { 
 
   > >   3 7 :                           i f ( ( $ E p i c o r I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ C o m p a n y - > g e t E p i c o r C u s t I D ( ) ) )   ! = =   F A L S E ) 
 
         3 8 :                           { 
 
         3 9 :                                   $ C o m p a n y - > s e t E p i N a m e ( $ E p i c o r I n f o [ ' N a m e ' ] ) ; 
 
 
 
     L i n e   3 9   [ m a t c h :   e p i c o r ] : 
 
         3 7 :                           i f ( ( $ E p i c o r I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ C o m p a n y - > g e t E p i c o r C u s t I D ( ) ) )   ! = =   F A L S E ) 
 
         3 8 :                           { 
 
   > >   3 9 :                                   $ C o m p a n y - > s e t E p i N a m e ( $ E p i c o r I n f o [ ' N a m e ' ] ) ; 
 
         4 0 :                           } 
 
         4 1 :                           e l s e 
 
 
 
     L i n e   4 4   [ m a t c h :   e p i c o r ] : 
 
         4 2 :                           { 
 
         4 3 :                                   $ C o m p a n y - > s e t E p i N a m e ( n u l l ) ; 
 
   > >   4 4 :                                   $ t h i s - > e r r o r ( ' F A I L E D   ' . $ C o m p a n y - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         4 5 :                           } 
 
         4 6 :                   } 
 
 
 
     L i n e   4   [ m a t c h :   E p i c o r ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         6 :   u s e   S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ; 
 
 
 
     L i n e   2 2   [ m a t c h :   E p i c o r ] : 
 
         2 0 :             *   @ v a r   s t r i n g 
 
         2 1 :             * / 
 
   > >   2 2 :           p r o t e c t e d   $ d e s c r i p t i o n   =   ' C o m m a n d   t o   r e f r e s h   a l l   c o m p a n y   n a m e s   f r o m   E p i c o r ' ; 
 
         2 3 :   
 
         2 4 :           p u b l i c   f u n c t i o n   h a n d l e ( ) 
 
 
 
     L i n e   2 6   [ m a t c h :   E p i c o r ] : 
 
         2 4 :           p u b l i c   f u n c t i o n   h a n d l e ( ) 
 
         2 5 :           { 
 
   > >   2 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         2 7 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 8 :   
 
 
 
     L i n e   2 7   [ m a t c h :   E p i c o r ] : 
 
         2 5 :           { 
 
         2 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   2 7 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 8 :   
 
         2 9 :                   / * *   @ v a r   E M C o n t a i n e r   $ E M s   * / 
 
 
 
     L i n e   3 7   [ m a t c h :   E p i c o r ] : 
 
         3 5 :                   f o r e a c h ( $ A l l C o m p a n i e s   a s   $ C o m p a n y ) 
 
         3 6 :                   { 
 
   > >   3 7 :                           i f ( ( $ E p i c o r I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ C o m p a n y - > g e t E p i c o r C u s t I D ( ) ) )   ! = =   F A L S E ) 
 
         3 8 :                           { 
 
         3 9 :                                   $ C o m p a n y - > s e t E p i N a m e ( $ E p i c o r I n f o [ ' N a m e ' ] ) ; 
 
 
 
     L i n e   3 9   [ m a t c h :   E p i c o r ] : 
 
         3 7 :                           i f ( ( $ E p i c o r I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ C o m p a n y - > g e t E p i c o r C u s t I D ( ) ) )   ! = =   F A L S E ) 
 
         3 8 :                           { 
 
   > >   3 9 :                                   $ C o m p a n y - > s e t E p i N a m e ( $ E p i c o r I n f o [ ' N a m e ' ] ) ; 
 
         4 0 :                           } 
 
         4 1 :                           e l s e 
 
 
 
     L i n e   4 4   [ m a t c h :   E p i c o r ] : 
 
         4 2 :                           { 
 
         4 3 :                                   $ C o m p a n y - > s e t E p i N a m e ( n u l l ) ; 
 
   > >   4 4 :                                   $ t h i s - > e r r o r ( ' F A I L E D   ' . $ C o m p a n y - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         4 5 :                           } 
 
         4 6 :                   } 
 
 
 
     L i n e   4   [ m a t c h :   E P I C O R ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         6 :   u s e   S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ; 
 
 
 
     L i n e   2 2   [ m a t c h :   E P I C O R ] : 
 
         2 0 :             *   @ v a r   s t r i n g 
 
         2 1 :             * / 
 
   > >   2 2 :           p r o t e c t e d   $ d e s c r i p t i o n   =   ' C o m m a n d   t o   r e f r e s h   a l l   c o m p a n y   n a m e s   f r o m   E p i c o r ' ; 
 
         2 3 :   
 
         2 4 :           p u b l i c   f u n c t i o n   h a n d l e ( ) 
 
 
 
     L i n e   2 6   [ m a t c h :   E P I C O R ] : 
 
         2 4 :           p u b l i c   f u n c t i o n   h a n d l e ( ) 
 
         2 5 :           { 
 
   > >   2 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         2 7 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 8 :   
 
 
 
     L i n e   2 7   [ m a t c h :   E P I C O R ] : 
 
         2 5 :           { 
 
         2 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   2 7 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 8 :   
 
         2 9 :                   / * *   @ v a r   E M C o n t a i n e r   $ E M s   * / 
 
 
 
     L i n e   3 7   [ m a t c h :   E P I C O R ] : 
 
         3 5 :                   f o r e a c h ( $ A l l C o m p a n i e s   a s   $ C o m p a n y ) 
 
         3 6 :                   { 
 
   > >   3 7 :                           i f ( ( $ E p i c o r I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ C o m p a n y - > g e t E p i c o r C u s t I D ( ) ) )   ! = =   F A L S E ) 
 
         3 8 :                           { 
 
         3 9 :                                   $ C o m p a n y - > s e t E p i N a m e ( $ E p i c o r I n f o [ ' N a m e ' ] ) ; 
 
 
 
     L i n e   3 9   [ m a t c h :   E P I C O R ] : 
 
         3 7 :                           i f ( ( $ E p i c o r I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ C o m p a n y - > g e t E p i c o r C u s t I D ( ) ) )   ! = =   F A L S E ) 
 
         3 8 :                           { 
 
   > >   3 9 :                                   $ C o m p a n y - > s e t E p i N a m e ( $ E p i c o r I n f o [ ' N a m e ' ] ) ; 
 
         4 0 :                           } 
 
         4 1 :                           e l s e 
 
 
 
     L i n e   4 4   [ m a t c h :   E P I C O R ] : 
 
         4 2 :                           { 
 
         4 3 :                                   $ C o m p a n y - > s e t E p i N a m e ( n u l l ) ; 
 
   > >   4 4 :                                   $ t h i s - > e r r o r ( ' F A I L E D   ' . $ C o m p a n y - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         4 5 :                           } 
 
         4 6 :                   } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ C o m m a n d s \ R e m o v e O l d T e m p F i l e s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5   [ m a t c h :   w a v e ] : 
 
         3 :   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s ; 
 
         4 :   
 
   > >   5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         7 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
 
 
     L i n e   6   [ m a t c h :   w a v e ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   6 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         7 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         8 :   u s e   S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ; 
 
 
 
     L i n e   5   [ m a t c h :   W a v e ] : 
 
         3 :   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s ; 
 
         4 :   
 
   > >   5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         7 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
 
 
     L i n e   6   [ m a t c h :   W a v e ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   6 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         7 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         8 :   u s e   S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ; 
 
 
 
     L i n e   5   [ m a t c h :   W A V E ] : 
 
         3 :   n a m e s p a c e   A p p \ C o n s o l e \ C o m m a n d s ; 
 
         4 :   
 
   > >   5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         7 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
 
 
     L i n e   6   [ m a t c h :   W A V E ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   6 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         7 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         8 :   u s e   S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ C o m m a n d s \ S e n d O r d e r A c k n o w l e d g e m e n t E m a i l s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 8   [ m a t c h :   U P D A T E   ] : 
 
         5 6 :   
 
         5 7 :                   / * *   s e t   a l l   o r d e r   d a t e s   t o   3   d a y s   a g o   i n   c a s e   o f   d a t a   e n t r y   e r r o r   i n   e p i c o r   * / 
 
   > >   5 8 :                   / * $ s t h   =   $ p d o - > p r e p a r e ( " U P D A T E   d b o . q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l   S E T   O r d e r D a t e   =   D A T E A D D ( D A Y ,   - 3 ,   G E T D A T E ( ) ) ; " ) ; 
 
         5 9 :   
 
         6 0 :                   $ s t h - > e x e c u t e ( ) ;   * / 
 
 
 
     L i n e   5 7   [ m a t c h :   e p i c o r ] : 
 
         5 5 :                   $ p d o   =   $ E M - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; * / 
 
         5 6 :   
 
   > >   5 7 :                   / * *   s e t   a l l   o r d e r   d a t e s   t o   3   d a y s   a g o   i n   c a s e   o f   d a t a   e n t r y   e r r o r   i n   e p i c o r   * / 
 
         5 8 :                   / * $ s t h   =   $ p d o - > p r e p a r e ( " U P D A T E   d b o . q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l   S E T   O r d e r D a t e   =   D A T E A D D ( D A Y ,   - 3 ,   G E T D A T E ( ) ) ; " ) ; 
 
         5 9 :   
 
 
 
     L i n e   5 7   [ m a t c h :   E p i c o r ] : 
 
         5 5 :                   $ p d o   =   $ E M - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; * / 
 
         5 6 :   
 
   > >   5 7 :                   / * *   s e t   a l l   o r d e r   d a t e s   t o   3   d a y s   a g o   i n   c a s e   o f   d a t a   e n t r y   e r r o r   i n   e p i c o r   * / 
 
         5 8 :                   / * $ s t h   =   $ p d o - > p r e p a r e ( " U P D A T E   d b o . q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l   S E T   O r d e r D a t e   =   D A T E A D D ( D A Y ,   - 3 ,   G E T D A T E ( ) ) ; " ) ; 
 
         5 9 :   
 
 
 
     L i n e   5 7   [ m a t c h :   E P I C O R ] : 
 
         5 5 :                   $ p d o   =   $ E M - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; * / 
 
         5 6 :   
 
   > >   5 7 :                   / * *   s e t   a l l   o r d e r   d a t e s   t o   3   d a y s   a g o   i n   c a s e   o f   d a t a   e n t r y   e r r o r   i n   e p i c o r   * / 
 
         5 8 :                   / * $ s t h   =   $ p d o - > p r e p a r e ( " U P D A T E   d b o . q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l   S E T   O r d e r D a t e   =   D A T E A D D ( D A Y ,   - 3 ,   G E T D A T E ( ) ) ; " ) ; 
 
         5 9 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ C o m m a n d s \ S e n d W a v e P r o c e s s E m a i l . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   w a v e ] : 
 
         7 :   u s e   N o t i f i c a t i o n ; 
 
         8 :   
 
   > >   9 :   c l a s s   S e n d W a v e P r o c e s s E m a i l   e x t e n d s   C o m m a n d 
 
         1 0 :   { 
 
         1 1 :           / * * 
 
 
 
     L i n e   1 6   [ m a t c h :   w a v e ] : 
 
         1 4 :             *   @ v a r   s t r i n g 
 
         1 5 :             * / 
 
   > >   1 6 :           p r o t e c t e d   $ s i g n a t u r e   =   ' e m a i l : w a v e e n d ' ; 
 
         1 7 :   
 
         1 8 :           / * * 
 
 
 
     L i n e   2 3   [ m a t c h :   w a v e ] : 
 
         2 1 :             *   @ v a r   s t r i n g 
 
         2 2 :             * / 
 
   > >   2 3 :           p r o t e c t e d   $ d e s c r i p t i o n   =   ' S e n d s   a   w a v e   e n d   e m a i l   e m a i l ' ; 
 
         2 4 :   
 
         2 5 :           / * * 
 
 
 
     L i n e   4 7   [ m a t c h :   w a v e ] : 
 
         4 5 :           p r i v a t e   f u n c t i o n   _ s e n d T h e E m a i l ( ) 
 
         4 6 :           { 
 
   > >   4 7 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' n i c k @ s a v v i o r . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
 
 
     L i n e   4 8   [ m a t c h :   w a v e ] : 
 
         4 6 :           { 
 
         4 7 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' n i c k @ s a v v i o r . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
   > >   4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 0 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' s c o t t . e w a r t @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
 
 
     L i n e   4 9   [ m a t c h :   w a v e ] : 
 
         4 7 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' n i c k @ s a v v i o r . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
   > >   4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 0 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' s c o t t . e w a r t @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 1 :   
 
 
 
     L i n e   5 0   [ m a t c h :   w a v e ] : 
 
         4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
   > >   5 0 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' s c o t t . e w a r t @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 1 :   
 
         5 2 :   
 
 
 
     L i n e   9   [ m a t c h :   W a v e ] : 
 
         7 :   u s e   N o t i f i c a t i o n ; 
 
         8 :   
 
   > >   9 :   c l a s s   S e n d W a v e P r o c e s s E m a i l   e x t e n d s   C o m m a n d 
 
         1 0 :   { 
 
         1 1 :           / * * 
 
 
 
     L i n e   1 6   [ m a t c h :   W a v e ] : 
 
         1 4 :             *   @ v a r   s t r i n g 
 
         1 5 :             * / 
 
   > >   1 6 :           p r o t e c t e d   $ s i g n a t u r e   =   ' e m a i l : w a v e e n d ' ; 
 
         1 7 :   
 
         1 8 :           / * * 
 
 
 
     L i n e   2 3   [ m a t c h :   W a v e ] : 
 
         2 1 :             *   @ v a r   s t r i n g 
 
         2 2 :             * / 
 
   > >   2 3 :           p r o t e c t e d   $ d e s c r i p t i o n   =   ' S e n d s   a   w a v e   e n d   e m a i l   e m a i l ' ; 
 
         2 4 :   
 
         2 5 :           / * * 
 
 
 
     L i n e   4 7   [ m a t c h :   W a v e ] : 
 
         4 5 :           p r i v a t e   f u n c t i o n   _ s e n d T h e E m a i l ( ) 
 
         4 6 :           { 
 
   > >   4 7 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' n i c k @ s a v v i o r . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
 
 
     L i n e   4 8   [ m a t c h :   W a v e ] : 
 
         4 6 :           { 
 
         4 7 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' n i c k @ s a v v i o r . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
   > >   4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 0 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' s c o t t . e w a r t @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
 
 
     L i n e   4 9   [ m a t c h :   W a v e ] : 
 
         4 7 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' n i c k @ s a v v i o r . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
   > >   4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 0 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' s c o t t . e w a r t @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 1 :   
 
 
 
     L i n e   5 0   [ m a t c h :   W a v e ] : 
 
         4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
   > >   5 0 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' s c o t t . e w a r t @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 1 :   
 
         5 2 :   
 
 
 
     L i n e   9   [ m a t c h :   W A V E ] : 
 
         7 :   u s e   N o t i f i c a t i o n ; 
 
         8 :   
 
   > >   9 :   c l a s s   S e n d W a v e P r o c e s s E m a i l   e x t e n d s   C o m m a n d 
 
         1 0 :   { 
 
         1 1 :           / * * 
 
 
 
     L i n e   1 6   [ m a t c h :   W A V E ] : 
 
         1 4 :             *   @ v a r   s t r i n g 
 
         1 5 :             * / 
 
   > >   1 6 :           p r o t e c t e d   $ s i g n a t u r e   =   ' e m a i l : w a v e e n d ' ; 
 
         1 7 :   
 
         1 8 :           / * * 
 
 
 
     L i n e   2 3   [ m a t c h :   W A V E ] : 
 
         2 1 :             *   @ v a r   s t r i n g 
 
         2 2 :             * / 
 
   > >   2 3 :           p r o t e c t e d   $ d e s c r i p t i o n   =   ' S e n d s   a   w a v e   e n d   e m a i l   e m a i l ' ; 
 
         2 4 :   
 
         2 5 :           / * * 
 
 
 
     L i n e   4 7   [ m a t c h :   W A V E ] : 
 
         4 5 :           p r i v a t e   f u n c t i o n   _ s e n d T h e E m a i l ( ) 
 
         4 6 :           { 
 
   > >   4 7 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' n i c k @ s a v v i o r . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
 
 
     L i n e   4 8   [ m a t c h :   W A V E ] : 
 
         4 6 :           { 
 
         4 7 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' n i c k @ s a v v i o r . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
   > >   4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 0 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' s c o t t . e w a r t @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
 
 
     L i n e   4 9   [ m a t c h :   W A V E ] : 
 
         4 7 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' n i c k @ s a v v i o r . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
   > >   4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 0 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' s c o t t . e w a r t @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 1 :   
 
 
 
     L i n e   5 0   [ m a t c h :   W A V E ] : 
 
         4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
   > >   5 0 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' s c o t t . e w a r t @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 1 :   
 
         5 2 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ C o m m a n d s \ S e n d W a v e P r o c e s s E m a i l M o n t h l y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   w a v e ] : 
 
         7 :   u s e   N o t i f i c a t i o n ; 
 
         8 :   
 
   > >   9 :   c l a s s   S e n d W a v e P r o c e s s E m a i l M o n t h l y   e x t e n d s   C o m m a n d 
 
         1 0 :   { 
 
         1 1 :           / * * 
 
 
 
     L i n e   1 6   [ m a t c h :   w a v e ] : 
 
         1 4 :             *   @ v a r   s t r i n g 
 
         1 5 :             * / 
 
   > >   1 6 :           p r o t e c t e d   $ s i g n a t u r e   =   ' e m a i l : w a v e e n d m o n t h l y ' ; 
 
         1 7 :   
 
         1 8 :           / * * 
 
 
 
     L i n e   2 3   [ m a t c h :   w a v e ] : 
 
         2 1 :             *   @ v a r   s t r i n g 
 
         2 2 :             * / 
 
   > >   2 3 :           p r o t e c t e d   $ d e s c r i p t i o n   =   ' S e n d s   a   w a v e   e n d   e m a i l   e m a i l ' ; 
 
         2 4 :   
 
         2 5 :           / * * 
 
 
 
     L i n e   4 7   [ m a t c h :   w a v e ] : 
 
         4 5 :           p r i v a t e   f u n c t i o n   _ s e n d T h e E m a i l ( ) 
 
         4 6 :           { 
 
   > >   4 7 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' n i c k @ s a v v i o r . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
 
 
     L i n e   4 8   [ m a t c h :   w a v e ] : 
 
         4 6 :           { 
 
         4 7 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' n i c k @ s a v v i o r . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
   > >   4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 0 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' s c o t t . e w a r t @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
 
 
     L i n e   4 9   [ m a t c h :   w a v e ] : 
 
         4 7 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' n i c k @ s a v v i o r . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
   > >   4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 0 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' s c o t t . e w a r t @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 1 :   
 
 
 
     L i n e   5 0   [ m a t c h :   w a v e ] : 
 
         4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
   > >   5 0 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' s c o t t . e w a r t @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 1 :   
 
         5 2 :   
 
 
 
     L i n e   9   [ m a t c h :   W a v e ] : 
 
         7 :   u s e   N o t i f i c a t i o n ; 
 
         8 :   
 
   > >   9 :   c l a s s   S e n d W a v e P r o c e s s E m a i l M o n t h l y   e x t e n d s   C o m m a n d 
 
         1 0 :   { 
 
         1 1 :           / * * 
 
 
 
     L i n e   1 6   [ m a t c h :   W a v e ] : 
 
         1 4 :             *   @ v a r   s t r i n g 
 
         1 5 :             * / 
 
   > >   1 6 :           p r o t e c t e d   $ s i g n a t u r e   =   ' e m a i l : w a v e e n d m o n t h l y ' ; 
 
         1 7 :   
 
         1 8 :           / * * 
 
 
 
     L i n e   2 3   [ m a t c h :   W a v e ] : 
 
         2 1 :             *   @ v a r   s t r i n g 
 
         2 2 :             * / 
 
   > >   2 3 :           p r o t e c t e d   $ d e s c r i p t i o n   =   ' S e n d s   a   w a v e   e n d   e m a i l   e m a i l ' ; 
 
         2 4 :   
 
         2 5 :           / * * 
 
 
 
     L i n e   4 7   [ m a t c h :   W a v e ] : 
 
         4 5 :           p r i v a t e   f u n c t i o n   _ s e n d T h e E m a i l ( ) 
 
         4 6 :           { 
 
   > >   4 7 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' n i c k @ s a v v i o r . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
 
 
     L i n e   4 8   [ m a t c h :   W a v e ] : 
 
         4 6 :           { 
 
         4 7 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' n i c k @ s a v v i o r . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
   > >   4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 0 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' s c o t t . e w a r t @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
 
 
     L i n e   4 9   [ m a t c h :   W a v e ] : 
 
         4 7 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' n i c k @ s a v v i o r . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
   > >   4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 0 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' s c o t t . e w a r t @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 1 :   
 
 
 
     L i n e   5 0   [ m a t c h :   W a v e ] : 
 
         4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
   > >   5 0 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' s c o t t . e w a r t @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 1 :   
 
         5 2 :   
 
 
 
     L i n e   9   [ m a t c h :   W A V E ] : 
 
         7 :   u s e   N o t i f i c a t i o n ; 
 
         8 :   
 
   > >   9 :   c l a s s   S e n d W a v e P r o c e s s E m a i l M o n t h l y   e x t e n d s   C o m m a n d 
 
         1 0 :   { 
 
         1 1 :           / * * 
 
 
 
     L i n e   1 6   [ m a t c h :   W A V E ] : 
 
         1 4 :             *   @ v a r   s t r i n g 
 
         1 5 :             * / 
 
   > >   1 6 :           p r o t e c t e d   $ s i g n a t u r e   =   ' e m a i l : w a v e e n d m o n t h l y ' ; 
 
         1 7 :   
 
         1 8 :           / * * 
 
 
 
     L i n e   2 3   [ m a t c h :   W A V E ] : 
 
         2 1 :             *   @ v a r   s t r i n g 
 
         2 2 :             * / 
 
   > >   2 3 :           p r o t e c t e d   $ d e s c r i p t i o n   =   ' S e n d s   a   w a v e   e n d   e m a i l   e m a i l ' ; 
 
         2 4 :   
 
         2 5 :           / * * 
 
 
 
     L i n e   4 7   [ m a t c h :   W A V E ] : 
 
         4 5 :           p r i v a t e   f u n c t i o n   _ s e n d T h e E m a i l ( ) 
 
         4 6 :           { 
 
   > >   4 7 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' n i c k @ s a v v i o r . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
 
 
     L i n e   4 8   [ m a t c h :   W A V E ] : 
 
         4 6 :           { 
 
         4 7 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' n i c k @ s a v v i o r . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
   > >   4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 0 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' s c o t t . e w a r t @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
 
 
     L i n e   4 9   [ m a t c h :   W A V E ] : 
 
         4 7 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' n i c k @ s a v v i o r . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
   > >   4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 0 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' s c o t t . e w a r t @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 1 :   
 
 
 
     L i n e   5 0   [ m a t c h :   W A V E ] : 
 
         4 8 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' S t a c i e . B r o s k e y @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         4 9 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' r i c k . w a l t e r s @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
   > >   5 0 :                   M a i l : : r a w ( ' T h e   d a i l y   u p l a o d   t a s k   h a s   c o m p l e t e d ' ,   f u n c t i o n ( $ m s g )   { $ m s g - > t o ( ' s c o t t . e w a r t @ v o r t e q c o i l . c o m ' ) - > s u b j e c t ( ' S e r v e r   A l e r t :   W a v e   E D I   M o n t h l y   ' . d a t e ( " m / d / Y " ) ) ;   } ) ; 
 
         5 1 :   
 
         5 2 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ C o n s o l e \ K e r n e l . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 9   [ m a t c h :   w a v e ] : 
 
         1 7 :   	 { 
 
         1 8 :                 / / /   $ s c h e d u l e - > c o m m a n d ( ' e d i : r u n   - - a l l ' ) - > d a i l y A t ( ' 9 : 0 0 a m ' ) - > w i t h o u t O v e r l a p p i n g ( ) ; 
 
   > >   1 9 :                   $ s c h e d u l e - > c o m m a n d ( ' e d i : r u n   - - p r o c e s s = W A V E _ E N D _ O F _ M O N T H ' ) - > m o n t h l y O n ( 1 ) - > w i t h o u t O v e r l a p p i n g ( ) ; 
 
         2 0 :                   $ s c h e d u l e - > c o m m a n d ( ' c l e a n u p o l d ' ) - > m o n t h l y O n ( 2 4 ) - > w i t h o u t O v e r l a p p i n g ( ) ; 
 
         2 1 :                   $ s c h e d u l e - > c o m m a n d ( ' s h i p m e n t _ r e q u e s t s : n a g ' ) - > e v e r y F i f t e e n M i n u t e s ( ) - > w i t h o u t O v e r l a p p i n g ( ) ; 
 
 
 
     L i n e   1 9   [ m a t c h :   W a v e ] : 
 
         1 7 :   	 { 
 
         1 8 :                 / / /   $ s c h e d u l e - > c o m m a n d ( ' e d i : r u n   - - a l l ' ) - > d a i l y A t ( ' 9 : 0 0 a m ' ) - > w i t h o u t O v e r l a p p i n g ( ) ; 
 
   > >   1 9 :                   $ s c h e d u l e - > c o m m a n d ( ' e d i : r u n   - - p r o c e s s = W A V E _ E N D _ O F _ M O N T H ' ) - > m o n t h l y O n ( 1 ) - > w i t h o u t O v e r l a p p i n g ( ) ; 
 
         2 0 :                   $ s c h e d u l e - > c o m m a n d ( ' c l e a n u p o l d ' ) - > m o n t h l y O n ( 2 4 ) - > w i t h o u t O v e r l a p p i n g ( ) ; 
 
         2 1 :                   $ s c h e d u l e - > c o m m a n d ( ' s h i p m e n t _ r e q u e s t s : n a g ' ) - > e v e r y F i f t e e n M i n u t e s ( ) - > w i t h o u t O v e r l a p p i n g ( ) ; 
 
 
 
     L i n e   1 9   [ m a t c h :   W A V E ] : 
 
         1 7 :   	 { 
 
         1 8 :                 / / /   $ s c h e d u l e - > c o m m a n d ( ' e d i : r u n   - - a l l ' ) - > d a i l y A t ( ' 9 : 0 0 a m ' ) - > w i t h o u t O v e r l a p p i n g ( ) ; 
 
   > >   1 9 :                   $ s c h e d u l e - > c o m m a n d ( ' e d i : r u n   - - p r o c e s s = W A V E _ E N D _ O F _ M O N T H ' ) - > m o n t h l y O n ( 1 ) - > w i t h o u t O v e r l a p p i n g ( ) ; 
 
         2 0 :                   $ s c h e d u l e - > c o m m a n d ( ' c l e a n u p o l d ' ) - > m o n t h l y O n ( 2 4 ) - > w i t h o u t O v e r l a p p i n g ( ) ; 
 
         2 1 :                   $ s c h e d u l e - > c o m m a n d ( ' s h i p m e n t _ r e q u e s t s : n a g ' ) - > e v e r y F i f t e e n M i n u t e s ( ) - > w i t h o u t O v e r l a p p i n g ( ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ E x c e p t i o n s \ H a n d l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   8 1   [ m a t c h :   e p i c o r ] : 
 
         7 9 :   	 	 	 r e t u r n   r e s p o n s e ( ) - > j s o n ( $ d a t a ,   4 0 1 ) ; 
 
         8 0 :   	 	 } 
 
   > >   8 1 :                   e l s e i f ( $ e   i n s t a n c e o f   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ) 
 
         8 2 :                   { 
 
         8 3 :                           i f ( a p p ( ) - > r u n n i n g I n C o n s o l e ( ) ) 
 
 
 
     L i n e   8 1   [ m a t c h :   E p i c o r ] : 
 
         7 9 :   	 	 	 r e t u r n   r e s p o n s e ( ) - > j s o n ( $ d a t a ,   4 0 1 ) ; 
 
         8 0 :   	 	 } 
 
   > >   8 1 :                   e l s e i f ( $ e   i n s t a n c e o f   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ) 
 
         8 2 :                   { 
 
         8 3 :                           i f ( a p p ( ) - > r u n n i n g I n C o n s o l e ( ) ) 
 
 
 
     L i n e   8 1   [ m a t c h :   E P I C O R ] : 
 
         7 9 :   	 	 	 r e t u r n   r e s p o n s e ( ) - > j s o n ( $ d a t a ,   4 0 1 ) ; 
 
         8 0 :   	 	 } 
 
   > >   8 1 :                   e l s e i f ( $ e   i n s t a n c e o f   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ) 
 
         8 2 :                   { 
 
         8 3 :                           i f ( a p p ( ) - > r u n n i n g I n C o n s o l e ( ) ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ E x c e p t i o n s \ N o D e t a i l D a t a F o r E p i c o r M u l t i K e y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5   [ m a t c h :   e p i c o r ] : 
 
         3 :   u s e   E x c e p t i o n ; 
 
         4 :   
 
   > >   5 :   c l a s s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y   e x t e n d s   E x c e p t i o n   { } 
 
 
 
     L i n e   5   [ m a t c h :   E p i c o r ] : 
 
         3 :   u s e   E x c e p t i o n ; 
 
         4 :   
 
   > >   5 :   c l a s s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y   e x t e n d s   E x c e p t i o n   { } 
 
 
 
     L i n e   5   [ m a t c h :   E P I C O R ] : 
 
         3 :   u s e   E x c e p t i o n ; 
 
         4 :   
 
   > >   5 :   c l a s s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y   e x t e n d s   E x c e p t i o n   { } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ A P I \ A u t h C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 6 4   [ m a t c h :   F R O M   ] : 
 
         1 6 2 :           p u b l i c   f u n c t i o n   f o r g o t P a s s w o r d T o k e n ( R e q u e s t   $ R e q u e s t ) { 
 
         1 6 3 :   
 
   > >   1 6 4 :                   / /   @ T O D O   s h o u l d   b e   a b l e   t o   u s e   a c t u a l   f o r g o t   p a s s w o r d   l o g i c   f r o m   l a u t h 
 
         1 6 5 :   
 
         1 6 6 :                   $ R O _ q u e s t U s e r   =   a p p ( q u e s t _ U s e r : : c l a s s ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ A P I \ R e p o r t S c h e d u l e C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 1   [ m a t c h :   S E L E C T   ] : 
 
         3 9 :                           $ R O L T S _ T a s k S c h e d u l e   =   a p p ( l t s _ T a s k S c h e d u l e : : c l a s s ) ; 
 
         4 0 :   
 
   > >   4 1 :                           / /   s e l e c t   t h e   r e s u l t s 
 
         4 2 :                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ l t s _ T a s k S c h e d u l e   $ r e s u l t   * / 
 
         4 3 :                           $ r e s u l t   =   $ R O L T S _ T a s k S c h e d u l e - > c h e c k I f T a s k E x i s t s ( $ t a s k ,   $ d o w ,   $ t i m e ,   $ O w n e r ,   $ O w n e r - > g e t C u r r e n t O w n e r I D ( ) ,   $ m o n t h l y ) ; 
 
 
 
     L i n e   2 7   [ m a t c h :   U P D A T E   ] : 
 
         2 5 :           { 
 
         2 6 :   
 
   > >   2 7 :                   / /   c h e c k   i f   i t s   a n   u p d a t e   o r   c r e a t e   ( u p d a t e   p a s s e s   t h e   s c h e d u l e   i d ) 
 
         2 8 :                   i f ( ! $ R e q u e s t - > h a s ( ' s c h e d u l e _ i d ' ) ) 
 
         2 9 :                   { 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ A P I \ W e b A p p A P I . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 6 7   [ m a t c h :   F R O M   ] : 
 
         3 6 5 :                   $ t y p e   =   " " ; 
 
         3 6 6 :   
 
   > >   3 6 7 :                   / /   g e t   t h e   d a t a   f r o m   t h e   I D 
 
         3 6 8 :                   $ u n e n c o d e d D a t a   =   b a s e 6 4 _ d e c o d e ( $ e n c o d e d I D ) ; 
 
         3 6 9 :                   $ d e s e r i a l i z e d D a t a   =   u n s e r i a l i z e ( $ u n e n c o d e d D a t a ) [ 0 ] ; 
 
 
 
     L i n e   5 1 5   [ m a t c h :   F R O M   ] : 
 
         5 1 3 :   
 
         5 1 4 :   
 
   > >   5 1 5 :                   / /   g e t   t h e   r e s t   o f   t h e   d a t a   f r o m   t h e   o u t p u t   o f   t h e   D a t a b a s e   c a l l 
 
         5 1 6 :                 $ c o i l _ d a t a   =   $ t h i s - > g e t P a r t D a t a A n d T o t a l s F r o m C o i l B y C o i l ( $ c o i l _ b y _ c o i l _ r e s u l t s ) ; 
 
         5 1 7 :   
 
 
 
     L i n e   6 7 2   [ m a t c h :   F R O M   ] : 
 
         6 7 0 :                     $ r e j _ w e i g h t _ t o t a l   =   0 ; 
 
         6 7 1 :   
 
   > >   6 7 2 :                     / /   g a t h e r   d a t a   f r o m   d a t a b a s e   r e s u l t s ,   f o r m a t t e d   i n   t h e   w e b   v e r s i o n   o f   t h i s   c a l l 
 
         6 7 3 :                     f o r e a c h   ( ( a r r a y )   $ c o i l _ b y _ c o i l _ r e s u l t s   a s   $ k = >   $ R o w ) 
 
         6 7 4 :                     { 
 
 
 
     L i n e   1 4 9 5   [ m a t c h :   F R O M   ] : 
 
         1 4 9 3 :                   i f ( $ S h i p m e n t C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ P l a n t   ! = =   $ S h i p m e n t C a r t - > g e t P l a n t ( ) ) 
 
         1 4 9 4 :                   { 
 
   > >   1 4 9 5 :                           a b o r t ( 5 0 0 ,   ' T h e   c u r r e n t   s h i p m e n t   r e l e a s e   a l r e a d y   c o n t a i n s   i t e m s   f r o m   a n o t h e r   p l a n t ' ) ; 
 
         1 4 9 6 :                   } 
 
         1 4 9 7 :                   e l s e i f ( $ S h i p m e n t C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ S h i p m e n t C a r t - > i s D e t a i l I n C a r t ( $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   ( i n t ) $ O n H a n d Q u a n t i t y ) ) 
 
 
 
     L i n e   1 5 6 2   [ m a t c h :   F R O M   ] : 
 
         1 5 6 0 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 5 6 1 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
   > >   1 5 6 2 :                           L o g : : e r r o r ( ' D e l e t i n g   i t e m   f r o m   s h i p m e n t :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 5 6 3 :                           a b o r t ( 5 0 0 ,   ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   r e m o v i n g   t h i s   i t e m   f r o m   y o u r   s h i p m e n t .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         1 5 6 4 :                   } 
 
 
 
     L i n e   1 5 6 3   [ m a t c h :   F R O M   ] : 
 
         1 5 6 1 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         1 5 6 2 :                           L o g : : e r r o r ( ' D e l e t i n g   i t e m   f r o m   s h i p m e n t :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
   > >   1 5 6 3 :                           a b o r t ( 5 0 0 ,   ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   r e m o v i n g   t h i s   i t e m   f r o m   y o u r   s h i p m e n t .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         1 5 6 4 :                   } 
 
         1 5 6 5 :   
 
 
 
     L i n e   1 1 7 5   [ m a t c h :   S E L E C T   ] : 
 
         1 1 7 3 :   
 
         1 1 7 4 :                   i f ( ! $ S e l e c t e d C o m p a n y P r o v i d e r - > s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) ) 
 
   > >   1 1 7 5 :                           a b o r t ( 5 0 0 ,   ' P l e a s e   s e l e c t   a   c u s t o m e r   b e f o r e   s t a r t i n g   a   s h i p m e n t   r e l e a s e ' ) ; 
 
         1 1 7 6 :   
 
         1 1 7 7 :                   $ N o w   =   n e w   \ D a t e T i m e ( ) ; 
 
 
 
     L i n e   1 4 4 3   [ m a t c h :   U P D A T E   ] : 
 
         1 4 4 1 :                           $ S h i p m e n t R e l e a s e H e l p e r - > g e n e r a t e C o m p l e t e d R e l e a s e P D F ( $ S h i p m e n t C a r t ,   a r r a y _ d i f f _ k e y ( $ D B D a t a ,   a r r a y _ f l i p ( $ E x c l u d e D a t a L o c k K e y s ) ) ) ; 
 
         1 4 4 2 :   
 
   > >   1 4 4 3 :                           / /   u p d a t e   D B 
 
         1 4 4 4 :                           $ D a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
         1 4 4 5 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( $ D B D a t a ,   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' s h i p _ R e q u e s t ' ) ) ; 
 
 
 
     L i n e   1 8   [ m a t c h :   e p i c o r ] : 
 
         1 6 :   u s e   A p p \ N o t i f i c a t i o n s \ S h i p m e n t R e l e a s e R e q u e s t C a n c e l l a t i o n ; 
 
         1 7 :   u s e   A p p \ N o t i f i c a t i o n s \ S h i p T o A d d r e s s I n q u i r y ; 
 
   > >   1 8 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 9 :   u s e   A p p \ S e r v i c e s \ H i s t o r i c a l S h i p m e n t C a r t ; 
 
         2 0 :   u s e   A p p \ S e r v i c e s \ P a i n t S c h e d u l e S e r v i c e ; 
 
 
 
     L i n e   1 6 9   [ m a t c h :   e p i c o r ] : 
 
         1 6 7 :                   / * *   @ v a r   q u e s t _ C o m p a n y   $ C o m p a n y   * / 
 
         1 6 8 :                   $ C o m p a n y   =   a p p ( q u e s t _ C o m p a n y : : c l a s s ) ; 
 
   > >   1 6 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 7 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 7 1 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   1 7 0   [ m a t c h :   e p i c o r ] : 
 
         1 6 8 :                   $ C o m p a n y   =   a p p ( q u e s t _ C o m p a n y : : c l a s s ) ; 
 
         1 6 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 7 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 7 1 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 7 2 :   
 
 
 
     L i n e   1 7 1   [ m a t c h :   e p i c o r ] : 
 
         1 6 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 7 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   1 7 1 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 7 2 :   
 
         1 7 3 :                   / /   g e t   n o t i f i c a t i o n s 
 
 
 
     L i n e   1 8 4   [ m a t c h :   e p i c o r ] : 
 
         1 8 2 :   
 
         1 8 3 :                   / /   g e t   s h i p m e n t s   d a t a 
 
   > >   1 8 4 :                   $ s h i p m e n t s _ r e s u l t s   =   $ E p i c o r D B - > g e t T o p 5 S h i p m e n t s D a t a ( $ e p i c o r C u s t I D ) ; 
 
         1 8 5 :                   $ s h i p m e n t s   =   a r r a y ( ) ; 
 
         1 8 6 :                   / /   r e n a m e   t o   m a t c h   j s o n   e x p e c t e d 
 
 
 
     L i n e   2 1 4   [ m a t c h :   e p i c o r ] : 
 
         2 1 2 :   
 
         2 1 3 :                   / /   g e t   t h e   r e c e n t   p r o d u c t i o n   o r d e r s 
 
   > >   2 1 4 :                   $ p r o d u c t i o n _ r e s u l t s   =   $ E p i c o r D B - > g e t T o p 5 O r d e r s D a t a ( $ e p i c o r C u s t I D ) ; 
 
         2 1 5 :                   $ p r o d u c t i o n   =   a r r a y ( ) ; 
 
         2 1 6 :   
 
 
 
     L i n e   2 7 6   [ m a t c h :   e p i c o r ] : 
 
         2 7 4 :           { 
 
         2 7 5 :                   / /   v a r i a b l e   i n i t 
 
   > >   2 7 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 7 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 7 8 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   2 7 7   [ m a t c h :   e p i c o r ] : 
 
         2 7 5 :                   / /   v a r i a b l e   i n i t 
 
         2 7 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 7 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 7 8 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         2 7 9 :                   $ t y p e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' t y p e ' ) ; 
 
 
 
     L i n e   2 7 8   [ m a t c h :   e p i c o r ] : 
 
         2 7 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 7 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   2 7 8 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         2 7 9 :                   $ t y p e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' t y p e ' ) ; 
 
         2 8 0 :                   $ r a w _ d a t a   =   n u l l ; 
 
 
 
     L i n e   2 8 8   [ m a t c h :   e p i c o r ] : 
 
         2 8 6 :                   { 
 
         2 8 7 :                           c a s e   " u n p r o c e s s e d " : 
 
   > >   2 8 8 :                                   $ r a w _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d S u m m a r y D a t a ( $ e p i c o r C u s t I D ) ; 
 
         2 8 9 :                                   $ s o u r c e   =   " p o r t a l _ U n p r o c e s s e d I n v e n t o r y S u m m a r y " ; 
 
         2 9 0 :                                   b r e a k ; 
 
 
 
     L i n e   2 9 3   [ m a t c h :   e p i c o r ] : 
 
         2 9 1 :   
 
         2 9 2 :                           c a s e   " u n p r o c e s s e d r r " : 
 
   > >   2 9 3 :                                   $ r a w _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ( $ e p i c o r C u s t I D ) ; 
 
         2 9 4 :                                   $ s o u r c e   =   " p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y " ; 
 
         2 9 5 :                                   b r e a k ; 
 
 
 
     L i n e   2 9 8   [ m a t c h :   e p i c o r ] : 
 
         2 9 6 :   
 
         2 9 7 :                           c a s e   ' w i p ' : 
 
   > >   2 9 8 :                                   $ r a w _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a ( $ e p i c o r C u s t I D ) ; 
 
         2 9 9 :                                   $ s o u r c e   =   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' ; 
 
         3 0 0 :                                   b r e a k ; 
 
 
 
     L i n e   3 0 3   [ m a t c h :   e p i c o r ] : 
 
         3 0 1 :   
 
         3 0 2 :                           c a s e   " f g " : 
 
   > >   3 0 3 :                                   $ r a w _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a ( $ e p i c o r C u s t I D ) ; 
 
         3 0 4 :                                   $ s o u r c e   =   " p o r t a l _ P r o c e s s e d I n v e n t o r y S u m m a r y " ; 
 
         3 0 5 :                                   b r e a k ; 
 
 
 
     L i n e   3 0 8   [ m a t c h :   e p i c o r ] : 
 
         3 0 6 :   
 
         3 0 7 :                           c a s e   ' p r o c e s s e d o t h e r ' : 
 
   > >   3 0 8 :                                   $ r a w _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a ( $ e p i c o r C u s t I D ) ; 
 
         3 0 9 :                                   $ s o u r c e   =   " p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y " ; 
 
         3 1 0 :                                   b r e a k ; 
 
 
 
     L i n e   3 1 3   [ m a t c h :   e p i c o r ] : 
 
         3 1 1 :   
 
         3 1 2 :                           c a s e   " p r o c e s s e d r r " : 
 
   > >   3 1 3 :                                   $ r a w _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R S u m m a r y D a t a ( $ e p i c o r C u s t I D ) ; 
 
         3 1 4 :                                   $ s o u r c e   =   " p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y " ; 
 
         3 1 5 :                                   b r e a k ; 
 
 
 
     L i n e   3 5 3   [ m a t c h :   e p i c o r ] : 
 
         3 5 1 :           / * * 
 
         3 5 2 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e 
 
   > >   3 5 3 :             *   @ t h r o w s   \ A p p \ E x c e p t i o n s \ N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         3 5 4 :             * / 
 
         3 5 5 :           p u b l i c   f u n c t i o n   i n v e n t o r y D e t a i l s ( )   { 
 
 
 
     L i n e   3 6 1   [ m a t c h :   e p i c o r ] : 
 
         3 5 9 :   
 
         3 6 0 :                   / /   v a r i a b l e   i n i t 
 
   > >   3 6 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 6 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 6 3 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   3 6 2   [ m a t c h :   e p i c o r ] : 
 
         3 6 0 :                   / /   v a r i a b l e   i n i t 
 
         3 6 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 6 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 6 3 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         3 6 4 :                   $ e n c o d e d I D   =   r e q u e s t ( ) - > i s M e t h o d ( ' p o s t ' )   ?   r e q u e s t ( ) - > i n p u t ( ' i d ' )   :   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' i d ' ) ; 
 
 
 
     L i n e   3 6 3   [ m a t c h :   e p i c o r ] : 
 
         3 6 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 6 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   3 6 3 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         3 6 4 :                   $ e n c o d e d I D   =   r e q u e s t ( ) - > i s M e t h o d ( ' p o s t ' )   ?   r e q u e s t ( ) - > i n p u t ( ' i d ' )   :   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' i d ' ) ; 
 
         3 6 5 :                   $ t y p e   =   " " ; 
 
 
 
     L i n e   3 8 4   [ m a t c h :   e p i c o r ] : 
 
         3 8 2 :                   { 
 
         3 8 3 :                           c a s e   " p o r t a l _ U n p r o c e s s e d I n v e n t o r y S u m m a r y " : 
 
   > >   3 8 4 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 8 5 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 8 6 :                                   $ t y p e   =   " U n p r o c e s s e d " ; 
 
 
 
     L i n e   3 8 5   [ m a t c h :   e p i c o r ] : 
 
         3 8 3 :                           c a s e   " p o r t a l _ U n p r o c e s s e d I n v e n t o r y S u m m a r y " : 
 
         3 8 4 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
   > >   3 8 5 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 8 6 :                                   $ t y p e   =   " U n p r o c e s s e d " ; 
 
         3 8 7 :                                   b r e a k ; 
 
 
 
     L i n e   3 8 9   [ m a t c h :   e p i c o r ] : 
 
         3 8 7 :                                   b r e a k ; 
 
         3 8 8 :                           c a s e   " p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y " : 
 
   > >   3 8 9 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 9 0 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 9 1 :                                   $ t y p e   =   " U n p r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) " ; 
 
 
 
     L i n e   3 9 0   [ m a t c h :   e p i c o r ] : 
 
         3 8 8 :                           c a s e   " p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y " : 
 
         3 8 9 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
   > >   3 9 0 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 9 1 :                                   $ t y p e   =   " U n p r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) " ; 
 
         3 9 2 :                                   b r e a k ; 
 
 
 
     L i n e   3 9 4   [ m a t c h :   e p i c o r ] : 
 
         3 9 2 :                                   b r e a k ; 
 
         3 9 3 :                           c a s e   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' : 
 
   > >   3 9 4 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 9 5 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 9 6 :                                   $ t y p e   =   " W o r k   I n   P r o g r e s s " ; 
 
 
 
     L i n e   3 9 5   [ m a t c h :   e p i c o r ] : 
 
         3 9 3 :                           c a s e   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' : 
 
         3 9 4 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
   > >   3 9 5 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 9 6 :                                   $ t y p e   =   " W o r k   I n   P r o g r e s s " ; 
 
         3 9 7 :                                   b r e a k ; 
 
 
 
     L i n e   3 9 9   [ m a t c h :   e p i c o r ] : 
 
         3 9 7 :                                   b r e a k ; 
 
         3 9 8 :                           c a s e   " p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y S u m m a r y " : 
 
   > >   3 9 9 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 0 0 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 0 1 :                                   $ t y p e   =   " F i n i s h e d   G o o d s " ; 
 
 
 
     L i n e   4 0 0   [ m a t c h :   e p i c o r ] : 
 
         3 9 8 :                           c a s e   " p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y S u m m a r y " : 
 
         3 9 9 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
   > >   4 0 0 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 0 1 :                                   $ t y p e   =   " F i n i s h e d   G o o d s " ; 
 
         4 0 2 :                                   b r e a k ; 
 
 
 
     L i n e   4 0 4   [ m a t c h :   e p i c o r ] : 
 
         4 0 2 :                                   b r e a k ; 
 
         4 0 3 :                           c a s e   " p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y " : 
 
   > >   4 0 4 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 0 5 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 0 6 :                                   $ t y p e   =   " P r o c e s s e d   -   O t h e r " ; 
 
 
 
     L i n e   4 0 5   [ m a t c h :   e p i c o r ] : 
 
         4 0 3 :                           c a s e   " p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y " : 
 
         4 0 4 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
   > >   4 0 5 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 0 6 :                                   $ t y p e   =   " P r o c e s s e d   -   O t h e r " ; 
 
         4 0 7 :                                   b r e a k ; 
 
 
 
     L i n e   4 0 9   [ m a t c h :   e p i c o r ] : 
 
         4 0 7 :                                   b r e a k ; 
 
         4 0 8 :                           c a s e   " p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y " : 
 
   > >   4 0 9 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 1 0 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 1 1 :                                   $ t y p e   =   " P r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) " ; 
 
 
 
     L i n e   4 1 0   [ m a t c h :   e p i c o r ] : 
 
         4 0 8 :                           c a s e   " p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y " : 
 
         4 0 9 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
   > >   4 1 0 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 1 1 :                                   $ t y p e   =   " P r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) " ; 
 
         4 1 2 :                                   b r e a k ; 
 
 
 
     L i n e   4 8 8   [ m a t c h :   e p i c o r ] : 
 
         4 8 6 :   
 
         4 8 7 :                   / /   v a r i a b l e   i n i t 
 
   > >   4 8 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 8 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 9 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   4 8 9   [ m a t c h :   e p i c o r ] : 
 
         4 8 7 :                   / /   v a r i a b l e   i n i t 
 
         4 8 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 8 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 9 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         4 9 1 :                   $ j o b N u m b e r   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m b e r ' ) ; 
 
 
 
     L i n e   4 9 0   [ m a t c h :   e p i c o r ] : 
 
         4 8 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 8 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   4 9 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         4 9 1 :                   $ j o b N u m b e r   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m b e r ' ) ; 
 
         4 9 2 :   
 
 
 
     L i n e   4 9 3   [ m a t c h :   e p i c o r ] : 
 
         4 9 1 :                   $ j o b N u m b e r   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m b e r ' ) ; 
 
         4 9 2 :   
 
   > >   4 9 3 :                   $ c o i l _ b y _ c o i l _ r e s u l t s   =   $ E p i c o r D B - > g e t C o i l B y C o i l ( $ j o b N u m b e r ,   $ e p i c o r C u s t I D ) ; 
 
         4 9 4 :   
 
         4 9 5 :                   / /   f o r m a t   a s   j s o n   e x p e c t e d 
 
 
 
     L i n e   5 3 2   [ m a t c h :   e p i c o r ] : 
 
         5 3 0 :             p u b l i c   f u n c t i o n   g e t C o i l B y C o i l P d f ( R e q u e s t   $ r e q u e s t ) 
 
         5 3 1 :             { 
 
   > >   5 3 2 :                     $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         5 3 3 :                     $ j o b _ n u m   =   $ r e q u e s t - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m ' ) ; 
 
         5 3 4 :   
 
 
 
     L i n e   5 3 8   [ m a t c h :   e p i c o r ] : 
 
         5 3 6 :                             $ j o b _ n u m   =   b a s e 6 4 _ d e c o d e ( $ j o b _ n u m ) ; 
 
         5 3 7 :   
 
   > >   5 3 8 :                     / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         5 3 9 :                     $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 4 0 :                     $ C o i l B y C o i l D a t a   =   $ e p i c o r e - > g e t C o i l B y C o i l ( $ j o b _ n u m , $ e p i c o r C u s t I D ) ; 
 
 
 
     L i n e   5 3 9   [ m a t c h :   e p i c o r ] : 
 
         5 3 7 :   
 
         5 3 8 :                     / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
   > >   5 3 9 :                     $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 4 0 :                     $ C o i l B y C o i l D a t a   =   $ e p i c o r e - > g e t C o i l B y C o i l ( $ j o b _ n u m , $ e p i c o r C u s t I D ) ; 
 
         5 4 1 :   
 
 
 
     L i n e   5 4 0   [ m a t c h :   e p i c o r ] : 
 
         5 3 8 :                     / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         5 3 9 :                     $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   5 4 0 :                     $ C o i l B y C o i l D a t a   =   $ e p i c o r e - > g e t C o i l B y C o i l ( $ j o b _ n u m , $ e p i c o r C u s t I D ) ; 
 
         5 4 1 :   
 
         5 4 2 :                     $ P a r t H e a d e r s   = [ ] ; 
 
 
 
     L i n e   8 5 0   [ m a t c h :   e p i c o r ] : 
 
         8 4 8 :           	         / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t L i n e   $ P a i n t L i n e   * / 
 
         8 4 9 :           	         f o r e a c h   ( $ P a i n t P l a n t - > g e t P a i n t P l a n t L i n e ( )   A S   $ P a i n t L i n e ) 
 
   > >   8 5 0 :           	                 $ L i n e s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( )   .   ' - '   .   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ]   =   [ ' i d '   = >   $ P a i n t P l a n t - > g e t E p i c o r K e y ( )   .   ' - '   .   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ,   ' n a m e '   = >   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t N a m e ( ) ,   ' c a t e g o r y '   = >   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t P a i n t L i n e T y p e ( ) - > g e t T y p e ( ) ] ; 
 
         8 5 1 :           	         a r r a y _ m u l t i s o r t ( a r r a y _ m a p ( f u n c t i o n ( $ e l e m e n t )   { 
 
         8 5 2 :           	                 r e t u r n   $ e l e m e n t [ ' n a m e ' ] ; 
 
 
 
     L i n e   8 5 5   [ m a t c h :   e p i c o r ] : 
 
         8 5 3 :           	         } ,   $ L i n e s ) ,   S O R T _ A S C ,   $ L i n e s ) ; 
 
         8 5 4 :   
 
   > >   8 5 5 :           	         $ p l a n t s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ]   =   [ ' i d '   = >   $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ,   ' o f f s e t '   = >   $ P a i n t P l a n t - > g e t T i m e Z o n e M o d i f i e r ( ) ,   ' c a n _ e d i t '   = >   i s s e t ( $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ] ) ,   ' n a m e '   = >   $ P a i n t P l a n t - > g e t N a m e ( ) ,   ' l i n e s '   = >   $ L i n e s ] ; 
 
         8 5 6 :           	 } 
 
         8 5 7 :   
 
 
 
     L i n e   8 7 4   [ m a t c h :   e p i c o r ] : 
 
         8 7 2 :   
 
         8 7 3 :                   / /   v a r i a b l e   i n i t 
 
   > >   8 7 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         8 7 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 7 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   8 7 5   [ m a t c h :   e p i c o r ] : 
 
         8 7 3 :                   / /   v a r i a b l e   i n i t 
 
         8 7 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   8 7 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 7 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         8 7 7 :                   $ s t a r t D a t e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' s t a r t ' ) ; 
 
 
 
     L i n e   8 7 6   [ m a t c h :   e p i c o r ] : 
 
         8 7 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         8 7 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   8 7 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         8 7 7 :                   $ s t a r t D a t e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' s t a r t ' ) ; 
 
         8 7 8 :                   $ e n d D a t e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e n d ' ) ; 
 
 
 
     L i n e   8 8 1   [ m a t c h :   e p i c o r ] : 
 
         8 7 9 :   
 
         8 8 0 :                   / /   g e t   t h e   c o i l   a c t i v i t y   d a t a 
 
   > >   8 8 1 :                   $ u s a g e s _ d a t a   =   $ E p i c o r D B - > g e t C o i l A c t i v i t y U s a g e D a t a ( $ e p i c o r C u s t I D ,   $ s t a r t D a t e ,   $ e n d D a t e ) ; 
 
         8 8 2 :                   $ u s a g e s   =   a r r a y ( ) ; 
 
         8 8 3 :   
 
 
 
     L i n e   9 0 4   [ m a t c h :   e p i c o r ] : 
 
         9 0 2 :   	   	 r e t u r n   r e s p o n s e ( ) - > j s o n ( [ 
 
         9 0 3 :   	   	 	 ' u s a g e s '   = >   $ u s a g e s , 
 
   > >   9 0 4 :   	   	 	 ' i d '   = >   $ e p i c o r C u s t I D , 
 
         9 0 5 :   	   	 	 ' s t a r t '   = >   $ s t a r t D a t e , 
 
         9 0 6 :   	   	 	 ' e n d '   = >   $ e n d D a t e 
 
 
 
     L i n e   9 1 8   [ m a t c h :   e p i c o r ] : 
 
         9 1 6 :   
 
         9 1 7 :                   / /   v a r i a b l e   i n i t 
 
   > >   9 1 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         9 1 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         9 2 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   9 1 9   [ m a t c h :   e p i c o r ] : 
 
         9 1 7 :                   / /   v a r i a b l e   i n i t 
 
         9 1 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   9 1 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         9 2 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         9 2 1 :                   $ s t a r t D a t e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' s t a r t ' ) ; / / 
 
 
 
     L i n e   9 2 0   [ m a t c h :   e p i c o r ] : 
 
         9 1 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         9 1 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   9 2 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         9 2 1 :                   $ s t a r t D a t e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' s t a r t ' ) ; / / 
 
         9 2 2 :                   $ e n d D a t e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e n d ' ) ; / / 
 
 
 
     L i n e   9 2 5   [ m a t c h :   e p i c o r ] : 
 
         9 2 3 :   
 
         9 2 4 :                   / /   g e t   t h e   c o i l   a c t i v i t y 
 
   > >   9 2 5 :                   $ r e c e i p t s _ d a t a   =   $ E p i c o r D B - > g e t C o i l A c t i v i t y R e c e i p t s D a t a ( $ e p i c o r C u s t I D ,   $ s t a r t D a t e ,   $ e n d D a t e ) ; 
 
         9 2 6 :                   $ r e c e i p t s   =   a r r a y ( ) ; 
 
         9 2 7 :   
 
 
 
     L i n e   9 5 1   [ m a t c h :   e p i c o r ] : 
 
         9 4 9 :   	   	 r e t u r n   r e s p o n s e ( ) - > j s o n ( [ 
 
         9 5 0 :   	   	 	 ' r e c e i p t s '   = >   $ r e c e i p t s , 
 
   > >   9 5 1 :   	   	 	 ' i d '   = >   $ e p i c o r C u s t I D , 
 
         9 5 2 :   	   	 	 ' s t a r t '   = >   $ s t a r t D a t e , 
 
         9 5 3 :   	   	 	 ' e n d '   = >   $ e n d D a t e 
 
 
 
     L i n e   9 6 7   [ m a t c h :   e p i c o r ] : 
 
         9 6 5 :                   / * *   @ v a r   s h i p _ R e q u e s t R e p o   $ S h i p R e q u e s t   * / 
 
         9 6 6 :                   $ S h i p R e q u e s t   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
   > >   9 6 7 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         9 6 8 :   
 
         9 6 9 :                   / /   g e t   t h e   s h i p   r e q u e s t   d a t a 
 
 
 
     L i n e   9 7 0   [ m a t c h :   e p i c o r ] : 
 
         9 6 8 :   
 
         9 6 9 :                   / /   g e t   t h e   s h i p   r e q u e s t   d a t a 
 
   > >   9 7 0 :                   $ r e l e a s e s _ d a t a   =   $ S h i p R e q u e s t - > g e t S h i p m e n t R e l e a s e D a t a ( $ e p i c o r C u s t I D ) ; 
 
         9 7 1 :                   $ r e l e a s e s   =   a r r a y ( ) ; 
 
         9 7 2 :   
 
 
 
     L i n e   9 9 2   [ m a t c h :   e p i c o r ] : 
 
         9 9 0 :   	   	 r e t u r n   r e s p o n s e ( ) - > j s o n ( [ 
 
         9 9 1 :   	   	 	 ' r e l e a s e s '   = >   $ r e l e a s e s , 
 
   > >   9 9 2 :   	   	 	 ' i d '   = >   $ e p i c o r C u s t I D 
 
         9 9 3 :   	   	 ] ) ; 
 
         9 9 4 :           } 
 
 
 
     L i n e   1 0 0 6   [ m a t c h :   e p i c o r ] : 
 
         1 0 0 4 :                   / * *   @ v a r   s h i p _ R e q u e s t R e p o   $ S h i p R e q u e s t   * / 
 
         1 0 0 5 :                   $ S h i p R e q u e s t   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
   > >   1 0 0 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 0 0 7 :   
 
         1 0 0 8 :                   $ i n c l u d e I n c o m p l e t e S h i p m e n t s   =   r e q u e s t ( ) - > e x i s t s ( ' i n c o m p l e t e _ s h i p m e n t s ' )   ?   r e q u e s t ( ) - > q u e r y ( ' i n c o m p l e t e _ s h i p m e n t s ' )   :   f a l s e ; 
 
 
 
     L i n e   1 0 1 3   [ m a t c h :   e p i c o r ] : 
 
         1 0 1 1 :   
 
         1 0 1 2 :                   / * *   @ v a r   s h i p _ R e q u e s t   $ d e t a i l s _ d a t a   * / 
 
   > >   1 0 1 3 :                   $ d   =   $ S h i p R e q u e s t - > g e t S h i p m e n t R e l e a s e D e t a i l s D a t a B y I D ( $ e p i c o r C u s t I D ,   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' i d ' ) ) ; 
 
         1 0 1 4 :   
 
         1 0 1 5 :                   / * *   @ v a r   s h i p _ R e q u e s t R e p o   $ R O S h i p m e n t R e q u e s t R e p o   * / 
 
 
 
     L i n e   1 1 0 2   [ m a t c h :   e p i c o r ] : 
 
         1 1 0 0 :             *   @ p a r a m   S h i p m e n t C a r t   $ S h i p m e n t C a r t 
 
         1 1 0 1 :             *   @ p a r a m   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s 
 
   > >   1 1 0 2 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D B 
 
         1 1 0 3 :             *   @ p a r a m   q u e s t _ C o m p a n y   $ C o m p a n y R e p o 
 
         1 1 0 4 :             *   @ p a r a m   s h i p _ R e q u e s t R e p o   $ s h i p _ R e q u e s t 
 
 
 
     L i n e   1 1 0 8   [ m a t c h :   e p i c o r ] : 
 
         1 1 0 6 :             *   @ t h r o w s   \ D o c t r i n e \ O R M \ N o n U n i q u e R e s u l t E x c e p t i o n 
 
         1 1 0 7 :             * / 
 
   > >   1 1 0 8 :           p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e I n f o r m a t i o n ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   E p i c o r D a t a b a s e   $ E p i c o r D B ,   q u e s t _ C o m p a n y   $ C o m p a n y R e p o ,   \ A p p \ M o d e l \ R e p o s \ s h i p _ R e q u e s t   $ s h i p _ R e q u e s t ) 
 
         1 1 0 9 :           { 
 
         1 1 1 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   1 1 1 0   [ m a t c h :   e p i c o r ] : 
 
         1 1 0 8 :           p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e I n f o r m a t i o n ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   E p i c o r D a t a b a s e   $ E p i c o r D B ,   q u e s t _ C o m p a n y   $ C o m p a n y R e p o ,   \ A p p \ M o d e l \ R e p o s \ s h i p _ R e q u e s t   $ s h i p _ R e q u e s t ) 
 
         1 1 0 9 :           { 
 
   > >   1 1 1 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 1 1 1 :   
 
         1 1 1 2 :   
 
 
 
     L i n e   1 1 1 7   [ m a t c h :   e p i c o r ] : 
 
         1 1 1 5 :   
 
         1 1 1 6 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y   $ C u s t o m e r   * / 
 
   > >   1 1 1 7 :                   $ C o m p a n y   =   $ C o m p a n y R e p o - > f i n d O n e B y ( [ ' E p i c o r C u s t I D '   = >   $ e p i c o r C u s t I D ] ) ; 
 
         1 1 1 8 :   
 
         1 1 1 9 :                   $ S h i p T o D a t a   =   $ S h i p m e n t C a r t - > g e t S h i p T o A d d r e s s D a t a ( ) ; 
 
 
 
     L i n e   1 1 2 3   [ m a t c h :   e p i c o r ] : 
 
         1 1 2 1 :                   i f ( $ S h i p T o D a t a   ! = =   n u l l   & &   c o u n t ( $ S h i p T o D a t a )   >   0   & &   i s s e t ( $ S h i p T o D a t a [ ' S h i p T o N u m ' ] ) ) 
 
         1 1 2 2 :                   { 
 
   > >   1 1 2 3 :                           $ S e l e c t e d S h i p T o A d d r e s s I n f o   =   S h i p m e n t C a r t : : c o n v e r t S h i p m e n t S h i p T o A d d r e s s D a t a T o L i n e s ( $ E p i c o r D B - > g e t C u s t o m e r S i n g l e S h i p T o A d d r e s s B y N u m ( $ e p i c o r C u s t I D ,   $ S h i p T o D a t a [ ' S h i p T o N u m ' ] ) ) ; 
 
         1 1 2 4 :                   } 
 
         1 1 2 5 :   
 
 
 
     L i n e   1 1 2 7   [ m a t c h :   e p i c o r ] : 
 
         1 1 2 5 :   
 
         1 1 2 6 :                   / * *   @ v a r   s h i p _ R e q u e s t   $ R e s u l t s   * / 
 
   > >   1 1 2 7 :                   $ R e s u l t s   =   $ s h i p _ R e q u e s t - > g e t O p e n S h i p m e n t W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ e p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ) ; 
 
         1 1 2 8 :                   $ T o t a l S h i p m e n t L b s   =   0 ; 
 
         1 1 2 9 :   
 
 
 
     L i n e   1 1 6 6   [ m a t c h :   e p i c o r ] : 
 
         1 1 6 4 :           p u b l i c   f u n c t i o n   p o s t S t a r t S h i p m e n t ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ) 
 
         1 1 6 5 :           { 
 
   > >   1 1 6 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 1 6 7 :   
 
         1 1 6 8 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t A v a i l a b l e ( ) ) 
 
 
 
     L i n e   1 1 7 4   [ m a t c h :   e p i c o r ] : 
 
         1 1 7 2 :                           a b o r t ( 5 0 0 ,   ' A   s h i p m e n t   r e l e a s e   c a n n o t   b e   s t a r t e d   f o r   t h i s   c u s t o m e r   a s   t h e r e   i s   a l r e a d y   o n e   i n   p r o g r e s s ' ) ; 
 
         1 1 7 3 :   
 
   > >   1 1 7 4 :                   i f ( ! $ S e l e c t e d C o m p a n y P r o v i d e r - > s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) ) 
 
         1 1 7 5 :                           a b o r t ( 5 0 0 ,   ' P l e a s e   s e l e c t   a   c u s t o m e r   b e f o r e   s t a r t i n g   a   s h i p m e n t   r e l e a s e ' ) ; 
 
         1 1 7 6 :   
 
 
 
     L i n e   1 1 8 2   [ m a t c h :   e p i c o r ] : 
 
         1 1 8 0 :                   t r y   { 
 
         1 1 8 1 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
   > >   1 1 8 2 :                                   ' q u e s t _ C o m p a n y '   = >   [ ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) - > g e t I D ( ) ] , 
 
         1 1 8 3 :                                   ' q u e s t _ U s e r '   = >   [ ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ] , 
 
         1 1 8 4 :                                   ' O p e n C a r t C o n s t r a i n t '   = >   t r u e , 
 
 
 
     L i n e   1 1 9 8   [ m a t c h :   e p i c o r ] : 
 
         1 1 9 6 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         1 1 9 7 :   
 
   > >   1 1 9 8 :                           L o g : : e r r o r ( ' S H I P M E N T   R E Q U E S T   S T A R T   D B   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 1 9 9 :                           a b o r t ( 5 0 0 ,   ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   s t a r t i n g   t h i s   s h i p m e n t   r e l e a s e .   P l e a s e   t r y   a g a i n . ' ) ; 
 
         1 2 0 0 :   
 
 
 
     L i n e   1 2 0 8   [ m a t c h :   e p i c o r ] : 
 
         1 2 0 6 :           / * * 
 
         1 2 0 7 :             *   @ p a r a m   S h i p m e n t C a r t   $ S h i p m e n t C a r t 
 
   > >   1 2 0 8 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e 
 
         1 2 0 9 :             *   @ p a r a m   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r 
 
         1 2 1 0 :             *   @ p a r a m   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s 
 
 
 
     L i n e   1 2 1 4   [ m a t c h :   e p i c o r ] : 
 
         1 2 1 2 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e 
 
         1 2 1 3 :             * / 
 
   > >   1 2 1 4 :           p u b l i c   f u n c t i o n   g e t S e l e c t S h i p T o A d d r e s s ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ) 
 
         1 2 1 5 :           { 
 
         1 2 1 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   1 2 1 6   [ m a t c h :   e p i c o r ] : 
 
         1 2 1 4 :           p u b l i c   f u n c t i o n   g e t S e l e c t S h i p T o A d d r e s s ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ) 
 
         1 2 1 5 :           { 
 
   > >   1 2 1 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 2 1 7 :   
 
         1 2 1 8 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   1 2 2 1   [ m a t c h :   e p i c o r ] : 
 
         1 2 1 9 :                           a b o r t ( 5 0 0 ,   ' T h i s   s h i p m e n t   r e l e a s e   c o u l d   n o t   b e   s t a r t e d   a t   t h i s   t i m e ' ) ; 
 
         1 2 2 0 :   
 
   > >   1 2 2 1 :                   $ S h i p T o A d d r e s s e s   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r S h i p T o A d d r e s s e s ( $ e p i c o r C u s t I D ) ; 
 
         1 2 2 2 :   
 
         1 2 2 3 :                   $ S h i p T o A d d r e s s L i n e s   =   [ ] ; 
 
 
 
     L i n e   1 2 2 5   [ m a t c h :   e p i c o r ] : 
 
         1 2 2 3 :                   $ S h i p T o A d d r e s s L i n e s   =   [ ] ; 
 
         1 2 2 4 :                   $ S h i p T o A d d r e s s N u m s   =   [ ] ; 
 
   > >   1 2 2 5 :                   $ C u s t o m e r N a m e   =   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) - > g e t E p i N a m e ( ) ; 
 
         1 2 2 6 :                   f o r e a c h ( $ S h i p T o A d d r e s s e s   a s   $ S h i p T o A d d r e s s ) 
 
         1 2 2 7 :                   { 
 
 
 
     L i n e   1 2 4 3   [ m a t c h :   e p i c o r ] : 
 
         1 2 4 1 :           / * * 
 
         1 2 4 2 :             *   @ p a r a m   S h i p m e n t C a r t   $ S h i p m e n t C a r t 
 
   > >   1 2 4 3 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e 
 
         1 2 4 4 :             *   @ p a r a m   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r 
 
         1 2 4 5 :             *   @ p a r a m   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y 
 
 
 
     L i n e   1 2 5 1   [ m a t c h :   e p i c o r ] : 
 
         1 2 4 9 :             *   @ t h r o w s   \ S a v v i o r \ D a t a \ D a t a H a n d l e r E x c e p t i o n 
 
         1 2 5 0 :             * / 
 
   > >   1 2 5 1 :           p u b l i c   f u n c t i o n   p o s t S e l e c t S h i p T o A d d r e s s ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 2 5 2 :           { 
 
         1 2 5 3 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   1 2 5 3   [ m a t c h :   e p i c o r ] : 
 
         1 2 5 1 :           p u b l i c   f u n c t i o n   p o s t S e l e c t S h i p T o A d d r e s s ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 2 5 2 :           { 
 
   > >   1 2 5 3 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 2 5 4 :   
 
         1 2 5 5 :                   $ d a t a   =   r e q u e s t ( ) - > a l l ( ) ; 
 
 
 
     L i n e   1 2 6 4   [ m a t c h :   e p i c o r ] : 
 
         1 2 6 2 :                           a b o r t ( 5 0 0 ,   ' T h e   s h i p   t o   a d d r e s s   s e l e c t e d   i s   n o t   v a l i d .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         1 2 6 3 :   
 
   > >   1 2 6 4 :                   $ S e l e c t e d S h i p T o A d d r e s s I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r S i n g l e S h i p T o A d d r e s s B y N u m ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ S h i p T o N u m ) ; 
 
         1 2 6 5 :   
 
         1 2 6 6 :                   i f ( i s _ n u l l ( $ S e l e c t e d S h i p T o A d d r e s s I n f o ) ) 
 
 
 
     L i n e   1 2 7 5   [ m a t c h :   e p i c o r ] : 
 
         1 2 7 3 :                                   ' S h i p T o S e l e c t e d '   = >   t r u e , 
 
         1 2 7 4 :                                   ' S h i p T o N u m '   = >   $ S h i p T o N u m , 
 
   > >   1 2 7 5 :                                   ' S h i p T o C u s t o m e r '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) - > g e t E p i N a m e ( ) , 
 
         1 2 7 6 :                                   ' S h i p T o N a m e '   = >   $ S e l e c t e d S h i p T o A d d r e s s I n f o [ ' S h i p T o N a m e ' ] , 
 
         1 2 7 7 :                                   ' S h i p T o A d d r e s s 1 '   = >   $ S e l e c t e d S h i p T o A d d r e s s I n f o [ ' S h i p T o A d d r e s s 1 ' ] , 
 
 
 
     L i n e   1 2 8 6   [ m a t c h :   e p i c o r ] : 
 
         1 2 8 4 :                                   ' L a s t C a r t A c t i v i t y '   = >   ( n e w   \ D a t e T i m e ( ) ) , 
 
         1 2 8 5 :                                   ' q u e s t _ C o m p a n y '   = >   [ 
 
   > >   1 2 8 6 :                                           ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) - > g e t I D ( ) 
 
         1 2 8 7 :                                   ] , 
 
         1 2 8 8 :                                   ' q u e s t _ U s e r '   = >   [ 
 
 
 
     L i n e   1 3 1 9   [ m a t c h :   e p i c o r ] : 
 
         1 3 1 7 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 3 1 8 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
   > >   1 3 1 9 :                           L o g : : e r r o r ( ' S H I P M E N T   R E Q U E S T   C A N C E L   D B   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 3 2 0 :                           a b o r t ( 5 0 0 ,   ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   c a n c e l l i n g   t h i s   s h i p m e n t   r e l e a s e .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         1 3 2 1 :                   } 
 
 
 
     L i n e   1 3 3 5   [ m a t c h :   e p i c o r ] : 
 
         1 3 3 3 :           p u b l i c   f u n c t i o n   g e t C o m p l e t e S h i p m e n t ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   \ A p p \ M o d e l \ R e p o s \ s h i p _ R e q u e s t   $ s h i p _ R e q u e s t ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 3 3 4 :           { 
 
   > >   1 3 3 5 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 3 3 6 :   
 
         1 3 3 7 :                   / * *   @ v a r   s h i p _ R e q u e s t   $ R e s u l t s   * / 
 
 
 
     L i n e   1 3 3 8   [ m a t c h :   e p i c o r ] : 
 
         1 3 3 6 :   
 
         1 3 3 7 :                   / * *   @ v a r   s h i p _ R e q u e s t   $ R e s u l t s   * / 
 
   > >   1 3 3 8 :                   $ R e s u l t s   =   $ s h i p _ R e q u e s t - > g e t O p e n S h i p m e n t W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ e p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ) ; 
 
         1 3 3 9 :   
 
         1 3 4 0 :                   $ L i n e I t e m s   =   [ ] ; 
 
 
 
     L i n e   1 3 7 2   [ m a t c h :   e p i c o r ] : 
 
         1 3 7 0 :             *   @ p a r a m   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s 
 
         1 3 7 1 :             *   @ p a r a m   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o 
 
   > >   1 3 7 2 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e 
 
         1 3 7 3 :             *   @ p a r a m   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y 
 
         1 3 7 4 :             *   @ p a r a m   D a t a H a n d l e r   $ D a t a H a n d l e r 
 
 
 
     L i n e   1 3 8 1   [ m a t c h :   e p i c o r ] : 
 
         1 3 7 9 :             *   @ t h r o w s   \ T h r o w a b l e 
 
         1 3 8 0 :             * / 
 
   > >   1 3 8 1 :           p u b l i c   f u n c t i o n   p o s t C o m p l e t e S h i p m e n t ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   S h i p m e n t R e l e a s e H e l p e r   $ S h i p m e n t R e l e a s e H e l p e r ,   p a i n t _ P l a n t   $ p a i n t _ P l a n t R e p o ) 
 
         1 3 8 2 :           { 
 
         1 3 8 3 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   1 4 0 4   [ m a t c h :   e p i c o r ] : 
 
         1 4 0 2 :   
 
         1 4 0 3 :                   t r y   { 
 
   > >   1 4 0 4 :                           $ P l a n t U s e r E m a i l s   =   $ E p i c o r D a t a b a s e - > g e t P l a n t U s e r E m a i l A d d r e s s e s ( $ S h i p m e n t C a r t - > g e t P l a n t ( ) ) ; 
 
         1 4 0 5 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         1 4 0 6 :                           L o g : : e r r o r ( ' C o u l d   n o t   c o m p l e t e   s h i p m e n t   r e l e a s e   b e c a u s e   c o u l d   n o t   g e t   p l a n t   e m a i l s   f o r   ' . $ S h i p m e n t C a r t - > g e t P l a n t ( ) . '   ( ' . $ S h i p m e n t C a r t - > g e t C a r t I D ( ) . ' ) ' ) ; 
 
 
 
     L i n e   1 4 7 0   [ m a t c h :   e p i c o r ] : 
 
         1 4 6 8 :             *   @ p a r a m   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y 
 
         1 4 6 9 :             *   @ p a r a m   D a t a H a n d l e r   $ D a t a H a n d l e r 
 
   > >   1 4 7 0 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e 
 
         1 4 7 1 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e 
 
         1 4 7 2 :             *   @ t h r o w s   \ S a v v i o r \ D a t a \ D a t a H a n d l e r E x c e p t i o n 
 
 
 
     L i n e   1 4 7 4   [ m a t c h :   e p i c o r ] : 
 
         1 4 7 2 :             *   @ t h r o w s   \ S a v v i o r \ D a t a \ D a t a H a n d l e r E x c e p t i o n 
 
         1 4 7 3 :             * / 
 
   > >   1 4 7 4 :           p u b l i c   f u n c t i o n   p o s t A d d S h i p m e n t I t e m ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   s h i p _ R e q u e s t R e p o   $ R O S h i p m e n t R e q u e s t R e p o ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ) 
 
         1 4 7 5 :           { 
 
         1 4 7 6 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   1 4 7 9   [ m a t c h :   e p i c o r ] : 
 
         1 4 7 7 :                           a b o r t ( 5 0 0 ,   ' T h e r e   i s   n o   a c t i v e   s h i p m e n t   r e l e a s e ' ) ; 
 
         1 4 7 8 :   
 
   > >   1 4 7 9 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 4 8 0 :                   $ P a r t N u m   =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' p a r t ' ) ) ; 
 
         1 4 8 1 :                   $ P l a n t   =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' p l a n t ' ) ) ; 
 
 
 
     L i n e   1 4 8 8   [ m a t c h :   e p i c o r ] : 
 
         1 4 8 6 :                   $ S k i d   =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > i n p u t ( ' s k i d ' ) ) ; 
 
         1 4 8 7 :   
 
   > >   1 4 8 8 :                   $ P a r t D e s c r i p t i o n   =   $ E p i c o r D a t a b a s e - > g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r W i t h P a i n t C o d e ( $ e p i c o r C u s t I D , $ P a r t N u m ) ; 
 
         1 4 8 9 :   
 
         1 4 9 0 :                   i f ( i s _ n u l l ( $ L o t N u m )   | |   i s _ n u l l ( $ O n H a n d Q u a n t i t y ) ) 
 
 
 
     L i n e   1 5 0 1   [ m a t c h :   e p i c o r ] : 
 
         1 4 9 9 :                           a b o r t ( 5 0 0 ,   ' T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   s h i p m e n t   r e l e a s e ' ) ; 
 
         1 5 0 0 :                   } 
 
   > >   1 5 0 1 :                   e l s e i f ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d S h i p m e n t E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) ) 
 
         1 5 0 2 :                   { 
 
         1 5 0 3 :                           a b o r t ( 5 0 0 ,   ' T h i s   i t e m   i s   a l r e a d y   p a r t   o f   a n o t h e r   s h i p m e n t   r e l e a s e   f o r   t h i s   c u s t o m e r ' ) ; 
 
 
 
     L i n e   1 5 2 4   [ m a t c h :   e p i c o r ] : 
 
         1 5 2 2 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 5 2 3 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   1 5 2 4 :                           L o g : : e r r o r ( ' A D D I N G   I T E M   T O   S H I P M E N T   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ S h i p m e n t C a r t - > g e t C a r t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 5 2 5 :                           a b o r t ( 5 0 0 ,   ' T h e r e   w a s   a n   u n e x p e c t e d   e r r o r   a d d i n g   t h i s   i t e m   t o   y o u r   s h i p m e n t .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         1 5 2 6 :                   } 
 
 
 
     L i n e   1 5 7 1   [ m a t c h :   e p i c o r ] : 
 
         1 5 6 9 :           / * * 
 
         1 5 7 0 :             *   @ p a r a m   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o 
 
   > >   1 5 7 1 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e 
 
         1 5 7 2 :             *   @ p a r a m   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r 
 
         1 5 7 3 :             *   @ p a r a m   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s 
 
 
 
     L i n e   1 5 7 6   [ m a t c h :   e p i c o r ] : 
 
         1 5 7 4 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e 
 
         1 5 7 5 :             * / 
 
   > >   1 5 7 6 :           p u b l i c   f u n c t i o n   p o s t S h i p T o A d d r e s s I n q u i r y ( q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 5 7 7 :           { 
 
         1 5 7 8 :                   $ E m a i l I n q u i r y T o   =   $ R O E m a i l E v e n t R e p o - > g e t E m a i l s F o r A c t i v e Q u e s t U s e r s T h a t R e c e i v e E m a i l E v e n t ( ' S H I P _ T O _ A D D R E S S _ I N Q U I R Y ' ) ; 
 
 
 
     L i n e   1 5 9 1   [ m a t c h :   e p i c o r ] : 
 
         1 5 8 9 :                           a b o r t ( 5 0 0 ,   ' I n v a l i d   i n q u i r y   t y p e   p r o v i d e d ' ) ; 
 
         1 5 9 0 :   
 
   > >   1 5 9 1 :                   i f ( ( $ T y p e   = =   ' e d i t '   | |   $ T y p e   = =   ' d e l e t e ' )   & &   ( i s _ n u l l ( $ S h i p T o N u m   =   $ I D )   | |   i s _ n u l l ( $ S h i p T o I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r S i n g l e S h i p T o A d d r e s s B y N u m ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ S h i p T o N u m ) ) ) ) 
 
         1 5 9 2 :                           a b o r t ( 5 0 0 , ' T h e   s h i p   t o   a d d r e s s   f o r   y o u r   i n q u i r y   n o   l o n g e r   e x i s t s . '   ) ; 
 
         1 5 9 3 :   
 
 
 
     L i n e   1 6 1 9   [ m a t c h :   e p i c o r ] : 
 
         1 6 1 7 :   
 
         1 6 1 8 :           / * * 
 
   > >   1 6 1 9 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e 
 
         1 6 2 0 :             *   @ p a r a m   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r 
 
         1 6 2 1 :             *   @ p a r a m   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s 
 
 
 
     L i n e   1 6 2 4   [ m a t c h :   e p i c o r ] : 
 
         1 6 2 2 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e 
 
         1 6 2 3 :             * / 
 
   > >   1 6 2 4 :           p u b l i c   f u n c t i o n   g e t O p e n O r d e r s ( E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 6 2 5 :           { 
 
         1 6 2 6 :                   $ O p e n O r d e r s   =   $ E p i c o r D a t a b a s e - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ; 
 
 
 
     L i n e   1 6 2 6   [ m a t c h :   e p i c o r ] : 
 
         1 6 2 4 :           p u b l i c   f u n c t i o n   g e t O p e n O r d e r s ( E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 6 2 5 :           { 
 
   > >   1 6 2 6 :                   $ O p e n O r d e r s   =   $ E p i c o r D a t a b a s e - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ; 
 
         1 6 2 7 :   
 
         1 6 2 8 :                   r e t u r n   r e s p o n s e ( ) - > j s o n ( [ 
 
 
 
     L i n e   1 7 6 5   [ m a t c h :   e p i c o r ] : 
 
         1 7 6 3 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ i n v _ U p l o a d E n t r y [ ]   $ i n v _ U p l o a d E n t r y   * / 
 
         1 7 6 4 :                   $ i n v _ U p l o a d E n t r y   =   $ i n v _ U p l o a d E n t r y R e p o 
 
   > >   1 7 6 5 :                           - > g e t A l l I n v o i c e s F o r C u s t o m e r ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ; 
 
         1 7 6 6 :   
 
         1 7 6 7 :                   $ r e s u l t s   =   [ ] ; 
 
 
 
     L i n e   1 7 9 2   [ m a t c h :   e p i c o r ] : 
 
         1 7 9 0 :                                   ' S e n t D a t e '   = >   ! i s _ n u l l ( $ i n v _ U p l o a d E n t r y I t e m - > g e t S e n t D T ( ) )   ?   $ i n v _ U p l o a d E n t r y I t e m - > g e t S e n t D T ( ) - > f o r m a t ( ' m / d / Y ' )   :   ' ' , 
 
         1 7 9 1 :                                   ' P a i d '   = >   $ i n v _ U p l o a d E n t r y I t e m - > g e t E p i I n v c H e a d ( ) - > g e t O p e n I n v o i c e ( ) , 
 
   > >   1 7 9 2 :                                   ' D o w n l o a d L i n k '   = >   a c t i o n ( ' A P I \ W e b A p p A P I @ d o w n l o a d I n v o i c e ' ,   [ $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   e n c r y p t ( $ i n v _ U p l o a d E n t r y I t e m - > g e t I D ( ) ) ] ) 
 
         1 7 9 3 :                           ] ; 
 
         1 7 9 4 :                   } 
 
 
 
     L i n e   1 8 8 6   [ m a t c h :   e p i c o r ] : 
 
         1 8 8 4 :           p r i v a t e   f u n c t i o n   _ B O L C o n t e n t ( $ b o l N u m ,   $ i s L a s t P a g e = t r u e ) 
 
         1 8 8 5 :           { 
 
   > >   1 8 8 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         1 8 8 7 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 8 8 8 :                   $ b o l D a t a   =   $ e p i c o r e - > g e t B O L ( $ b o l N u m ) ; 
 
 
 
     L i n e   1 8 8 7   [ m a t c h :   e p i c o r ] : 
 
         1 8 8 5 :           { 
 
         1 8 8 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
   > >   1 8 8 7 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 8 8 8 :                   $ b o l D a t a   =   $ e p i c o r e - > g e t B O L ( $ b o l N u m ) ; 
 
         1 8 8 9 :                   $ b y P a c k e r   =   [ ] ; 
 
 
 
     L i n e   1 8 8 8   [ m a t c h :   e p i c o r ] : 
 
         1 8 8 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         1 8 8 7 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   1 8 8 8 :                   $ b o l D a t a   =   $ e p i c o r e - > g e t B O L ( $ b o l N u m ) ; 
 
         1 8 8 9 :                   $ b y P a c k e r   =   [ ] ; 
 
         1 8 9 0 :   
 
 
 
     L i n e   1 9 0 3   [ m a t c h :   e p i c o r ] : 
 
         1 9 0 1 :           } 
 
         1 9 0 2 :   
 
   > >   1 9 0 3 :           p u b l i c   f u n c t i o n   g e t O r d e r s P d f ( S e l e c t e d C o m p a n y P r o v i d e r   $ c o m p ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ) 
 
         1 9 0 4 :           { 
 
         1 9 0 5 :                   $ c u s t o m e r   =   $ c o m p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
 
 
     L i n e   1 9 0 5   [ m a t c h :   e p i c o r ] : 
 
         1 9 0 3 :           p u b l i c   f u n c t i o n   g e t O r d e r s P d f ( S e l e c t e d C o m p a n y P r o v i d e r   $ c o m p ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ) 
 
         1 9 0 4 :           { 
 
   > >   1 9 0 5 :                   $ c u s t o m e r   =   $ c o m p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         1 9 0 6 :                   $ d a t a   =   $ E p i c o r D a t a b a s e - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ c u s t o m e r ) ; 
 
         1 9 0 7 :                   $ f i l e N a m e   =   " J o b S t a t u s B y P l a n t B y C u s t o m e r - "   .   d a t e ( " m - d - Y " )   .   " . p d f " ; 
 
 
 
     L i n e   1 9 0 6   [ m a t c h :   e p i c o r ] : 
 
         1 9 0 4 :           { 
 
         1 9 0 5 :                   $ c u s t o m e r   =   $ c o m p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
   > >   1 9 0 6 :                   $ d a t a   =   $ E p i c o r D a t a b a s e - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ c u s t o m e r ) ; 
 
         1 9 0 7 :                   $ f i l e N a m e   =   " J o b S t a t u s B y P l a n t B y C u s t o m e r - "   .   d a t e ( " m - d - Y " )   .   " . p d f " ; 
 
         1 9 0 8 :   
 
 
 
     L i n e   1 8   [ m a t c h :   E p i c o r ] : 
 
         1 6 :   u s e   A p p \ N o t i f i c a t i o n s \ S h i p m e n t R e l e a s e R e q u e s t C a n c e l l a t i o n ; 
 
         1 7 :   u s e   A p p \ N o t i f i c a t i o n s \ S h i p T o A d d r e s s I n q u i r y ; 
 
   > >   1 8 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 9 :   u s e   A p p \ S e r v i c e s \ H i s t o r i c a l S h i p m e n t C a r t ; 
 
         2 0 :   u s e   A p p \ S e r v i c e s \ P a i n t S c h e d u l e S e r v i c e ; 
 
 
 
     L i n e   1 6 9   [ m a t c h :   E p i c o r ] : 
 
         1 6 7 :                   / * *   @ v a r   q u e s t _ C o m p a n y   $ C o m p a n y   * / 
 
         1 6 8 :                   $ C o m p a n y   =   a p p ( q u e s t _ C o m p a n y : : c l a s s ) ; 
 
   > >   1 6 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 7 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 7 1 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   1 7 0   [ m a t c h :   E p i c o r ] : 
 
         1 6 8 :                   $ C o m p a n y   =   a p p ( q u e s t _ C o m p a n y : : c l a s s ) ; 
 
         1 6 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 7 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 7 1 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 7 2 :   
 
 
 
     L i n e   1 7 1   [ m a t c h :   E p i c o r ] : 
 
         1 6 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 7 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   1 7 1 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 7 2 :   
 
         1 7 3 :                   / /   g e t   n o t i f i c a t i o n s 
 
 
 
     L i n e   1 8 4   [ m a t c h :   E p i c o r ] : 
 
         1 8 2 :   
 
         1 8 3 :                   / /   g e t   s h i p m e n t s   d a t a 
 
   > >   1 8 4 :                   $ s h i p m e n t s _ r e s u l t s   =   $ E p i c o r D B - > g e t T o p 5 S h i p m e n t s D a t a ( $ e p i c o r C u s t I D ) ; 
 
         1 8 5 :                   $ s h i p m e n t s   =   a r r a y ( ) ; 
 
         1 8 6 :                   / /   r e n a m e   t o   m a t c h   j s o n   e x p e c t e d 
 
 
 
     L i n e   2 1 4   [ m a t c h :   E p i c o r ] : 
 
         2 1 2 :   
 
         2 1 3 :                   / /   g e t   t h e   r e c e n t   p r o d u c t i o n   o r d e r s 
 
   > >   2 1 4 :                   $ p r o d u c t i o n _ r e s u l t s   =   $ E p i c o r D B - > g e t T o p 5 O r d e r s D a t a ( $ e p i c o r C u s t I D ) ; 
 
         2 1 5 :                   $ p r o d u c t i o n   =   a r r a y ( ) ; 
 
         2 1 6 :   
 
 
 
     L i n e   2 7 6   [ m a t c h :   E p i c o r ] : 
 
         2 7 4 :           { 
 
         2 7 5 :                   / /   v a r i a b l e   i n i t 
 
   > >   2 7 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 7 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 7 8 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   2 7 7   [ m a t c h :   E p i c o r ] : 
 
         2 7 5 :                   / /   v a r i a b l e   i n i t 
 
         2 7 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 7 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 7 8 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         2 7 9 :                   $ t y p e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' t y p e ' ) ; 
 
 
 
     L i n e   2 7 8   [ m a t c h :   E p i c o r ] : 
 
         2 7 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 7 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   2 7 8 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         2 7 9 :                   $ t y p e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' t y p e ' ) ; 
 
         2 8 0 :                   $ r a w _ d a t a   =   n u l l ; 
 
 
 
     L i n e   2 8 8   [ m a t c h :   E p i c o r ] : 
 
         2 8 6 :                   { 
 
         2 8 7 :                           c a s e   " u n p r o c e s s e d " : 
 
   > >   2 8 8 :                                   $ r a w _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d S u m m a r y D a t a ( $ e p i c o r C u s t I D ) ; 
 
         2 8 9 :                                   $ s o u r c e   =   " p o r t a l _ U n p r o c e s s e d I n v e n t o r y S u m m a r y " ; 
 
         2 9 0 :                                   b r e a k ; 
 
 
 
     L i n e   2 9 3   [ m a t c h :   E p i c o r ] : 
 
         2 9 1 :   
 
         2 9 2 :                           c a s e   " u n p r o c e s s e d r r " : 
 
   > >   2 9 3 :                                   $ r a w _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ( $ e p i c o r C u s t I D ) ; 
 
         2 9 4 :                                   $ s o u r c e   =   " p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y " ; 
 
         2 9 5 :                                   b r e a k ; 
 
 
 
     L i n e   2 9 8   [ m a t c h :   E p i c o r ] : 
 
         2 9 6 :   
 
         2 9 7 :                           c a s e   ' w i p ' : 
 
   > >   2 9 8 :                                   $ r a w _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a ( $ e p i c o r C u s t I D ) ; 
 
         2 9 9 :                                   $ s o u r c e   =   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' ; 
 
         3 0 0 :                                   b r e a k ; 
 
 
 
     L i n e   3 0 3   [ m a t c h :   E p i c o r ] : 
 
         3 0 1 :   
 
         3 0 2 :                           c a s e   " f g " : 
 
   > >   3 0 3 :                                   $ r a w _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a ( $ e p i c o r C u s t I D ) ; 
 
         3 0 4 :                                   $ s o u r c e   =   " p o r t a l _ P r o c e s s e d I n v e n t o r y S u m m a r y " ; 
 
         3 0 5 :                                   b r e a k ; 
 
 
 
     L i n e   3 0 8   [ m a t c h :   E p i c o r ] : 
 
         3 0 6 :   
 
         3 0 7 :                           c a s e   ' p r o c e s s e d o t h e r ' : 
 
   > >   3 0 8 :                                   $ r a w _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a ( $ e p i c o r C u s t I D ) ; 
 
         3 0 9 :                                   $ s o u r c e   =   " p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y " ; 
 
         3 1 0 :                                   b r e a k ; 
 
 
 
     L i n e   3 1 3   [ m a t c h :   E p i c o r ] : 
 
         3 1 1 :   
 
         3 1 2 :                           c a s e   " p r o c e s s e d r r " : 
 
   > >   3 1 3 :                                   $ r a w _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R S u m m a r y D a t a ( $ e p i c o r C u s t I D ) ; 
 
         3 1 4 :                                   $ s o u r c e   =   " p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y " ; 
 
         3 1 5 :                                   b r e a k ; 
 
 
 
     L i n e   3 5 3   [ m a t c h :   E p i c o r ] : 
 
         3 5 1 :           / * * 
 
         3 5 2 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e 
 
   > >   3 5 3 :             *   @ t h r o w s   \ A p p \ E x c e p t i o n s \ N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         3 5 4 :             * / 
 
         3 5 5 :           p u b l i c   f u n c t i o n   i n v e n t o r y D e t a i l s ( )   { 
 
 
 
     L i n e   3 6 1   [ m a t c h :   E p i c o r ] : 
 
         3 5 9 :   
 
         3 6 0 :                   / /   v a r i a b l e   i n i t 
 
   > >   3 6 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 6 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 6 3 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   3 6 2   [ m a t c h :   E p i c o r ] : 
 
         3 6 0 :                   / /   v a r i a b l e   i n i t 
 
         3 6 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 6 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 6 3 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         3 6 4 :                   $ e n c o d e d I D   =   r e q u e s t ( ) - > i s M e t h o d ( ' p o s t ' )   ?   r e q u e s t ( ) - > i n p u t ( ' i d ' )   :   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' i d ' ) ; 
 
 
 
     L i n e   3 6 3   [ m a t c h :   E p i c o r ] : 
 
         3 6 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 6 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   3 6 3 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         3 6 4 :                   $ e n c o d e d I D   =   r e q u e s t ( ) - > i s M e t h o d ( ' p o s t ' )   ?   r e q u e s t ( ) - > i n p u t ( ' i d ' )   :   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' i d ' ) ; 
 
         3 6 5 :                   $ t y p e   =   " " ; 
 
 
 
     L i n e   3 8 4   [ m a t c h :   E p i c o r ] : 
 
         3 8 2 :                   { 
 
         3 8 3 :                           c a s e   " p o r t a l _ U n p r o c e s s e d I n v e n t o r y S u m m a r y " : 
 
   > >   3 8 4 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 8 5 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 8 6 :                                   $ t y p e   =   " U n p r o c e s s e d " ; 
 
 
 
     L i n e   3 8 5   [ m a t c h :   E p i c o r ] : 
 
         3 8 3 :                           c a s e   " p o r t a l _ U n p r o c e s s e d I n v e n t o r y S u m m a r y " : 
 
         3 8 4 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
   > >   3 8 5 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 8 6 :                                   $ t y p e   =   " U n p r o c e s s e d " ; 
 
         3 8 7 :                                   b r e a k ; 
 
 
 
     L i n e   3 8 9   [ m a t c h :   E p i c o r ] : 
 
         3 8 7 :                                   b r e a k ; 
 
         3 8 8 :                           c a s e   " p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y " : 
 
   > >   3 8 9 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 9 0 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 9 1 :                                   $ t y p e   =   " U n p r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) " ; 
 
 
 
     L i n e   3 9 0   [ m a t c h :   E p i c o r ] : 
 
         3 8 8 :                           c a s e   " p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y " : 
 
         3 8 9 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
   > >   3 9 0 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 9 1 :                                   $ t y p e   =   " U n p r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) " ; 
 
         3 9 2 :                                   b r e a k ; 
 
 
 
     L i n e   3 9 4   [ m a t c h :   E p i c o r ] : 
 
         3 9 2 :                                   b r e a k ; 
 
         3 9 3 :                           c a s e   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' : 
 
   > >   3 9 4 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 9 5 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 9 6 :                                   $ t y p e   =   " W o r k   I n   P r o g r e s s " ; 
 
 
 
     L i n e   3 9 5   [ m a t c h :   E p i c o r ] : 
 
         3 9 3 :                           c a s e   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' : 
 
         3 9 4 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
   > >   3 9 5 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 9 6 :                                   $ t y p e   =   " W o r k   I n   P r o g r e s s " ; 
 
         3 9 7 :                                   b r e a k ; 
 
 
 
     L i n e   3 9 9   [ m a t c h :   E p i c o r ] : 
 
         3 9 7 :                                   b r e a k ; 
 
         3 9 8 :                           c a s e   " p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y S u m m a r y " : 
 
   > >   3 9 9 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 0 0 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 0 1 :                                   $ t y p e   =   " F i n i s h e d   G o o d s " ; 
 
 
 
     L i n e   4 0 0   [ m a t c h :   E p i c o r ] : 
 
         3 9 8 :                           c a s e   " p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y S u m m a r y " : 
 
         3 9 9 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
   > >   4 0 0 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 0 1 :                                   $ t y p e   =   " F i n i s h e d   G o o d s " ; 
 
         4 0 2 :                                   b r e a k ; 
 
 
 
     L i n e   4 0 4   [ m a t c h :   E p i c o r ] : 
 
         4 0 2 :                                   b r e a k ; 
 
         4 0 3 :                           c a s e   " p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y " : 
 
   > >   4 0 4 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 0 5 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 0 6 :                                   $ t y p e   =   " P r o c e s s e d   -   O t h e r " ; 
 
 
 
     L i n e   4 0 5   [ m a t c h :   E p i c o r ] : 
 
         4 0 3 :                           c a s e   " p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y " : 
 
         4 0 4 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
   > >   4 0 5 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 0 6 :                                   $ t y p e   =   " P r o c e s s e d   -   O t h e r " ; 
 
         4 0 7 :                                   b r e a k ; 
 
 
 
     L i n e   4 0 9   [ m a t c h :   E p i c o r ] : 
 
         4 0 7 :                                   b r e a k ; 
 
         4 0 8 :                           c a s e   " p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y " : 
 
   > >   4 0 9 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 1 0 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 1 1 :                                   $ t y p e   =   " P r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) " ; 
 
 
 
     L i n e   4 1 0   [ m a t c h :   E p i c o r ] : 
 
         4 0 8 :                           c a s e   " p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y " : 
 
         4 0 9 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
   > >   4 1 0 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 1 1 :                                   $ t y p e   =   " P r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) " ; 
 
         4 1 2 :                                   b r e a k ; 
 
 
 
     L i n e   4 8 8   [ m a t c h :   E p i c o r ] : 
 
         4 8 6 :   
 
         4 8 7 :                   / /   v a r i a b l e   i n i t 
 
   > >   4 8 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 8 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 9 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   4 8 9   [ m a t c h :   E p i c o r ] : 
 
         4 8 7 :                   / /   v a r i a b l e   i n i t 
 
         4 8 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 8 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 9 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         4 9 1 :                   $ j o b N u m b e r   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m b e r ' ) ; 
 
 
 
     L i n e   4 9 0   [ m a t c h :   E p i c o r ] : 
 
         4 8 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 8 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   4 9 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         4 9 1 :                   $ j o b N u m b e r   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m b e r ' ) ; 
 
         4 9 2 :   
 
 
 
     L i n e   4 9 3   [ m a t c h :   E p i c o r ] : 
 
         4 9 1 :                   $ j o b N u m b e r   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m b e r ' ) ; 
 
         4 9 2 :   
 
   > >   4 9 3 :                   $ c o i l _ b y _ c o i l _ r e s u l t s   =   $ E p i c o r D B - > g e t C o i l B y C o i l ( $ j o b N u m b e r ,   $ e p i c o r C u s t I D ) ; 
 
         4 9 4 :   
 
         4 9 5 :                   / /   f o r m a t   a s   j s o n   e x p e c t e d 
 
 
 
     L i n e   5 3 2   [ m a t c h :   E p i c o r ] : 
 
         5 3 0 :             p u b l i c   f u n c t i o n   g e t C o i l B y C o i l P d f ( R e q u e s t   $ r e q u e s t ) 
 
         5 3 1 :             { 
 
   > >   5 3 2 :                     $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         5 3 3 :                     $ j o b _ n u m   =   $ r e q u e s t - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m ' ) ; 
 
         5 3 4 :   
 
 
 
     L i n e   5 3 8   [ m a t c h :   E p i c o r ] : 
 
         5 3 6 :                             $ j o b _ n u m   =   b a s e 6 4 _ d e c o d e ( $ j o b _ n u m ) ; 
 
         5 3 7 :   
 
   > >   5 3 8 :                     / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         5 3 9 :                     $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 4 0 :                     $ C o i l B y C o i l D a t a   =   $ e p i c o r e - > g e t C o i l B y C o i l ( $ j o b _ n u m , $ e p i c o r C u s t I D ) ; 
 
 
 
     L i n e   5 3 9   [ m a t c h :   E p i c o r ] : 
 
         5 3 7 :   
 
         5 3 8 :                     / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
   > >   5 3 9 :                     $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 4 0 :                     $ C o i l B y C o i l D a t a   =   $ e p i c o r e - > g e t C o i l B y C o i l ( $ j o b _ n u m , $ e p i c o r C u s t I D ) ; 
 
         5 4 1 :   
 
 
 
     L i n e   5 4 0   [ m a t c h :   E p i c o r ] : 
 
         5 3 8 :                     / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         5 3 9 :                     $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   5 4 0 :                     $ C o i l B y C o i l D a t a   =   $ e p i c o r e - > g e t C o i l B y C o i l ( $ j o b _ n u m , $ e p i c o r C u s t I D ) ; 
 
         5 4 1 :   
 
         5 4 2 :                     $ P a r t H e a d e r s   = [ ] ; 
 
 
 
     L i n e   8 5 0   [ m a t c h :   E p i c o r ] : 
 
         8 4 8 :           	         / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t L i n e   $ P a i n t L i n e   * / 
 
         8 4 9 :           	         f o r e a c h   ( $ P a i n t P l a n t - > g e t P a i n t P l a n t L i n e ( )   A S   $ P a i n t L i n e ) 
 
   > >   8 5 0 :           	                 $ L i n e s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( )   .   ' - '   .   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ]   =   [ ' i d '   = >   $ P a i n t P l a n t - > g e t E p i c o r K e y ( )   .   ' - '   .   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ,   ' n a m e '   = >   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t N a m e ( ) ,   ' c a t e g o r y '   = >   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t P a i n t L i n e T y p e ( ) - > g e t T y p e ( ) ] ; 
 
         8 5 1 :           	         a r r a y _ m u l t i s o r t ( a r r a y _ m a p ( f u n c t i o n ( $ e l e m e n t )   { 
 
         8 5 2 :           	                 r e t u r n   $ e l e m e n t [ ' n a m e ' ] ; 
 
 
 
     L i n e   8 5 5   [ m a t c h :   E p i c o r ] : 
 
         8 5 3 :           	         } ,   $ L i n e s ) ,   S O R T _ A S C ,   $ L i n e s ) ; 
 
         8 5 4 :   
 
   > >   8 5 5 :           	         $ p l a n t s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ]   =   [ ' i d '   = >   $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ,   ' o f f s e t '   = >   $ P a i n t P l a n t - > g e t T i m e Z o n e M o d i f i e r ( ) ,   ' c a n _ e d i t '   = >   i s s e t ( $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ] ) ,   ' n a m e '   = >   $ P a i n t P l a n t - > g e t N a m e ( ) ,   ' l i n e s '   = >   $ L i n e s ] ; 
 
         8 5 6 :           	 } 
 
         8 5 7 :   
 
 
 
     L i n e   8 7 4   [ m a t c h :   E p i c o r ] : 
 
         8 7 2 :   
 
         8 7 3 :                   / /   v a r i a b l e   i n i t 
 
   > >   8 7 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         8 7 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 7 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   8 7 5   [ m a t c h :   E p i c o r ] : 
 
         8 7 3 :                   / /   v a r i a b l e   i n i t 
 
         8 7 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   8 7 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 7 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         8 7 7 :                   $ s t a r t D a t e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' s t a r t ' ) ; 
 
 
 
     L i n e   8 7 6   [ m a t c h :   E p i c o r ] : 
 
         8 7 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         8 7 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   8 7 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         8 7 7 :                   $ s t a r t D a t e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' s t a r t ' ) ; 
 
         8 7 8 :                   $ e n d D a t e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e n d ' ) ; 
 
 
 
     L i n e   8 8 1   [ m a t c h :   E p i c o r ] : 
 
         8 7 9 :   
 
         8 8 0 :                   / /   g e t   t h e   c o i l   a c t i v i t y   d a t a 
 
   > >   8 8 1 :                   $ u s a g e s _ d a t a   =   $ E p i c o r D B - > g e t C o i l A c t i v i t y U s a g e D a t a ( $ e p i c o r C u s t I D ,   $ s t a r t D a t e ,   $ e n d D a t e ) ; 
 
         8 8 2 :                   $ u s a g e s   =   a r r a y ( ) ; 
 
         8 8 3 :   
 
 
 
     L i n e   9 0 4   [ m a t c h :   E p i c o r ] : 
 
         9 0 2 :   	   	 r e t u r n   r e s p o n s e ( ) - > j s o n ( [ 
 
         9 0 3 :   	   	 	 ' u s a g e s '   = >   $ u s a g e s , 
 
   > >   9 0 4 :   	   	 	 ' i d '   = >   $ e p i c o r C u s t I D , 
 
         9 0 5 :   	   	 	 ' s t a r t '   = >   $ s t a r t D a t e , 
 
         9 0 6 :   	   	 	 ' e n d '   = >   $ e n d D a t e 
 
 
 
     L i n e   9 1 8   [ m a t c h :   E p i c o r ] : 
 
         9 1 6 :   
 
         9 1 7 :                   / /   v a r i a b l e   i n i t 
 
   > >   9 1 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         9 1 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         9 2 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   9 1 9   [ m a t c h :   E p i c o r ] : 
 
         9 1 7 :                   / /   v a r i a b l e   i n i t 
 
         9 1 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   9 1 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         9 2 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         9 2 1 :                   $ s t a r t D a t e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' s t a r t ' ) ; / / 
 
 
 
     L i n e   9 2 0   [ m a t c h :   E p i c o r ] : 
 
         9 1 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         9 1 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   9 2 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         9 2 1 :                   $ s t a r t D a t e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' s t a r t ' ) ; / / 
 
         9 2 2 :                   $ e n d D a t e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e n d ' ) ; / / 
 
 
 
     L i n e   9 2 5   [ m a t c h :   E p i c o r ] : 
 
         9 2 3 :   
 
         9 2 4 :                   / /   g e t   t h e   c o i l   a c t i v i t y 
 
   > >   9 2 5 :                   $ r e c e i p t s _ d a t a   =   $ E p i c o r D B - > g e t C o i l A c t i v i t y R e c e i p t s D a t a ( $ e p i c o r C u s t I D ,   $ s t a r t D a t e ,   $ e n d D a t e ) ; 
 
         9 2 6 :                   $ r e c e i p t s   =   a r r a y ( ) ; 
 
         9 2 7 :   
 
 
 
     L i n e   9 5 1   [ m a t c h :   E p i c o r ] : 
 
         9 4 9 :   	   	 r e t u r n   r e s p o n s e ( ) - > j s o n ( [ 
 
         9 5 0 :   	   	 	 ' r e c e i p t s '   = >   $ r e c e i p t s , 
 
   > >   9 5 1 :   	   	 	 ' i d '   = >   $ e p i c o r C u s t I D , 
 
         9 5 2 :   	   	 	 ' s t a r t '   = >   $ s t a r t D a t e , 
 
         9 5 3 :   	   	 	 ' e n d '   = >   $ e n d D a t e 
 
 
 
     L i n e   9 6 7   [ m a t c h :   E p i c o r ] : 
 
         9 6 5 :                   / * *   @ v a r   s h i p _ R e q u e s t R e p o   $ S h i p R e q u e s t   * / 
 
         9 6 6 :                   $ S h i p R e q u e s t   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
   > >   9 6 7 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         9 6 8 :   
 
         9 6 9 :                   / /   g e t   t h e   s h i p   r e q u e s t   d a t a 
 
 
 
     L i n e   9 7 0   [ m a t c h :   E p i c o r ] : 
 
         9 6 8 :   
 
         9 6 9 :                   / /   g e t   t h e   s h i p   r e q u e s t   d a t a 
 
   > >   9 7 0 :                   $ r e l e a s e s _ d a t a   =   $ S h i p R e q u e s t - > g e t S h i p m e n t R e l e a s e D a t a ( $ e p i c o r C u s t I D ) ; 
 
         9 7 1 :                   $ r e l e a s e s   =   a r r a y ( ) ; 
 
         9 7 2 :   
 
 
 
     L i n e   9 9 2   [ m a t c h :   E p i c o r ] : 
 
         9 9 0 :   	   	 r e t u r n   r e s p o n s e ( ) - > j s o n ( [ 
 
         9 9 1 :   	   	 	 ' r e l e a s e s '   = >   $ r e l e a s e s , 
 
   > >   9 9 2 :   	   	 	 ' i d '   = >   $ e p i c o r C u s t I D 
 
         9 9 3 :   	   	 ] ) ; 
 
         9 9 4 :           } 
 
 
 
     L i n e   1 0 0 6   [ m a t c h :   E p i c o r ] : 
 
         1 0 0 4 :                   / * *   @ v a r   s h i p _ R e q u e s t R e p o   $ S h i p R e q u e s t   * / 
 
         1 0 0 5 :                   $ S h i p R e q u e s t   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
   > >   1 0 0 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 0 0 7 :   
 
         1 0 0 8 :                   $ i n c l u d e I n c o m p l e t e S h i p m e n t s   =   r e q u e s t ( ) - > e x i s t s ( ' i n c o m p l e t e _ s h i p m e n t s ' )   ?   r e q u e s t ( ) - > q u e r y ( ' i n c o m p l e t e _ s h i p m e n t s ' )   :   f a l s e ; 
 
 
 
     L i n e   1 0 1 3   [ m a t c h :   E p i c o r ] : 
 
         1 0 1 1 :   
 
         1 0 1 2 :                   / * *   @ v a r   s h i p _ R e q u e s t   $ d e t a i l s _ d a t a   * / 
 
   > >   1 0 1 3 :                   $ d   =   $ S h i p R e q u e s t - > g e t S h i p m e n t R e l e a s e D e t a i l s D a t a B y I D ( $ e p i c o r C u s t I D ,   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' i d ' ) ) ; 
 
         1 0 1 4 :   
 
         1 0 1 5 :                   / * *   @ v a r   s h i p _ R e q u e s t R e p o   $ R O S h i p m e n t R e q u e s t R e p o   * / 
 
 
 
     L i n e   1 1 0 2   [ m a t c h :   E p i c o r ] : 
 
         1 1 0 0 :             *   @ p a r a m   S h i p m e n t C a r t   $ S h i p m e n t C a r t 
 
         1 1 0 1 :             *   @ p a r a m   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s 
 
   > >   1 1 0 2 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D B 
 
         1 1 0 3 :             *   @ p a r a m   q u e s t _ C o m p a n y   $ C o m p a n y R e p o 
 
         1 1 0 4 :             *   @ p a r a m   s h i p _ R e q u e s t R e p o   $ s h i p _ R e q u e s t 
 
 
 
     L i n e   1 1 0 8   [ m a t c h :   E p i c o r ] : 
 
         1 1 0 6 :             *   @ t h r o w s   \ D o c t r i n e \ O R M \ N o n U n i q u e R e s u l t E x c e p t i o n 
 
         1 1 0 7 :             * / 
 
   > >   1 1 0 8 :           p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e I n f o r m a t i o n ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   E p i c o r D a t a b a s e   $ E p i c o r D B ,   q u e s t _ C o m p a n y   $ C o m p a n y R e p o ,   \ A p p \ M o d e l \ R e p o s \ s h i p _ R e q u e s t   $ s h i p _ R e q u e s t ) 
 
         1 1 0 9 :           { 
 
         1 1 1 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   1 1 1 0   [ m a t c h :   E p i c o r ] : 
 
         1 1 0 8 :           p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e I n f o r m a t i o n ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   E p i c o r D a t a b a s e   $ E p i c o r D B ,   q u e s t _ C o m p a n y   $ C o m p a n y R e p o ,   \ A p p \ M o d e l \ R e p o s \ s h i p _ R e q u e s t   $ s h i p _ R e q u e s t ) 
 
         1 1 0 9 :           { 
 
   > >   1 1 1 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 1 1 1 :   
 
         1 1 1 2 :   
 
 
 
     L i n e   1 1 1 7   [ m a t c h :   E p i c o r ] : 
 
         1 1 1 5 :   
 
         1 1 1 6 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y   $ C u s t o m e r   * / 
 
   > >   1 1 1 7 :                   $ C o m p a n y   =   $ C o m p a n y R e p o - > f i n d O n e B y ( [ ' E p i c o r C u s t I D '   = >   $ e p i c o r C u s t I D ] ) ; 
 
         1 1 1 8 :   
 
         1 1 1 9 :                   $ S h i p T o D a t a   =   $ S h i p m e n t C a r t - > g e t S h i p T o A d d r e s s D a t a ( ) ; 
 
 
 
     L i n e   1 1 2 3   [ m a t c h :   E p i c o r ] : 
 
         1 1 2 1 :                   i f ( $ S h i p T o D a t a   ! = =   n u l l   & &   c o u n t ( $ S h i p T o D a t a )   >   0   & &   i s s e t ( $ S h i p T o D a t a [ ' S h i p T o N u m ' ] ) ) 
 
         1 1 2 2 :                   { 
 
   > >   1 1 2 3 :                           $ S e l e c t e d S h i p T o A d d r e s s I n f o   =   S h i p m e n t C a r t : : c o n v e r t S h i p m e n t S h i p T o A d d r e s s D a t a T o L i n e s ( $ E p i c o r D B - > g e t C u s t o m e r S i n g l e S h i p T o A d d r e s s B y N u m ( $ e p i c o r C u s t I D ,   $ S h i p T o D a t a [ ' S h i p T o N u m ' ] ) ) ; 
 
         1 1 2 4 :                   } 
 
         1 1 2 5 :   
 
 
 
     L i n e   1 1 2 7   [ m a t c h :   E p i c o r ] : 
 
         1 1 2 5 :   
 
         1 1 2 6 :                   / * *   @ v a r   s h i p _ R e q u e s t   $ R e s u l t s   * / 
 
   > >   1 1 2 7 :                   $ R e s u l t s   =   $ s h i p _ R e q u e s t - > g e t O p e n S h i p m e n t W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ e p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ) ; 
 
         1 1 2 8 :                   $ T o t a l S h i p m e n t L b s   =   0 ; 
 
         1 1 2 9 :   
 
 
 
     L i n e   1 1 6 6   [ m a t c h :   E p i c o r ] : 
 
         1 1 6 4 :           p u b l i c   f u n c t i o n   p o s t S t a r t S h i p m e n t ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ) 
 
         1 1 6 5 :           { 
 
   > >   1 1 6 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 1 6 7 :   
 
         1 1 6 8 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t A v a i l a b l e ( ) ) 
 
 
 
     L i n e   1 1 7 4   [ m a t c h :   E p i c o r ] : 
 
         1 1 7 2 :                           a b o r t ( 5 0 0 ,   ' A   s h i p m e n t   r e l e a s e   c a n n o t   b e   s t a r t e d   f o r   t h i s   c u s t o m e r   a s   t h e r e   i s   a l r e a d y   o n e   i n   p r o g r e s s ' ) ; 
 
         1 1 7 3 :   
 
   > >   1 1 7 4 :                   i f ( ! $ S e l e c t e d C o m p a n y P r o v i d e r - > s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) ) 
 
         1 1 7 5 :                           a b o r t ( 5 0 0 ,   ' P l e a s e   s e l e c t   a   c u s t o m e r   b e f o r e   s t a r t i n g   a   s h i p m e n t   r e l e a s e ' ) ; 
 
         1 1 7 6 :   
 
 
 
     L i n e   1 1 8 2   [ m a t c h :   E p i c o r ] : 
 
         1 1 8 0 :                   t r y   { 
 
         1 1 8 1 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
   > >   1 1 8 2 :                                   ' q u e s t _ C o m p a n y '   = >   [ ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) - > g e t I D ( ) ] , 
 
         1 1 8 3 :                                   ' q u e s t _ U s e r '   = >   [ ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ] , 
 
         1 1 8 4 :                                   ' O p e n C a r t C o n s t r a i n t '   = >   t r u e , 
 
 
 
     L i n e   1 1 9 8   [ m a t c h :   E p i c o r ] : 
 
         1 1 9 6 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         1 1 9 7 :   
 
   > >   1 1 9 8 :                           L o g : : e r r o r ( ' S H I P M E N T   R E Q U E S T   S T A R T   D B   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 1 9 9 :                           a b o r t ( 5 0 0 ,   ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   s t a r t i n g   t h i s   s h i p m e n t   r e l e a s e .   P l e a s e   t r y   a g a i n . ' ) ; 
 
         1 2 0 0 :   
 
 
 
     L i n e   1 2 0 8   [ m a t c h :   E p i c o r ] : 
 
         1 2 0 6 :           / * * 
 
         1 2 0 7 :             *   @ p a r a m   S h i p m e n t C a r t   $ S h i p m e n t C a r t 
 
   > >   1 2 0 8 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e 
 
         1 2 0 9 :             *   @ p a r a m   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r 
 
         1 2 1 0 :             *   @ p a r a m   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s 
 
 
 
     L i n e   1 2 1 4   [ m a t c h :   E p i c o r ] : 
 
         1 2 1 2 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e 
 
         1 2 1 3 :             * / 
 
   > >   1 2 1 4 :           p u b l i c   f u n c t i o n   g e t S e l e c t S h i p T o A d d r e s s ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ) 
 
         1 2 1 5 :           { 
 
         1 2 1 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   1 2 1 6   [ m a t c h :   E p i c o r ] : 
 
         1 2 1 4 :           p u b l i c   f u n c t i o n   g e t S e l e c t S h i p T o A d d r e s s ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ) 
 
         1 2 1 5 :           { 
 
   > >   1 2 1 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 2 1 7 :   
 
         1 2 1 8 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   1 2 2 1   [ m a t c h :   E p i c o r ] : 
 
         1 2 1 9 :                           a b o r t ( 5 0 0 ,   ' T h i s   s h i p m e n t   r e l e a s e   c o u l d   n o t   b e   s t a r t e d   a t   t h i s   t i m e ' ) ; 
 
         1 2 2 0 :   
 
   > >   1 2 2 1 :                   $ S h i p T o A d d r e s s e s   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r S h i p T o A d d r e s s e s ( $ e p i c o r C u s t I D ) ; 
 
         1 2 2 2 :   
 
         1 2 2 3 :                   $ S h i p T o A d d r e s s L i n e s   =   [ ] ; 
 
 
 
     L i n e   1 2 2 5   [ m a t c h :   E p i c o r ] : 
 
         1 2 2 3 :                   $ S h i p T o A d d r e s s L i n e s   =   [ ] ; 
 
         1 2 2 4 :                   $ S h i p T o A d d r e s s N u m s   =   [ ] ; 
 
   > >   1 2 2 5 :                   $ C u s t o m e r N a m e   =   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) - > g e t E p i N a m e ( ) ; 
 
         1 2 2 6 :                   f o r e a c h ( $ S h i p T o A d d r e s s e s   a s   $ S h i p T o A d d r e s s ) 
 
         1 2 2 7 :                   { 
 
 
 
     L i n e   1 2 4 3   [ m a t c h :   E p i c o r ] : 
 
         1 2 4 1 :           / * * 
 
         1 2 4 2 :             *   @ p a r a m   S h i p m e n t C a r t   $ S h i p m e n t C a r t 
 
   > >   1 2 4 3 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e 
 
         1 2 4 4 :             *   @ p a r a m   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r 
 
         1 2 4 5 :             *   @ p a r a m   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y 
 
 
 
     L i n e   1 2 5 1   [ m a t c h :   E p i c o r ] : 
 
         1 2 4 9 :             *   @ t h r o w s   \ S a v v i o r \ D a t a \ D a t a H a n d l e r E x c e p t i o n 
 
         1 2 5 0 :             * / 
 
   > >   1 2 5 1 :           p u b l i c   f u n c t i o n   p o s t S e l e c t S h i p T o A d d r e s s ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 2 5 2 :           { 
 
         1 2 5 3 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   1 2 5 3   [ m a t c h :   E p i c o r ] : 
 
         1 2 5 1 :           p u b l i c   f u n c t i o n   p o s t S e l e c t S h i p T o A d d r e s s ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 2 5 2 :           { 
 
   > >   1 2 5 3 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 2 5 4 :   
 
         1 2 5 5 :                   $ d a t a   =   r e q u e s t ( ) - > a l l ( ) ; 
 
 
 
     L i n e   1 2 6 4   [ m a t c h :   E p i c o r ] : 
 
         1 2 6 2 :                           a b o r t ( 5 0 0 ,   ' T h e   s h i p   t o   a d d r e s s   s e l e c t e d   i s   n o t   v a l i d .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         1 2 6 3 :   
 
   > >   1 2 6 4 :                   $ S e l e c t e d S h i p T o A d d r e s s I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r S i n g l e S h i p T o A d d r e s s B y N u m ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ S h i p T o N u m ) ; 
 
         1 2 6 5 :   
 
         1 2 6 6 :                   i f ( i s _ n u l l ( $ S e l e c t e d S h i p T o A d d r e s s I n f o ) ) 
 
 
 
     L i n e   1 2 7 5   [ m a t c h :   E p i c o r ] : 
 
         1 2 7 3 :                                   ' S h i p T o S e l e c t e d '   = >   t r u e , 
 
         1 2 7 4 :                                   ' S h i p T o N u m '   = >   $ S h i p T o N u m , 
 
   > >   1 2 7 5 :                                   ' S h i p T o C u s t o m e r '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) - > g e t E p i N a m e ( ) , 
 
         1 2 7 6 :                                   ' S h i p T o N a m e '   = >   $ S e l e c t e d S h i p T o A d d r e s s I n f o [ ' S h i p T o N a m e ' ] , 
 
         1 2 7 7 :                                   ' S h i p T o A d d r e s s 1 '   = >   $ S e l e c t e d S h i p T o A d d r e s s I n f o [ ' S h i p T o A d d r e s s 1 ' ] , 
 
 
 
     L i n e   1 2 8 6   [ m a t c h :   E p i c o r ] : 
 
         1 2 8 4 :                                   ' L a s t C a r t A c t i v i t y '   = >   ( n e w   \ D a t e T i m e ( ) ) , 
 
         1 2 8 5 :                                   ' q u e s t _ C o m p a n y '   = >   [ 
 
   > >   1 2 8 6 :                                           ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) - > g e t I D ( ) 
 
         1 2 8 7 :                                   ] , 
 
         1 2 8 8 :                                   ' q u e s t _ U s e r '   = >   [ 
 
 
 
     L i n e   1 3 1 9   [ m a t c h :   E p i c o r ] : 
 
         1 3 1 7 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 3 1 8 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
   > >   1 3 1 9 :                           L o g : : e r r o r ( ' S H I P M E N T   R E Q U E S T   C A N C E L   D B   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 3 2 0 :                           a b o r t ( 5 0 0 ,   ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   c a n c e l l i n g   t h i s   s h i p m e n t   r e l e a s e .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         1 3 2 1 :                   } 
 
 
 
     L i n e   1 3 3 5   [ m a t c h :   E p i c o r ] : 
 
         1 3 3 3 :           p u b l i c   f u n c t i o n   g e t C o m p l e t e S h i p m e n t ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   \ A p p \ M o d e l \ R e p o s \ s h i p _ R e q u e s t   $ s h i p _ R e q u e s t ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 3 3 4 :           { 
 
   > >   1 3 3 5 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 3 3 6 :   
 
         1 3 3 7 :                   / * *   @ v a r   s h i p _ R e q u e s t   $ R e s u l t s   * / 
 
 
 
     L i n e   1 3 3 8   [ m a t c h :   E p i c o r ] : 
 
         1 3 3 6 :   
 
         1 3 3 7 :                   / * *   @ v a r   s h i p _ R e q u e s t   $ R e s u l t s   * / 
 
   > >   1 3 3 8 :                   $ R e s u l t s   =   $ s h i p _ R e q u e s t - > g e t O p e n S h i p m e n t W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ e p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ) ; 
 
         1 3 3 9 :   
 
         1 3 4 0 :                   $ L i n e I t e m s   =   [ ] ; 
 
 
 
     L i n e   1 3 7 2   [ m a t c h :   E p i c o r ] : 
 
         1 3 7 0 :             *   @ p a r a m   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s 
 
         1 3 7 1 :             *   @ p a r a m   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o 
 
   > >   1 3 7 2 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e 
 
         1 3 7 3 :             *   @ p a r a m   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y 
 
         1 3 7 4 :             *   @ p a r a m   D a t a H a n d l e r   $ D a t a H a n d l e r 
 
 
 
     L i n e   1 3 8 1   [ m a t c h :   E p i c o r ] : 
 
         1 3 7 9 :             *   @ t h r o w s   \ T h r o w a b l e 
 
         1 3 8 0 :             * / 
 
   > >   1 3 8 1 :           p u b l i c   f u n c t i o n   p o s t C o m p l e t e S h i p m e n t ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   S h i p m e n t R e l e a s e H e l p e r   $ S h i p m e n t R e l e a s e H e l p e r ,   p a i n t _ P l a n t   $ p a i n t _ P l a n t R e p o ) 
 
         1 3 8 2 :           { 
 
         1 3 8 3 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   1 4 0 4   [ m a t c h :   E p i c o r ] : 
 
         1 4 0 2 :   
 
         1 4 0 3 :                   t r y   { 
 
   > >   1 4 0 4 :                           $ P l a n t U s e r E m a i l s   =   $ E p i c o r D a t a b a s e - > g e t P l a n t U s e r E m a i l A d d r e s s e s ( $ S h i p m e n t C a r t - > g e t P l a n t ( ) ) ; 
 
         1 4 0 5 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         1 4 0 6 :                           L o g : : e r r o r ( ' C o u l d   n o t   c o m p l e t e   s h i p m e n t   r e l e a s e   b e c a u s e   c o u l d   n o t   g e t   p l a n t   e m a i l s   f o r   ' . $ S h i p m e n t C a r t - > g e t P l a n t ( ) . '   ( ' . $ S h i p m e n t C a r t - > g e t C a r t I D ( ) . ' ) ' ) ; 
 
 
 
     L i n e   1 4 7 0   [ m a t c h :   E p i c o r ] : 
 
         1 4 6 8 :             *   @ p a r a m   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y 
 
         1 4 6 9 :             *   @ p a r a m   D a t a H a n d l e r   $ D a t a H a n d l e r 
 
   > >   1 4 7 0 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e 
 
         1 4 7 1 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e 
 
         1 4 7 2 :             *   @ t h r o w s   \ S a v v i o r \ D a t a \ D a t a H a n d l e r E x c e p t i o n 
 
 
 
     L i n e   1 4 7 4   [ m a t c h :   E p i c o r ] : 
 
         1 4 7 2 :             *   @ t h r o w s   \ S a v v i o r \ D a t a \ D a t a H a n d l e r E x c e p t i o n 
 
         1 4 7 3 :             * / 
 
   > >   1 4 7 4 :           p u b l i c   f u n c t i o n   p o s t A d d S h i p m e n t I t e m ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   s h i p _ R e q u e s t R e p o   $ R O S h i p m e n t R e q u e s t R e p o ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ) 
 
         1 4 7 5 :           { 
 
         1 4 7 6 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   1 4 7 9   [ m a t c h :   E p i c o r ] : 
 
         1 4 7 7 :                           a b o r t ( 5 0 0 ,   ' T h e r e   i s   n o   a c t i v e   s h i p m e n t   r e l e a s e ' ) ; 
 
         1 4 7 8 :   
 
   > >   1 4 7 9 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 4 8 0 :                   $ P a r t N u m   =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' p a r t ' ) ) ; 
 
         1 4 8 1 :                   $ P l a n t   =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' p l a n t ' ) ) ; 
 
 
 
     L i n e   1 4 8 8   [ m a t c h :   E p i c o r ] : 
 
         1 4 8 6 :                   $ S k i d   =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > i n p u t ( ' s k i d ' ) ) ; 
 
         1 4 8 7 :   
 
   > >   1 4 8 8 :                   $ P a r t D e s c r i p t i o n   =   $ E p i c o r D a t a b a s e - > g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r W i t h P a i n t C o d e ( $ e p i c o r C u s t I D , $ P a r t N u m ) ; 
 
         1 4 8 9 :   
 
         1 4 9 0 :                   i f ( i s _ n u l l ( $ L o t N u m )   | |   i s _ n u l l ( $ O n H a n d Q u a n t i t y ) ) 
 
 
 
     L i n e   1 5 0 1   [ m a t c h :   E p i c o r ] : 
 
         1 4 9 9 :                           a b o r t ( 5 0 0 ,   ' T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   s h i p m e n t   r e l e a s e ' ) ; 
 
         1 5 0 0 :                   } 
 
   > >   1 5 0 1 :                   e l s e i f ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d S h i p m e n t E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) ) 
 
         1 5 0 2 :                   { 
 
         1 5 0 3 :                           a b o r t ( 5 0 0 ,   ' T h i s   i t e m   i s   a l r e a d y   p a r t   o f   a n o t h e r   s h i p m e n t   r e l e a s e   f o r   t h i s   c u s t o m e r ' ) ; 
 
 
 
     L i n e   1 5 2 4   [ m a t c h :   E p i c o r ] : 
 
         1 5 2 2 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 5 2 3 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   1 5 2 4 :                           L o g : : e r r o r ( ' A D D I N G   I T E M   T O   S H I P M E N T   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ S h i p m e n t C a r t - > g e t C a r t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 5 2 5 :                           a b o r t ( 5 0 0 ,   ' T h e r e   w a s   a n   u n e x p e c t e d   e r r o r   a d d i n g   t h i s   i t e m   t o   y o u r   s h i p m e n t .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         1 5 2 6 :                   } 
 
 
 
     L i n e   1 5 7 1   [ m a t c h :   E p i c o r ] : 
 
         1 5 6 9 :           / * * 
 
         1 5 7 0 :             *   @ p a r a m   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o 
 
   > >   1 5 7 1 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e 
 
         1 5 7 2 :             *   @ p a r a m   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r 
 
         1 5 7 3 :             *   @ p a r a m   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s 
 
 
 
     L i n e   1 5 7 6   [ m a t c h :   E p i c o r ] : 
 
         1 5 7 4 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e 
 
         1 5 7 5 :             * / 
 
   > >   1 5 7 6 :           p u b l i c   f u n c t i o n   p o s t S h i p T o A d d r e s s I n q u i r y ( q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 5 7 7 :           { 
 
         1 5 7 8 :                   $ E m a i l I n q u i r y T o   =   $ R O E m a i l E v e n t R e p o - > g e t E m a i l s F o r A c t i v e Q u e s t U s e r s T h a t R e c e i v e E m a i l E v e n t ( ' S H I P _ T O _ A D D R E S S _ I N Q U I R Y ' ) ; 
 
 
 
     L i n e   1 5 9 1   [ m a t c h :   E p i c o r ] : 
 
         1 5 8 9 :                           a b o r t ( 5 0 0 ,   ' I n v a l i d   i n q u i r y   t y p e   p r o v i d e d ' ) ; 
 
         1 5 9 0 :   
 
   > >   1 5 9 1 :                   i f ( ( $ T y p e   = =   ' e d i t '   | |   $ T y p e   = =   ' d e l e t e ' )   & &   ( i s _ n u l l ( $ S h i p T o N u m   =   $ I D )   | |   i s _ n u l l ( $ S h i p T o I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r S i n g l e S h i p T o A d d r e s s B y N u m ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ S h i p T o N u m ) ) ) ) 
 
         1 5 9 2 :                           a b o r t ( 5 0 0 , ' T h e   s h i p   t o   a d d r e s s   f o r   y o u r   i n q u i r y   n o   l o n g e r   e x i s t s . '   ) ; 
 
         1 5 9 3 :   
 
 
 
     L i n e   1 6 1 9   [ m a t c h :   E p i c o r ] : 
 
         1 6 1 7 :   
 
         1 6 1 8 :           / * * 
 
   > >   1 6 1 9 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e 
 
         1 6 2 0 :             *   @ p a r a m   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r 
 
         1 6 2 1 :             *   @ p a r a m   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s 
 
 
 
     L i n e   1 6 2 4   [ m a t c h :   E p i c o r ] : 
 
         1 6 2 2 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e 
 
         1 6 2 3 :             * / 
 
   > >   1 6 2 4 :           p u b l i c   f u n c t i o n   g e t O p e n O r d e r s ( E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 6 2 5 :           { 
 
         1 6 2 6 :                   $ O p e n O r d e r s   =   $ E p i c o r D a t a b a s e - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ; 
 
 
 
     L i n e   1 6 2 6   [ m a t c h :   E p i c o r ] : 
 
         1 6 2 4 :           p u b l i c   f u n c t i o n   g e t O p e n O r d e r s ( E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 6 2 5 :           { 
 
   > >   1 6 2 6 :                   $ O p e n O r d e r s   =   $ E p i c o r D a t a b a s e - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ; 
 
         1 6 2 7 :   
 
         1 6 2 8 :                   r e t u r n   r e s p o n s e ( ) - > j s o n ( [ 
 
 
 
     L i n e   1 7 6 5   [ m a t c h :   E p i c o r ] : 
 
         1 7 6 3 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ i n v _ U p l o a d E n t r y [ ]   $ i n v _ U p l o a d E n t r y   * / 
 
         1 7 6 4 :                   $ i n v _ U p l o a d E n t r y   =   $ i n v _ U p l o a d E n t r y R e p o 
 
   > >   1 7 6 5 :                           - > g e t A l l I n v o i c e s F o r C u s t o m e r ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ; 
 
         1 7 6 6 :   
 
         1 7 6 7 :                   $ r e s u l t s   =   [ ] ; 
 
 
 
     L i n e   1 7 9 2   [ m a t c h :   E p i c o r ] : 
 
         1 7 9 0 :                                   ' S e n t D a t e '   = >   ! i s _ n u l l ( $ i n v _ U p l o a d E n t r y I t e m - > g e t S e n t D T ( ) )   ?   $ i n v _ U p l o a d E n t r y I t e m - > g e t S e n t D T ( ) - > f o r m a t ( ' m / d / Y ' )   :   ' ' , 
 
         1 7 9 1 :                                   ' P a i d '   = >   $ i n v _ U p l o a d E n t r y I t e m - > g e t E p i I n v c H e a d ( ) - > g e t O p e n I n v o i c e ( ) , 
 
   > >   1 7 9 2 :                                   ' D o w n l o a d L i n k '   = >   a c t i o n ( ' A P I \ W e b A p p A P I @ d o w n l o a d I n v o i c e ' ,   [ $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   e n c r y p t ( $ i n v _ U p l o a d E n t r y I t e m - > g e t I D ( ) ) ] ) 
 
         1 7 9 3 :                           ] ; 
 
         1 7 9 4 :                   } 
 
 
 
     L i n e   1 8 8 6   [ m a t c h :   E p i c o r ] : 
 
         1 8 8 4 :           p r i v a t e   f u n c t i o n   _ B O L C o n t e n t ( $ b o l N u m ,   $ i s L a s t P a g e = t r u e ) 
 
         1 8 8 5 :           { 
 
   > >   1 8 8 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         1 8 8 7 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 8 8 8 :                   $ b o l D a t a   =   $ e p i c o r e - > g e t B O L ( $ b o l N u m ) ; 
 
 
 
     L i n e   1 8 8 7   [ m a t c h :   E p i c o r ] : 
 
         1 8 8 5 :           { 
 
         1 8 8 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
   > >   1 8 8 7 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 8 8 8 :                   $ b o l D a t a   =   $ e p i c o r e - > g e t B O L ( $ b o l N u m ) ; 
 
         1 8 8 9 :                   $ b y P a c k e r   =   [ ] ; 
 
 
 
     L i n e   1 8 8 8   [ m a t c h :   E p i c o r ] : 
 
         1 8 8 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         1 8 8 7 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   1 8 8 8 :                   $ b o l D a t a   =   $ e p i c o r e - > g e t B O L ( $ b o l N u m ) ; 
 
         1 8 8 9 :                   $ b y P a c k e r   =   [ ] ; 
 
         1 8 9 0 :   
 
 
 
     L i n e   1 9 0 3   [ m a t c h :   E p i c o r ] : 
 
         1 9 0 1 :           } 
 
         1 9 0 2 :   
 
   > >   1 9 0 3 :           p u b l i c   f u n c t i o n   g e t O r d e r s P d f ( S e l e c t e d C o m p a n y P r o v i d e r   $ c o m p ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ) 
 
         1 9 0 4 :           { 
 
         1 9 0 5 :                   $ c u s t o m e r   =   $ c o m p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
 
 
     L i n e   1 9 0 5   [ m a t c h :   E p i c o r ] : 
 
         1 9 0 3 :           p u b l i c   f u n c t i o n   g e t O r d e r s P d f ( S e l e c t e d C o m p a n y P r o v i d e r   $ c o m p ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ) 
 
         1 9 0 4 :           { 
 
   > >   1 9 0 5 :                   $ c u s t o m e r   =   $ c o m p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         1 9 0 6 :                   $ d a t a   =   $ E p i c o r D a t a b a s e - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ c u s t o m e r ) ; 
 
         1 9 0 7 :                   $ f i l e N a m e   =   " J o b S t a t u s B y P l a n t B y C u s t o m e r - "   .   d a t e ( " m - d - Y " )   .   " . p d f " ; 
 
 
 
     L i n e   1 9 0 6   [ m a t c h :   E p i c o r ] : 
 
         1 9 0 4 :           { 
 
         1 9 0 5 :                   $ c u s t o m e r   =   $ c o m p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
   > >   1 9 0 6 :                   $ d a t a   =   $ E p i c o r D a t a b a s e - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ c u s t o m e r ) ; 
 
         1 9 0 7 :                   $ f i l e N a m e   =   " J o b S t a t u s B y P l a n t B y C u s t o m e r - "   .   d a t e ( " m - d - Y " )   .   " . p d f " ; 
 
         1 9 0 8 :   
 
 
 
     L i n e   1 8   [ m a t c h :   E P I C O R ] : 
 
         1 6 :   u s e   A p p \ N o t i f i c a t i o n s \ S h i p m e n t R e l e a s e R e q u e s t C a n c e l l a t i o n ; 
 
         1 7 :   u s e   A p p \ N o t i f i c a t i o n s \ S h i p T o A d d r e s s I n q u i r y ; 
 
   > >   1 8 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 9 :   u s e   A p p \ S e r v i c e s \ H i s t o r i c a l S h i p m e n t C a r t ; 
 
         2 0 :   u s e   A p p \ S e r v i c e s \ P a i n t S c h e d u l e S e r v i c e ; 
 
 
 
     L i n e   1 6 9   [ m a t c h :   E P I C O R ] : 
 
         1 6 7 :                   / * *   @ v a r   q u e s t _ C o m p a n y   $ C o m p a n y   * / 
 
         1 6 8 :                   $ C o m p a n y   =   a p p ( q u e s t _ C o m p a n y : : c l a s s ) ; 
 
   > >   1 6 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 7 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 7 1 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   1 7 0   [ m a t c h :   E P I C O R ] : 
 
         1 6 8 :                   $ C o m p a n y   =   a p p ( q u e s t _ C o m p a n y : : c l a s s ) ; 
 
         1 6 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 7 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 7 1 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 7 2 :   
 
 
 
     L i n e   1 7 1   [ m a t c h :   E P I C O R ] : 
 
         1 6 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 7 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   1 7 1 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 7 2 :   
 
         1 7 3 :                   / /   g e t   n o t i f i c a t i o n s 
 
 
 
     L i n e   1 8 4   [ m a t c h :   E P I C O R ] : 
 
         1 8 2 :   
 
         1 8 3 :                   / /   g e t   s h i p m e n t s   d a t a 
 
   > >   1 8 4 :                   $ s h i p m e n t s _ r e s u l t s   =   $ E p i c o r D B - > g e t T o p 5 S h i p m e n t s D a t a ( $ e p i c o r C u s t I D ) ; 
 
         1 8 5 :                   $ s h i p m e n t s   =   a r r a y ( ) ; 
 
         1 8 6 :                   / /   r e n a m e   t o   m a t c h   j s o n   e x p e c t e d 
 
 
 
     L i n e   2 1 4   [ m a t c h :   E P I C O R ] : 
 
         2 1 2 :   
 
         2 1 3 :                   / /   g e t   t h e   r e c e n t   p r o d u c t i o n   o r d e r s 
 
   > >   2 1 4 :                   $ p r o d u c t i o n _ r e s u l t s   =   $ E p i c o r D B - > g e t T o p 5 O r d e r s D a t a ( $ e p i c o r C u s t I D ) ; 
 
         2 1 5 :                   $ p r o d u c t i o n   =   a r r a y ( ) ; 
 
         2 1 6 :   
 
 
 
     L i n e   2 7 6   [ m a t c h :   E P I C O R ] : 
 
         2 7 4 :           { 
 
         2 7 5 :                   / /   v a r i a b l e   i n i t 
 
   > >   2 7 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 7 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 7 8 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   2 7 7   [ m a t c h :   E P I C O R ] : 
 
         2 7 5 :                   / /   v a r i a b l e   i n i t 
 
         2 7 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 7 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 7 8 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         2 7 9 :                   $ t y p e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' t y p e ' ) ; 
 
 
 
     L i n e   2 7 8   [ m a t c h :   E P I C O R ] : 
 
         2 7 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 7 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   2 7 8 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         2 7 9 :                   $ t y p e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' t y p e ' ) ; 
 
         2 8 0 :                   $ r a w _ d a t a   =   n u l l ; 
 
 
 
     L i n e   2 8 8   [ m a t c h :   E P I C O R ] : 
 
         2 8 6 :                   { 
 
         2 8 7 :                           c a s e   " u n p r o c e s s e d " : 
 
   > >   2 8 8 :                                   $ r a w _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d S u m m a r y D a t a ( $ e p i c o r C u s t I D ) ; 
 
         2 8 9 :                                   $ s o u r c e   =   " p o r t a l _ U n p r o c e s s e d I n v e n t o r y S u m m a r y " ; 
 
         2 9 0 :                                   b r e a k ; 
 
 
 
     L i n e   2 9 3   [ m a t c h :   E P I C O R ] : 
 
         2 9 1 :   
 
         2 9 2 :                           c a s e   " u n p r o c e s s e d r r " : 
 
   > >   2 9 3 :                                   $ r a w _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ( $ e p i c o r C u s t I D ) ; 
 
         2 9 4 :                                   $ s o u r c e   =   " p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y " ; 
 
         2 9 5 :                                   b r e a k ; 
 
 
 
     L i n e   2 9 8   [ m a t c h :   E P I C O R ] : 
 
         2 9 6 :   
 
         2 9 7 :                           c a s e   ' w i p ' : 
 
   > >   2 9 8 :                                   $ r a w _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a ( $ e p i c o r C u s t I D ) ; 
 
         2 9 9 :                                   $ s o u r c e   =   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' ; 
 
         3 0 0 :                                   b r e a k ; 
 
 
 
     L i n e   3 0 3   [ m a t c h :   E P I C O R ] : 
 
         3 0 1 :   
 
         3 0 2 :                           c a s e   " f g " : 
 
   > >   3 0 3 :                                   $ r a w _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a ( $ e p i c o r C u s t I D ) ; 
 
         3 0 4 :                                   $ s o u r c e   =   " p o r t a l _ P r o c e s s e d I n v e n t o r y S u m m a r y " ; 
 
         3 0 5 :                                   b r e a k ; 
 
 
 
     L i n e   3 0 8   [ m a t c h :   E P I C O R ] : 
 
         3 0 6 :   
 
         3 0 7 :                           c a s e   ' p r o c e s s e d o t h e r ' : 
 
   > >   3 0 8 :                                   $ r a w _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a ( $ e p i c o r C u s t I D ) ; 
 
         3 0 9 :                                   $ s o u r c e   =   " p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y " ; 
 
         3 1 0 :                                   b r e a k ; 
 
 
 
     L i n e   3 1 3   [ m a t c h :   E P I C O R ] : 
 
         3 1 1 :   
 
         3 1 2 :                           c a s e   " p r o c e s s e d r r " : 
 
   > >   3 1 3 :                                   $ r a w _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R S u m m a r y D a t a ( $ e p i c o r C u s t I D ) ; 
 
         3 1 4 :                                   $ s o u r c e   =   " p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y " ; 
 
         3 1 5 :                                   b r e a k ; 
 
 
 
     L i n e   3 5 3   [ m a t c h :   E P I C O R ] : 
 
         3 5 1 :           / * * 
 
         3 5 2 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e 
 
   > >   3 5 3 :             *   @ t h r o w s   \ A p p \ E x c e p t i o n s \ N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         3 5 4 :             * / 
 
         3 5 5 :           p u b l i c   f u n c t i o n   i n v e n t o r y D e t a i l s ( )   { 
 
 
 
     L i n e   3 6 1   [ m a t c h :   E P I C O R ] : 
 
         3 5 9 :   
 
         3 6 0 :                   / /   v a r i a b l e   i n i t 
 
   > >   3 6 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 6 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 6 3 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   3 6 2   [ m a t c h :   E P I C O R ] : 
 
         3 6 0 :                   / /   v a r i a b l e   i n i t 
 
         3 6 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 6 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 6 3 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         3 6 4 :                   $ e n c o d e d I D   =   r e q u e s t ( ) - > i s M e t h o d ( ' p o s t ' )   ?   r e q u e s t ( ) - > i n p u t ( ' i d ' )   :   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' i d ' ) ; 
 
 
 
     L i n e   3 6 3   [ m a t c h :   E P I C O R ] : 
 
         3 6 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 6 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   3 6 3 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         3 6 4 :                   $ e n c o d e d I D   =   r e q u e s t ( ) - > i s M e t h o d ( ' p o s t ' )   ?   r e q u e s t ( ) - > i n p u t ( ' i d ' )   :   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' i d ' ) ; 
 
         3 6 5 :                   $ t y p e   =   " " ; 
 
 
 
     L i n e   3 8 4   [ m a t c h :   E P I C O R ] : 
 
         3 8 2 :                   { 
 
         3 8 3 :                           c a s e   " p o r t a l _ U n p r o c e s s e d I n v e n t o r y S u m m a r y " : 
 
   > >   3 8 4 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 8 5 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 8 6 :                                   $ t y p e   =   " U n p r o c e s s e d " ; 
 
 
 
     L i n e   3 8 5   [ m a t c h :   E P I C O R ] : 
 
         3 8 3 :                           c a s e   " p o r t a l _ U n p r o c e s s e d I n v e n t o r y S u m m a r y " : 
 
         3 8 4 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
   > >   3 8 5 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 8 6 :                                   $ t y p e   =   " U n p r o c e s s e d " ; 
 
         3 8 7 :                                   b r e a k ; 
 
 
 
     L i n e   3 8 9   [ m a t c h :   E P I C O R ] : 
 
         3 8 7 :                                   b r e a k ; 
 
         3 8 8 :                           c a s e   " p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y " : 
 
   > >   3 8 9 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 9 0 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 9 1 :                                   $ t y p e   =   " U n p r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) " ; 
 
 
 
     L i n e   3 9 0   [ m a t c h :   E P I C O R ] : 
 
         3 8 8 :                           c a s e   " p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y " : 
 
         3 8 9 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
   > >   3 9 0 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 9 1 :                                   $ t y p e   =   " U n p r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) " ; 
 
         3 9 2 :                                   b r e a k ; 
 
 
 
     L i n e   3 9 4   [ m a t c h :   E P I C O R ] : 
 
         3 9 2 :                                   b r e a k ; 
 
         3 9 3 :                           c a s e   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' : 
 
   > >   3 9 4 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 9 5 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 9 6 :                                   $ t y p e   =   " W o r k   I n   P r o g r e s s " ; 
 
 
 
     L i n e   3 9 5   [ m a t c h :   E P I C O R ] : 
 
         3 9 3 :                           c a s e   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' : 
 
         3 9 4 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
   > >   3 9 5 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         3 9 6 :                                   $ t y p e   =   " W o r k   I n   P r o g r e s s " ; 
 
         3 9 7 :                                   b r e a k ; 
 
 
 
     L i n e   3 9 9   [ m a t c h :   E P I C O R ] : 
 
         3 9 7 :                                   b r e a k ; 
 
         3 9 8 :                           c a s e   " p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y S u m m a r y " : 
 
   > >   3 9 9 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 0 0 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 0 1 :                                   $ t y p e   =   " F i n i s h e d   G o o d s " ; 
 
 
 
     L i n e   4 0 0   [ m a t c h :   E P I C O R ] : 
 
         3 9 8 :                           c a s e   " p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y S u m m a r y " : 
 
         3 9 9 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
   > >   4 0 0 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 0 1 :                                   $ t y p e   =   " F i n i s h e d   G o o d s " ; 
 
         4 0 2 :                                   b r e a k ; 
 
 
 
     L i n e   4 0 4   [ m a t c h :   E P I C O R ] : 
 
         4 0 2 :                                   b r e a k ; 
 
         4 0 3 :                           c a s e   " p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y " : 
 
   > >   4 0 4 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 0 5 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 0 6 :                                   $ t y p e   =   " P r o c e s s e d   -   O t h e r " ; 
 
 
 
     L i n e   4 0 5   [ m a t c h :   E P I C O R ] : 
 
         4 0 3 :                           c a s e   " p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y " : 
 
         4 0 4 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
   > >   4 0 5 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 0 6 :                                   $ t y p e   =   " P r o c e s s e d   -   O t h e r " ; 
 
         4 0 7 :                                   b r e a k ; 
 
 
 
     L i n e   4 0 9   [ m a t c h :   E P I C O R ] : 
 
         4 0 7 :                                   b r e a k ; 
 
         4 0 8 :                           c a s e   " p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y " : 
 
   > >   4 0 9 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 1 0 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 1 1 :                                   $ t y p e   =   " P r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) " ; 
 
 
 
     L i n e   4 1 0   [ m a t c h :   E P I C O R ] : 
 
         4 0 8 :                           c a s e   " p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y " : 
 
         4 0 9 :                                   $ i n v e n t o r y _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R D e t a i l s D a t a ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
   > >   4 1 0 :                                   $ h e a d e r _ d e t a i l s _ d a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R S u m m a r y D a t a _ D e t a i l s ( $ e p i c o r C u s t I D ,   $ p a r t N u m ,   $ p l a n t ,   $ w a r e h o u s e ) ; 
 
         4 1 1 :                                   $ t y p e   =   " P r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) " ; 
 
         4 1 2 :                                   b r e a k ; 
 
 
 
     L i n e   4 8 8   [ m a t c h :   E P I C O R ] : 
 
         4 8 6 :   
 
         4 8 7 :                   / /   v a r i a b l e   i n i t 
 
   > >   4 8 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 8 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 9 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   4 8 9   [ m a t c h :   E P I C O R ] : 
 
         4 8 7 :                   / /   v a r i a b l e   i n i t 
 
         4 8 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 8 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 9 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         4 9 1 :                   $ j o b N u m b e r   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m b e r ' ) ; 
 
 
 
     L i n e   4 9 0   [ m a t c h :   E P I C O R ] : 
 
         4 8 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 8 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   4 9 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         4 9 1 :                   $ j o b N u m b e r   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m b e r ' ) ; 
 
         4 9 2 :   
 
 
 
     L i n e   4 9 3   [ m a t c h :   E P I C O R ] : 
 
         4 9 1 :                   $ j o b N u m b e r   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m b e r ' ) ; 
 
         4 9 2 :   
 
   > >   4 9 3 :                   $ c o i l _ b y _ c o i l _ r e s u l t s   =   $ E p i c o r D B - > g e t C o i l B y C o i l ( $ j o b N u m b e r ,   $ e p i c o r C u s t I D ) ; 
 
         4 9 4 :   
 
         4 9 5 :                   / /   f o r m a t   a s   j s o n   e x p e c t e d 
 
 
 
     L i n e   5 3 2   [ m a t c h :   E P I C O R ] : 
 
         5 3 0 :             p u b l i c   f u n c t i o n   g e t C o i l B y C o i l P d f ( R e q u e s t   $ r e q u e s t ) 
 
         5 3 1 :             { 
 
   > >   5 3 2 :                     $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         5 3 3 :                     $ j o b _ n u m   =   $ r e q u e s t - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m ' ) ; 
 
         5 3 4 :   
 
 
 
     L i n e   5 3 8   [ m a t c h :   E P I C O R ] : 
 
         5 3 6 :                             $ j o b _ n u m   =   b a s e 6 4 _ d e c o d e ( $ j o b _ n u m ) ; 
 
         5 3 7 :   
 
   > >   5 3 8 :                     / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         5 3 9 :                     $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 4 0 :                     $ C o i l B y C o i l D a t a   =   $ e p i c o r e - > g e t C o i l B y C o i l ( $ j o b _ n u m , $ e p i c o r C u s t I D ) ; 
 
 
 
     L i n e   5 3 9   [ m a t c h :   E P I C O R ] : 
 
         5 3 7 :   
 
         5 3 8 :                     / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
   > >   5 3 9 :                     $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 4 0 :                     $ C o i l B y C o i l D a t a   =   $ e p i c o r e - > g e t C o i l B y C o i l ( $ j o b _ n u m , $ e p i c o r C u s t I D ) ; 
 
         5 4 1 :   
 
 
 
     L i n e   5 4 0   [ m a t c h :   E P I C O R ] : 
 
         5 3 8 :                     / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         5 3 9 :                     $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   5 4 0 :                     $ C o i l B y C o i l D a t a   =   $ e p i c o r e - > g e t C o i l B y C o i l ( $ j o b _ n u m , $ e p i c o r C u s t I D ) ; 
 
         5 4 1 :   
 
         5 4 2 :                     $ P a r t H e a d e r s   = [ ] ; 
 
 
 
     L i n e   8 5 0   [ m a t c h :   E P I C O R ] : 
 
         8 4 8 :           	         / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t L i n e   $ P a i n t L i n e   * / 
 
         8 4 9 :           	         f o r e a c h   ( $ P a i n t P l a n t - > g e t P a i n t P l a n t L i n e ( )   A S   $ P a i n t L i n e ) 
 
   > >   8 5 0 :           	                 $ L i n e s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( )   .   ' - '   .   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ]   =   [ ' i d '   = >   $ P a i n t P l a n t - > g e t E p i c o r K e y ( )   .   ' - '   .   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ,   ' n a m e '   = >   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t N a m e ( ) ,   ' c a t e g o r y '   = >   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t P a i n t L i n e T y p e ( ) - > g e t T y p e ( ) ] ; 
 
         8 5 1 :           	         a r r a y _ m u l t i s o r t ( a r r a y _ m a p ( f u n c t i o n ( $ e l e m e n t )   { 
 
         8 5 2 :           	                 r e t u r n   $ e l e m e n t [ ' n a m e ' ] ; 
 
 
 
     L i n e   8 5 5   [ m a t c h :   E P I C O R ] : 
 
         8 5 3 :           	         } ,   $ L i n e s ) ,   S O R T _ A S C ,   $ L i n e s ) ; 
 
         8 5 4 :   
 
   > >   8 5 5 :           	         $ p l a n t s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ]   =   [ ' i d '   = >   $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ,   ' o f f s e t '   = >   $ P a i n t P l a n t - > g e t T i m e Z o n e M o d i f i e r ( ) ,   ' c a n _ e d i t '   = >   i s s e t ( $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ] ) ,   ' n a m e '   = >   $ P a i n t P l a n t - > g e t N a m e ( ) ,   ' l i n e s '   = >   $ L i n e s ] ; 
 
         8 5 6 :           	 } 
 
         8 5 7 :   
 
 
 
     L i n e   8 7 4   [ m a t c h :   E P I C O R ] : 
 
         8 7 2 :   
 
         8 7 3 :                   / /   v a r i a b l e   i n i t 
 
   > >   8 7 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         8 7 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 7 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   8 7 5   [ m a t c h :   E P I C O R ] : 
 
         8 7 3 :                   / /   v a r i a b l e   i n i t 
 
         8 7 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   8 7 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 7 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         8 7 7 :                   $ s t a r t D a t e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' s t a r t ' ) ; 
 
 
 
     L i n e   8 7 6   [ m a t c h :   E P I C O R ] : 
 
         8 7 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         8 7 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   8 7 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         8 7 7 :                   $ s t a r t D a t e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' s t a r t ' ) ; 
 
         8 7 8 :                   $ e n d D a t e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e n d ' ) ; 
 
 
 
     L i n e   8 8 1   [ m a t c h :   E P I C O R ] : 
 
         8 7 9 :   
 
         8 8 0 :                   / /   g e t   t h e   c o i l   a c t i v i t y   d a t a 
 
   > >   8 8 1 :                   $ u s a g e s _ d a t a   =   $ E p i c o r D B - > g e t C o i l A c t i v i t y U s a g e D a t a ( $ e p i c o r C u s t I D ,   $ s t a r t D a t e ,   $ e n d D a t e ) ; 
 
         8 8 2 :                   $ u s a g e s   =   a r r a y ( ) ; 
 
         8 8 3 :   
 
 
 
     L i n e   9 0 4   [ m a t c h :   E P I C O R ] : 
 
         9 0 2 :   	   	 r e t u r n   r e s p o n s e ( ) - > j s o n ( [ 
 
         9 0 3 :   	   	 	 ' u s a g e s '   = >   $ u s a g e s , 
 
   > >   9 0 4 :   	   	 	 ' i d '   = >   $ e p i c o r C u s t I D , 
 
         9 0 5 :   	   	 	 ' s t a r t '   = >   $ s t a r t D a t e , 
 
         9 0 6 :   	   	 	 ' e n d '   = >   $ e n d D a t e 
 
 
 
     L i n e   9 1 8   [ m a t c h :   E P I C O R ] : 
 
         9 1 6 :   
 
         9 1 7 :                   / /   v a r i a b l e   i n i t 
 
   > >   9 1 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         9 1 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         9 2 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   9 1 9   [ m a t c h :   E P I C O R ] : 
 
         9 1 7 :                   / /   v a r i a b l e   i n i t 
 
         9 1 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   9 1 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         9 2 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         9 2 1 :                   $ s t a r t D a t e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' s t a r t ' ) ; / / 
 
 
 
     L i n e   9 2 0   [ m a t c h :   E P I C O R ] : 
 
         9 1 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         9 1 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   9 2 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         9 2 1 :                   $ s t a r t D a t e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' s t a r t ' ) ; / / 
 
         9 2 2 :                   $ e n d D a t e   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e n d ' ) ; / / 
 
 
 
     L i n e   9 2 5   [ m a t c h :   E P I C O R ] : 
 
         9 2 3 :   
 
         9 2 4 :                   / /   g e t   t h e   c o i l   a c t i v i t y 
 
   > >   9 2 5 :                   $ r e c e i p t s _ d a t a   =   $ E p i c o r D B - > g e t C o i l A c t i v i t y R e c e i p t s D a t a ( $ e p i c o r C u s t I D ,   $ s t a r t D a t e ,   $ e n d D a t e ) ; 
 
         9 2 6 :                   $ r e c e i p t s   =   a r r a y ( ) ; 
 
         9 2 7 :   
 
 
 
     L i n e   9 5 1   [ m a t c h :   E P I C O R ] : 
 
         9 4 9 :   	   	 r e t u r n   r e s p o n s e ( ) - > j s o n ( [ 
 
         9 5 0 :   	   	 	 ' r e c e i p t s '   = >   $ r e c e i p t s , 
 
   > >   9 5 1 :   	   	 	 ' i d '   = >   $ e p i c o r C u s t I D , 
 
         9 5 2 :   	   	 	 ' s t a r t '   = >   $ s t a r t D a t e , 
 
         9 5 3 :   	   	 	 ' e n d '   = >   $ e n d D a t e 
 
 
 
     L i n e   9 6 7   [ m a t c h :   E P I C O R ] : 
 
         9 6 5 :                   / * *   @ v a r   s h i p _ R e q u e s t R e p o   $ S h i p R e q u e s t   * / 
 
         9 6 6 :                   $ S h i p R e q u e s t   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
   > >   9 6 7 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         9 6 8 :   
 
         9 6 9 :                   / /   g e t   t h e   s h i p   r e q u e s t   d a t a 
 
 
 
     L i n e   9 7 0   [ m a t c h :   E P I C O R ] : 
 
         9 6 8 :   
 
         9 6 9 :                   / /   g e t   t h e   s h i p   r e q u e s t   d a t a 
 
   > >   9 7 0 :                   $ r e l e a s e s _ d a t a   =   $ S h i p R e q u e s t - > g e t S h i p m e n t R e l e a s e D a t a ( $ e p i c o r C u s t I D ) ; 
 
         9 7 1 :                   $ r e l e a s e s   =   a r r a y ( ) ; 
 
         9 7 2 :   
 
 
 
     L i n e   9 9 2   [ m a t c h :   E P I C O R ] : 
 
         9 9 0 :   	   	 r e t u r n   r e s p o n s e ( ) - > j s o n ( [ 
 
         9 9 1 :   	   	 	 ' r e l e a s e s '   = >   $ r e l e a s e s , 
 
   > >   9 9 2 :   	   	 	 ' i d '   = >   $ e p i c o r C u s t I D 
 
         9 9 3 :   	   	 ] ) ; 
 
         9 9 4 :           } 
 
 
 
     L i n e   1 0 0 6   [ m a t c h :   E P I C O R ] : 
 
         1 0 0 4 :                   / * *   @ v a r   s h i p _ R e q u e s t R e p o   $ S h i p R e q u e s t   * / 
 
         1 0 0 5 :                   $ S h i p R e q u e s t   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
   > >   1 0 0 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 0 0 7 :   
 
         1 0 0 8 :                   $ i n c l u d e I n c o m p l e t e S h i p m e n t s   =   r e q u e s t ( ) - > e x i s t s ( ' i n c o m p l e t e _ s h i p m e n t s ' )   ?   r e q u e s t ( ) - > q u e r y ( ' i n c o m p l e t e _ s h i p m e n t s ' )   :   f a l s e ; 
 
 
 
     L i n e   1 0 1 3   [ m a t c h :   E P I C O R ] : 
 
         1 0 1 1 :   
 
         1 0 1 2 :                   / * *   @ v a r   s h i p _ R e q u e s t   $ d e t a i l s _ d a t a   * / 
 
   > >   1 0 1 3 :                   $ d   =   $ S h i p R e q u e s t - > g e t S h i p m e n t R e l e a s e D e t a i l s D a t a B y I D ( $ e p i c o r C u s t I D ,   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' i d ' ) ) ; 
 
         1 0 1 4 :   
 
         1 0 1 5 :                   / * *   @ v a r   s h i p _ R e q u e s t R e p o   $ R O S h i p m e n t R e q u e s t R e p o   * / 
 
 
 
     L i n e   1 1 0 2   [ m a t c h :   E P I C O R ] : 
 
         1 1 0 0 :             *   @ p a r a m   S h i p m e n t C a r t   $ S h i p m e n t C a r t 
 
         1 1 0 1 :             *   @ p a r a m   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s 
 
   > >   1 1 0 2 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D B 
 
         1 1 0 3 :             *   @ p a r a m   q u e s t _ C o m p a n y   $ C o m p a n y R e p o 
 
         1 1 0 4 :             *   @ p a r a m   s h i p _ R e q u e s t R e p o   $ s h i p _ R e q u e s t 
 
 
 
     L i n e   1 1 0 8   [ m a t c h :   E P I C O R ] : 
 
         1 1 0 6 :             *   @ t h r o w s   \ D o c t r i n e \ O R M \ N o n U n i q u e R e s u l t E x c e p t i o n 
 
         1 1 0 7 :             * / 
 
   > >   1 1 0 8 :           p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e I n f o r m a t i o n ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   E p i c o r D a t a b a s e   $ E p i c o r D B ,   q u e s t _ C o m p a n y   $ C o m p a n y R e p o ,   \ A p p \ M o d e l \ R e p o s \ s h i p _ R e q u e s t   $ s h i p _ R e q u e s t ) 
 
         1 1 0 9 :           { 
 
         1 1 1 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   1 1 1 0   [ m a t c h :   E P I C O R ] : 
 
         1 1 0 8 :           p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e I n f o r m a t i o n ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   E p i c o r D a t a b a s e   $ E p i c o r D B ,   q u e s t _ C o m p a n y   $ C o m p a n y R e p o ,   \ A p p \ M o d e l \ R e p o s \ s h i p _ R e q u e s t   $ s h i p _ R e q u e s t ) 
 
         1 1 0 9 :           { 
 
   > >   1 1 1 0 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 1 1 1 :   
 
         1 1 1 2 :   
 
 
 
     L i n e   1 1 1 7   [ m a t c h :   E P I C O R ] : 
 
         1 1 1 5 :   
 
         1 1 1 6 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y   $ C u s t o m e r   * / 
 
   > >   1 1 1 7 :                   $ C o m p a n y   =   $ C o m p a n y R e p o - > f i n d O n e B y ( [ ' E p i c o r C u s t I D '   = >   $ e p i c o r C u s t I D ] ) ; 
 
         1 1 1 8 :   
 
         1 1 1 9 :                   $ S h i p T o D a t a   =   $ S h i p m e n t C a r t - > g e t S h i p T o A d d r e s s D a t a ( ) ; 
 
 
 
     L i n e   1 1 2 3   [ m a t c h :   E P I C O R ] : 
 
         1 1 2 1 :                   i f ( $ S h i p T o D a t a   ! = =   n u l l   & &   c o u n t ( $ S h i p T o D a t a )   >   0   & &   i s s e t ( $ S h i p T o D a t a [ ' S h i p T o N u m ' ] ) ) 
 
         1 1 2 2 :                   { 
 
   > >   1 1 2 3 :                           $ S e l e c t e d S h i p T o A d d r e s s I n f o   =   S h i p m e n t C a r t : : c o n v e r t S h i p m e n t S h i p T o A d d r e s s D a t a T o L i n e s ( $ E p i c o r D B - > g e t C u s t o m e r S i n g l e S h i p T o A d d r e s s B y N u m ( $ e p i c o r C u s t I D ,   $ S h i p T o D a t a [ ' S h i p T o N u m ' ] ) ) ; 
 
         1 1 2 4 :                   } 
 
         1 1 2 5 :   
 
 
 
     L i n e   1 1 2 7   [ m a t c h :   E P I C O R ] : 
 
         1 1 2 5 :   
 
         1 1 2 6 :                   / * *   @ v a r   s h i p _ R e q u e s t   $ R e s u l t s   * / 
 
   > >   1 1 2 7 :                   $ R e s u l t s   =   $ s h i p _ R e q u e s t - > g e t O p e n S h i p m e n t W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ e p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ) ; 
 
         1 1 2 8 :                   $ T o t a l S h i p m e n t L b s   =   0 ; 
 
         1 1 2 9 :   
 
 
 
     L i n e   1 1 6 6   [ m a t c h :   E P I C O R ] : 
 
         1 1 6 4 :           p u b l i c   f u n c t i o n   p o s t S t a r t S h i p m e n t ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ) 
 
         1 1 6 5 :           { 
 
   > >   1 1 6 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 1 6 7 :   
 
         1 1 6 8 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t A v a i l a b l e ( ) ) 
 
 
 
     L i n e   1 1 7 4   [ m a t c h :   E P I C O R ] : 
 
         1 1 7 2 :                           a b o r t ( 5 0 0 ,   ' A   s h i p m e n t   r e l e a s e   c a n n o t   b e   s t a r t e d   f o r   t h i s   c u s t o m e r   a s   t h e r e   i s   a l r e a d y   o n e   i n   p r o g r e s s ' ) ; 
 
         1 1 7 3 :   
 
   > >   1 1 7 4 :                   i f ( ! $ S e l e c t e d C o m p a n y P r o v i d e r - > s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) ) 
 
         1 1 7 5 :                           a b o r t ( 5 0 0 ,   ' P l e a s e   s e l e c t   a   c u s t o m e r   b e f o r e   s t a r t i n g   a   s h i p m e n t   r e l e a s e ' ) ; 
 
         1 1 7 6 :   
 
 
 
     L i n e   1 1 8 2   [ m a t c h :   E P I C O R ] : 
 
         1 1 8 0 :                   t r y   { 
 
         1 1 8 1 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
   > >   1 1 8 2 :                                   ' q u e s t _ C o m p a n y '   = >   [ ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) - > g e t I D ( ) ] , 
 
         1 1 8 3 :                                   ' q u e s t _ U s e r '   = >   [ ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ] , 
 
         1 1 8 4 :                                   ' O p e n C a r t C o n s t r a i n t '   = >   t r u e , 
 
 
 
     L i n e   1 1 9 8   [ m a t c h :   E P I C O R ] : 
 
         1 1 9 6 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         1 1 9 7 :   
 
   > >   1 1 9 8 :                           L o g : : e r r o r ( ' S H I P M E N T   R E Q U E S T   S T A R T   D B   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 1 9 9 :                           a b o r t ( 5 0 0 ,   ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   s t a r t i n g   t h i s   s h i p m e n t   r e l e a s e .   P l e a s e   t r y   a g a i n . ' ) ; 
 
         1 2 0 0 :   
 
 
 
     L i n e   1 2 0 8   [ m a t c h :   E P I C O R ] : 
 
         1 2 0 6 :           / * * 
 
         1 2 0 7 :             *   @ p a r a m   S h i p m e n t C a r t   $ S h i p m e n t C a r t 
 
   > >   1 2 0 8 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e 
 
         1 2 0 9 :             *   @ p a r a m   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r 
 
         1 2 1 0 :             *   @ p a r a m   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s 
 
 
 
     L i n e   1 2 1 4   [ m a t c h :   E P I C O R ] : 
 
         1 2 1 2 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e 
 
         1 2 1 3 :             * / 
 
   > >   1 2 1 4 :           p u b l i c   f u n c t i o n   g e t S e l e c t S h i p T o A d d r e s s ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ) 
 
         1 2 1 5 :           { 
 
         1 2 1 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   1 2 1 6   [ m a t c h :   E P I C O R ] : 
 
         1 2 1 4 :           p u b l i c   f u n c t i o n   g e t S e l e c t S h i p T o A d d r e s s ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ) 
 
         1 2 1 5 :           { 
 
   > >   1 2 1 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 2 1 7 :   
 
         1 2 1 8 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   1 2 2 1   [ m a t c h :   E P I C O R ] : 
 
         1 2 1 9 :                           a b o r t ( 5 0 0 ,   ' T h i s   s h i p m e n t   r e l e a s e   c o u l d   n o t   b e   s t a r t e d   a t   t h i s   t i m e ' ) ; 
 
         1 2 2 0 :   
 
   > >   1 2 2 1 :                   $ S h i p T o A d d r e s s e s   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r S h i p T o A d d r e s s e s ( $ e p i c o r C u s t I D ) ; 
 
         1 2 2 2 :   
 
         1 2 2 3 :                   $ S h i p T o A d d r e s s L i n e s   =   [ ] ; 
 
 
 
     L i n e   1 2 2 5   [ m a t c h :   E P I C O R ] : 
 
         1 2 2 3 :                   $ S h i p T o A d d r e s s L i n e s   =   [ ] ; 
 
         1 2 2 4 :                   $ S h i p T o A d d r e s s N u m s   =   [ ] ; 
 
   > >   1 2 2 5 :                   $ C u s t o m e r N a m e   =   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) - > g e t E p i N a m e ( ) ; 
 
         1 2 2 6 :                   f o r e a c h ( $ S h i p T o A d d r e s s e s   a s   $ S h i p T o A d d r e s s ) 
 
         1 2 2 7 :                   { 
 
 
 
     L i n e   1 2 4 3   [ m a t c h :   E P I C O R ] : 
 
         1 2 4 1 :           / * * 
 
         1 2 4 2 :             *   @ p a r a m   S h i p m e n t C a r t   $ S h i p m e n t C a r t 
 
   > >   1 2 4 3 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e 
 
         1 2 4 4 :             *   @ p a r a m   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r 
 
         1 2 4 5 :             *   @ p a r a m   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y 
 
 
 
     L i n e   1 2 5 1   [ m a t c h :   E P I C O R ] : 
 
         1 2 4 9 :             *   @ t h r o w s   \ S a v v i o r \ D a t a \ D a t a H a n d l e r E x c e p t i o n 
 
         1 2 5 0 :             * / 
 
   > >   1 2 5 1 :           p u b l i c   f u n c t i o n   p o s t S e l e c t S h i p T o A d d r e s s ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 2 5 2 :           { 
 
         1 2 5 3 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   1 2 5 3   [ m a t c h :   E P I C O R ] : 
 
         1 2 5 1 :           p u b l i c   f u n c t i o n   p o s t S e l e c t S h i p T o A d d r e s s ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 2 5 2 :           { 
 
   > >   1 2 5 3 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 2 5 4 :   
 
         1 2 5 5 :                   $ d a t a   =   r e q u e s t ( ) - > a l l ( ) ; 
 
 
 
     L i n e   1 2 6 4   [ m a t c h :   E P I C O R ] : 
 
         1 2 6 2 :                           a b o r t ( 5 0 0 ,   ' T h e   s h i p   t o   a d d r e s s   s e l e c t e d   i s   n o t   v a l i d .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         1 2 6 3 :   
 
   > >   1 2 6 4 :                   $ S e l e c t e d S h i p T o A d d r e s s I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r S i n g l e S h i p T o A d d r e s s B y N u m ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ S h i p T o N u m ) ; 
 
         1 2 6 5 :   
 
         1 2 6 6 :                   i f ( i s _ n u l l ( $ S e l e c t e d S h i p T o A d d r e s s I n f o ) ) 
 
 
 
     L i n e   1 2 7 5   [ m a t c h :   E P I C O R ] : 
 
         1 2 7 3 :                                   ' S h i p T o S e l e c t e d '   = >   t r u e , 
 
         1 2 7 4 :                                   ' S h i p T o N u m '   = >   $ S h i p T o N u m , 
 
   > >   1 2 7 5 :                                   ' S h i p T o C u s t o m e r '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) - > g e t E p i N a m e ( ) , 
 
         1 2 7 6 :                                   ' S h i p T o N a m e '   = >   $ S e l e c t e d S h i p T o A d d r e s s I n f o [ ' S h i p T o N a m e ' ] , 
 
         1 2 7 7 :                                   ' S h i p T o A d d r e s s 1 '   = >   $ S e l e c t e d S h i p T o A d d r e s s I n f o [ ' S h i p T o A d d r e s s 1 ' ] , 
 
 
 
     L i n e   1 2 8 6   [ m a t c h :   E P I C O R ] : 
 
         1 2 8 4 :                                   ' L a s t C a r t A c t i v i t y '   = >   ( n e w   \ D a t e T i m e ( ) ) , 
 
         1 2 8 5 :                                   ' q u e s t _ C o m p a n y '   = >   [ 
 
   > >   1 2 8 6 :                                           ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) - > g e t I D ( ) 
 
         1 2 8 7 :                                   ] , 
 
         1 2 8 8 :                                   ' q u e s t _ U s e r '   = >   [ 
 
 
 
     L i n e   1 3 1 9   [ m a t c h :   E P I C O R ] : 
 
         1 3 1 7 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 3 1 8 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
   > >   1 3 1 9 :                           L o g : : e r r o r ( ' S H I P M E N T   R E Q U E S T   C A N C E L   D B   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 3 2 0 :                           a b o r t ( 5 0 0 ,   ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   c a n c e l l i n g   t h i s   s h i p m e n t   r e l e a s e .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         1 3 2 1 :                   } 
 
 
 
     L i n e   1 3 3 5   [ m a t c h :   E P I C O R ] : 
 
         1 3 3 3 :           p u b l i c   f u n c t i o n   g e t C o m p l e t e S h i p m e n t ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   \ A p p \ M o d e l \ R e p o s \ s h i p _ R e q u e s t   $ s h i p _ R e q u e s t ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 3 3 4 :           { 
 
   > >   1 3 3 5 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 3 3 6 :   
 
         1 3 3 7 :                   / * *   @ v a r   s h i p _ R e q u e s t   $ R e s u l t s   * / 
 
 
 
     L i n e   1 3 3 8   [ m a t c h :   E P I C O R ] : 
 
         1 3 3 6 :   
 
         1 3 3 7 :                   / * *   @ v a r   s h i p _ R e q u e s t   $ R e s u l t s   * / 
 
   > >   1 3 3 8 :                   $ R e s u l t s   =   $ s h i p _ R e q u e s t - > g e t O p e n S h i p m e n t W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ e p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ) ; 
 
         1 3 3 9 :   
 
         1 3 4 0 :                   $ L i n e I t e m s   =   [ ] ; 
 
 
 
     L i n e   1 3 7 2   [ m a t c h :   E P I C O R ] : 
 
         1 3 7 0 :             *   @ p a r a m   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s 
 
         1 3 7 1 :             *   @ p a r a m   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o 
 
   > >   1 3 7 2 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e 
 
         1 3 7 3 :             *   @ p a r a m   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y 
 
         1 3 7 4 :             *   @ p a r a m   D a t a H a n d l e r   $ D a t a H a n d l e r 
 
 
 
     L i n e   1 3 8 1   [ m a t c h :   E P I C O R ] : 
 
         1 3 7 9 :             *   @ t h r o w s   \ T h r o w a b l e 
 
         1 3 8 0 :             * / 
 
   > >   1 3 8 1 :           p u b l i c   f u n c t i o n   p o s t C o m p l e t e S h i p m e n t ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   S h i p m e n t R e l e a s e H e l p e r   $ S h i p m e n t R e l e a s e H e l p e r ,   p a i n t _ P l a n t   $ p a i n t _ P l a n t R e p o ) 
 
         1 3 8 2 :           { 
 
         1 3 8 3 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   1 4 0 4   [ m a t c h :   E P I C O R ] : 
 
         1 4 0 2 :   
 
         1 4 0 3 :                   t r y   { 
 
   > >   1 4 0 4 :                           $ P l a n t U s e r E m a i l s   =   $ E p i c o r D a t a b a s e - > g e t P l a n t U s e r E m a i l A d d r e s s e s ( $ S h i p m e n t C a r t - > g e t P l a n t ( ) ) ; 
 
         1 4 0 5 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         1 4 0 6 :                           L o g : : e r r o r ( ' C o u l d   n o t   c o m p l e t e   s h i p m e n t   r e l e a s e   b e c a u s e   c o u l d   n o t   g e t   p l a n t   e m a i l s   f o r   ' . $ S h i p m e n t C a r t - > g e t P l a n t ( ) . '   ( ' . $ S h i p m e n t C a r t - > g e t C a r t I D ( ) . ' ) ' ) ; 
 
 
 
     L i n e   1 4 7 0   [ m a t c h :   E P I C O R ] : 
 
         1 4 6 8 :             *   @ p a r a m   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y 
 
         1 4 6 9 :             *   @ p a r a m   D a t a H a n d l e r   $ D a t a H a n d l e r 
 
   > >   1 4 7 0 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e 
 
         1 4 7 1 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e 
 
         1 4 7 2 :             *   @ t h r o w s   \ S a v v i o r \ D a t a \ D a t a H a n d l e r E x c e p t i o n 
 
 
 
     L i n e   1 4 7 4   [ m a t c h :   E P I C O R ] : 
 
         1 4 7 2 :             *   @ t h r o w s   \ S a v v i o r \ D a t a \ D a t a H a n d l e r E x c e p t i o n 
 
         1 4 7 3 :             * / 
 
   > >   1 4 7 4 :           p u b l i c   f u n c t i o n   p o s t A d d S h i p m e n t I t e m ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   s h i p _ R e q u e s t R e p o   $ R O S h i p m e n t R e q u e s t R e p o ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ) 
 
         1 4 7 5 :           { 
 
         1 4 7 6 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   1 4 7 9   [ m a t c h :   E P I C O R ] : 
 
         1 4 7 7 :                           a b o r t ( 5 0 0 ,   ' T h e r e   i s   n o   a c t i v e   s h i p m e n t   r e l e a s e ' ) ; 
 
         1 4 7 8 :   
 
   > >   1 4 7 9 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 4 8 0 :                   $ P a r t N u m   =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' p a r t ' ) ) ; 
 
         1 4 8 1 :                   $ P l a n t   =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' p l a n t ' ) ) ; 
 
 
 
     L i n e   1 4 8 8   [ m a t c h :   E P I C O R ] : 
 
         1 4 8 6 :                   $ S k i d   =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > i n p u t ( ' s k i d ' ) ) ; 
 
         1 4 8 7 :   
 
   > >   1 4 8 8 :                   $ P a r t D e s c r i p t i o n   =   $ E p i c o r D a t a b a s e - > g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r W i t h P a i n t C o d e ( $ e p i c o r C u s t I D , $ P a r t N u m ) ; 
 
         1 4 8 9 :   
 
         1 4 9 0 :                   i f ( i s _ n u l l ( $ L o t N u m )   | |   i s _ n u l l ( $ O n H a n d Q u a n t i t y ) ) 
 
 
 
     L i n e   1 5 0 1   [ m a t c h :   E P I C O R ] : 
 
         1 4 9 9 :                           a b o r t ( 5 0 0 ,   ' T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   s h i p m e n t   r e l e a s e ' ) ; 
 
         1 5 0 0 :                   } 
 
   > >   1 5 0 1 :                   e l s e i f ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d S h i p m e n t E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) ) 
 
         1 5 0 2 :                   { 
 
         1 5 0 3 :                           a b o r t ( 5 0 0 ,   ' T h i s   i t e m   i s   a l r e a d y   p a r t   o f   a n o t h e r   s h i p m e n t   r e l e a s e   f o r   t h i s   c u s t o m e r ' ) ; 
 
 
 
     L i n e   1 5 2 4   [ m a t c h :   E P I C O R ] : 
 
         1 5 2 2 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 5 2 3 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   1 5 2 4 :                           L o g : : e r r o r ( ' A D D I N G   I T E M   T O   S H I P M E N T   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ S h i p m e n t C a r t - > g e t C a r t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 5 2 5 :                           a b o r t ( 5 0 0 ,   ' T h e r e   w a s   a n   u n e x p e c t e d   e r r o r   a d d i n g   t h i s   i t e m   t o   y o u r   s h i p m e n t .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         1 5 2 6 :                   } 
 
 
 
     L i n e   1 5 7 1   [ m a t c h :   E P I C O R ] : 
 
         1 5 6 9 :           / * * 
 
         1 5 7 0 :             *   @ p a r a m   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o 
 
   > >   1 5 7 1 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e 
 
         1 5 7 2 :             *   @ p a r a m   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r 
 
         1 5 7 3 :             *   @ p a r a m   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s 
 
 
 
     L i n e   1 5 7 6   [ m a t c h :   E P I C O R ] : 
 
         1 5 7 4 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e 
 
         1 5 7 5 :             * / 
 
   > >   1 5 7 6 :           p u b l i c   f u n c t i o n   p o s t S h i p T o A d d r e s s I n q u i r y ( q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 5 7 7 :           { 
 
         1 5 7 8 :                   $ E m a i l I n q u i r y T o   =   $ R O E m a i l E v e n t R e p o - > g e t E m a i l s F o r A c t i v e Q u e s t U s e r s T h a t R e c e i v e E m a i l E v e n t ( ' S H I P _ T O _ A D D R E S S _ I N Q U I R Y ' ) ; 
 
 
 
     L i n e   1 5 9 1   [ m a t c h :   E P I C O R ] : 
 
         1 5 8 9 :                           a b o r t ( 5 0 0 ,   ' I n v a l i d   i n q u i r y   t y p e   p r o v i d e d ' ) ; 
 
         1 5 9 0 :   
 
   > >   1 5 9 1 :                   i f ( ( $ T y p e   = =   ' e d i t '   | |   $ T y p e   = =   ' d e l e t e ' )   & &   ( i s _ n u l l ( $ S h i p T o N u m   =   $ I D )   | |   i s _ n u l l ( $ S h i p T o I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r S i n g l e S h i p T o A d d r e s s B y N u m ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ S h i p T o N u m ) ) ) ) 
 
         1 5 9 2 :                           a b o r t ( 5 0 0 , ' T h e   s h i p   t o   a d d r e s s   f o r   y o u r   i n q u i r y   n o   l o n g e r   e x i s t s . '   ) ; 
 
         1 5 9 3 :   
 
 
 
     L i n e   1 6 1 9   [ m a t c h :   E P I C O R ] : 
 
         1 6 1 7 :   
 
         1 6 1 8 :           / * * 
 
   > >   1 6 1 9 :             *   @ p a r a m   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e 
 
         1 6 2 0 :             *   @ p a r a m   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r 
 
         1 6 2 1 :             *   @ p a r a m   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s 
 
 
 
     L i n e   1 6 2 4   [ m a t c h :   E P I C O R ] : 
 
         1 6 2 2 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e 
 
         1 6 2 3 :             * / 
 
   > >   1 6 2 4 :           p u b l i c   f u n c t i o n   g e t O p e n O r d e r s ( E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 6 2 5 :           { 
 
         1 6 2 6 :                   $ O p e n O r d e r s   =   $ E p i c o r D a t a b a s e - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ; 
 
 
 
     L i n e   1 6 2 6   [ m a t c h :   E P I C O R ] : 
 
         1 6 2 4 :           p u b l i c   f u n c t i o n   g e t O p e n O r d e r s ( E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 6 2 5 :           { 
 
   > >   1 6 2 6 :                   $ O p e n O r d e r s   =   $ E p i c o r D a t a b a s e - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ; 
 
         1 6 2 7 :   
 
         1 6 2 8 :                   r e t u r n   r e s p o n s e ( ) - > j s o n ( [ 
 
 
 
     L i n e   1 7 6 5   [ m a t c h :   E P I C O R ] : 
 
         1 7 6 3 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ i n v _ U p l o a d E n t r y [ ]   $ i n v _ U p l o a d E n t r y   * / 
 
         1 7 6 4 :                   $ i n v _ U p l o a d E n t r y   =   $ i n v _ U p l o a d E n t r y R e p o 
 
   > >   1 7 6 5 :                           - > g e t A l l I n v o i c e s F o r C u s t o m e r ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ; 
 
         1 7 6 6 :   
 
         1 7 6 7 :                   $ r e s u l t s   =   [ ] ; 
 
 
 
     L i n e   1 7 9 2   [ m a t c h :   E P I C O R ] : 
 
         1 7 9 0 :                                   ' S e n t D a t e '   = >   ! i s _ n u l l ( $ i n v _ U p l o a d E n t r y I t e m - > g e t S e n t D T ( ) )   ?   $ i n v _ U p l o a d E n t r y I t e m - > g e t S e n t D T ( ) - > f o r m a t ( ' m / d / Y ' )   :   ' ' , 
 
         1 7 9 1 :                                   ' P a i d '   = >   $ i n v _ U p l o a d E n t r y I t e m - > g e t E p i I n v c H e a d ( ) - > g e t O p e n I n v o i c e ( ) , 
 
   > >   1 7 9 2 :                                   ' D o w n l o a d L i n k '   = >   a c t i o n ( ' A P I \ W e b A p p A P I @ d o w n l o a d I n v o i c e ' ,   [ $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   e n c r y p t ( $ i n v _ U p l o a d E n t r y I t e m - > g e t I D ( ) ) ] ) 
 
         1 7 9 3 :                           ] ; 
 
         1 7 9 4 :                   } 
 
 
 
     L i n e   1 8 8 6   [ m a t c h :   E P I C O R ] : 
 
         1 8 8 4 :           p r i v a t e   f u n c t i o n   _ B O L C o n t e n t ( $ b o l N u m ,   $ i s L a s t P a g e = t r u e ) 
 
         1 8 8 5 :           { 
 
   > >   1 8 8 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         1 8 8 7 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 8 8 8 :                   $ b o l D a t a   =   $ e p i c o r e - > g e t B O L ( $ b o l N u m ) ; 
 
 
 
     L i n e   1 8 8 7   [ m a t c h :   E P I C O R ] : 
 
         1 8 8 5 :           { 
 
         1 8 8 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
   > >   1 8 8 7 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 8 8 8 :                   $ b o l D a t a   =   $ e p i c o r e - > g e t B O L ( $ b o l N u m ) ; 
 
         1 8 8 9 :                   $ b y P a c k e r   =   [ ] ; 
 
 
 
     L i n e   1 8 8 8   [ m a t c h :   E P I C O R ] : 
 
         1 8 8 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         1 8 8 7 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   1 8 8 8 :                   $ b o l D a t a   =   $ e p i c o r e - > g e t B O L ( $ b o l N u m ) ; 
 
         1 8 8 9 :                   $ b y P a c k e r   =   [ ] ; 
 
         1 8 9 0 :   
 
 
 
     L i n e   1 9 0 3   [ m a t c h :   E P I C O R ] : 
 
         1 9 0 1 :           } 
 
         1 9 0 2 :   
 
   > >   1 9 0 3 :           p u b l i c   f u n c t i o n   g e t O r d e r s P d f ( S e l e c t e d C o m p a n y P r o v i d e r   $ c o m p ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ) 
 
         1 9 0 4 :           { 
 
         1 9 0 5 :                   $ c u s t o m e r   =   $ c o m p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
 
 
     L i n e   1 9 0 5   [ m a t c h :   E P I C O R ] : 
 
         1 9 0 3 :           p u b l i c   f u n c t i o n   g e t O r d e r s P d f ( S e l e c t e d C o m p a n y P r o v i d e r   $ c o m p ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ) 
 
         1 9 0 4 :           { 
 
   > >   1 9 0 5 :                   $ c u s t o m e r   =   $ c o m p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         1 9 0 6 :                   $ d a t a   =   $ E p i c o r D a t a b a s e - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ c u s t o m e r ) ; 
 
         1 9 0 7 :                   $ f i l e N a m e   =   " J o b S t a t u s B y P l a n t B y C u s t o m e r - "   .   d a t e ( " m - d - Y " )   .   " . p d f " ; 
 
 
 
     L i n e   1 9 0 6   [ m a t c h :   E P I C O R ] : 
 
         1 9 0 4 :           { 
 
         1 9 0 5 :                   $ c u s t o m e r   =   $ c o m p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
   > >   1 9 0 6 :                   $ d a t a   =   $ E p i c o r D a t a b a s e - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ c u s t o m e r ) ; 
 
         1 9 0 7 :                   $ f i l e N a m e   =   " J o b S t a t u s B y P l a n t B y C u s t o m e r - "   .   d a t e ( " m - d - Y " )   .   " . p d f " ; 
 
         1 9 0 8 :   
 
 
 
     L i n e   1 0 0 8   [ m a t c h :   - > q u e r y ( ] : 
 
         1 0 0 6 :                   $ e p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         1 0 0 7 :   
 
   > >   1 0 0 8 :                   $ i n c l u d e I n c o m p l e t e S h i p m e n t s   =   r e q u e s t ( ) - > e x i s t s ( ' i n c o m p l e t e _ s h i p m e n t s ' )   ?   r e q u e s t ( ) - > q u e r y ( ' i n c o m p l e t e _ s h i p m e n t s ' )   :   f a l s e ; 
 
         1 0 0 9 :   
 
         1 0 1 0 :                   / /   g e t   t h e   s h i p   r e q u e s t   r e l e a s e   d e t a i l s   d a t a 
 
 
 
     L i n e   1 5 8 4   [ m a t c h :   - > q u e r y ( ] : 
 
         1 5 8 2 :                   $ S h i p T o N u m   =   n u l l ; 
 
         1 5 8 3 :                   $ S h i p T o I n f o   =   n u l l ; 
 
   > >   1 5 8 4 :                   $ T y p e   =   r e q u e s t ( ) - > q u e r y ( ' t y p e ' ) ; 
 
         1 5 8 5 :                   $ I D   =   r e q u e s t ( ) - > q u e r y ( ' i d ' ) ; 
 
         1 5 8 6 :                   $ I n q u i r y   =   r e q u e s t ( ) - > q u e r y ( ' i n q u i r y ' ) ; 
 
 
 
     L i n e   1 5 8 5   [ m a t c h :   - > q u e r y ( ] : 
 
         1 5 8 3 :                   $ S h i p T o I n f o   =   n u l l ; 
 
         1 5 8 4 :                   $ T y p e   =   r e q u e s t ( ) - > q u e r y ( ' t y p e ' ) ; 
 
   > >   1 5 8 5 :                   $ I D   =   r e q u e s t ( ) - > q u e r y ( ' i d ' ) ; 
 
         1 5 8 6 :                   $ I n q u i r y   =   r e q u e s t ( ) - > q u e r y ( ' i n q u i r y ' ) ; 
 
         1 5 8 7 :   
 
 
 
     L i n e   1 5 8 6   [ m a t c h :   - > q u e r y ( ] : 
 
         1 5 8 4 :                   $ T y p e   =   r e q u e s t ( ) - > q u e r y ( ' t y p e ' ) ; 
 
         1 5 8 5 :                   $ I D   =   r e q u e s t ( ) - > q u e r y ( ' i d ' ) ; 
 
   > >   1 5 8 6 :                   $ I n q u i r y   =   r e q u e s t ( ) - > q u e r y ( ' i n q u i r y ' ) ; 
 
         1 5 8 7 :   
 
         1 5 8 8 :                   i f ( ! i n _ a r r a y ( $ T y p e ,   [ ' a d d ' , ' e d i t ' , ' d e l e t e ' ] ) ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ A u t h \ R e q u e s t V e r i f i c a t i o n C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 7   [ m a t c h :   F R O M   ] : 
 
         1 5 :           |   T h i s   c o n t r o l l e r   i s   r e s p o n s i b l e   f o r   h a n d l i n g   a c c o u n t   v e r i f i c a t i o n   r e q u e s t 
 
         1 6 :           |   e m a i l s   a n d   i n c l u d e s   a   t r a i t   w h i c h   a s s i s t s   i n   s e n d i n g   t h e s e   n o t i f i c a t i o n s 
 
   > >   1 7 :           |   f r o m   y o u r   a p p l i c a t i o n   t o   y o u r   u s e r s .   F e e l   f r e e   t o   e x p l o r e   t h i s   t r a i t . 
 
         1 8 :           | 
 
         1 9 :           * / 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ A d m i n \ A p C h e c k P r o c e s s i n g C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 4 1   [ m a t c h :   S E L E C T   ] : 
 
         3 3 9 :   
 
         3 4 0 :                           i f ( i s _ n u l l ( $ e x c e l ) )   { 
 
   > >   3 4 1 :                                   r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( [ ' Y o u   m u s t   s e l e c t   a n   e x c e l   f i l e . ' ] ) ; 
 
         3 4 2 :                           } 
 
         3 4 3 :   
 
 
 
     L i n e   1 0   [ m a t c h :   e p i c o r ] : 
 
         8 :   u s e   A p p \ M o d e l \ R e p o s \ f i n a n c e _ A p C h e c k P r o c e s s i n g S t a t u s ; 
 
         9 :   u s e   A p p \ S e r v i c e s \ A P C h e c k P r o c e s s i n g S e r v i c e ; 
 
   > >   1 0 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 1 :   u s e   A p p \ S e r v i c e s \ Q u e s t P a g e V a l u e s ; 
 
         1 2 :   u s e   C a r b o n \ C a r b o n ; 
 
 
 
     L i n e   1 3 3   [ m a t c h :   e p i c o r ] : 
 
         1 3 1 :                                                                       M e t a d a t a F a c t o r y   $ m e t a d a t a F a c t o r y , 
 
         1 3 2 :                                                                       f i n a n c e _ A p C h e c k P r o c e s s i n g S t a t u s   $ c h e c k P r o c e s s i n g S t a t u s e s R e p o , 
 
   > >   1 3 3 :                                                                       E p i c o r D a t a b a s e   $ e p i c o r D a t a b a s e , 
 
         1 3 4 :                                                                       A P C h e c k P r o c e s s i n g S e r v i c e   $ a p C h e c k P r o c e s s i n g S e r v i c e 
 
         1 3 5 :           ) 
 
 
 
     L i n e   2 5 4   [ m a t c h :   e p i c o r ] : 
 
         2 5 2 :                                   ' f i n a n c e _ A p C h e c k P r o c e s s i n g S t a t u s '   = >   [ ' I D '   = >   $ s t a t u s - > g e t I D ( ) ] 
 
         2 5 3 :                           ] ,   $ m e t a d a t a F a c t o r y - > g e t E n t i t y ( ' f i n a n c e _ A p C h e c k P r o c e s s i n g B a t c h ' ) ) ; 
 
   > >   2 5 4 :                           $ e p i c o r D a t a b a s e - > p r o c e s s C S V A r r a y ( $ c s v A r r a y ,   $ a p C h e c k P r o c e s s i n g S e r v i c e - > g e t C s v O u t p u t F i l e P a t h ( $ b a t c h I D ) ) ; 
 
         2 5 5 :                           $ d a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         2 5 6 :   
 
 
 
     L i n e   3 9 3   [ m a t c h :   e p i c o r ] : 
 
         3 9 1 :                           $ c s v A r r a y   =   u n s e r i a l i z e ( $ r e t u r n I n f o - > c s v S e r i a l i z e d ) ; 
 
         3 9 2 :   
 
   > >   3 9 3 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         3 9 4 :                           $ e p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 9 5 :                           $ e p i c o r D a t a b a s e - > p r o c e s s C S V A r r a y ( $ c s v A r r a y ,   $ a p C h e c k P r o c e s s i n g S e r v i c e - > g e t C s v O u t p u t F i l e P a t h ( $ b a t c h O b j - > g e t I D ( ) ) ) ; 
 
 
 
     L i n e   3 9 4   [ m a t c h :   e p i c o r ] : 
 
         3 9 2 :   
 
         3 9 3 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   3 9 4 :                           $ e p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 9 5 :                           $ e p i c o r D a t a b a s e - > p r o c e s s C S V A r r a y ( $ c s v A r r a y ,   $ a p C h e c k P r o c e s s i n g S e r v i c e - > g e t C s v O u t p u t F i l e P a t h ( $ b a t c h O b j - > g e t I D ( ) ) ) ; 
 
         3 9 6 :   
 
 
 
     L i n e   3 9 5   [ m a t c h :   e p i c o r ] : 
 
         3 9 3 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         3 9 4 :                           $ e p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   3 9 5 :                           $ e p i c o r D a t a b a s e - > p r o c e s s C S V A r r a y ( $ c s v A r r a y ,   $ a p C h e c k P r o c e s s i n g S e r v i c e - > g e t C s v O u t p u t F i l e P a t h ( $ b a t c h O b j - > g e t I D ( ) ) ) ; 
 
         3 9 6 :   
 
         3 9 7 :                           r e t u r n   r e d i r e c t ( ) - > a c t i o n ( ' Q u e s t \ A d m i n \ A p C h e c k P r o c e s s i n g C o n t r o l l e r @ g e t I n d e x ' ) - > w i t h ( ' s u c c e s s ' ,   ' Y o u   h a v e   s u c c e s s f u l l y   s t a r t e d   A P   c h e c k   p r o c e s s i n g   g r o u p   i d   '   .   $ b a t c h - > g e t G r o u p I D ( )   .   ' . ' ) ; 
 
 
 
     L i n e   1 0   [ m a t c h :   E p i c o r ] : 
 
         8 :   u s e   A p p \ M o d e l \ R e p o s \ f i n a n c e _ A p C h e c k P r o c e s s i n g S t a t u s ; 
 
         9 :   u s e   A p p \ S e r v i c e s \ A P C h e c k P r o c e s s i n g S e r v i c e ; 
 
   > >   1 0 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 1 :   u s e   A p p \ S e r v i c e s \ Q u e s t P a g e V a l u e s ; 
 
         1 2 :   u s e   C a r b o n \ C a r b o n ; 
 
 
 
     L i n e   1 3 3   [ m a t c h :   E p i c o r ] : 
 
         1 3 1 :                                                                       M e t a d a t a F a c t o r y   $ m e t a d a t a F a c t o r y , 
 
         1 3 2 :                                                                       f i n a n c e _ A p C h e c k P r o c e s s i n g S t a t u s   $ c h e c k P r o c e s s i n g S t a t u s e s R e p o , 
 
   > >   1 3 3 :                                                                       E p i c o r D a t a b a s e   $ e p i c o r D a t a b a s e , 
 
         1 3 4 :                                                                       A P C h e c k P r o c e s s i n g S e r v i c e   $ a p C h e c k P r o c e s s i n g S e r v i c e 
 
         1 3 5 :           ) 
 
 
 
     L i n e   2 5 4   [ m a t c h :   E p i c o r ] : 
 
         2 5 2 :                                   ' f i n a n c e _ A p C h e c k P r o c e s s i n g S t a t u s '   = >   [ ' I D '   = >   $ s t a t u s - > g e t I D ( ) ] 
 
         2 5 3 :                           ] ,   $ m e t a d a t a F a c t o r y - > g e t E n t i t y ( ' f i n a n c e _ A p C h e c k P r o c e s s i n g B a t c h ' ) ) ; 
 
   > >   2 5 4 :                           $ e p i c o r D a t a b a s e - > p r o c e s s C S V A r r a y ( $ c s v A r r a y ,   $ a p C h e c k P r o c e s s i n g S e r v i c e - > g e t C s v O u t p u t F i l e P a t h ( $ b a t c h I D ) ) ; 
 
         2 5 5 :                           $ d a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         2 5 6 :   
 
 
 
     L i n e   3 9 3   [ m a t c h :   E p i c o r ] : 
 
         3 9 1 :                           $ c s v A r r a y   =   u n s e r i a l i z e ( $ r e t u r n I n f o - > c s v S e r i a l i z e d ) ; 
 
         3 9 2 :   
 
   > >   3 9 3 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         3 9 4 :                           $ e p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 9 5 :                           $ e p i c o r D a t a b a s e - > p r o c e s s C S V A r r a y ( $ c s v A r r a y ,   $ a p C h e c k P r o c e s s i n g S e r v i c e - > g e t C s v O u t p u t F i l e P a t h ( $ b a t c h O b j - > g e t I D ( ) ) ) ; 
 
 
 
     L i n e   3 9 4   [ m a t c h :   E p i c o r ] : 
 
         3 9 2 :   
 
         3 9 3 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   3 9 4 :                           $ e p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 9 5 :                           $ e p i c o r D a t a b a s e - > p r o c e s s C S V A r r a y ( $ c s v A r r a y ,   $ a p C h e c k P r o c e s s i n g S e r v i c e - > g e t C s v O u t p u t F i l e P a t h ( $ b a t c h O b j - > g e t I D ( ) ) ) ; 
 
         3 9 6 :   
 
 
 
     L i n e   3 9 5   [ m a t c h :   E p i c o r ] : 
 
         3 9 3 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         3 9 4 :                           $ e p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   3 9 5 :                           $ e p i c o r D a t a b a s e - > p r o c e s s C S V A r r a y ( $ c s v A r r a y ,   $ a p C h e c k P r o c e s s i n g S e r v i c e - > g e t C s v O u t p u t F i l e P a t h ( $ b a t c h O b j - > g e t I D ( ) ) ) ; 
 
         3 9 6 :   
 
         3 9 7 :                           r e t u r n   r e d i r e c t ( ) - > a c t i o n ( ' Q u e s t \ A d m i n \ A p C h e c k P r o c e s s i n g C o n t r o l l e r @ g e t I n d e x ' ) - > w i t h ( ' s u c c e s s ' ,   ' Y o u   h a v e   s u c c e s s f u l l y   s t a r t e d   A P   c h e c k   p r o c e s s i n g   g r o u p   i d   '   .   $ b a t c h - > g e t G r o u p I D ( )   .   ' . ' ) ; 
 
 
 
     L i n e   1 0   [ m a t c h :   E P I C O R ] : 
 
         8 :   u s e   A p p \ M o d e l \ R e p o s \ f i n a n c e _ A p C h e c k P r o c e s s i n g S t a t u s ; 
 
         9 :   u s e   A p p \ S e r v i c e s \ A P C h e c k P r o c e s s i n g S e r v i c e ; 
 
   > >   1 0 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 1 :   u s e   A p p \ S e r v i c e s \ Q u e s t P a g e V a l u e s ; 
 
         1 2 :   u s e   C a r b o n \ C a r b o n ; 
 
 
 
     L i n e   1 3 3   [ m a t c h :   E P I C O R ] : 
 
         1 3 1 :                                                                       M e t a d a t a F a c t o r y   $ m e t a d a t a F a c t o r y , 
 
         1 3 2 :                                                                       f i n a n c e _ A p C h e c k P r o c e s s i n g S t a t u s   $ c h e c k P r o c e s s i n g S t a t u s e s R e p o , 
 
   > >   1 3 3 :                                                                       E p i c o r D a t a b a s e   $ e p i c o r D a t a b a s e , 
 
         1 3 4 :                                                                       A P C h e c k P r o c e s s i n g S e r v i c e   $ a p C h e c k P r o c e s s i n g S e r v i c e 
 
         1 3 5 :           ) 
 
 
 
     L i n e   2 5 4   [ m a t c h :   E P I C O R ] : 
 
         2 5 2 :                                   ' f i n a n c e _ A p C h e c k P r o c e s s i n g S t a t u s '   = >   [ ' I D '   = >   $ s t a t u s - > g e t I D ( ) ] 
 
         2 5 3 :                           ] ,   $ m e t a d a t a F a c t o r y - > g e t E n t i t y ( ' f i n a n c e _ A p C h e c k P r o c e s s i n g B a t c h ' ) ) ; 
 
   > >   2 5 4 :                           $ e p i c o r D a t a b a s e - > p r o c e s s C S V A r r a y ( $ c s v A r r a y ,   $ a p C h e c k P r o c e s s i n g S e r v i c e - > g e t C s v O u t p u t F i l e P a t h ( $ b a t c h I D ) ) ; 
 
         2 5 5 :                           $ d a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         2 5 6 :   
 
 
 
     L i n e   3 9 3   [ m a t c h :   E P I C O R ] : 
 
         3 9 1 :                           $ c s v A r r a y   =   u n s e r i a l i z e ( $ r e t u r n I n f o - > c s v S e r i a l i z e d ) ; 
 
         3 9 2 :   
 
   > >   3 9 3 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         3 9 4 :                           $ e p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 9 5 :                           $ e p i c o r D a t a b a s e - > p r o c e s s C S V A r r a y ( $ c s v A r r a y ,   $ a p C h e c k P r o c e s s i n g S e r v i c e - > g e t C s v O u t p u t F i l e P a t h ( $ b a t c h O b j - > g e t I D ( ) ) ) ; 
 
 
 
     L i n e   3 9 4   [ m a t c h :   E P I C O R ] : 
 
         3 9 2 :   
 
         3 9 3 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   3 9 4 :                           $ e p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 9 5 :                           $ e p i c o r D a t a b a s e - > p r o c e s s C S V A r r a y ( $ c s v A r r a y ,   $ a p C h e c k P r o c e s s i n g S e r v i c e - > g e t C s v O u t p u t F i l e P a t h ( $ b a t c h O b j - > g e t I D ( ) ) ) ; 
 
         3 9 6 :   
 
 
 
     L i n e   3 9 5   [ m a t c h :   E P I C O R ] : 
 
         3 9 3 :                           / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         3 9 4 :                           $ e p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   3 9 5 :                           $ e p i c o r D a t a b a s e - > p r o c e s s C S V A r r a y ( $ c s v A r r a y ,   $ a p C h e c k P r o c e s s i n g S e r v i c e - > g e t C s v O u t p u t F i l e P a t h ( $ b a t c h O b j - > g e t I D ( ) ) ) ; 
 
         3 9 6 :   
 
         3 9 7 :                           r e t u r n   r e d i r e c t ( ) - > a c t i o n ( ' Q u e s t \ A d m i n \ A p C h e c k P r o c e s s i n g C o n t r o l l e r @ g e t I n d e x ' ) - > w i t h ( ' s u c c e s s ' ,   ' Y o u   h a v e   s u c c e s s f u l l y   s t a r t e d   A P   c h e c k   p r o c e s s i n g   g r o u p   i d   '   .   $ b a t c h - > g e t G r o u p I D ( )   .   ' . ' ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ A d m i n \ C o i l A l l o c a t i o n R e q u e s t C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   8   [ m a t c h :   e p i c o r ] : 
 
         6 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ A l l o c C a r t ; 
 
         7 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n H e l p e r ; 
 
   > >   8 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         9 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         1 0 :   u s e   A p p \ S e r v i c e s \ F a k e S h i p m e n t C a r t ; 
 
 
 
     L i n e   9   [ m a t c h :   e p i c o r ] : 
 
         7 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n H e l p e r ; 
 
         8 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
   > >   9 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         1 0 :   u s e   A p p \ S e r v i c e s \ F a k e S h i p m e n t C a r t ; 
 
         1 1 :   u s e   A p p \ S e r v i c e s \ O r d e r H e l p e r ; 
 
 
 
     L i n e   2 7 3   [ m a t c h :   e p i c o r ] : 
 
         2 7 1 :   
 
         2 7 2 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   2 7 3 :                           \ L o g : : e r r o r ( ' A D M I N   A D D I N G   I T E M   T O   A L L O C A T I O N   ( ' . $ a l l o c _ R e q u e s t - > g e t Q u e s t C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) . ' , ' . $ a l l o c _ R e q u e s t - > g e t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         2 7 4 :                           \ L o g : : e r r o r ( $ e - > g e t F i l e ( ) . " : :   " . $ e - > g e t L i n e ( ) ) ; 
 
         2 7 5 :                           \ L o g : : e r r o r ( $ e - > g e t T r a c e A s S t r i n g ( ) ) ; 
 
 
 
     L i n e   3 0 2   [ m a t c h :   e p i c o r ] : 
 
         3 0 0 :                 / /   d d ( $ d a t a ) ; 
 
         3 0 1 :   
 
   > >   3 0 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 0 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 4 :   
 
 
 
     L i n e   3 0 3   [ m a t c h :   e p i c o r ] : 
 
         3 0 1 :   
 
         3 0 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 0 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 4 :   
 
         3 0 5 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ a l l o c R e q u e s t - > g e t J o b N u m ( ) ) ; 
 
 
 
     L i n e   3 0 5   [ m a t c h :   e p i c o r ] : 
 
         3 0 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 4 :   
 
   > >   3 0 5 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ a l l o c R e q u e s t - > g e t J o b N u m ( ) ) ; 
 
         3 0 6 :                   / * *   @ v a r   A l l o c C a r t   $ A l l o c C a r t   * / 
 
         3 0 7 :                   $ A l l o c C a r t   =   a p p ( A l l o c C a r t : : c l a s s ) ; 
 
 
 
     L i n e   8   [ m a t c h :   E p i c o r ] : 
 
         6 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ A l l o c C a r t ; 
 
         7 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n H e l p e r ; 
 
   > >   8 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         9 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         1 0 :   u s e   A p p \ S e r v i c e s \ F a k e S h i p m e n t C a r t ; 
 
 
 
     L i n e   9   [ m a t c h :   E p i c o r ] : 
 
         7 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n H e l p e r ; 
 
         8 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
   > >   9 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         1 0 :   u s e   A p p \ S e r v i c e s \ F a k e S h i p m e n t C a r t ; 
 
         1 1 :   u s e   A p p \ S e r v i c e s \ O r d e r H e l p e r ; 
 
 
 
     L i n e   2 7 3   [ m a t c h :   E p i c o r ] : 
 
         2 7 1 :   
 
         2 7 2 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   2 7 3 :                           \ L o g : : e r r o r ( ' A D M I N   A D D I N G   I T E M   T O   A L L O C A T I O N   ( ' . $ a l l o c _ R e q u e s t - > g e t Q u e s t C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) . ' , ' . $ a l l o c _ R e q u e s t - > g e t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         2 7 4 :                           \ L o g : : e r r o r ( $ e - > g e t F i l e ( ) . " : :   " . $ e - > g e t L i n e ( ) ) ; 
 
         2 7 5 :                           \ L o g : : e r r o r ( $ e - > g e t T r a c e A s S t r i n g ( ) ) ; 
 
 
 
     L i n e   3 0 2   [ m a t c h :   E p i c o r ] : 
 
         3 0 0 :                 / /   d d ( $ d a t a ) ; 
 
         3 0 1 :   
 
   > >   3 0 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 0 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 4 :   
 
 
 
     L i n e   3 0 3   [ m a t c h :   E p i c o r ] : 
 
         3 0 1 :   
 
         3 0 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 0 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 4 :   
 
         3 0 5 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ a l l o c R e q u e s t - > g e t J o b N u m ( ) ) ; 
 
 
 
     L i n e   3 0 5   [ m a t c h :   E p i c o r ] : 
 
         3 0 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 4 :   
 
   > >   3 0 5 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ a l l o c R e q u e s t - > g e t J o b N u m ( ) ) ; 
 
         3 0 6 :                   / * *   @ v a r   A l l o c C a r t   $ A l l o c C a r t   * / 
 
         3 0 7 :                   $ A l l o c C a r t   =   a p p ( A l l o c C a r t : : c l a s s ) ; 
 
 
 
     L i n e   8   [ m a t c h :   E P I C O R ] : 
 
         6 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ A l l o c C a r t ; 
 
         7 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n H e l p e r ; 
 
   > >   8 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         9 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         1 0 :   u s e   A p p \ S e r v i c e s \ F a k e S h i p m e n t C a r t ; 
 
 
 
     L i n e   9   [ m a t c h :   E P I C O R ] : 
 
         7 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n H e l p e r ; 
 
         8 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
   > >   9 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         1 0 :   u s e   A p p \ S e r v i c e s \ F a k e S h i p m e n t C a r t ; 
 
         1 1 :   u s e   A p p \ S e r v i c e s \ O r d e r H e l p e r ; 
 
 
 
     L i n e   2 7 3   [ m a t c h :   E P I C O R ] : 
 
         2 7 1 :   
 
         2 7 2 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   2 7 3 :                           \ L o g : : e r r o r ( ' A D M I N   A D D I N G   I T E M   T O   A L L O C A T I O N   ( ' . $ a l l o c _ R e q u e s t - > g e t Q u e s t C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) . ' , ' . $ a l l o c _ R e q u e s t - > g e t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         2 7 4 :                           \ L o g : : e r r o r ( $ e - > g e t F i l e ( ) . " : :   " . $ e - > g e t L i n e ( ) ) ; 
 
         2 7 5 :                           \ L o g : : e r r o r ( $ e - > g e t T r a c e A s S t r i n g ( ) ) ; 
 
 
 
     L i n e   3 0 2   [ m a t c h :   E P I C O R ] : 
 
         3 0 0 :                 / /   d d ( $ d a t a ) ; 
 
         3 0 1 :   
 
   > >   3 0 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 0 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 4 :   
 
 
 
     L i n e   3 0 3   [ m a t c h :   E P I C O R ] : 
 
         3 0 1 :   
 
         3 0 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 0 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 4 :   
 
         3 0 5 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ a l l o c R e q u e s t - > g e t J o b N u m ( ) ) ; 
 
 
 
     L i n e   3 0 5   [ m a t c h :   E P I C O R ] : 
 
         3 0 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 4 :   
 
   > >   3 0 5 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ a l l o c R e q u e s t - > g e t J o b N u m ( ) ) ; 
 
         3 0 6 :                   / * *   @ v a r   A l l o c C a r t   $ A l l o c C a r t   * / 
 
         3 0 7 :                   $ A l l o c C a r t   =   a p p ( A l l o c C a r t : : c l a s s ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ A d m i n \ C o m p a n y C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4   [ m a t c h :   e p i c o r ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y   a s   q u e s t _ C o m p a n y R e p o ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D ; 
 
 
 
     L i n e   5   [ m a t c h :   e p i c o r ] : 
 
         3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y   a s   q u e s t _ C o m p a n y R e p o ; 
 
         4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
   > >   5 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D ; 
 
         7 :   u s e   E x c e p t i o n ; 
 
 
 
     L i n e   6   [ m a t c h :   e p i c o r ] : 
 
         4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D ; 
 
   > >   6 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D ; 
 
         7 :   u s e   E x c e p t i o n ; 
 
         8 :   u s e   L o g ; 
 
 
 
     L i n e   1 3 3   [ m a t c h :   e p i c o r ] : 
 
         1 3 1 :           { 
 
         1 3 2 :                   $ F o r m   =   p a r e n t : : _ g e t F o r m A d d ( $ M e t a d a t a ,   $ f o r P o s t ) ; 
 
   > >   1 3 3 :                   $ F o r m - > g e t F o r m O b j e c t F r o m D r i v e r ( ) - > g e t I n p u t E l e m e n t B y N a m e ( ' E p i c o r C u s t I D ' ) 
 
         1 3 4 :                           - > a d d I n p u t V a l i d a t o r ( n e w   U n i q u e E p i c o r C u s t I D ( ) ) 
 
         1 3 5 :                           - > a d d I n p u t V a l i d a t o r ( n e w   V a l i d E p i c o r C u s t I D ( ) ) ; 
 
 
 
     L i n e   1 3 4   [ m a t c h :   e p i c o r ] : 
 
         1 3 2 :                   $ F o r m   =   p a r e n t : : _ g e t F o r m A d d ( $ M e t a d a t a ,   $ f o r P o s t ) ; 
 
         1 3 3 :                   $ F o r m - > g e t F o r m O b j e c t F r o m D r i v e r ( ) - > g e t I n p u t E l e m e n t B y N a m e ( ' E p i c o r C u s t I D ' ) 
 
   > >   1 3 4 :                           - > a d d I n p u t V a l i d a t o r ( n e w   U n i q u e E p i c o r C u s t I D ( ) ) 
 
         1 3 5 :                           - > a d d I n p u t V a l i d a t o r ( n e w   V a l i d E p i c o r C u s t I D ( ) ) ; 
 
         1 3 6 :                   r e t u r n   $ F o r m ; 
 
 
 
     L i n e   1 3 5   [ m a t c h :   e p i c o r ] : 
 
         1 3 3 :                   $ F o r m - > g e t F o r m O b j e c t F r o m D r i v e r ( ) - > g e t I n p u t E l e m e n t B y N a m e ( ' E p i c o r C u s t I D ' ) 
 
         1 3 4 :                           - > a d d I n p u t V a l i d a t o r ( n e w   U n i q u e E p i c o r C u s t I D ( ) ) 
 
   > >   1 3 5 :                           - > a d d I n p u t V a l i d a t o r ( n e w   V a l i d E p i c o r C u s t I D ( ) ) ; 
 
         1 3 6 :                   r e t u r n   $ F o r m ; 
 
         1 3 7 :           } 
 
 
 
     L i n e   1 4 1   [ m a t c h :   e p i c o r ] : 
 
         1 3 9 :           p r o t e c t e d   f u n c t i o n   _ g e t F o r m E d i t ( E n t i t y M e t a d a t a I n t e r f a c e   $ M e t a d a t a ,   $ i d ,   $ f o r P o s t   =   f a l s e ) 
 
         1 4 0 :           { 
 
   > >   1 4 1 :                   $ M e t a d a t a - > g e t F i e l d ( ' E p i c o r C u s t I D ' ) - > s e t I s R e a d O n l y ( t r u e ) ; 
 
         1 4 2 :               / /     $ M e t a d a t a - > g e t F i e l d ( ' I s D e a c t i v a t e d ' ) - > s e t I s D i s p l a y e d I n F o r m s ( f a l s e ) ; 
 
         1 4 3 :                   r e t u r n   p a r e n t : : _ g e t F o r m E d i t ( $ M e t a d a t a ,   $ i d ,   $ f o r P o s t ) ; 
 
 
 
     L i n e   1 4 8   [ m a t c h :   e p i c o r ] : 
 
         1 4 6 :           p r o t e c t e d   f u n c t i o n   _ d o D B S a v e ( a r r a y   $ D a t a ,   $ F o r m A c t i o n ) 
 
         1 4 7 :           { 
 
   > >   1 4 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         1 4 9 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 5 0 :   
 
 
 
     L i n e   1 4 9   [ m a t c h :   e p i c o r ] : 
 
         1 4 7 :           { 
 
         1 4 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   1 4 9 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 5 0 :   
 
         1 5 1 :                   i f ( $ F o r m A c t i o n   = =   s e l f : : F O R M _ A C T I O N _ A D D ) 
 
 
 
     L i n e   1 5 3   [ m a t c h :   e p i c o r ] : 
 
         1 5 1 :                   i f ( $ F o r m A c t i o n   = =   s e l f : : F O R M _ A C T I O N _ A D D ) 
 
         1 5 2 :                   { 
 
   > >   1 5 3 :                           i f ( ( ( $ E p i c o r I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ D a t a [ ' E p i c o r C u s t I D ' ] ) )   ! = =   F A L S E )   & &   s t r l e n ( $ E p i c o r I n f o [ ' N a m e ' ] ) ) 
 
         1 5 4 :                                   $ D a t a [ ' e p i _ N a m e ' ]   =   $ E p i c o r I n f o [ ' N a m e ' ] ; 
 
         1 5 5 :                           e l s e   / /   s h o u l d n ' t   h a p p e n   s i n c e   w e   h a v e   a   v a l i d   e p i c o r   c u s t   i d   v a l i d a t o r   a l r e a d y 
 
 
 
     L i n e   1 5 4   [ m a t c h :   e p i c o r ] : 
 
         1 5 2 :                   { 
 
         1 5 3 :                           i f ( ( ( $ E p i c o r I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ D a t a [ ' E p i c o r C u s t I D ' ] ) )   ! = =   F A L S E )   & &   s t r l e n ( $ E p i c o r I n f o [ ' N a m e ' ] ) ) 
 
   > >   1 5 4 :                                   $ D a t a [ ' e p i _ N a m e ' ]   =   $ E p i c o r I n f o [ ' N a m e ' ] ; 
 
         1 5 5 :                           e l s e   / /   s h o u l d n ' t   h a p p e n   s i n c e   w e   h a v e   a   v a l i d   e p i c o r   c u s t   i d   v a l i d a t o r   a l r e a d y 
 
         1 5 6 :                                   L o g : : e r r o r ( ' E p i c o r   n a m e   f a i l e d   f o r   c o m p a n y   a d d   ' . $ D a t a [ ' E p i c o r C u s t I D ' ] ) ; 
 
 
 
     L i n e   1 5 5   [ m a t c h :   e p i c o r ] : 
 
         1 5 3 :                           i f ( ( ( $ E p i c o r I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ D a t a [ ' E p i c o r C u s t I D ' ] ) )   ! = =   F A L S E )   & &   s t r l e n ( $ E p i c o r I n f o [ ' N a m e ' ] ) ) 
 
         1 5 4 :                                   $ D a t a [ ' e p i _ N a m e ' ]   =   $ E p i c o r I n f o [ ' N a m e ' ] ; 
 
   > >   1 5 5 :                           e l s e   / /   s h o u l d n ' t   h a p p e n   s i n c e   w e   h a v e   a   v a l i d   e p i c o r   c u s t   i d   v a l i d a t o r   a l r e a d y 
 
         1 5 6 :                                   L o g : : e r r o r ( ' E p i c o r   n a m e   f a i l e d   f o r   c o m p a n y   a d d   ' . $ D a t a [ ' E p i c o r C u s t I D ' ] ) ; 
 
         1 5 7 :                   } 
 
 
 
     L i n e   1 5 6   [ m a t c h :   e p i c o r ] : 
 
         1 5 4 :                                   $ D a t a [ ' e p i _ N a m e ' ]   =   $ E p i c o r I n f o [ ' N a m e ' ] ; 
 
         1 5 5 :                           e l s e   / /   s h o u l d n ' t   h a p p e n   s i n c e   w e   h a v e   a   v a l i d   e p i c o r   c u s t   i d   v a l i d a t o r   a l r e a d y 
 
   > >   1 5 6 :                                   L o g : : e r r o r ( ' E p i c o r   n a m e   f a i l e d   f o r   c o m p a n y   a d d   ' . $ D a t a [ ' E p i c o r C u s t I D ' ] ) ; 
 
         1 5 7 :                   } 
 
         1 5 8 :   
 
 
 
     L i n e   4   [ m a t c h :   E p i c o r ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y   a s   q u e s t _ C o m p a n y R e p o ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D ; 
 
 
 
     L i n e   5   [ m a t c h :   E p i c o r ] : 
 
         3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y   a s   q u e s t _ C o m p a n y R e p o ; 
 
         4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
   > >   5 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D ; 
 
         7 :   u s e   E x c e p t i o n ; 
 
 
 
     L i n e   6   [ m a t c h :   E p i c o r ] : 
 
         4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D ; 
 
   > >   6 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D ; 
 
         7 :   u s e   E x c e p t i o n ; 
 
         8 :   u s e   L o g ; 
 
 
 
     L i n e   1 3 3   [ m a t c h :   E p i c o r ] : 
 
         1 3 1 :           { 
 
         1 3 2 :                   $ F o r m   =   p a r e n t : : _ g e t F o r m A d d ( $ M e t a d a t a ,   $ f o r P o s t ) ; 
 
   > >   1 3 3 :                   $ F o r m - > g e t F o r m O b j e c t F r o m D r i v e r ( ) - > g e t I n p u t E l e m e n t B y N a m e ( ' E p i c o r C u s t I D ' ) 
 
         1 3 4 :                           - > a d d I n p u t V a l i d a t o r ( n e w   U n i q u e E p i c o r C u s t I D ( ) ) 
 
         1 3 5 :                           - > a d d I n p u t V a l i d a t o r ( n e w   V a l i d E p i c o r C u s t I D ( ) ) ; 
 
 
 
     L i n e   1 3 4   [ m a t c h :   E p i c o r ] : 
 
         1 3 2 :                   $ F o r m   =   p a r e n t : : _ g e t F o r m A d d ( $ M e t a d a t a ,   $ f o r P o s t ) ; 
 
         1 3 3 :                   $ F o r m - > g e t F o r m O b j e c t F r o m D r i v e r ( ) - > g e t I n p u t E l e m e n t B y N a m e ( ' E p i c o r C u s t I D ' ) 
 
   > >   1 3 4 :                           - > a d d I n p u t V a l i d a t o r ( n e w   U n i q u e E p i c o r C u s t I D ( ) ) 
 
         1 3 5 :                           - > a d d I n p u t V a l i d a t o r ( n e w   V a l i d E p i c o r C u s t I D ( ) ) ; 
 
         1 3 6 :                   r e t u r n   $ F o r m ; 
 
 
 
     L i n e   1 3 5   [ m a t c h :   E p i c o r ] : 
 
         1 3 3 :                   $ F o r m - > g e t F o r m O b j e c t F r o m D r i v e r ( ) - > g e t I n p u t E l e m e n t B y N a m e ( ' E p i c o r C u s t I D ' ) 
 
         1 3 4 :                           - > a d d I n p u t V a l i d a t o r ( n e w   U n i q u e E p i c o r C u s t I D ( ) ) 
 
   > >   1 3 5 :                           - > a d d I n p u t V a l i d a t o r ( n e w   V a l i d E p i c o r C u s t I D ( ) ) ; 
 
         1 3 6 :                   r e t u r n   $ F o r m ; 
 
         1 3 7 :           } 
 
 
 
     L i n e   1 4 1   [ m a t c h :   E p i c o r ] : 
 
         1 3 9 :           p r o t e c t e d   f u n c t i o n   _ g e t F o r m E d i t ( E n t i t y M e t a d a t a I n t e r f a c e   $ M e t a d a t a ,   $ i d ,   $ f o r P o s t   =   f a l s e ) 
 
         1 4 0 :           { 
 
   > >   1 4 1 :                   $ M e t a d a t a - > g e t F i e l d ( ' E p i c o r C u s t I D ' ) - > s e t I s R e a d O n l y ( t r u e ) ; 
 
         1 4 2 :               / /     $ M e t a d a t a - > g e t F i e l d ( ' I s D e a c t i v a t e d ' ) - > s e t I s D i s p l a y e d I n F o r m s ( f a l s e ) ; 
 
         1 4 3 :                   r e t u r n   p a r e n t : : _ g e t F o r m E d i t ( $ M e t a d a t a ,   $ i d ,   $ f o r P o s t ) ; 
 
 
 
     L i n e   1 4 8   [ m a t c h :   E p i c o r ] : 
 
         1 4 6 :           p r o t e c t e d   f u n c t i o n   _ d o D B S a v e ( a r r a y   $ D a t a ,   $ F o r m A c t i o n ) 
 
         1 4 7 :           { 
 
   > >   1 4 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         1 4 9 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 5 0 :   
 
 
 
     L i n e   1 4 9   [ m a t c h :   E p i c o r ] : 
 
         1 4 7 :           { 
 
         1 4 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   1 4 9 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 5 0 :   
 
         1 5 1 :                   i f ( $ F o r m A c t i o n   = =   s e l f : : F O R M _ A C T I O N _ A D D ) 
 
 
 
     L i n e   1 5 3   [ m a t c h :   E p i c o r ] : 
 
         1 5 1 :                   i f ( $ F o r m A c t i o n   = =   s e l f : : F O R M _ A C T I O N _ A D D ) 
 
         1 5 2 :                   { 
 
   > >   1 5 3 :                           i f ( ( ( $ E p i c o r I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ D a t a [ ' E p i c o r C u s t I D ' ] ) )   ! = =   F A L S E )   & &   s t r l e n ( $ E p i c o r I n f o [ ' N a m e ' ] ) ) 
 
         1 5 4 :                                   $ D a t a [ ' e p i _ N a m e ' ]   =   $ E p i c o r I n f o [ ' N a m e ' ] ; 
 
         1 5 5 :                           e l s e   / /   s h o u l d n ' t   h a p p e n   s i n c e   w e   h a v e   a   v a l i d   e p i c o r   c u s t   i d   v a l i d a t o r   a l r e a d y 
 
 
 
     L i n e   1 5 4   [ m a t c h :   E p i c o r ] : 
 
         1 5 2 :                   { 
 
         1 5 3 :                           i f ( ( ( $ E p i c o r I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ D a t a [ ' E p i c o r C u s t I D ' ] ) )   ! = =   F A L S E )   & &   s t r l e n ( $ E p i c o r I n f o [ ' N a m e ' ] ) ) 
 
   > >   1 5 4 :                                   $ D a t a [ ' e p i _ N a m e ' ]   =   $ E p i c o r I n f o [ ' N a m e ' ] ; 
 
         1 5 5 :                           e l s e   / /   s h o u l d n ' t   h a p p e n   s i n c e   w e   h a v e   a   v a l i d   e p i c o r   c u s t   i d   v a l i d a t o r   a l r e a d y 
 
         1 5 6 :                                   L o g : : e r r o r ( ' E p i c o r   n a m e   f a i l e d   f o r   c o m p a n y   a d d   ' . $ D a t a [ ' E p i c o r C u s t I D ' ] ) ; 
 
 
 
     L i n e   1 5 5   [ m a t c h :   E p i c o r ] : 
 
         1 5 3 :                           i f ( ( ( $ E p i c o r I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ D a t a [ ' E p i c o r C u s t I D ' ] ) )   ! = =   F A L S E )   & &   s t r l e n ( $ E p i c o r I n f o [ ' N a m e ' ] ) ) 
 
         1 5 4 :                                   $ D a t a [ ' e p i _ N a m e ' ]   =   $ E p i c o r I n f o [ ' N a m e ' ] ; 
 
   > >   1 5 5 :                           e l s e   / /   s h o u l d n ' t   h a p p e n   s i n c e   w e   h a v e   a   v a l i d   e p i c o r   c u s t   i d   v a l i d a t o r   a l r e a d y 
 
         1 5 6 :                                   L o g : : e r r o r ( ' E p i c o r   n a m e   f a i l e d   f o r   c o m p a n y   a d d   ' . $ D a t a [ ' E p i c o r C u s t I D ' ] ) ; 
 
         1 5 7 :                   } 
 
 
 
     L i n e   1 5 6   [ m a t c h :   E p i c o r ] : 
 
         1 5 4 :                                   $ D a t a [ ' e p i _ N a m e ' ]   =   $ E p i c o r I n f o [ ' N a m e ' ] ; 
 
         1 5 5 :                           e l s e   / /   s h o u l d n ' t   h a p p e n   s i n c e   w e   h a v e   a   v a l i d   e p i c o r   c u s t   i d   v a l i d a t o r   a l r e a d y 
 
   > >   1 5 6 :                                   L o g : : e r r o r ( ' E p i c o r   n a m e   f a i l e d   f o r   c o m p a n y   a d d   ' . $ D a t a [ ' E p i c o r C u s t I D ' ] ) ; 
 
         1 5 7 :                   } 
 
         1 5 8 :   
 
 
 
     L i n e   4   [ m a t c h :   E P I C O R ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y   a s   q u e s t _ C o m p a n y R e p o ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D ; 
 
 
 
     L i n e   5   [ m a t c h :   E P I C O R ] : 
 
         3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y   a s   q u e s t _ C o m p a n y R e p o ; 
 
         4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
   > >   5 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D ; 
 
         7 :   u s e   E x c e p t i o n ; 
 
 
 
     L i n e   6   [ m a t c h :   E P I C O R ] : 
 
         4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D ; 
 
   > >   6 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D ; 
 
         7 :   u s e   E x c e p t i o n ; 
 
         8 :   u s e   L o g ; 
 
 
 
     L i n e   1 3 3   [ m a t c h :   E P I C O R ] : 
 
         1 3 1 :           { 
 
         1 3 2 :                   $ F o r m   =   p a r e n t : : _ g e t F o r m A d d ( $ M e t a d a t a ,   $ f o r P o s t ) ; 
 
   > >   1 3 3 :                   $ F o r m - > g e t F o r m O b j e c t F r o m D r i v e r ( ) - > g e t I n p u t E l e m e n t B y N a m e ( ' E p i c o r C u s t I D ' ) 
 
         1 3 4 :                           - > a d d I n p u t V a l i d a t o r ( n e w   U n i q u e E p i c o r C u s t I D ( ) ) 
 
         1 3 5 :                           - > a d d I n p u t V a l i d a t o r ( n e w   V a l i d E p i c o r C u s t I D ( ) ) ; 
 
 
 
     L i n e   1 3 4   [ m a t c h :   E P I C O R ] : 
 
         1 3 2 :                   $ F o r m   =   p a r e n t : : _ g e t F o r m A d d ( $ M e t a d a t a ,   $ f o r P o s t ) ; 
 
         1 3 3 :                   $ F o r m - > g e t F o r m O b j e c t F r o m D r i v e r ( ) - > g e t I n p u t E l e m e n t B y N a m e ( ' E p i c o r C u s t I D ' ) 
 
   > >   1 3 4 :                           - > a d d I n p u t V a l i d a t o r ( n e w   U n i q u e E p i c o r C u s t I D ( ) ) 
 
         1 3 5 :                           - > a d d I n p u t V a l i d a t o r ( n e w   V a l i d E p i c o r C u s t I D ( ) ) ; 
 
         1 3 6 :                   r e t u r n   $ F o r m ; 
 
 
 
     L i n e   1 3 5   [ m a t c h :   E P I C O R ] : 
 
         1 3 3 :                   $ F o r m - > g e t F o r m O b j e c t F r o m D r i v e r ( ) - > g e t I n p u t E l e m e n t B y N a m e ( ' E p i c o r C u s t I D ' ) 
 
         1 3 4 :                           - > a d d I n p u t V a l i d a t o r ( n e w   U n i q u e E p i c o r C u s t I D ( ) ) 
 
   > >   1 3 5 :                           - > a d d I n p u t V a l i d a t o r ( n e w   V a l i d E p i c o r C u s t I D ( ) ) ; 
 
         1 3 6 :                   r e t u r n   $ F o r m ; 
 
         1 3 7 :           } 
 
 
 
     L i n e   1 4 1   [ m a t c h :   E P I C O R ] : 
 
         1 3 9 :           p r o t e c t e d   f u n c t i o n   _ g e t F o r m E d i t ( E n t i t y M e t a d a t a I n t e r f a c e   $ M e t a d a t a ,   $ i d ,   $ f o r P o s t   =   f a l s e ) 
 
         1 4 0 :           { 
 
   > >   1 4 1 :                   $ M e t a d a t a - > g e t F i e l d ( ' E p i c o r C u s t I D ' ) - > s e t I s R e a d O n l y ( t r u e ) ; 
 
         1 4 2 :               / /     $ M e t a d a t a - > g e t F i e l d ( ' I s D e a c t i v a t e d ' ) - > s e t I s D i s p l a y e d I n F o r m s ( f a l s e ) ; 
 
         1 4 3 :                   r e t u r n   p a r e n t : : _ g e t F o r m E d i t ( $ M e t a d a t a ,   $ i d ,   $ f o r P o s t ) ; 
 
 
 
     L i n e   1 4 8   [ m a t c h :   E P I C O R ] : 
 
         1 4 6 :           p r o t e c t e d   f u n c t i o n   _ d o D B S a v e ( a r r a y   $ D a t a ,   $ F o r m A c t i o n ) 
 
         1 4 7 :           { 
 
   > >   1 4 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         1 4 9 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 5 0 :   
 
 
 
     L i n e   1 4 9   [ m a t c h :   E P I C O R ] : 
 
         1 4 7 :           { 
 
         1 4 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   1 4 9 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 5 0 :   
 
         1 5 1 :                   i f ( $ F o r m A c t i o n   = =   s e l f : : F O R M _ A C T I O N _ A D D ) 
 
 
 
     L i n e   1 5 3   [ m a t c h :   E P I C O R ] : 
 
         1 5 1 :                   i f ( $ F o r m A c t i o n   = =   s e l f : : F O R M _ A C T I O N _ A D D ) 
 
         1 5 2 :                   { 
 
   > >   1 5 3 :                           i f ( ( ( $ E p i c o r I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ D a t a [ ' E p i c o r C u s t I D ' ] ) )   ! = =   F A L S E )   & &   s t r l e n ( $ E p i c o r I n f o [ ' N a m e ' ] ) ) 
 
         1 5 4 :                                   $ D a t a [ ' e p i _ N a m e ' ]   =   $ E p i c o r I n f o [ ' N a m e ' ] ; 
 
         1 5 5 :                           e l s e   / /   s h o u l d n ' t   h a p p e n   s i n c e   w e   h a v e   a   v a l i d   e p i c o r   c u s t   i d   v a l i d a t o r   a l r e a d y 
 
 
 
     L i n e   1 5 4   [ m a t c h :   E P I C O R ] : 
 
         1 5 2 :                   { 
 
         1 5 3 :                           i f ( ( ( $ E p i c o r I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ D a t a [ ' E p i c o r C u s t I D ' ] ) )   ! = =   F A L S E )   & &   s t r l e n ( $ E p i c o r I n f o [ ' N a m e ' ] ) ) 
 
   > >   1 5 4 :                                   $ D a t a [ ' e p i _ N a m e ' ]   =   $ E p i c o r I n f o [ ' N a m e ' ] ; 
 
         1 5 5 :                           e l s e   / /   s h o u l d n ' t   h a p p e n   s i n c e   w e   h a v e   a   v a l i d   e p i c o r   c u s t   i d   v a l i d a t o r   a l r e a d y 
 
         1 5 6 :                                   L o g : : e r r o r ( ' E p i c o r   n a m e   f a i l e d   f o r   c o m p a n y   a d d   ' . $ D a t a [ ' E p i c o r C u s t I D ' ] ) ; 
 
 
 
     L i n e   1 5 5   [ m a t c h :   E P I C O R ] : 
 
         1 5 3 :                           i f ( ( ( $ E p i c o r I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ D a t a [ ' E p i c o r C u s t I D ' ] ) )   ! = =   F A L S E )   & &   s t r l e n ( $ E p i c o r I n f o [ ' N a m e ' ] ) ) 
 
         1 5 4 :                                   $ D a t a [ ' e p i _ N a m e ' ]   =   $ E p i c o r I n f o [ ' N a m e ' ] ; 
 
   > >   1 5 5 :                           e l s e   / /   s h o u l d n ' t   h a p p e n   s i n c e   w e   h a v e   a   v a l i d   e p i c o r   c u s t   i d   v a l i d a t o r   a l r e a d y 
 
         1 5 6 :                                   L o g : : e r r o r ( ' E p i c o r   n a m e   f a i l e d   f o r   c o m p a n y   a d d   ' . $ D a t a [ ' E p i c o r C u s t I D ' ] ) ; 
 
         1 5 7 :                   } 
 
 
 
     L i n e   1 5 6   [ m a t c h :   E P I C O R ] : 
 
         1 5 4 :                                   $ D a t a [ ' e p i _ N a m e ' ]   =   $ E p i c o r I n f o [ ' N a m e ' ] ; 
 
         1 5 5 :                           e l s e   / /   s h o u l d n ' t   h a p p e n   s i n c e   w e   h a v e   a   v a l i d   e p i c o r   c u s t   i d   v a l i d a t o r   a l r e a d y 
 
   > >   1 5 6 :                                   L o g : : e r r o r ( ' E p i c o r   n a m e   f a i l e d   f o r   c o m p a n y   a d d   ' . $ D a t a [ ' E p i c o r C u s t I D ' ] ) ; 
 
         1 5 7 :                   } 
 
         1 5 8 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ A d m i n \ I n v e n t o r y T y p e C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4   [ m a t c h :   e p i c o r ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y   a s   q u e s t _ C o m p a n y R e p o ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D ; 
 
 
 
     L i n e   5   [ m a t c h :   e p i c o r ] : 
 
         3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y   a s   q u e s t _ C o m p a n y R e p o ; 
 
         4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
   > >   5 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D ; 
 
         7 :   u s e   E x c e p t i o n ; 
 
 
 
     L i n e   6   [ m a t c h :   e p i c o r ] : 
 
         4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D ; 
 
   > >   6 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D ; 
 
         7 :   u s e   E x c e p t i o n ; 
 
         8 :   u s e   L o g ; 
 
 
 
     L i n e   4   [ m a t c h :   E p i c o r ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y   a s   q u e s t _ C o m p a n y R e p o ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D ; 
 
 
 
     L i n e   5   [ m a t c h :   E p i c o r ] : 
 
         3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y   a s   q u e s t _ C o m p a n y R e p o ; 
 
         4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
   > >   5 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D ; 
 
         7 :   u s e   E x c e p t i o n ; 
 
 
 
     L i n e   6   [ m a t c h :   E p i c o r ] : 
 
         4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D ; 
 
   > >   6 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D ; 
 
         7 :   u s e   E x c e p t i o n ; 
 
         8 :   u s e   L o g ; 
 
 
 
     L i n e   4   [ m a t c h :   E P I C O R ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y   a s   q u e s t _ C o m p a n y R e p o ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D ; 
 
 
 
     L i n e   5   [ m a t c h :   E P I C O R ] : 
 
         3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y   a s   q u e s t _ C o m p a n y R e p o ; 
 
         4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
   > >   5 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D ; 
 
         7 :   u s e   E x c e p t i o n ; 
 
 
 
     L i n e   6   [ m a t c h :   E P I C O R ] : 
 
         4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D ; 
 
   > >   6 :   u s e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D ; 
 
         7 :   u s e   E x c e p t i o n ; 
 
         8 :   u s e   L o g ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ A d m i n \ I n v o i c e U p l o a d C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 2 7   [ m a t c h :   S E L E C T   ] : 
 
         5 2 5 :   
 
         5 2 6 :                   i f ( i s _ n u l l ( $ D o E m a i l ) ) 
 
   > >   5 2 7 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' Y o u   m u s t   s e l e c t   w h e t h e r   t o   s e n d   e m a i l s   o r   n o t ' ) ; 
 
         5 2 8 :   
 
         5 2 9 :                   $ D o E m a i l   =   ( $ D o E m a i l   ?   t r u e   :   f a l s e ) ; 
 
 
 
     L i n e   1 5   [ m a t c h :   e p i c o r ] : 
 
         1 3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y   a s   q u e s t _ C o m p a n y R e p o ; 
 
         1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ I n v o i c e P D F s ; 
 
   > >   1 5 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 6 :   u s e   C a r b o n \ C a r b o n ; 
 
         1 7 :   u s e   E x c e p t i o n ; 
 
 
 
     L i n e   8 7   [ m a t c h :   e p i c o r ] : 
 
         8 5 :                   / * *   @ v a r   D a t a H a n d l e r   $ D a t a H a n d l e r   * / 
 
         8 6 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
   > >   8 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         8 8 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 9 :                   / * *   @ v a r   E M C o n t a i n e r   $ E M C o n t a i n e r   * / 
 
 
 
     L i n e   8 8   [ m a t c h :   e p i c o r ] : 
 
         8 6 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
         8 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   8 8 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 9 :                   / * *   @ v a r   E M C o n t a i n e r   $ E M C o n t a i n e r   * / 
 
         9 0 :                   $ E M C o n t a i n e r   =   a p p ( E M C o n t a i n e r : : c l a s s ) ; 
 
 
 
     L i n e   2 3 0   [ m a t c h :   e p i c o r ] : 
 
         2 2 8 :                                           $ U p l o a d E n t r y I D T o I n v o i c e N u m b e r M a p p i n g [ $ I n v o i c e U p l o a d E n t r y I D ]   =   $ I n v o i c e N u m b e r ; 
 
         2 2 9 :   
 
   > >   2 3 0 :                                           / * *   @ v a r   e p i _ I n v c H e a d   $ E p i c o r I n v o i c e   * / 
 
         2 3 1 :                                           $ E p i c o r I n v o i c e   =   $ R W E p i I n v o i c e R e p o - > f i n d ( $ I n v o i c e N u m b e r ) ; 
 
         2 3 2 :                                           i f ( ! i s _ n u l l ( $ E p i c o r I n v o i c e ) ) 
 
 
 
     L i n e   2 3 1   [ m a t c h :   e p i c o r ] : 
 
         2 2 9 :   
 
         2 3 0 :                                           / * *   @ v a r   e p i _ I n v c H e a d   $ E p i c o r I n v o i c e   * / 
 
   > >   2 3 1 :                                           $ E p i c o r I n v o i c e   =   $ R W E p i I n v o i c e R e p o - > f i n d ( $ I n v o i c e N u m b e r ) ; 
 
         2 3 2 :                                           i f ( ! i s _ n u l l ( $ E p i c o r I n v o i c e ) ) 
 
         2 3 3 :                                           { 
 
 
 
     L i n e   2 3 2   [ m a t c h :   e p i c o r ] : 
 
         2 3 0 :                                           / * *   @ v a r   e p i _ I n v c H e a d   $ E p i c o r I n v o i c e   * / 
 
         2 3 1 :                                           $ E p i c o r I n v o i c e   =   $ R W E p i I n v o i c e R e p o - > f i n d ( $ I n v o i c e N u m b e r ) ; 
 
   > >   2 3 2 :                                           i f ( ! i s _ n u l l ( $ E p i c o r I n v o i c e ) ) 
 
         2 3 3 :                                           { 
 
         2 3 4 :                                                   $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
 
 
     L i n e   2 3 7   [ m a t c h :   e p i c o r ] : 
 
         2 3 5 :                                                           ' I D '   = >   $ I n v o i c e U p l o a d E n t r y I D , 
 
         2 3 6 :                                                           ' e p i _ I n v c H e a d '   = >   [ ' I n v o i c e N u m '   = >   $ I n v o i c e N u m b e r ] , 
 
   > >   2 3 7 :                                                           ' J o b N u m b e r '   = >   $ E p i c o r D a t a b a s e - > g e t J o b N u m b e r B y I n v o i c e N u m b e r ( $ I n v o i c e N u m b e r ) , 
 
         2 3 8 :                                                           ' I s I g n o r e d '   = >   ( b c c o m p ( $ E p i c o r I n v o i c e - > g e t I n v o i c e A m t ( ) , ' 0 ' , 2 )   < =   0 ) 
 
         2 3 9 :                                                   ] ,   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' i n v _ U p l o a d E n t r y ' ) ) ; 
 
 
 
     L i n e   2 3 8   [ m a t c h :   e p i c o r ] : 
 
         2 3 6 :                                                           ' e p i _ I n v c H e a d '   = >   [ ' I n v o i c e N u m '   = >   $ I n v o i c e N u m b e r ] , 
 
         2 3 7 :                                                           ' J o b N u m b e r '   = >   $ E p i c o r D a t a b a s e - > g e t J o b N u m b e r B y I n v o i c e N u m b e r ( $ I n v o i c e N u m b e r ) , 
 
   > >   2 3 8 :                                                           ' I s I g n o r e d '   = >   ( b c c o m p ( $ E p i c o r I n v o i c e - > g e t I n v o i c e A m t ( ) , ' 0 ' , 2 )   < =   0 ) 
 
         2 3 9 :                                                   ] ,   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' i n v _ U p l o a d E n t r y ' ) ) ; 
 
         2 4 0 :                                           } 
 
 
 
     L i n e   2 8 2   [ m a t c h :   e p i c o r ] : 
 
         2 8 0 :                           } 
 
         2 8 1 :   
 
   > >   2 8 2 :                           $ C u s t o m e r I D I n v o i c e N u m b e r M a p p i n g   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r I D s F o r I n v o i c e N u m b e r s ( $ U p l o a d E n t r y I D T o I n v o i c e N u m b e r M a p p i n g ) ; 
 
         2 8 3 :                           $ C o m p a n y I D C u s t o m e r I D M a p p i n g   =   $ R W C o m p a n y R e p o - > g e t C o m p a n y I D s F o r C u s t o m e r I D s ( a r r a y _ f i l t e r ( $ C u s t o m e r I D I n v o i c e N u m b e r M a p p i n g , f u n c t i o n ( $ v a l ) { r e t u r n   ! i s _ n u l l ( $ v a l ) ; } ) ) ; 
 
         2 8 4 :   
 
 
 
     L i n e   3 7 2   [ m a t c h :   e p i c o r ] : 
 
         3 7 0 :                   { 
 
         3 7 1 :                           $ I n v o i c e N u m b e r s T o L i n k   =   a r r a y _ c o l u m n ( $ A t t e m p t T o L i n k I n v o i c e E n t r i e s ,   ' I n v o i c e N u m b e r ' ) ; 
 
   > >   3 7 2 :                           $ E p i c o r I n v o i c e N u m b e r s   =   $ R O E p i I n v o i c e R e p o - > f i l t e r E x i s t i n g I n v o i c e s ( $ I n v o i c e N u m b e r s T o L i n k ) ; 
 
         3 7 3 :                           / / d d ( $ I n v o i c e N u m b e r s T o L i n k ,   $ E p i c o r I n v o i c e N u m b e r s ) ; 
 
         3 7 4 :                           $ D a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
 
 
     L i n e   3 7 3   [ m a t c h :   e p i c o r ] : 
 
         3 7 1 :                           $ I n v o i c e N u m b e r s T o L i n k   =   a r r a y _ c o l u m n ( $ A t t e m p t T o L i n k I n v o i c e E n t r i e s ,   ' I n v o i c e N u m b e r ' ) ; 
 
         3 7 2 :                           $ E p i c o r I n v o i c e N u m b e r s   =   $ R O E p i I n v o i c e R e p o - > f i l t e r E x i s t i n g I n v o i c e s ( $ I n v o i c e N u m b e r s T o L i n k ) ; 
 
   > >   3 7 3 :                           / / d d ( $ I n v o i c e N u m b e r s T o L i n k ,   $ E p i c o r I n v o i c e N u m b e r s ) ; 
 
         3 7 4 :                           $ D a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
         3 7 5 :                           t r y   { 
 
 
 
     L i n e   3 7 8   [ m a t c h :   e p i c o r ] : 
 
         3 7 6 :                                   f o r e a c h ( $ A t t e m p t T o L i n k I n v o i c e E n t r i e s   a s   $ A t t e m p t T o L i n k I n v o i c e E n t r y ) 
 
         3 7 7 :                                   { 
 
   > >   3 7 8 :                                           i f ( ! i n _ a r r a y ( $ A t t e m p t T o L i n k I n v o i c e E n t r y [ ' I n v o i c e N u m b e r ' ] , $ E p i c o r I n v o i c e N u m b e r s ) ) 
 
         3 7 9 :                                                   c o n t i n u e ; 
 
         3 8 0 :                                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
 
 
     L i n e   4 3 4   [ m a t c h :   e p i c o r ] : 
 
         4 3 2 :   
 
         4 3 3 :                           i f ( i s _ n u l l ( $ U p l o a d E n t r y I n f o [ ' E n t r y E r r o r ' ] )   & &   i s _ n u l l ( $ U p l o a d E n t r y I n f o [ ' e p i _ I n v c H e a d ' ] ) ) 
 
   > >   4 3 4 :                                   $ U p l o a d E n t r y I n f o [ ' E n t r y E r r o r ' ]   =   ' I n v o i c e   n o t   f o u n d   i n   E p i c o r ' ; 
 
         4 3 5 :   
 
         4 3 6 :                           i f ( $ U p l o a d E n t r y I n f o [ ' I s S e n t ' ] ) 
 
 
 
     L i n e   1 5   [ m a t c h :   E p i c o r ] : 
 
         1 3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y   a s   q u e s t _ C o m p a n y R e p o ; 
 
         1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ I n v o i c e P D F s ; 
 
   > >   1 5 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 6 :   u s e   C a r b o n \ C a r b o n ; 
 
         1 7 :   u s e   E x c e p t i o n ; 
 
 
 
     L i n e   8 7   [ m a t c h :   E p i c o r ] : 
 
         8 5 :                   / * *   @ v a r   D a t a H a n d l e r   $ D a t a H a n d l e r   * / 
 
         8 6 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
   > >   8 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         8 8 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 9 :                   / * *   @ v a r   E M C o n t a i n e r   $ E M C o n t a i n e r   * / 
 
 
 
     L i n e   8 8   [ m a t c h :   E p i c o r ] : 
 
         8 6 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
         8 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   8 8 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 9 :                   / * *   @ v a r   E M C o n t a i n e r   $ E M C o n t a i n e r   * / 
 
         9 0 :                   $ E M C o n t a i n e r   =   a p p ( E M C o n t a i n e r : : c l a s s ) ; 
 
 
 
     L i n e   2 3 0   [ m a t c h :   E p i c o r ] : 
 
         2 2 8 :                                           $ U p l o a d E n t r y I D T o I n v o i c e N u m b e r M a p p i n g [ $ I n v o i c e U p l o a d E n t r y I D ]   =   $ I n v o i c e N u m b e r ; 
 
         2 2 9 :   
 
   > >   2 3 0 :                                           / * *   @ v a r   e p i _ I n v c H e a d   $ E p i c o r I n v o i c e   * / 
 
         2 3 1 :                                           $ E p i c o r I n v o i c e   =   $ R W E p i I n v o i c e R e p o - > f i n d ( $ I n v o i c e N u m b e r ) ; 
 
         2 3 2 :                                           i f ( ! i s _ n u l l ( $ E p i c o r I n v o i c e ) ) 
 
 
 
     L i n e   2 3 1   [ m a t c h :   E p i c o r ] : 
 
         2 2 9 :   
 
         2 3 0 :                                           / * *   @ v a r   e p i _ I n v c H e a d   $ E p i c o r I n v o i c e   * / 
 
   > >   2 3 1 :                                           $ E p i c o r I n v o i c e   =   $ R W E p i I n v o i c e R e p o - > f i n d ( $ I n v o i c e N u m b e r ) ; 
 
         2 3 2 :                                           i f ( ! i s _ n u l l ( $ E p i c o r I n v o i c e ) ) 
 
         2 3 3 :                                           { 
 
 
 
     L i n e   2 3 2   [ m a t c h :   E p i c o r ] : 
 
         2 3 0 :                                           / * *   @ v a r   e p i _ I n v c H e a d   $ E p i c o r I n v o i c e   * / 
 
         2 3 1 :                                           $ E p i c o r I n v o i c e   =   $ R W E p i I n v o i c e R e p o - > f i n d ( $ I n v o i c e N u m b e r ) ; 
 
   > >   2 3 2 :                                           i f ( ! i s _ n u l l ( $ E p i c o r I n v o i c e ) ) 
 
         2 3 3 :                                           { 
 
         2 3 4 :                                                   $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
 
 
     L i n e   2 3 7   [ m a t c h :   E p i c o r ] : 
 
         2 3 5 :                                                           ' I D '   = >   $ I n v o i c e U p l o a d E n t r y I D , 
 
         2 3 6 :                                                           ' e p i _ I n v c H e a d '   = >   [ ' I n v o i c e N u m '   = >   $ I n v o i c e N u m b e r ] , 
 
   > >   2 3 7 :                                                           ' J o b N u m b e r '   = >   $ E p i c o r D a t a b a s e - > g e t J o b N u m b e r B y I n v o i c e N u m b e r ( $ I n v o i c e N u m b e r ) , 
 
         2 3 8 :                                                           ' I s I g n o r e d '   = >   ( b c c o m p ( $ E p i c o r I n v o i c e - > g e t I n v o i c e A m t ( ) , ' 0 ' , 2 )   < =   0 ) 
 
         2 3 9 :                                                   ] ,   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' i n v _ U p l o a d E n t r y ' ) ) ; 
 
 
 
     L i n e   2 3 8   [ m a t c h :   E p i c o r ] : 
 
         2 3 6 :                                                           ' e p i _ I n v c H e a d '   = >   [ ' I n v o i c e N u m '   = >   $ I n v o i c e N u m b e r ] , 
 
         2 3 7 :                                                           ' J o b N u m b e r '   = >   $ E p i c o r D a t a b a s e - > g e t J o b N u m b e r B y I n v o i c e N u m b e r ( $ I n v o i c e N u m b e r ) , 
 
   > >   2 3 8 :                                                           ' I s I g n o r e d '   = >   ( b c c o m p ( $ E p i c o r I n v o i c e - > g e t I n v o i c e A m t ( ) , ' 0 ' , 2 )   < =   0 ) 
 
         2 3 9 :                                                   ] ,   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' i n v _ U p l o a d E n t r y ' ) ) ; 
 
         2 4 0 :                                           } 
 
 
 
     L i n e   2 8 2   [ m a t c h :   E p i c o r ] : 
 
         2 8 0 :                           } 
 
         2 8 1 :   
 
   > >   2 8 2 :                           $ C u s t o m e r I D I n v o i c e N u m b e r M a p p i n g   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r I D s F o r I n v o i c e N u m b e r s ( $ U p l o a d E n t r y I D T o I n v o i c e N u m b e r M a p p i n g ) ; 
 
         2 8 3 :                           $ C o m p a n y I D C u s t o m e r I D M a p p i n g   =   $ R W C o m p a n y R e p o - > g e t C o m p a n y I D s F o r C u s t o m e r I D s ( a r r a y _ f i l t e r ( $ C u s t o m e r I D I n v o i c e N u m b e r M a p p i n g , f u n c t i o n ( $ v a l ) { r e t u r n   ! i s _ n u l l ( $ v a l ) ; } ) ) ; 
 
         2 8 4 :   
 
 
 
     L i n e   3 7 2   [ m a t c h :   E p i c o r ] : 
 
         3 7 0 :                   { 
 
         3 7 1 :                           $ I n v o i c e N u m b e r s T o L i n k   =   a r r a y _ c o l u m n ( $ A t t e m p t T o L i n k I n v o i c e E n t r i e s ,   ' I n v o i c e N u m b e r ' ) ; 
 
   > >   3 7 2 :                           $ E p i c o r I n v o i c e N u m b e r s   =   $ R O E p i I n v o i c e R e p o - > f i l t e r E x i s t i n g I n v o i c e s ( $ I n v o i c e N u m b e r s T o L i n k ) ; 
 
         3 7 3 :                           / / d d ( $ I n v o i c e N u m b e r s T o L i n k ,   $ E p i c o r I n v o i c e N u m b e r s ) ; 
 
         3 7 4 :                           $ D a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
 
 
     L i n e   3 7 3   [ m a t c h :   E p i c o r ] : 
 
         3 7 1 :                           $ I n v o i c e N u m b e r s T o L i n k   =   a r r a y _ c o l u m n ( $ A t t e m p t T o L i n k I n v o i c e E n t r i e s ,   ' I n v o i c e N u m b e r ' ) ; 
 
         3 7 2 :                           $ E p i c o r I n v o i c e N u m b e r s   =   $ R O E p i I n v o i c e R e p o - > f i l t e r E x i s t i n g I n v o i c e s ( $ I n v o i c e N u m b e r s T o L i n k ) ; 
 
   > >   3 7 3 :                           / / d d ( $ I n v o i c e N u m b e r s T o L i n k ,   $ E p i c o r I n v o i c e N u m b e r s ) ; 
 
         3 7 4 :                           $ D a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
         3 7 5 :                           t r y   { 
 
 
 
     L i n e   3 7 8   [ m a t c h :   E p i c o r ] : 
 
         3 7 6 :                                   f o r e a c h ( $ A t t e m p t T o L i n k I n v o i c e E n t r i e s   a s   $ A t t e m p t T o L i n k I n v o i c e E n t r y ) 
 
         3 7 7 :                                   { 
 
   > >   3 7 8 :                                           i f ( ! i n _ a r r a y ( $ A t t e m p t T o L i n k I n v o i c e E n t r y [ ' I n v o i c e N u m b e r ' ] , $ E p i c o r I n v o i c e N u m b e r s ) ) 
 
         3 7 9 :                                                   c o n t i n u e ; 
 
         3 8 0 :                                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
 
 
     L i n e   4 3 4   [ m a t c h :   E p i c o r ] : 
 
         4 3 2 :   
 
         4 3 3 :                           i f ( i s _ n u l l ( $ U p l o a d E n t r y I n f o [ ' E n t r y E r r o r ' ] )   & &   i s _ n u l l ( $ U p l o a d E n t r y I n f o [ ' e p i _ I n v c H e a d ' ] ) ) 
 
   > >   4 3 4 :                                   $ U p l o a d E n t r y I n f o [ ' E n t r y E r r o r ' ]   =   ' I n v o i c e   n o t   f o u n d   i n   E p i c o r ' ; 
 
         4 3 5 :   
 
         4 3 6 :                           i f ( $ U p l o a d E n t r y I n f o [ ' I s S e n t ' ] ) 
 
 
 
     L i n e   1 5   [ m a t c h :   E P I C O R ] : 
 
         1 3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y   a s   q u e s t _ C o m p a n y R e p o ; 
 
         1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ I n v o i c e P D F s ; 
 
   > >   1 5 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 6 :   u s e   C a r b o n \ C a r b o n ; 
 
         1 7 :   u s e   E x c e p t i o n ; 
 
 
 
     L i n e   8 7   [ m a t c h :   E P I C O R ] : 
 
         8 5 :                   / * *   @ v a r   D a t a H a n d l e r   $ D a t a H a n d l e r   * / 
 
         8 6 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
   > >   8 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         8 8 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 9 :                   / * *   @ v a r   E M C o n t a i n e r   $ E M C o n t a i n e r   * / 
 
 
 
     L i n e   8 8   [ m a t c h :   E P I C O R ] : 
 
         8 6 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
         8 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   8 8 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 9 :                   / * *   @ v a r   E M C o n t a i n e r   $ E M C o n t a i n e r   * / 
 
         9 0 :                   $ E M C o n t a i n e r   =   a p p ( E M C o n t a i n e r : : c l a s s ) ; 
 
 
 
     L i n e   2 3 0   [ m a t c h :   E P I C O R ] : 
 
         2 2 8 :                                           $ U p l o a d E n t r y I D T o I n v o i c e N u m b e r M a p p i n g [ $ I n v o i c e U p l o a d E n t r y I D ]   =   $ I n v o i c e N u m b e r ; 
 
         2 2 9 :   
 
   > >   2 3 0 :                                           / * *   @ v a r   e p i _ I n v c H e a d   $ E p i c o r I n v o i c e   * / 
 
         2 3 1 :                                           $ E p i c o r I n v o i c e   =   $ R W E p i I n v o i c e R e p o - > f i n d ( $ I n v o i c e N u m b e r ) ; 
 
         2 3 2 :                                           i f ( ! i s _ n u l l ( $ E p i c o r I n v o i c e ) ) 
 
 
 
     L i n e   2 3 1   [ m a t c h :   E P I C O R ] : 
 
         2 2 9 :   
 
         2 3 0 :                                           / * *   @ v a r   e p i _ I n v c H e a d   $ E p i c o r I n v o i c e   * / 
 
   > >   2 3 1 :                                           $ E p i c o r I n v o i c e   =   $ R W E p i I n v o i c e R e p o - > f i n d ( $ I n v o i c e N u m b e r ) ; 
 
         2 3 2 :                                           i f ( ! i s _ n u l l ( $ E p i c o r I n v o i c e ) ) 
 
         2 3 3 :                                           { 
 
 
 
     L i n e   2 3 2   [ m a t c h :   E P I C O R ] : 
 
         2 3 0 :                                           / * *   @ v a r   e p i _ I n v c H e a d   $ E p i c o r I n v o i c e   * / 
 
         2 3 1 :                                           $ E p i c o r I n v o i c e   =   $ R W E p i I n v o i c e R e p o - > f i n d ( $ I n v o i c e N u m b e r ) ; 
 
   > >   2 3 2 :                                           i f ( ! i s _ n u l l ( $ E p i c o r I n v o i c e ) ) 
 
         2 3 3 :                                           { 
 
         2 3 4 :                                                   $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
 
 
     L i n e   2 3 7   [ m a t c h :   E P I C O R ] : 
 
         2 3 5 :                                                           ' I D '   = >   $ I n v o i c e U p l o a d E n t r y I D , 
 
         2 3 6 :                                                           ' e p i _ I n v c H e a d '   = >   [ ' I n v o i c e N u m '   = >   $ I n v o i c e N u m b e r ] , 
 
   > >   2 3 7 :                                                           ' J o b N u m b e r '   = >   $ E p i c o r D a t a b a s e - > g e t J o b N u m b e r B y I n v o i c e N u m b e r ( $ I n v o i c e N u m b e r ) , 
 
         2 3 8 :                                                           ' I s I g n o r e d '   = >   ( b c c o m p ( $ E p i c o r I n v o i c e - > g e t I n v o i c e A m t ( ) , ' 0 ' , 2 )   < =   0 ) 
 
         2 3 9 :                                                   ] ,   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' i n v _ U p l o a d E n t r y ' ) ) ; 
 
 
 
     L i n e   2 3 8   [ m a t c h :   E P I C O R ] : 
 
         2 3 6 :                                                           ' e p i _ I n v c H e a d '   = >   [ ' I n v o i c e N u m '   = >   $ I n v o i c e N u m b e r ] , 
 
         2 3 7 :                                                           ' J o b N u m b e r '   = >   $ E p i c o r D a t a b a s e - > g e t J o b N u m b e r B y I n v o i c e N u m b e r ( $ I n v o i c e N u m b e r ) , 
 
   > >   2 3 8 :                                                           ' I s I g n o r e d '   = >   ( b c c o m p ( $ E p i c o r I n v o i c e - > g e t I n v o i c e A m t ( ) , ' 0 ' , 2 )   < =   0 ) 
 
         2 3 9 :                                                   ] ,   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' i n v _ U p l o a d E n t r y ' ) ) ; 
 
         2 4 0 :                                           } 
 
 
 
     L i n e   2 8 2   [ m a t c h :   E P I C O R ] : 
 
         2 8 0 :                           } 
 
         2 8 1 :   
 
   > >   2 8 2 :                           $ C u s t o m e r I D I n v o i c e N u m b e r M a p p i n g   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r I D s F o r I n v o i c e N u m b e r s ( $ U p l o a d E n t r y I D T o I n v o i c e N u m b e r M a p p i n g ) ; 
 
         2 8 3 :                           $ C o m p a n y I D C u s t o m e r I D M a p p i n g   =   $ R W C o m p a n y R e p o - > g e t C o m p a n y I D s F o r C u s t o m e r I D s ( a r r a y _ f i l t e r ( $ C u s t o m e r I D I n v o i c e N u m b e r M a p p i n g , f u n c t i o n ( $ v a l ) { r e t u r n   ! i s _ n u l l ( $ v a l ) ; } ) ) ; 
 
         2 8 4 :   
 
 
 
     L i n e   3 7 2   [ m a t c h :   E P I C O R ] : 
 
         3 7 0 :                   { 
 
         3 7 1 :                           $ I n v o i c e N u m b e r s T o L i n k   =   a r r a y _ c o l u m n ( $ A t t e m p t T o L i n k I n v o i c e E n t r i e s ,   ' I n v o i c e N u m b e r ' ) ; 
 
   > >   3 7 2 :                           $ E p i c o r I n v o i c e N u m b e r s   =   $ R O E p i I n v o i c e R e p o - > f i l t e r E x i s t i n g I n v o i c e s ( $ I n v o i c e N u m b e r s T o L i n k ) ; 
 
         3 7 3 :                           / / d d ( $ I n v o i c e N u m b e r s T o L i n k ,   $ E p i c o r I n v o i c e N u m b e r s ) ; 
 
         3 7 4 :                           $ D a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
 
 
     L i n e   3 7 3   [ m a t c h :   E P I C O R ] : 
 
         3 7 1 :                           $ I n v o i c e N u m b e r s T o L i n k   =   a r r a y _ c o l u m n ( $ A t t e m p t T o L i n k I n v o i c e E n t r i e s ,   ' I n v o i c e N u m b e r ' ) ; 
 
         3 7 2 :                           $ E p i c o r I n v o i c e N u m b e r s   =   $ R O E p i I n v o i c e R e p o - > f i l t e r E x i s t i n g I n v o i c e s ( $ I n v o i c e N u m b e r s T o L i n k ) ; 
 
   > >   3 7 3 :                           / / d d ( $ I n v o i c e N u m b e r s T o L i n k ,   $ E p i c o r I n v o i c e N u m b e r s ) ; 
 
         3 7 4 :                           $ D a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
         3 7 5 :                           t r y   { 
 
 
 
     L i n e   3 7 8   [ m a t c h :   E P I C O R ] : 
 
         3 7 6 :                                   f o r e a c h ( $ A t t e m p t T o L i n k I n v o i c e E n t r i e s   a s   $ A t t e m p t T o L i n k I n v o i c e E n t r y ) 
 
         3 7 7 :                                   { 
 
   > >   3 7 8 :                                           i f ( ! i n _ a r r a y ( $ A t t e m p t T o L i n k I n v o i c e E n t r y [ ' I n v o i c e N u m b e r ' ] , $ E p i c o r I n v o i c e N u m b e r s ) ) 
 
         3 7 9 :                                                   c o n t i n u e ; 
 
         3 8 0 :                                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
 
 
     L i n e   4 3 4   [ m a t c h :   E P I C O R ] : 
 
         4 3 2 :   
 
         4 3 3 :                           i f ( i s _ n u l l ( $ U p l o a d E n t r y I n f o [ ' E n t r y E r r o r ' ] )   & &   i s _ n u l l ( $ U p l o a d E n t r y I n f o [ ' e p i _ I n v c H e a d ' ] ) ) 
 
   > >   4 3 4 :                                   $ U p l o a d E n t r y I n f o [ ' E n t r y E r r o r ' ]   =   ' I n v o i c e   n o t   f o u n d   i n   E p i c o r ' ; 
 
         4 3 5 :   
 
         4 3 6 :                           i f ( $ U p l o a d E n t r y I n f o [ ' I s S e n t ' ] ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ A d m i n \ S h i p m e n t R e l e a s e C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 6 2   [ m a t c h :   F R O M   ] : 
 
         2 6 0 :   
 
         2 6 1 :                   i f ( $ S h i p m e n t C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ P l a n t   ! = =   $ S h i p m e n t C a r t - > g e t P l a n t ( ) ) 
 
   > >   2 6 2 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e   c u r r e n t   s h i p m e n t   r e l e a s e   a l r e a d y   c o n t a i n s   i t e m s   f r o m   a n o t h e r   p l a n t ' ,   ' a c t i o n '   = >   ' b a d _ p l a n t ' ] ) ; 
 
         2 6 3 :                   e l s e i f ( $ S h i p m e n t C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ S h i p m e n t C a r t - > i s D e t a i l I n C a r t ( $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   ( i n t ) $ O n H a n d Q u a n t i t y ) ) 
 
         2 6 4 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   s h i p m e n t   r e l e a s e ' ,   ' a c t i o n '   = >   ' i n _ c a r t ' ] ) ; 
 
 
 
     L i n e   5 8 9   [ m a t c h :   S E L E C T   ] : 
 
         5 8 7 :                   r e t u r n   v i e w ( ' q u e s t . a d m i n . s h i p m e n t _ r e q u e s t s . a d d i t e m s s t e p 1 ' ,   $ t h i s - > _ a p p e n d T e m p l a t e I n f o F o r V i e w ( 
 
         5 8 8 :                           [ 
 
   > >   5 8 9 :                                   ' S h i p m e n t R e l e a s e C r u d T i t l e '   = >   ' S e l e c t   A r e a ' 
 
         5 9 0 :                                   , ' s e c t i o n s '   = >   $ s e c t i o n 
 
         5 9 1 :                           ] ) ) ; 
 
 
 
     L i n e   1 0   [ m a t c h :   e p i c o r ] : 
 
         8 :   u s e   A p p \ M o d e l \ R e p o s \ s h i p _ R e q u e s t   a s   s h i p _ R e q u e s t R e p o ; 
 
         9 :   
 
   > >   1 0 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 1 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         1 2 :   u s e   A p p \ S e r v i c e s \ F a k e S h i p m e n t C a r t ; 
 
 
 
     L i n e   1 1   [ m a t c h :   e p i c o r ] : 
 
         9 :   
 
         1 0 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
   > >   1 1 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         1 2 :   u s e   A p p \ S e r v i c e s \ F a k e S h i p m e n t C a r t ; 
 
         1 3 :   u s e   A p p \ S e r v i c e s \ I n v e n t o r y H e l p e r ; 
 
 
 
     L i n e   2 3 5   [ m a t c h :   e p i c o r ] : 
 
         2 3 3 :                   $ s r E N   =   $ r e l R o - > f i n d ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' c r u d _ e d i t _ i d ' ) ) ; 
 
         2 3 4 :   
 
   > >   2 3 5 :                   $ s e l e c t e d C u s t o m e r   =   $ s r E N - > g e t Q u e s t C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         2 3 6 :   
 
         2 3 7 :   
 
 
 
     L i n e   2 3 8   [ m a t c h :   e p i c o r ] : 
 
         2 3 6 :   
 
         2 3 7 :   
 
   > >   2 3 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         2 3 9 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 0 :   
 
 
 
     L i n e   2 3 9   [ m a t c h :   e p i c o r ] : 
 
         2 3 7 :   
 
         2 3 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   2 3 9 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 0 :   
 
         2 4 1 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   2 6 8   [ m a t c h :   e p i c o r ] : 
 
         2 6 6 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   p a r t   o f   a n o t h e r   s h i p m e n t   r e l e a s e   f o r   t h i s   c u s t o m e r ' ,   ' a c t i o n '   = >   ' a n o t h e r _ c a r t ' ] ) ; 
 
         2 6 7 :   
 
   > >   2 6 8 :                   $ P a r t D e s c r i p t i o n   =   $ E p i c o r D a t a b a s e - > g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r W i t h P a i n t C o d e ( $ s e l e c t e d C u s t o m e r , $ P a r t N u m ) ; 
 
         2 6 9 :   
 
         2 7 0 :                   $ D a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
 
 
     L i n e   3 0 7   [ m a t c h :   e p i c o r ] : 
 
         3 0 5 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         3 0 6 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   3 0 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 0 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 9 :                   / * *   @ v a r   S h i p m e n t C a r t   $ S h i p m e n t C a r t   * / 
 
 
 
     L i n e   3 0 8   [ m a t c h :   e p i c o r ] : 
 
         3 0 6 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         3 0 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 0 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 9 :                   / * *   @ v a r   S h i p m e n t C a r t   $ S h i p m e n t C a r t   * / 
 
         3 1 0 :                   $ S h i p m e n t C a r t   =   a p p ( S h i p m e n t C a r t : : c l a s s ) ; 
 
 
 
     L i n e   3 2 4   [ m a t c h :   e p i c o r ] : 
 
         3 2 2 :                   $ s r E N   =   $ r e l R o - > f i n d ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' c r u d _ e d i t _ i d ' ) ) ; 
 
         3 2 3 :   
 
   > >   3 2 4 :                   $ c u s t o m e r   =   $ s r E N - > g e t Q u e s t C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         3 2 5 :   
 
         3 2 6 :   
 
 
 
     L i n e   3 2 9   [ m a t c h :   e p i c o r ] : 
 
         3 2 7 :   
 
         3 2 8 :   
 
   > >   3 2 9 :                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r ( $ c u s t o m e r ,   $ P a r t ) ; 
 
         3 3 0 :   
 
         3 3 1 :   
 
 
 
     L i n e   3 3 9   [ m a t c h :   e p i c o r ] : 
 
         3 3 7 :                                   $ S o u r c e N a m e   =   ' U n p r o c e s s e d ' ; 
 
         3 3 8 :                                   $ W r a p C l a s s   =   ' v o r - o r a n g e ' ; 
 
   > >   3 3 9 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 4 0 :                                   b r e a k ; 
 
         3 4 1 :                           c a s e   ' U P - R E J E C T S R E T U R N S ' : 
 
 
 
     L i n e   3 4 5   [ m a t c h :   e p i c o r ] : 
 
         3 4 3 :                                   $ S o u r c e N a m e   =   ' U n p r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) ' ; 
 
         3 4 4 :                                   $ W r a p C l a s s   =   ' v o r - p u r p l e ' ; 
 
   > >   3 4 5 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 4 6 :                                   b r e a k ; 
 
         3 4 7 :                           c a s e   ' W I P ' : 
 
 
 
     L i n e   3 5 1   [ m a t c h :   e p i c o r ] : 
 
         3 4 9 :                                   $ S o u r c e N a m e   =   ' W o r k   I n   P r o g r e s s ' ; 
 
         3 5 0 :                                   $ W r a p C l a s s   =   ' v o r - g r e e n ' ; 
 
   > >   3 5 1 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 5 2 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e , '   p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y V 6 ' ) ; 
 
         3 5 3 :                                   b r e a k ; 
 
 
 
     L i n e   3 5 2   [ m a t c h :   e p i c o r ] : 
 
         3 5 0 :                                   $ W r a p C l a s s   =   ' v o r - g r e e n ' ; 
 
         3 5 1 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   3 5 2 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e , '   p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y V 6 ' ) ; 
 
         3 5 3 :                                   b r e a k ; 
 
         3 5 4 :                           c a s e   ' F G ' : 
 
 
 
     L i n e   3 5 8   [ m a t c h :   e p i c o r ] : 
 
         3 5 6 :                                   $ S o u r c e N a m e   =   ' F i n i s h e d   G o o d s ' ; 
 
         3 5 7 :                                   $ W r a p C l a s s   =   ' v o r - b l u e ' ; 
 
   > >   3 5 8 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 5 9 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y V 6 ' ) ; 
 
         3 6 0 :                                   b r e a k ; 
 
 
 
     L i n e   3 5 9   [ m a t c h :   e p i c o r ] : 
 
         3 5 7 :                                   $ W r a p C l a s s   =   ' v o r - b l u e ' ; 
 
         3 5 8 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   3 5 9 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y V 6 ' ) ; 
 
         3 6 0 :                                   b r e a k ; 
 
         3 6 1 :                           c a s e   ' P - O T H E R ' : 
 
 
 
     L i n e   3 6 5   [ m a t c h :   e p i c o r ] : 
 
         3 6 3 :                                   $ S o u r c e N a m e   =   ' P r o c e s s e d   -   O t h e r ' ; 
 
         3 6 4 :                                   $ W r a p C l a s s   =   ' v o r - y e l l o w ' ; 
 
   > >   3 6 5 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 6 6 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y V 6 ' ) ; 
 
         3 6 7 :                                   b r e a k ; 
 
 
 
     L i n e   3 6 6   [ m a t c h :   e p i c o r ] : 
 
         3 6 4 :                                   $ W r a p C l a s s   =   ' v o r - y e l l o w ' ; 
 
         3 6 5 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   3 6 6 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y V 6 ' ) ; 
 
         3 6 7 :                                   b r e a k ; 
 
         3 6 8 :                           c a s e   ' P - R E J E C T S R E T U R N S ' : 
 
 
 
     L i n e   3 7 2   [ m a t c h :   e p i c o r ] : 
 
         3 7 0 :                                   $ S o u r c e N a m e   =   ' P r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) ' ; 
 
         3 7 1 :                                   $ W r a p C l a s s   =   ' v o r - r e d ' ; 
 
   > >   3 7 2 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 7 3 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e , ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ' ) ; 
 
         3 7 4 :                                   b r e a k ; 
 
 
 
     L i n e   3 7 3   [ m a t c h :   e p i c o r ] : 
 
         3 7 1 :                                   $ W r a p C l a s s   =   ' v o r - r e d ' ; 
 
         3 7 2 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   3 7 3 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e , ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ' ) ; 
 
         3 7 4 :                                   b r e a k ; 
 
         3 7 5 :                           d e f a u l t : 
 
 
 
     L i n e   4 9 0   [ m a t c h :   e p i c o r ] : 
 
         4 8 8 :           p r i v a t e   f u n c t i o n   _ g e t G r i d S u m m a r y ( $ d a t a F u n c ,   $ m e t a F u n c ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a   =   f a l s e ) 
 
         4 8 9 :           { 
 
   > >   4 9 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 9 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 9 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   4 9 1   [ m a t c h :   e p i c o r ] : 
 
         4 8 9 :           { 
 
         4 9 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 9 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 9 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         4 9 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   4 9 5   [ m a t c h :   e p i c o r ] : 
 
         4 9 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         4 9 4 :   
 
   > >   4 9 5 :                   / /   d d ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         4 9 6 :   
 
         4 9 7 :                   $ c e i d   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' c r u d _ e d i t _ i d ' ) ; 
 
 
 
     L i n e   5 0 5   [ m a t c h :   e p i c o r ] : 
 
         5 0 3 :                   $ s h i p m e n t   =   $ s r - > f i n d ( $ c e i d ) ; 
 
         5 0 4 :   
 
   > >   5 0 5 :                   $ c o m p a n y   =   $ s h i p m e n t - > g e t Q u e s t C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         5 0 6 :   
 
         5 0 7 :   
 
 
 
     L i n e   5 0 8   [ m a t c h :   e p i c o r ] : 
 
         5 0 6 :   
 
         5 0 7 :   
 
   > >   5 0 8 :                   $ D a t a   =   $ E p i c o r D B - > $ d a t a F u n c ( $ c o m p a n y ) ; 
 
         5 0 9 :   
 
         5 1 0 :   
 
 
 
     L i n e   5 3 6   [ m a t c h :   e p i c o r ] : 
 
         5 3 4 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d S u m m a r y R R G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a   =   f a l s e ) 
 
         5 3 5 :           { 
 
   > >   5 3 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 3 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 3 8 :                 / /   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ( ) 
 
 
 
     L i n e   5 3 7   [ m a t c h :   e p i c o r ] : 
 
         5 3 5 :           { 
 
         5 3 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 3 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 3 8 :                 / /   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ( ) 
 
         5 3 9 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ' ,   ' _ g e t U n p r o c e s s e d R R S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
 
 
     L i n e   5 3 8   [ m a t c h :   e p i c o r ] : 
 
         5 3 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 3 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   5 3 8 :                 / /   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ( ) 
 
         5 3 9 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ' ,   ' _ g e t U n p r o c e s s e d R R S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
         5 4 0 :           } 
 
 
 
     L i n e   5 4 4   [ m a t c h :   e p i c o r ] : 
 
         5 4 2 :           p u b l i c   f u n c t i o n   g e t W o r k I n P r o g r e s s S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a   =   f a l s e ) 
 
         5 4 3 :           { 
 
   > >   5 4 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 4 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 4 6 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
 
 
     L i n e   5 4 5   [ m a t c h :   e p i c o r ] : 
 
         5 4 3 :           { 
 
         5 4 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 4 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 4 6 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
         5 4 7 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a ' ,   ' _ g e t W o r k I n P r o g r e s s S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
 
 
     L i n e   5 4 6   [ m a t c h :   e p i c o r ] : 
 
         5 4 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 4 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   5 4 6 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
         5 4 7 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a ' ,   ' _ g e t W o r k I n P r o g r e s s S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
         5 4 8 :           } 
 
 
 
     L i n e   5 5 2   [ m a t c h :   e p i c o r ] : 
 
         5 5 0 :           p u b l i c   f u n c t i o n   g e t F i n i s h e d G o o d s S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a   =   f a l s e ) 
 
         5 5 1 :           { 
 
   > >   5 5 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 5 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 5 4 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
 
 
     L i n e   5 5 3   [ m a t c h :   e p i c o r ] : 
 
         5 5 1 :           { 
 
         5 5 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 5 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 5 4 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
         5 5 5 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a ' ,   ' _ g e t F i n i s h e d G o o d s S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
 
 
     L i n e   5 5 4   [ m a t c h :   e p i c o r ] : 
 
         5 5 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 5 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   5 5 4 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
         5 5 5 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a ' ,   ' _ g e t F i n i s h e d G o o d s S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
         5 5 6 :           } 
 
 
 
     L i n e   5 6 0   [ m a t c h :   e p i c o r ] : 
 
         5 5 8 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d O t h e r S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a   =   f a l s e ) 
 
         5 5 9 :           { 
 
   > >   5 6 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 6 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 6 2 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
 
 
     L i n e   5 6 1   [ m a t c h :   e p i c o r ] : 
 
         5 5 9 :           { 
 
         5 6 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 6 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 6 2 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
         5 6 3 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a ' ,   ' _ g e t P r o c e s s e d O t h e r S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
 
 
     L i n e   5 6 2   [ m a t c h :   e p i c o r ] : 
 
         5 6 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 6 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   5 6 2 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
         5 6 3 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a ' ,   ' _ g e t P r o c e s s e d O t h e r S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
         5 6 4 :           } 
 
 
 
     L i n e   1 0   [ m a t c h :   E p i c o r ] : 
 
         8 :   u s e   A p p \ M o d e l \ R e p o s \ s h i p _ R e q u e s t   a s   s h i p _ R e q u e s t R e p o ; 
 
         9 :   
 
   > >   1 0 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 1 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         1 2 :   u s e   A p p \ S e r v i c e s \ F a k e S h i p m e n t C a r t ; 
 
 
 
     L i n e   1 1   [ m a t c h :   E p i c o r ] : 
 
         9 :   
 
         1 0 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
   > >   1 1 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         1 2 :   u s e   A p p \ S e r v i c e s \ F a k e S h i p m e n t C a r t ; 
 
         1 3 :   u s e   A p p \ S e r v i c e s \ I n v e n t o r y H e l p e r ; 
 
 
 
     L i n e   2 3 5   [ m a t c h :   E p i c o r ] : 
 
         2 3 3 :                   $ s r E N   =   $ r e l R o - > f i n d ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' c r u d _ e d i t _ i d ' ) ) ; 
 
         2 3 4 :   
 
   > >   2 3 5 :                   $ s e l e c t e d C u s t o m e r   =   $ s r E N - > g e t Q u e s t C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         2 3 6 :   
 
         2 3 7 :   
 
 
 
     L i n e   2 3 8   [ m a t c h :   E p i c o r ] : 
 
         2 3 6 :   
 
         2 3 7 :   
 
   > >   2 3 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         2 3 9 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 0 :   
 
 
 
     L i n e   2 3 9   [ m a t c h :   E p i c o r ] : 
 
         2 3 7 :   
 
         2 3 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   2 3 9 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 0 :   
 
         2 4 1 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   2 6 8   [ m a t c h :   E p i c o r ] : 
 
         2 6 6 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   p a r t   o f   a n o t h e r   s h i p m e n t   r e l e a s e   f o r   t h i s   c u s t o m e r ' ,   ' a c t i o n '   = >   ' a n o t h e r _ c a r t ' ] ) ; 
 
         2 6 7 :   
 
   > >   2 6 8 :                   $ P a r t D e s c r i p t i o n   =   $ E p i c o r D a t a b a s e - > g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r W i t h P a i n t C o d e ( $ s e l e c t e d C u s t o m e r , $ P a r t N u m ) ; 
 
         2 6 9 :   
 
         2 7 0 :                   $ D a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
 
 
     L i n e   3 0 7   [ m a t c h :   E p i c o r ] : 
 
         3 0 5 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         3 0 6 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   3 0 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 0 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 9 :                   / * *   @ v a r   S h i p m e n t C a r t   $ S h i p m e n t C a r t   * / 
 
 
 
     L i n e   3 0 8   [ m a t c h :   E p i c o r ] : 
 
         3 0 6 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         3 0 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 0 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 9 :                   / * *   @ v a r   S h i p m e n t C a r t   $ S h i p m e n t C a r t   * / 
 
         3 1 0 :                   $ S h i p m e n t C a r t   =   a p p ( S h i p m e n t C a r t : : c l a s s ) ; 
 
 
 
     L i n e   3 2 4   [ m a t c h :   E p i c o r ] : 
 
         3 2 2 :                   $ s r E N   =   $ r e l R o - > f i n d ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' c r u d _ e d i t _ i d ' ) ) ; 
 
         3 2 3 :   
 
   > >   3 2 4 :                   $ c u s t o m e r   =   $ s r E N - > g e t Q u e s t C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         3 2 5 :   
 
         3 2 6 :   
 
 
 
     L i n e   3 2 9   [ m a t c h :   E p i c o r ] : 
 
         3 2 7 :   
 
         3 2 8 :   
 
   > >   3 2 9 :                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r ( $ c u s t o m e r ,   $ P a r t ) ; 
 
         3 3 0 :   
 
         3 3 1 :   
 
 
 
     L i n e   3 3 9   [ m a t c h :   E p i c o r ] : 
 
         3 3 7 :                                   $ S o u r c e N a m e   =   ' U n p r o c e s s e d ' ; 
 
         3 3 8 :                                   $ W r a p C l a s s   =   ' v o r - o r a n g e ' ; 
 
   > >   3 3 9 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 4 0 :                                   b r e a k ; 
 
         3 4 1 :                           c a s e   ' U P - R E J E C T S R E T U R N S ' : 
 
 
 
     L i n e   3 4 5   [ m a t c h :   E p i c o r ] : 
 
         3 4 3 :                                   $ S o u r c e N a m e   =   ' U n p r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) ' ; 
 
         3 4 4 :                                   $ W r a p C l a s s   =   ' v o r - p u r p l e ' ; 
 
   > >   3 4 5 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 4 6 :                                   b r e a k ; 
 
         3 4 7 :                           c a s e   ' W I P ' : 
 
 
 
     L i n e   3 5 1   [ m a t c h :   E p i c o r ] : 
 
         3 4 9 :                                   $ S o u r c e N a m e   =   ' W o r k   I n   P r o g r e s s ' ; 
 
         3 5 0 :                                   $ W r a p C l a s s   =   ' v o r - g r e e n ' ; 
 
   > >   3 5 1 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 5 2 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e , '   p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y V 6 ' ) ; 
 
         3 5 3 :                                   b r e a k ; 
 
 
 
     L i n e   3 5 2   [ m a t c h :   E p i c o r ] : 
 
         3 5 0 :                                   $ W r a p C l a s s   =   ' v o r - g r e e n ' ; 
 
         3 5 1 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   3 5 2 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e , '   p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y V 6 ' ) ; 
 
         3 5 3 :                                   b r e a k ; 
 
         3 5 4 :                           c a s e   ' F G ' : 
 
 
 
     L i n e   3 5 8   [ m a t c h :   E p i c o r ] : 
 
         3 5 6 :                                   $ S o u r c e N a m e   =   ' F i n i s h e d   G o o d s ' ; 
 
         3 5 7 :                                   $ W r a p C l a s s   =   ' v o r - b l u e ' ; 
 
   > >   3 5 8 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 5 9 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y V 6 ' ) ; 
 
         3 6 0 :                                   b r e a k ; 
 
 
 
     L i n e   3 5 9   [ m a t c h :   E p i c o r ] : 
 
         3 5 7 :                                   $ W r a p C l a s s   =   ' v o r - b l u e ' ; 
 
         3 5 8 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   3 5 9 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y V 6 ' ) ; 
 
         3 6 0 :                                   b r e a k ; 
 
         3 6 1 :                           c a s e   ' P - O T H E R ' : 
 
 
 
     L i n e   3 6 5   [ m a t c h :   E p i c o r ] : 
 
         3 6 3 :                                   $ S o u r c e N a m e   =   ' P r o c e s s e d   -   O t h e r ' ; 
 
         3 6 4 :                                   $ W r a p C l a s s   =   ' v o r - y e l l o w ' ; 
 
   > >   3 6 5 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 6 6 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y V 6 ' ) ; 
 
         3 6 7 :                                   b r e a k ; 
 
 
 
     L i n e   3 6 6   [ m a t c h :   E p i c o r ] : 
 
         3 6 4 :                                   $ W r a p C l a s s   =   ' v o r - y e l l o w ' ; 
 
         3 6 5 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   3 6 6 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y V 6 ' ) ; 
 
         3 6 7 :                                   b r e a k ; 
 
         3 6 8 :                           c a s e   ' P - R E J E C T S R E T U R N S ' : 
 
 
 
     L i n e   3 7 2   [ m a t c h :   E p i c o r ] : 
 
         3 7 0 :                                   $ S o u r c e N a m e   =   ' P r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) ' ; 
 
         3 7 1 :                                   $ W r a p C l a s s   =   ' v o r - r e d ' ; 
 
   > >   3 7 2 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 7 3 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e , ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ' ) ; 
 
         3 7 4 :                                   b r e a k ; 
 
 
 
     L i n e   3 7 3   [ m a t c h :   E p i c o r ] : 
 
         3 7 1 :                                   $ W r a p C l a s s   =   ' v o r - r e d ' ; 
 
         3 7 2 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   3 7 3 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e , ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ' ) ; 
 
         3 7 4 :                                   b r e a k ; 
 
         3 7 5 :                           d e f a u l t : 
 
 
 
     L i n e   4 9 0   [ m a t c h :   E p i c o r ] : 
 
         4 8 8 :           p r i v a t e   f u n c t i o n   _ g e t G r i d S u m m a r y ( $ d a t a F u n c ,   $ m e t a F u n c ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a   =   f a l s e ) 
 
         4 8 9 :           { 
 
   > >   4 9 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 9 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 9 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   4 9 1   [ m a t c h :   E p i c o r ] : 
 
         4 8 9 :           { 
 
         4 9 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 9 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 9 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         4 9 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   4 9 5   [ m a t c h :   E p i c o r ] : 
 
         4 9 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         4 9 4 :   
 
   > >   4 9 5 :                   / /   d d ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         4 9 6 :   
 
         4 9 7 :                   $ c e i d   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' c r u d _ e d i t _ i d ' ) ; 
 
 
 
     L i n e   5 0 5   [ m a t c h :   E p i c o r ] : 
 
         5 0 3 :                   $ s h i p m e n t   =   $ s r - > f i n d ( $ c e i d ) ; 
 
         5 0 4 :   
 
   > >   5 0 5 :                   $ c o m p a n y   =   $ s h i p m e n t - > g e t Q u e s t C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         5 0 6 :   
 
         5 0 7 :   
 
 
 
     L i n e   5 0 8   [ m a t c h :   E p i c o r ] : 
 
         5 0 6 :   
 
         5 0 7 :   
 
   > >   5 0 8 :                   $ D a t a   =   $ E p i c o r D B - > $ d a t a F u n c ( $ c o m p a n y ) ; 
 
         5 0 9 :   
 
         5 1 0 :   
 
 
 
     L i n e   5 3 6   [ m a t c h :   E p i c o r ] : 
 
         5 3 4 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d S u m m a r y R R G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a   =   f a l s e ) 
 
         5 3 5 :           { 
 
   > >   5 3 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 3 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 3 8 :                 / /   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ( ) 
 
 
 
     L i n e   5 3 7   [ m a t c h :   E p i c o r ] : 
 
         5 3 5 :           { 
 
         5 3 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 3 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 3 8 :                 / /   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ( ) 
 
         5 3 9 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ' ,   ' _ g e t U n p r o c e s s e d R R S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
 
 
     L i n e   5 3 8   [ m a t c h :   E p i c o r ] : 
 
         5 3 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 3 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   5 3 8 :                 / /   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ( ) 
 
         5 3 9 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ' ,   ' _ g e t U n p r o c e s s e d R R S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
         5 4 0 :           } 
 
 
 
     L i n e   5 4 4   [ m a t c h :   E p i c o r ] : 
 
         5 4 2 :           p u b l i c   f u n c t i o n   g e t W o r k I n P r o g r e s s S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a   =   f a l s e ) 
 
         5 4 3 :           { 
 
   > >   5 4 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 4 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 4 6 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
 
 
     L i n e   5 4 5   [ m a t c h :   E p i c o r ] : 
 
         5 4 3 :           { 
 
         5 4 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 4 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 4 6 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
         5 4 7 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a ' ,   ' _ g e t W o r k I n P r o g r e s s S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
 
 
     L i n e   5 4 6   [ m a t c h :   E p i c o r ] : 
 
         5 4 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 4 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   5 4 6 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
         5 4 7 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a ' ,   ' _ g e t W o r k I n P r o g r e s s S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
         5 4 8 :           } 
 
 
 
     L i n e   5 5 2   [ m a t c h :   E p i c o r ] : 
 
         5 5 0 :           p u b l i c   f u n c t i o n   g e t F i n i s h e d G o o d s S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a   =   f a l s e ) 
 
         5 5 1 :           { 
 
   > >   5 5 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 5 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 5 4 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
 
 
     L i n e   5 5 3   [ m a t c h :   E p i c o r ] : 
 
         5 5 1 :           { 
 
         5 5 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 5 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 5 4 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
         5 5 5 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a ' ,   ' _ g e t F i n i s h e d G o o d s S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
 
 
     L i n e   5 5 4   [ m a t c h :   E p i c o r ] : 
 
         5 5 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 5 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   5 5 4 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
         5 5 5 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a ' ,   ' _ g e t F i n i s h e d G o o d s S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
         5 5 6 :           } 
 
 
 
     L i n e   5 6 0   [ m a t c h :   E p i c o r ] : 
 
         5 5 8 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d O t h e r S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a   =   f a l s e ) 
 
         5 5 9 :           { 
 
   > >   5 6 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 6 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 6 2 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
 
 
     L i n e   5 6 1   [ m a t c h :   E p i c o r ] : 
 
         5 5 9 :           { 
 
         5 6 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 6 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 6 2 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
         5 6 3 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a ' ,   ' _ g e t P r o c e s s e d O t h e r S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
 
 
     L i n e   5 6 2   [ m a t c h :   E p i c o r ] : 
 
         5 6 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 6 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   5 6 2 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
         5 6 3 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a ' ,   ' _ g e t P r o c e s s e d O t h e r S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
         5 6 4 :           } 
 
 
 
     L i n e   1 0   [ m a t c h :   E P I C O R ] : 
 
         8 :   u s e   A p p \ M o d e l \ R e p o s \ s h i p _ R e q u e s t   a s   s h i p _ R e q u e s t R e p o ; 
 
         9 :   
 
   > >   1 0 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 1 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         1 2 :   u s e   A p p \ S e r v i c e s \ F a k e S h i p m e n t C a r t ; 
 
 
 
     L i n e   1 1   [ m a t c h :   E P I C O R ] : 
 
         9 :   
 
         1 0 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
   > >   1 1 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         1 2 :   u s e   A p p \ S e r v i c e s \ F a k e S h i p m e n t C a r t ; 
 
         1 3 :   u s e   A p p \ S e r v i c e s \ I n v e n t o r y H e l p e r ; 
 
 
 
     L i n e   2 3 5   [ m a t c h :   E P I C O R ] : 
 
         2 3 3 :                   $ s r E N   =   $ r e l R o - > f i n d ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' c r u d _ e d i t _ i d ' ) ) ; 
 
         2 3 4 :   
 
   > >   2 3 5 :                   $ s e l e c t e d C u s t o m e r   =   $ s r E N - > g e t Q u e s t C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         2 3 6 :   
 
         2 3 7 :   
 
 
 
     L i n e   2 3 8   [ m a t c h :   E P I C O R ] : 
 
         2 3 6 :   
 
         2 3 7 :   
 
   > >   2 3 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         2 3 9 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 0 :   
 
 
 
     L i n e   2 3 9   [ m a t c h :   E P I C O R ] : 
 
         2 3 7 :   
 
         2 3 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   2 3 9 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 0 :   
 
         2 4 1 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   2 6 8   [ m a t c h :   E P I C O R ] : 
 
         2 6 6 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   p a r t   o f   a n o t h e r   s h i p m e n t   r e l e a s e   f o r   t h i s   c u s t o m e r ' ,   ' a c t i o n '   = >   ' a n o t h e r _ c a r t ' ] ) ; 
 
         2 6 7 :   
 
   > >   2 6 8 :                   $ P a r t D e s c r i p t i o n   =   $ E p i c o r D a t a b a s e - > g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r W i t h P a i n t C o d e ( $ s e l e c t e d C u s t o m e r , $ P a r t N u m ) ; 
 
         2 6 9 :   
 
         2 7 0 :                   $ D a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
 
 
     L i n e   3 0 7   [ m a t c h :   E P I C O R ] : 
 
         3 0 5 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         3 0 6 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   3 0 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 0 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 9 :                   / * *   @ v a r   S h i p m e n t C a r t   $ S h i p m e n t C a r t   * / 
 
 
 
     L i n e   3 0 8   [ m a t c h :   E P I C O R ] : 
 
         3 0 6 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         3 0 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 0 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 9 :                   / * *   @ v a r   S h i p m e n t C a r t   $ S h i p m e n t C a r t   * / 
 
         3 1 0 :                   $ S h i p m e n t C a r t   =   a p p ( S h i p m e n t C a r t : : c l a s s ) ; 
 
 
 
     L i n e   3 2 4   [ m a t c h :   E P I C O R ] : 
 
         3 2 2 :                   $ s r E N   =   $ r e l R o - > f i n d ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' c r u d _ e d i t _ i d ' ) ) ; 
 
         3 2 3 :   
 
   > >   3 2 4 :                   $ c u s t o m e r   =   $ s r E N - > g e t Q u e s t C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         3 2 5 :   
 
         3 2 6 :   
 
 
 
     L i n e   3 2 9   [ m a t c h :   E P I C O R ] : 
 
         3 2 7 :   
 
         3 2 8 :   
 
   > >   3 2 9 :                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r ( $ c u s t o m e r ,   $ P a r t ) ; 
 
         3 3 0 :   
 
         3 3 1 :   
 
 
 
     L i n e   3 3 9   [ m a t c h :   E P I C O R ] : 
 
         3 3 7 :                                   $ S o u r c e N a m e   =   ' U n p r o c e s s e d ' ; 
 
         3 3 8 :                                   $ W r a p C l a s s   =   ' v o r - o r a n g e ' ; 
 
   > >   3 3 9 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 4 0 :                                   b r e a k ; 
 
         3 4 1 :                           c a s e   ' U P - R E J E C T S R E T U R N S ' : 
 
 
 
     L i n e   3 4 5   [ m a t c h :   E P I C O R ] : 
 
         3 4 3 :                                   $ S o u r c e N a m e   =   ' U n p r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) ' ; 
 
         3 4 4 :                                   $ W r a p C l a s s   =   ' v o r - p u r p l e ' ; 
 
   > >   3 4 5 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 4 6 :                                   b r e a k ; 
 
         3 4 7 :                           c a s e   ' W I P ' : 
 
 
 
     L i n e   3 5 1   [ m a t c h :   E P I C O R ] : 
 
         3 4 9 :                                   $ S o u r c e N a m e   =   ' W o r k   I n   P r o g r e s s ' ; 
 
         3 5 0 :                                   $ W r a p C l a s s   =   ' v o r - g r e e n ' ; 
 
   > >   3 5 1 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 5 2 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e , '   p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y V 6 ' ) ; 
 
         3 5 3 :                                   b r e a k ; 
 
 
 
     L i n e   3 5 2   [ m a t c h :   E P I C O R ] : 
 
         3 5 0 :                                   $ W r a p C l a s s   =   ' v o r - g r e e n ' ; 
 
         3 5 1 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   3 5 2 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e , '   p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y V 6 ' ) ; 
 
         3 5 3 :                                   b r e a k ; 
 
         3 5 4 :                           c a s e   ' F G ' : 
 
 
 
     L i n e   3 5 8   [ m a t c h :   E P I C O R ] : 
 
         3 5 6 :                                   $ S o u r c e N a m e   =   ' F i n i s h e d   G o o d s ' ; 
 
         3 5 7 :                                   $ W r a p C l a s s   =   ' v o r - b l u e ' ; 
 
   > >   3 5 8 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 5 9 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y V 6 ' ) ; 
 
         3 6 0 :                                   b r e a k ; 
 
 
 
     L i n e   3 5 9   [ m a t c h :   E P I C O R ] : 
 
         3 5 7 :                                   $ W r a p C l a s s   =   ' v o r - b l u e ' ; 
 
         3 5 8 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   3 5 9 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y V 6 ' ) ; 
 
         3 6 0 :                                   b r e a k ; 
 
         3 6 1 :                           c a s e   ' P - O T H E R ' : 
 
 
 
     L i n e   3 6 5   [ m a t c h :   E P I C O R ] : 
 
         3 6 3 :                                   $ S o u r c e N a m e   =   ' P r o c e s s e d   -   O t h e r ' ; 
 
         3 6 4 :                                   $ W r a p C l a s s   =   ' v o r - y e l l o w ' ; 
 
   > >   3 6 5 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 6 6 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y V 6 ' ) ; 
 
         3 6 7 :                                   b r e a k ; 
 
 
 
     L i n e   3 6 6   [ m a t c h :   E P I C O R ] : 
 
         3 6 4 :                                   $ W r a p C l a s s   =   ' v o r - y e l l o w ' ; 
 
         3 6 5 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   3 6 6 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y V 6 ' ) ; 
 
         3 6 7 :                                   b r e a k ; 
 
         3 6 8 :                           c a s e   ' P - R E J E C T S R E T U R N S ' : 
 
 
 
     L i n e   3 7 2   [ m a t c h :   E P I C O R ] : 
 
         3 7 0 :                                   $ S o u r c e N a m e   =   ' P r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) ' ; 
 
         3 7 1 :                                   $ W r a p C l a s s   =   ' v o r - r e d ' ; 
 
   > >   3 7 2 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 7 3 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e , ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ' ) ; 
 
         3 7 4 :                                   b r e a k ; 
 
 
 
     L i n e   3 7 3   [ m a t c h :   E P I C O R ] : 
 
         3 7 1 :                                   $ W r a p C l a s s   =   ' v o r - r e d ' ; 
 
         3 7 2 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   3 7 3 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ c u s t o m e r ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e , ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ' ) ; 
 
         3 7 4 :                                   b r e a k ; 
 
         3 7 5 :                           d e f a u l t : 
 
 
 
     L i n e   4 9 0   [ m a t c h :   E P I C O R ] : 
 
         4 8 8 :           p r i v a t e   f u n c t i o n   _ g e t G r i d S u m m a r y ( $ d a t a F u n c ,   $ m e t a F u n c ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a   =   f a l s e ) 
 
         4 8 9 :           { 
 
   > >   4 9 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 9 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 9 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   4 9 1   [ m a t c h :   E P I C O R ] : 
 
         4 8 9 :           { 
 
         4 9 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 9 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 9 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         4 9 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   4 9 5   [ m a t c h :   E P I C O R ] : 
 
         4 9 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         4 9 4 :   
 
   > >   4 9 5 :                   / /   d d ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         4 9 6 :   
 
         4 9 7 :                   $ c e i d   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' c r u d _ e d i t _ i d ' ) ; 
 
 
 
     L i n e   5 0 5   [ m a t c h :   E P I C O R ] : 
 
         5 0 3 :                   $ s h i p m e n t   =   $ s r - > f i n d ( $ c e i d ) ; 
 
         5 0 4 :   
 
   > >   5 0 5 :                   $ c o m p a n y   =   $ s h i p m e n t - > g e t Q u e s t C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         5 0 6 :   
 
         5 0 7 :   
 
 
 
     L i n e   5 0 8   [ m a t c h :   E P I C O R ] : 
 
         5 0 6 :   
 
         5 0 7 :   
 
   > >   5 0 8 :                   $ D a t a   =   $ E p i c o r D B - > $ d a t a F u n c ( $ c o m p a n y ) ; 
 
         5 0 9 :   
 
         5 1 0 :   
 
 
 
     L i n e   5 3 6   [ m a t c h :   E P I C O R ] : 
 
         5 3 4 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d S u m m a r y R R G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a   =   f a l s e ) 
 
         5 3 5 :           { 
 
   > >   5 3 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 3 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 3 8 :                 / /   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ( ) 
 
 
 
     L i n e   5 3 7   [ m a t c h :   E P I C O R ] : 
 
         5 3 5 :           { 
 
         5 3 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 3 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 3 8 :                 / /   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ( ) 
 
         5 3 9 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ' ,   ' _ g e t U n p r o c e s s e d R R S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
 
 
     L i n e   5 3 8   [ m a t c h :   E P I C O R ] : 
 
         5 3 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 3 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   5 3 8 :                 / /   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ( ) 
 
         5 3 9 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ' ,   ' _ g e t U n p r o c e s s e d R R S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
         5 4 0 :           } 
 
 
 
     L i n e   5 4 4   [ m a t c h :   E P I C O R ] : 
 
         5 4 2 :           p u b l i c   f u n c t i o n   g e t W o r k I n P r o g r e s s S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a   =   f a l s e ) 
 
         5 4 3 :           { 
 
   > >   5 4 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 4 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 4 6 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
 
 
     L i n e   5 4 5   [ m a t c h :   E P I C O R ] : 
 
         5 4 3 :           { 
 
         5 4 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 4 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 4 6 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
         5 4 7 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a ' ,   ' _ g e t W o r k I n P r o g r e s s S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
 
 
     L i n e   5 4 6   [ m a t c h :   E P I C O R ] : 
 
         5 4 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 4 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   5 4 6 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
         5 4 7 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a ' ,   ' _ g e t W o r k I n P r o g r e s s S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
         5 4 8 :           } 
 
 
 
     L i n e   5 5 2   [ m a t c h :   E P I C O R ] : 
 
         5 5 0 :           p u b l i c   f u n c t i o n   g e t F i n i s h e d G o o d s S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a   =   f a l s e ) 
 
         5 5 1 :           { 
 
   > >   5 5 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 5 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 5 4 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
 
 
     L i n e   5 5 3   [ m a t c h :   E P I C O R ] : 
 
         5 5 1 :           { 
 
         5 5 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 5 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 5 4 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
         5 5 5 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a ' ,   ' _ g e t F i n i s h e d G o o d s S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
 
 
     L i n e   5 5 4   [ m a t c h :   E P I C O R ] : 
 
         5 5 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 5 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   5 5 4 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
         5 5 5 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a ' ,   ' _ g e t F i n i s h e d G o o d s S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
         5 5 6 :           } 
 
 
 
     L i n e   5 6 0   [ m a t c h :   E P I C O R ] : 
 
         5 5 8 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d O t h e r S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a   =   f a l s e ) 
 
         5 5 9 :           { 
 
   > >   5 6 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 6 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 6 2 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
 
 
     L i n e   5 6 1   [ m a t c h :   E P I C O R ] : 
 
         5 5 9 :           { 
 
         5 6 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 6 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 6 2 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
         5 6 3 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a ' ,   ' _ g e t P r o c e s s e d O t h e r S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
 
 
     L i n e   5 6 2   [ m a t c h :   E P I C O R ] : 
 
         5 6 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 6 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   5 6 2 :                   / /   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d S u m m a r y D a t a ( ) 
 
         5 6 3 :                   r e t u r n   $ t h i s - > _ g e t G r i d S u m m a r y ( ' g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a ' ,   ' _ g e t P r o c e s s e d O t h e r S u m m a r y M e t a d a t a ' ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a ) ; 
 
         5 6 4 :           } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5   [ m a t c h :   w a v e ] : 
 
         3 :   n a m e s p a c e   A p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ A d m i n ; 
 
         4 :   
 
   > >   5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y ; 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
 
 
     L i n e   6   [ m a t c h :   w a v e ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y ; 
 
   > >   6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         8 :   u s e   S a v v i o r \ D a t a \ R e c o r d L i s t R e s u l t ; 
 
 
 
     L i n e   7   [ m a t c h :   w a v e ] : 
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y ; 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         8 :   u s e   S a v v i o r \ D a t a \ R e c o r d L i s t R e s u l t ; 
 
         9 :   u s e   S a v v i o r \ L a r a v e l \ A p p \ S e r v i c e s \ R o u t e H e l p e r ; 
 
 
 
     L i n e   1 8   [ m a t c h :   w a v e ] : 
 
         1 6 :   u s e   S a v v i o r \ U I \ G r i d \ M e n u \ T e m p l a t e \ M e n u T e m p l a t e ; 
 
         1 7 :   
 
   > >   1 8 :   c l a s s   W a v e P r o c e s s C o n t r o l l e r   e x t e n d s   C r u d B a s e 
 
         1 9 :   { 
 
         2 0 :           p r o t e c t e d   $ e n t i t y N a m e   =   ' w a v e _ P r o c e s s ' ; 
 
 
 
     L i n e   2 0   [ m a t c h :   w a v e ] : 
 
         1 8 :   c l a s s   W a v e P r o c e s s C o n t r o l l e r   e x t e n d s   C r u d B a s e 
 
         1 9 :   { 
 
   > >   2 0 :           p r o t e c t e d   $ e n t i t y N a m e   =   ' w a v e _ P r o c e s s ' ; 
 
         2 1 :           p r o t e c t e d   $ m a s t e r T e m p l a t e   =   ' q u e s t . a d m i n . w a v e _ e d i . i n d e x ' ; 
 
         2 2 :           p r o t e c t e d   $ t e m p l a t e M a i n S e c t i o n   =   ' c r u d _ m a i n ' ; 
 
 
 
     L i n e   2 1   [ m a t c h :   w a v e ] : 
 
         1 9 :   { 
 
         2 0 :           p r o t e c t e d   $ e n t i t y N a m e   =   ' w a v e _ P r o c e s s ' ; 
 
   > >   2 1 :           p r o t e c t e d   $ m a s t e r T e m p l a t e   =   ' q u e s t . a d m i n . w a v e _ e d i . i n d e x ' ; 
 
         2 2 :           p r o t e c t e d   $ t e m p l a t e M a i n S e c t i o n   =   ' c r u d _ m a i n ' ; 
 
         2 3 :           p r o t e c t e d   $ t e m p l a t e S c r i p t s S e c t i o n   =   ' c r u d _ s c r i p t s ' ; 
 
 
 
     L i n e   3 7   [ m a t c h :   w a v e ] : 
 
         3 5 :           p u b l i c   f u n c t i o n   g e t V i e w ( ) 
 
         3 6 :           { 
 
   > >   3 7 :                   $ t h i s - > m a s t e r T e m p l a t e   =   ' q u e s t . a d m i n . w a v e _ e d i . s h o w ' ; 
 
         3 8 :   
 
         3 9 :                   / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
 
 
     L i n e   3 9   [ m a t c h :   w a v e ] : 
 
         3 7 :                   $ t h i s - > m a s t e r T e m p l a t e   =   ' q u e s t . a d m i n . w a v e _ e d i . s h o w ' ; 
 
         3 8 :   
 
   > >   3 9 :                   / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
         4 0 :                   $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         4 1 :   
 
 
 
     L i n e   4 0   [ m a t c h :   w a v e ] : 
 
         3 8 :   
 
         3 9 :                   / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
   > >   4 0 :                   $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         4 1 :   
 
         4 2 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
 
 
     L i n e   4 2   [ m a t c h :   w a v e ] : 
 
         4 0 :                   $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         4 1 :   
 
   > >   4 2 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
         4 3 :                   $ w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s R e p o - > f i n d O n e B y ( [ ' I D '   = >   \ R o u t e : : g e t C u r r e n t R o u t e ( ) - > p a r a m e t e r ( ' c r u d _ v i e w _ i d ' ) ] ) ; 
 
         4 4 :   
 
 
 
     L i n e   4 3   [ m a t c h :   w a v e ] : 
 
         4 1 :   
 
         4 2 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
   > >   4 3 :                   $ w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s R e p o - > f i n d O n e B y ( [ ' I D '   = >   \ R o u t e : : g e t C u r r e n t R o u t e ( ) - > p a r a m e t e r ( ' c r u d _ v i e w _ i d ' ) ] ) ; 
 
         4 4 :   
 
         4 5 :                   $ w a v e _ P r o c e s s H i s t o r y G r i d   =   $ t h i s - > _ m a k e P r o c e s s H i s t o r y G r i d ( $ w a v e _ P r o c e s s ) ; 
 
 
 
     L i n e   4 5   [ m a t c h :   w a v e ] : 
 
         4 3 :                   $ w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s R e p o - > f i n d O n e B y ( [ ' I D '   = >   \ R o u t e : : g e t C u r r e n t R o u t e ( ) - > p a r a m e t e r ( ' c r u d _ v i e w _ i d ' ) ] ) ; 
 
         4 4 :   
 
   > >   4 5 :                   $ w a v e _ P r o c e s s H i s t o r y G r i d   =   $ t h i s - > _ m a k e P r o c e s s H i s t o r y G r i d ( $ w a v e _ P r o c e s s ) ; 
 
         4 6 :   
 
         4 7 :                   / * *   @ v a r   R o u t e H e l p e r   $ R o u t e H e l p e r   * / 
 
 
 
     L i n e   6 5   [ m a t c h :   w a v e ] : 
 
         6 3 :                   $ D i s p l a y H T M L   =   $ D i s p l a y - > r e n d e r ( ) ; 
 
         6 4 :   
 
   > >   6 5 :                   r e t u r n   v i e w ( ' l c r u d b a s e : : v i e w ' ,   $ t h i s - > _ a p p e n d T e m p l a t e I n f o F o r V i e w ( a r r a y _ m e r g e ( $ w a v e _ P r o c e s s H i s t o r y G r i d ,   c o m p a c t ( ' D i s p l a y H T M L ' ) ) ) ) ; 
 
         6 6 :           } 
 
         6 7 :   
 
 
 
     L i n e   6 9   [ m a t c h :   w a v e ] : 
 
         6 7 :   
 
         6 8 :           / * * 
 
   > >   6 9 :             *   @ p a r a m   W a v e S e r v i c e   $ W a v e S e r v i c e 
 
         7 0 :             *   @ p a r a m   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o 
 
         7 1 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e | \ I l l u m i n a t e \ H t t p \ R e d i r e c t R e s p o n s e 
 
 
 
     L i n e   7 0   [ m a t c h :   w a v e ] : 
 
         6 8 :           / * * 
 
         6 9 :             *   @ p a r a m   W a v e S e r v i c e   $ W a v e S e r v i c e 
 
   > >   7 0 :             *   @ p a r a m   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o 
 
         7 1 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e | \ I l l u m i n a t e \ H t t p \ R e d i r e c t R e s p o n s e 
 
         7 2 :             * / 
 
 
 
     L i n e   7 3   [ m a t c h :   w a v e ] : 
 
         7 1 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e | \ I l l u m i n a t e \ H t t p \ R e d i r e c t R e s p o n s e 
 
         7 2 :             * / 
 
   > >   7 3 :           p u b l i c   f u n c t i o n   r e p r o c e s s S t e p ( W a v e S e r v i c e   $ W a v e S e r v i c e ,   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o ) 
 
         7 4 :           { 
 
         7 5 :                   t r y   { 
 
 
 
     L i n e   8 4   [ m a t c h :   w a v e ] : 
 
         8 2 :                           e l s e 
 
         8 3 :                           { 
 
   > >   8 4 :                                   $ w a v e _ P r o c e s s   =   $ W a v e S e r v i c e - > l o o k u p P r o c e s s ( $ P r o c e s s C o d i n g K e y ) ; 
 
         8 5 :                                   i f ( $ w a v e _ P r o c e s s   = = =   n u l l ) 
 
         8 6 :                                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' P r o c e s s   C o d i n g K e y   n o t   f o u n d ' ) ; 
 
 
 
     L i n e   8 5   [ m a t c h :   w a v e ] : 
 
         8 3 :                           { 
 
         8 4 :                                   $ w a v e _ P r o c e s s   =   $ W a v e S e r v i c e - > l o o k u p P r o c e s s ( $ P r o c e s s C o d i n g K e y ) ; 
 
   > >   8 5 :                                   i f ( $ w a v e _ P r o c e s s   = = =   n u l l ) 
 
         8 6 :                                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' P r o c e s s   C o d i n g K e y   n o t   f o u n d ' ) ; 
 
         8 7 :   
 
 
 
     L i n e   1 0 0   [ m a t c h :   w a v e ] : 
 
         9 8 :   
 
         9 9 :           / * * 
 
   > >   1 0 0 :             *   @ p a r a m   W a v e S e r v i c e   $ W a v e S e r v i c e 
 
         1 0 1 :             *   @ p a r a m   \ A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y R e p o 
 
         1 0 2 :             *   @ p a r a m   $ w a v e _ P r o c e s s H i s t o r y _ P K 
 
 
 
     L i n e   1 0 1   [ m a t c h :   w a v e ] : 
 
         9 9 :           / * * 
 
         1 0 0 :             *   @ p a r a m   W a v e S e r v i c e   $ W a v e S e r v i c e 
 
   > >   1 0 1 :             *   @ p a r a m   \ A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y R e p o 
 
         1 0 2 :             *   @ p a r a m   $ w a v e _ P r o c e s s H i s t o r y _ P K 
 
         1 0 3 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ R e d i r e c t R e s p o n s e | \ S y m f o n y \ C o m p o n e n t \ H t t p F o u n d a t i o n \ B i n a r y F i l e R e s p o n s e 
 
 
 
     L i n e   1 0 2   [ m a t c h :   w a v e ] : 
 
         1 0 0 :             *   @ p a r a m   W a v e S e r v i c e   $ W a v e S e r v i c e 
 
         1 0 1 :             *   @ p a r a m   \ A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y R e p o 
 
   > >   1 0 2 :             *   @ p a r a m   $ w a v e _ P r o c e s s H i s t o r y _ P K 
 
         1 0 3 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ R e d i r e c t R e s p o n s e | \ S y m f o n y \ C o m p o n e n t \ H t t p F o u n d a t i o n \ B i n a r y F i l e R e s p o n s e 
 
         1 0 4 :             * / 
 
 
 
     L i n e   1 0 5   [ m a t c h :   w a v e ] : 
 
         1 0 3 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ R e d i r e c t R e s p o n s e | \ S y m f o n y \ C o m p o n e n t \ H t t p F o u n d a t i o n \ B i n a r y F i l e R e s p o n s e 
 
         1 0 4 :             * / 
 
   > >   1 0 5 :           p u b l i c   f u n c t i o n   d o w n l o a d R e s u l t s ( W a v e S e r v i c e   $ W a v e S e r v i c e ,   \ A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y R e p o ,   $ w a v e _ P r o c e s s H i s t o r y _ P K ) 
 
         1 0 6 :           { 
 
         1 0 7 :                   t r y { 
 
 
 
     L i n e   1 0 8   [ m a t c h :   w a v e ] : 
 
         1 0 6 :           { 
 
         1 0 7 :                   t r y { 
 
   > >   1 0 8 :                           / * *   @ v a r   w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y   * / 
 
         1 0 9 :                           $ w a v e _ P r o c e s s H i s t o r y   =   $ w a v e _ P r o c e s s H i s t o r y R e p o - > f i n d O n e B y ( [ ' I D '   = >   $ w a v e _ P r o c e s s H i s t o r y _ P K ] ) ; 
 
         1 1 0 :   
 
 
 
     L i n e   1 0 9   [ m a t c h :   w a v e ] : 
 
         1 0 7 :                   t r y { 
 
         1 0 8 :                           / * *   @ v a r   w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y   * / 
 
   > >   1 0 9 :                           $ w a v e _ P r o c e s s H i s t o r y   =   $ w a v e _ P r o c e s s H i s t o r y R e p o - > f i n d O n e B y ( [ ' I D '   = >   $ w a v e _ P r o c e s s H i s t o r y _ P K ] ) ; 
 
         1 1 0 :   
 
         1 1 1 :                           i f ( $ w a v e _ P r o c e s s H i s t o r y   = = =   n u l l   | |   $ w a v e _ P r o c e s s H i s t o r y - > g e t R e s u l t s F i l e P a t h ( )   = = =   n u l l ) 
 
 
 
     L i n e   1 1 1   [ m a t c h :   w a v e ] : 
 
         1 0 9 :                           $ w a v e _ P r o c e s s H i s t o r y   =   $ w a v e _ P r o c e s s H i s t o r y R e p o - > f i n d O n e B y ( [ ' I D '   = >   $ w a v e _ P r o c e s s H i s t o r y _ P K ] ) ; 
 
         1 1 0 :   
 
   > >   1 1 1 :                           i f ( $ w a v e _ P r o c e s s H i s t o r y   = = =   n u l l   | |   $ w a v e _ P r o c e s s H i s t o r y - > g e t R e s u l t s F i l e P a t h ( )   = = =   n u l l ) 
 
         1 1 2 :                                   r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' N o   r e s u l t s   f i l e   e x i s t s ' ) ; 
 
         1 1 3 :   
 
 
 
     L i n e   1 1 4   [ m a t c h :   w a v e ] : 
 
         1 1 2 :                                   r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' N o   r e s u l t s   f i l e   e x i s t s ' ) ; 
 
         1 1 3 :   
 
   > >   1 1 4 :                           r e t u r n   r e s p o n s e ( ) - > d o w n l o a d ( s t o r a g e _ p a t h ( ' a p p \ \ '   .   $ w a v e _ P r o c e s s H i s t o r y - > g e t R e s u l t s F i l e P a t h ( ) ) ) ; 
 
         1 1 5 :                   } 
 
         1 1 6 :                   c a t c h ( \ E x c e p t i o n   $ e )   { 
 
 
 
     L i n e   1 3 4   [ m a t c h :   w a v e ] : 
 
         1 3 2 :           / * * 
 
         1 3 3 :             *   C r e a t e s   t h e   H T M L   a n d   J a v a S c r i p t   f o r   t h e   o n e - t o - m a n y 
 
   > >   1 3 4 :             *   r e l a t i o n s h i p   o f   w a v e _ P r o c e s s ( 1 )   - >   w a v e _ P r o c e s s H i s t o r y ( M ) 
 
         1 3 5 :             * 
 
         1 3 6 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s 
 
 
 
     L i n e   1 3 6   [ m a t c h :   w a v e ] : 
 
         1 3 4 :             *   r e l a t i o n s h i p   o f   w a v e _ P r o c e s s ( 1 )   - >   w a v e _ P r o c e s s H i s t o r y ( M ) 
 
         1 3 5 :             * 
 
   > >   1 3 6 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s 
 
         1 3 7 :             *   @ r e t u r n   a r r a y 
 
         1 3 8 :             *   @ t h r o w s   \ E x c e p t i o n 
 
 
 
     L i n e   1 4 0   [ m a t c h :   w a v e ] : 
 
         1 3 8 :             *   @ t h r o w s   \ E x c e p t i o n 
 
         1 3 9 :             * / 
 
   > >   1 4 0 :           p r i v a t e   f u n c t i o n   _ m a k e P r o c e s s H i s t o r y G r i d ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s ) 
 
         1 4 1 :           { 
 
         1 4 2 :                   t r y { 
 
 
 
     L i n e   1 4 3   [ m a t c h :   w a v e ] : 
 
         1 4 1 :           { 
 
         1 4 2 :                   t r y { 
 
   > >   1 4 3 :                           $ G r i d   =   $ t h i s - > _ g e t P r o c e s s H i s t o r y G r i d O b j e c t ( $ w a v e _ P r o c e s s ) ; 
 
         1 4 4 :                           $ G r i d I D   =   $ G r i d - > g e t G r i d I D ( ) ; 
 
         1 4 5 :                           $ G r i d J S   =   $ G r i d - > r e n d e r ( ) ; 
 
 
 
     L i n e   1 5 0   [ m a t c h :   w a v e ] : 
 
         1 4 8 :                   } 
 
         1 4 9 :                   c a t c h ( \ E x c e p t i o n   $ e )   { 
 
   > >   1 5 0 :                           t h r o w   n e w   \ E x c e p t i o n ( ' E x c e p t i o n   t h r o w n   w h e n   c r e a t i n g   t h e   w a v e _ P r o c e s s H i s t o r y   g r i d :   '   .   $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 5 1 :                   } 
 
         1 5 2 :           } 
 
 
 
     L i n e   1 6 3   [ m a t c h :   w a v e ] : 
 
         1 6 1 :                   $ M e t a d a t a F a c t o r y   =   a p p ( M e t a d a t a F a c t o r y : : c l a s s ) ; 
 
         1 6 2 :   
 
   > >   1 6 3 :                   $ M e t a d a t a   =   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' w a v e _ P r o c e s s H i s t o r y ' ) ; 
 
         1 6 4 :                   $ M e t a d a t a - > s e t L a b e l ( ' R u n   H i s t o r y ' ) ; 
 
         1 6 5 :                   $ M e t a d a t a - > g e t F i e l d ( ' R a n D T ' ) - > s e t T y p e ( F i e l d M e t a d a t a F i e l d : : T Y P E _ D A T E T I M E ) - > s e t I s F i l t e r a b l e I n R e c o r d L i s t s ( t r u e ) ; 
 
 
 
     L i n e   1 7 4   [ m a t c h :   w a v e ] : 
 
         1 7 2 :   
 
         1 7 3 :           / * * 
 
   > >   1 7 4 :             *   @ p a r a m   $ w a v e _ P r o c e s s 
 
         1 7 5 :             *   @ r e t u r n   \ S a v v i o r \ U I \ G r i d \ G r i d 
 
         1 7 6 :             *   @ t h r o w s   \ S a v v i o r \ U I \ G r i d \ G r i d E x c e p t i o n 
 
 
 
     L i n e   1 7 9   [ m a t c h :   w a v e ] : 
 
         1 7 7 :             *   @ t h r o w s   \ S a v v i o r \ U I \ G r i d \ M e n u \ G r i d M e n u E x c e p t i o n 
 
         1 7 8 :             * / 
 
   > >   1 7 9 :           p r i v a t e   f u n c t i o n   _ g e t P r o c e s s H i s t o r y G r i d O b j e c t ( $ w a v e _ P r o c e s s ) 
 
         1 8 0 :           { 
 
         1 8 1 :                   / * *   @ v a r   G r i d F a c t o r y   $ G r i d F a c t o r y   * / 
 
 
 
     L i n e   1 8 6   [ m a t c h :   w a v e ] : 
 
         1 8 4 :   
 
         1 8 5 :                   $ D a t a   =   [ ] ; 
 
   > >   1 8 6 :                   / * *   @ v a r   w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y I t e m   * / 
 
         1 8 7 :                   f o r e a c h ( $ w a v e _ P r o c e s s - > g e t W a v e P r o c e s s H i s t o r y ( )   a s   $ w a v e _ P r o c e s s H i s t o r y I t e m ) 
 
         1 8 8 :                   { 
 
 
 
     L i n e   1 8 7   [ m a t c h :   w a v e ] : 
 
         1 8 5 :                   $ D a t a   =   [ ] ; 
 
         1 8 6 :                   / * *   @ v a r   w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y I t e m   * / 
 
   > >   1 8 7 :                   f o r e a c h ( $ w a v e _ P r o c e s s - > g e t W a v e P r o c e s s H i s t o r y ( )   a s   $ w a v e _ P r o c e s s H i s t o r y I t e m ) 
 
         1 8 8 :                   { 
 
         1 8 9 :                           $ D a t a [ ]   =   [ 
 
 
 
     L i n e   1 9 0   [ m a t c h :   w a v e ] : 
 
         1 8 8 :                   { 
 
         1 8 9 :                           $ D a t a [ ]   =   [ 
 
   > >   1 9 0 :                                   ' I D '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t I D ( ) , 
 
         1 9 1 :                                   ' R e s u l t s '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s ( ) , 
 
         1 9 2 :                                   ' W a s S u c c e s s f u l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s S u c c e s s f u l ( ) , 
 
 
 
     L i n e   1 9 1   [ m a t c h :   w a v e ] : 
 
         1 8 9 :                           $ D a t a [ ]   =   [ 
 
         1 9 0 :                                   ' I D '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t I D ( ) , 
 
   > >   1 9 1 :                                   ' R e s u l t s '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s ( ) , 
 
         1 9 2 :                                   ' W a s S u c c e s s f u l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s S u c c e s s f u l ( ) , 
 
         1 9 3 :                                   ' W a s M a n u a l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s M a n u a l ( ) , 
 
 
 
     L i n e   1 9 2   [ m a t c h :   w a v e ] : 
 
         1 9 0 :                                   ' I D '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t I D ( ) , 
 
         1 9 1 :                                   ' R e s u l t s '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s ( ) , 
 
   > >   1 9 2 :                                   ' W a s S u c c e s s f u l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s S u c c e s s f u l ( ) , 
 
         1 9 3 :                                   ' W a s M a n u a l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s M a n u a l ( ) , 
 
         1 9 4 :                                   ' R a n D T '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R a n D T ( ) , 
 
 
 
     L i n e   1 9 3   [ m a t c h :   w a v e ] : 
 
         1 9 1 :                                   ' R e s u l t s '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s ( ) , 
 
         1 9 2 :                                   ' W a s S u c c e s s f u l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s S u c c e s s f u l ( ) , 
 
   > >   1 9 3 :                                   ' W a s M a n u a l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s M a n u a l ( ) , 
 
         1 9 4 :                                   ' R a n D T '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R a n D T ( ) , 
 
         1 9 5 :                                   ' R e s u l t s F i l e P a t h '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s F i l e P a t h ( ) , 
 
 
 
     L i n e   1 9 4   [ m a t c h :   w a v e ] : 
 
         1 9 2 :                                   ' W a s S u c c e s s f u l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s S u c c e s s f u l ( ) , 
 
         1 9 3 :                                   ' W a s M a n u a l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s M a n u a l ( ) , 
 
   > >   1 9 4 :                                   ' R a n D T '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R a n D T ( ) , 
 
         1 9 5 :                                   ' R e s u l t s F i l e P a t h '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s F i l e P a t h ( ) , 
 
         1 9 6 :                           ] ; 
 
 
 
     L i n e   1 9 5   [ m a t c h :   w a v e ] : 
 
         1 9 3 :                                   ' W a s M a n u a l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s M a n u a l ( ) , 
 
         1 9 4 :                                   ' R a n D T '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R a n D T ( ) , 
 
   > >   1 9 5 :                                   ' R e s u l t s F i l e P a t h '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s F i l e P a t h ( ) , 
 
         1 9 6 :                           ] ; 
 
         1 9 7 :                   } 
 
 
 
     L i n e   5   [ m a t c h :   W a v e ] : 
 
         3 :   n a m e s p a c e   A p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ A d m i n ; 
 
         4 :   
 
   > >   5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y ; 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
 
 
     L i n e   6   [ m a t c h :   W a v e ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y ; 
 
   > >   6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         8 :   u s e   S a v v i o r \ D a t a \ R e c o r d L i s t R e s u l t ; 
 
 
 
     L i n e   7   [ m a t c h :   W a v e ] : 
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y ; 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         8 :   u s e   S a v v i o r \ D a t a \ R e c o r d L i s t R e s u l t ; 
 
         9 :   u s e   S a v v i o r \ L a r a v e l \ A p p \ S e r v i c e s \ R o u t e H e l p e r ; 
 
 
 
     L i n e   1 8   [ m a t c h :   W a v e ] : 
 
         1 6 :   u s e   S a v v i o r \ U I \ G r i d \ M e n u \ T e m p l a t e \ M e n u T e m p l a t e ; 
 
         1 7 :   
 
   > >   1 8 :   c l a s s   W a v e P r o c e s s C o n t r o l l e r   e x t e n d s   C r u d B a s e 
 
         1 9 :   { 
 
         2 0 :           p r o t e c t e d   $ e n t i t y N a m e   =   ' w a v e _ P r o c e s s ' ; 
 
 
 
     L i n e   2 0   [ m a t c h :   W a v e ] : 
 
         1 8 :   c l a s s   W a v e P r o c e s s C o n t r o l l e r   e x t e n d s   C r u d B a s e 
 
         1 9 :   { 
 
   > >   2 0 :           p r o t e c t e d   $ e n t i t y N a m e   =   ' w a v e _ P r o c e s s ' ; 
 
         2 1 :           p r o t e c t e d   $ m a s t e r T e m p l a t e   =   ' q u e s t . a d m i n . w a v e _ e d i . i n d e x ' ; 
 
         2 2 :           p r o t e c t e d   $ t e m p l a t e M a i n S e c t i o n   =   ' c r u d _ m a i n ' ; 
 
 
 
     L i n e   2 1   [ m a t c h :   W a v e ] : 
 
         1 9 :   { 
 
         2 0 :           p r o t e c t e d   $ e n t i t y N a m e   =   ' w a v e _ P r o c e s s ' ; 
 
   > >   2 1 :           p r o t e c t e d   $ m a s t e r T e m p l a t e   =   ' q u e s t . a d m i n . w a v e _ e d i . i n d e x ' ; 
 
         2 2 :           p r o t e c t e d   $ t e m p l a t e M a i n S e c t i o n   =   ' c r u d _ m a i n ' ; 
 
         2 3 :           p r o t e c t e d   $ t e m p l a t e S c r i p t s S e c t i o n   =   ' c r u d _ s c r i p t s ' ; 
 
 
 
     L i n e   3 7   [ m a t c h :   W a v e ] : 
 
         3 5 :           p u b l i c   f u n c t i o n   g e t V i e w ( ) 
 
         3 6 :           { 
 
   > >   3 7 :                   $ t h i s - > m a s t e r T e m p l a t e   =   ' q u e s t . a d m i n . w a v e _ e d i . s h o w ' ; 
 
         3 8 :   
 
         3 9 :                   / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
 
 
     L i n e   3 9   [ m a t c h :   W a v e ] : 
 
         3 7 :                   $ t h i s - > m a s t e r T e m p l a t e   =   ' q u e s t . a d m i n . w a v e _ e d i . s h o w ' ; 
 
         3 8 :   
 
   > >   3 9 :                   / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
         4 0 :                   $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         4 1 :   
 
 
 
     L i n e   4 0   [ m a t c h :   W a v e ] : 
 
         3 8 :   
 
         3 9 :                   / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
   > >   4 0 :                   $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         4 1 :   
 
         4 2 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
 
 
     L i n e   4 2   [ m a t c h :   W a v e ] : 
 
         4 0 :                   $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         4 1 :   
 
   > >   4 2 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
         4 3 :                   $ w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s R e p o - > f i n d O n e B y ( [ ' I D '   = >   \ R o u t e : : g e t C u r r e n t R o u t e ( ) - > p a r a m e t e r ( ' c r u d _ v i e w _ i d ' ) ] ) ; 
 
         4 4 :   
 
 
 
     L i n e   4 3   [ m a t c h :   W a v e ] : 
 
         4 1 :   
 
         4 2 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
   > >   4 3 :                   $ w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s R e p o - > f i n d O n e B y ( [ ' I D '   = >   \ R o u t e : : g e t C u r r e n t R o u t e ( ) - > p a r a m e t e r ( ' c r u d _ v i e w _ i d ' ) ] ) ; 
 
         4 4 :   
 
         4 5 :                   $ w a v e _ P r o c e s s H i s t o r y G r i d   =   $ t h i s - > _ m a k e P r o c e s s H i s t o r y G r i d ( $ w a v e _ P r o c e s s ) ; 
 
 
 
     L i n e   4 5   [ m a t c h :   W a v e ] : 
 
         4 3 :                   $ w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s R e p o - > f i n d O n e B y ( [ ' I D '   = >   \ R o u t e : : g e t C u r r e n t R o u t e ( ) - > p a r a m e t e r ( ' c r u d _ v i e w _ i d ' ) ] ) ; 
 
         4 4 :   
 
   > >   4 5 :                   $ w a v e _ P r o c e s s H i s t o r y G r i d   =   $ t h i s - > _ m a k e P r o c e s s H i s t o r y G r i d ( $ w a v e _ P r o c e s s ) ; 
 
         4 6 :   
 
         4 7 :                   / * *   @ v a r   R o u t e H e l p e r   $ R o u t e H e l p e r   * / 
 
 
 
     L i n e   6 5   [ m a t c h :   W a v e ] : 
 
         6 3 :                   $ D i s p l a y H T M L   =   $ D i s p l a y - > r e n d e r ( ) ; 
 
         6 4 :   
 
   > >   6 5 :                   r e t u r n   v i e w ( ' l c r u d b a s e : : v i e w ' ,   $ t h i s - > _ a p p e n d T e m p l a t e I n f o F o r V i e w ( a r r a y _ m e r g e ( $ w a v e _ P r o c e s s H i s t o r y G r i d ,   c o m p a c t ( ' D i s p l a y H T M L ' ) ) ) ) ; 
 
         6 6 :           } 
 
         6 7 :   
 
 
 
     L i n e   6 9   [ m a t c h :   W a v e ] : 
 
         6 7 :   
 
         6 8 :           / * * 
 
   > >   6 9 :             *   @ p a r a m   W a v e S e r v i c e   $ W a v e S e r v i c e 
 
         7 0 :             *   @ p a r a m   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o 
 
         7 1 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e | \ I l l u m i n a t e \ H t t p \ R e d i r e c t R e s p o n s e 
 
 
 
     L i n e   7 0   [ m a t c h :   W a v e ] : 
 
         6 8 :           / * * 
 
         6 9 :             *   @ p a r a m   W a v e S e r v i c e   $ W a v e S e r v i c e 
 
   > >   7 0 :             *   @ p a r a m   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o 
 
         7 1 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e | \ I l l u m i n a t e \ H t t p \ R e d i r e c t R e s p o n s e 
 
         7 2 :             * / 
 
 
 
     L i n e   7 3   [ m a t c h :   W a v e ] : 
 
         7 1 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e | \ I l l u m i n a t e \ H t t p \ R e d i r e c t R e s p o n s e 
 
         7 2 :             * / 
 
   > >   7 3 :           p u b l i c   f u n c t i o n   r e p r o c e s s S t e p ( W a v e S e r v i c e   $ W a v e S e r v i c e ,   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o ) 
 
         7 4 :           { 
 
         7 5 :                   t r y   { 
 
 
 
     L i n e   8 4   [ m a t c h :   W a v e ] : 
 
         8 2 :                           e l s e 
 
         8 3 :                           { 
 
   > >   8 4 :                                   $ w a v e _ P r o c e s s   =   $ W a v e S e r v i c e - > l o o k u p P r o c e s s ( $ P r o c e s s C o d i n g K e y ) ; 
 
         8 5 :                                   i f ( $ w a v e _ P r o c e s s   = = =   n u l l ) 
 
         8 6 :                                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' P r o c e s s   C o d i n g K e y   n o t   f o u n d ' ) ; 
 
 
 
     L i n e   8 5   [ m a t c h :   W a v e ] : 
 
         8 3 :                           { 
 
         8 4 :                                   $ w a v e _ P r o c e s s   =   $ W a v e S e r v i c e - > l o o k u p P r o c e s s ( $ P r o c e s s C o d i n g K e y ) ; 
 
   > >   8 5 :                                   i f ( $ w a v e _ P r o c e s s   = = =   n u l l ) 
 
         8 6 :                                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' P r o c e s s   C o d i n g K e y   n o t   f o u n d ' ) ; 
 
         8 7 :   
 
 
 
     L i n e   1 0 0   [ m a t c h :   W a v e ] : 
 
         9 8 :   
 
         9 9 :           / * * 
 
   > >   1 0 0 :             *   @ p a r a m   W a v e S e r v i c e   $ W a v e S e r v i c e 
 
         1 0 1 :             *   @ p a r a m   \ A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y R e p o 
 
         1 0 2 :             *   @ p a r a m   $ w a v e _ P r o c e s s H i s t o r y _ P K 
 
 
 
     L i n e   1 0 1   [ m a t c h :   W a v e ] : 
 
         9 9 :           / * * 
 
         1 0 0 :             *   @ p a r a m   W a v e S e r v i c e   $ W a v e S e r v i c e 
 
   > >   1 0 1 :             *   @ p a r a m   \ A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y R e p o 
 
         1 0 2 :             *   @ p a r a m   $ w a v e _ P r o c e s s H i s t o r y _ P K 
 
         1 0 3 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ R e d i r e c t R e s p o n s e | \ S y m f o n y \ C o m p o n e n t \ H t t p F o u n d a t i o n \ B i n a r y F i l e R e s p o n s e 
 
 
 
     L i n e   1 0 2   [ m a t c h :   W a v e ] : 
 
         1 0 0 :             *   @ p a r a m   W a v e S e r v i c e   $ W a v e S e r v i c e 
 
         1 0 1 :             *   @ p a r a m   \ A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y R e p o 
 
   > >   1 0 2 :             *   @ p a r a m   $ w a v e _ P r o c e s s H i s t o r y _ P K 
 
         1 0 3 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ R e d i r e c t R e s p o n s e | \ S y m f o n y \ C o m p o n e n t \ H t t p F o u n d a t i o n \ B i n a r y F i l e R e s p o n s e 
 
         1 0 4 :             * / 
 
 
 
     L i n e   1 0 5   [ m a t c h :   W a v e ] : 
 
         1 0 3 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ R e d i r e c t R e s p o n s e | \ S y m f o n y \ C o m p o n e n t \ H t t p F o u n d a t i o n \ B i n a r y F i l e R e s p o n s e 
 
         1 0 4 :             * / 
 
   > >   1 0 5 :           p u b l i c   f u n c t i o n   d o w n l o a d R e s u l t s ( W a v e S e r v i c e   $ W a v e S e r v i c e ,   \ A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y R e p o ,   $ w a v e _ P r o c e s s H i s t o r y _ P K ) 
 
         1 0 6 :           { 
 
         1 0 7 :                   t r y { 
 
 
 
     L i n e   1 0 8   [ m a t c h :   W a v e ] : 
 
         1 0 6 :           { 
 
         1 0 7 :                   t r y { 
 
   > >   1 0 8 :                           / * *   @ v a r   w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y   * / 
 
         1 0 9 :                           $ w a v e _ P r o c e s s H i s t o r y   =   $ w a v e _ P r o c e s s H i s t o r y R e p o - > f i n d O n e B y ( [ ' I D '   = >   $ w a v e _ P r o c e s s H i s t o r y _ P K ] ) ; 
 
         1 1 0 :   
 
 
 
     L i n e   1 0 9   [ m a t c h :   W a v e ] : 
 
         1 0 7 :                   t r y { 
 
         1 0 8 :                           / * *   @ v a r   w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y   * / 
 
   > >   1 0 9 :                           $ w a v e _ P r o c e s s H i s t o r y   =   $ w a v e _ P r o c e s s H i s t o r y R e p o - > f i n d O n e B y ( [ ' I D '   = >   $ w a v e _ P r o c e s s H i s t o r y _ P K ] ) ; 
 
         1 1 0 :   
 
         1 1 1 :                           i f ( $ w a v e _ P r o c e s s H i s t o r y   = = =   n u l l   | |   $ w a v e _ P r o c e s s H i s t o r y - > g e t R e s u l t s F i l e P a t h ( )   = = =   n u l l ) 
 
 
 
     L i n e   1 1 1   [ m a t c h :   W a v e ] : 
 
         1 0 9 :                           $ w a v e _ P r o c e s s H i s t o r y   =   $ w a v e _ P r o c e s s H i s t o r y R e p o - > f i n d O n e B y ( [ ' I D '   = >   $ w a v e _ P r o c e s s H i s t o r y _ P K ] ) ; 
 
         1 1 0 :   
 
   > >   1 1 1 :                           i f ( $ w a v e _ P r o c e s s H i s t o r y   = = =   n u l l   | |   $ w a v e _ P r o c e s s H i s t o r y - > g e t R e s u l t s F i l e P a t h ( )   = = =   n u l l ) 
 
         1 1 2 :                                   r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' N o   r e s u l t s   f i l e   e x i s t s ' ) ; 
 
         1 1 3 :   
 
 
 
     L i n e   1 1 4   [ m a t c h :   W a v e ] : 
 
         1 1 2 :                                   r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' N o   r e s u l t s   f i l e   e x i s t s ' ) ; 
 
         1 1 3 :   
 
   > >   1 1 4 :                           r e t u r n   r e s p o n s e ( ) - > d o w n l o a d ( s t o r a g e _ p a t h ( ' a p p \ \ '   .   $ w a v e _ P r o c e s s H i s t o r y - > g e t R e s u l t s F i l e P a t h ( ) ) ) ; 
 
         1 1 5 :                   } 
 
         1 1 6 :                   c a t c h ( \ E x c e p t i o n   $ e )   { 
 
 
 
     L i n e   1 3 4   [ m a t c h :   W a v e ] : 
 
         1 3 2 :           / * * 
 
         1 3 3 :             *   C r e a t e s   t h e   H T M L   a n d   J a v a S c r i p t   f o r   t h e   o n e - t o - m a n y 
 
   > >   1 3 4 :             *   r e l a t i o n s h i p   o f   w a v e _ P r o c e s s ( 1 )   - >   w a v e _ P r o c e s s H i s t o r y ( M ) 
 
         1 3 5 :             * 
 
         1 3 6 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s 
 
 
 
     L i n e   1 3 6   [ m a t c h :   W a v e ] : 
 
         1 3 4 :             *   r e l a t i o n s h i p   o f   w a v e _ P r o c e s s ( 1 )   - >   w a v e _ P r o c e s s H i s t o r y ( M ) 
 
         1 3 5 :             * 
 
   > >   1 3 6 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s 
 
         1 3 7 :             *   @ r e t u r n   a r r a y 
 
         1 3 8 :             *   @ t h r o w s   \ E x c e p t i o n 
 
 
 
     L i n e   1 4 0   [ m a t c h :   W a v e ] : 
 
         1 3 8 :             *   @ t h r o w s   \ E x c e p t i o n 
 
         1 3 9 :             * / 
 
   > >   1 4 0 :           p r i v a t e   f u n c t i o n   _ m a k e P r o c e s s H i s t o r y G r i d ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s ) 
 
         1 4 1 :           { 
 
         1 4 2 :                   t r y { 
 
 
 
     L i n e   1 4 3   [ m a t c h :   W a v e ] : 
 
         1 4 1 :           { 
 
         1 4 2 :                   t r y { 
 
   > >   1 4 3 :                           $ G r i d   =   $ t h i s - > _ g e t P r o c e s s H i s t o r y G r i d O b j e c t ( $ w a v e _ P r o c e s s ) ; 
 
         1 4 4 :                           $ G r i d I D   =   $ G r i d - > g e t G r i d I D ( ) ; 
 
         1 4 5 :                           $ G r i d J S   =   $ G r i d - > r e n d e r ( ) ; 
 
 
 
     L i n e   1 5 0   [ m a t c h :   W a v e ] : 
 
         1 4 8 :                   } 
 
         1 4 9 :                   c a t c h ( \ E x c e p t i o n   $ e )   { 
 
   > >   1 5 0 :                           t h r o w   n e w   \ E x c e p t i o n ( ' E x c e p t i o n   t h r o w n   w h e n   c r e a t i n g   t h e   w a v e _ P r o c e s s H i s t o r y   g r i d :   '   .   $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 5 1 :                   } 
 
         1 5 2 :           } 
 
 
 
     L i n e   1 6 3   [ m a t c h :   W a v e ] : 
 
         1 6 1 :                   $ M e t a d a t a F a c t o r y   =   a p p ( M e t a d a t a F a c t o r y : : c l a s s ) ; 
 
         1 6 2 :   
 
   > >   1 6 3 :                   $ M e t a d a t a   =   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' w a v e _ P r o c e s s H i s t o r y ' ) ; 
 
         1 6 4 :                   $ M e t a d a t a - > s e t L a b e l ( ' R u n   H i s t o r y ' ) ; 
 
         1 6 5 :                   $ M e t a d a t a - > g e t F i e l d ( ' R a n D T ' ) - > s e t T y p e ( F i e l d M e t a d a t a F i e l d : : T Y P E _ D A T E T I M E ) - > s e t I s F i l t e r a b l e I n R e c o r d L i s t s ( t r u e ) ; 
 
 
 
     L i n e   1 7 4   [ m a t c h :   W a v e ] : 
 
         1 7 2 :   
 
         1 7 3 :           / * * 
 
   > >   1 7 4 :             *   @ p a r a m   $ w a v e _ P r o c e s s 
 
         1 7 5 :             *   @ r e t u r n   \ S a v v i o r \ U I \ G r i d \ G r i d 
 
         1 7 6 :             *   @ t h r o w s   \ S a v v i o r \ U I \ G r i d \ G r i d E x c e p t i o n 
 
 
 
     L i n e   1 7 9   [ m a t c h :   W a v e ] : 
 
         1 7 7 :             *   @ t h r o w s   \ S a v v i o r \ U I \ G r i d \ M e n u \ G r i d M e n u E x c e p t i o n 
 
         1 7 8 :             * / 
 
   > >   1 7 9 :           p r i v a t e   f u n c t i o n   _ g e t P r o c e s s H i s t o r y G r i d O b j e c t ( $ w a v e _ P r o c e s s ) 
 
         1 8 0 :           { 
 
         1 8 1 :                   / * *   @ v a r   G r i d F a c t o r y   $ G r i d F a c t o r y   * / 
 
 
 
     L i n e   1 8 6   [ m a t c h :   W a v e ] : 
 
         1 8 4 :   
 
         1 8 5 :                   $ D a t a   =   [ ] ; 
 
   > >   1 8 6 :                   / * *   @ v a r   w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y I t e m   * / 
 
         1 8 7 :                   f o r e a c h ( $ w a v e _ P r o c e s s - > g e t W a v e P r o c e s s H i s t o r y ( )   a s   $ w a v e _ P r o c e s s H i s t o r y I t e m ) 
 
         1 8 8 :                   { 
 
 
 
     L i n e   1 8 7   [ m a t c h :   W a v e ] : 
 
         1 8 5 :                   $ D a t a   =   [ ] ; 
 
         1 8 6 :                   / * *   @ v a r   w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y I t e m   * / 
 
   > >   1 8 7 :                   f o r e a c h ( $ w a v e _ P r o c e s s - > g e t W a v e P r o c e s s H i s t o r y ( )   a s   $ w a v e _ P r o c e s s H i s t o r y I t e m ) 
 
         1 8 8 :                   { 
 
         1 8 9 :                           $ D a t a [ ]   =   [ 
 
 
 
     L i n e   1 9 0   [ m a t c h :   W a v e ] : 
 
         1 8 8 :                   { 
 
         1 8 9 :                           $ D a t a [ ]   =   [ 
 
   > >   1 9 0 :                                   ' I D '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t I D ( ) , 
 
         1 9 1 :                                   ' R e s u l t s '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s ( ) , 
 
         1 9 2 :                                   ' W a s S u c c e s s f u l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s S u c c e s s f u l ( ) , 
 
 
 
     L i n e   1 9 1   [ m a t c h :   W a v e ] : 
 
         1 8 9 :                           $ D a t a [ ]   =   [ 
 
         1 9 0 :                                   ' I D '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t I D ( ) , 
 
   > >   1 9 1 :                                   ' R e s u l t s '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s ( ) , 
 
         1 9 2 :                                   ' W a s S u c c e s s f u l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s S u c c e s s f u l ( ) , 
 
         1 9 3 :                                   ' W a s M a n u a l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s M a n u a l ( ) , 
 
 
 
     L i n e   1 9 2   [ m a t c h :   W a v e ] : 
 
         1 9 0 :                                   ' I D '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t I D ( ) , 
 
         1 9 1 :                                   ' R e s u l t s '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s ( ) , 
 
   > >   1 9 2 :                                   ' W a s S u c c e s s f u l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s S u c c e s s f u l ( ) , 
 
         1 9 3 :                                   ' W a s M a n u a l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s M a n u a l ( ) , 
 
         1 9 4 :                                   ' R a n D T '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R a n D T ( ) , 
 
 
 
     L i n e   1 9 3   [ m a t c h :   W a v e ] : 
 
         1 9 1 :                                   ' R e s u l t s '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s ( ) , 
 
         1 9 2 :                                   ' W a s S u c c e s s f u l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s S u c c e s s f u l ( ) , 
 
   > >   1 9 3 :                                   ' W a s M a n u a l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s M a n u a l ( ) , 
 
         1 9 4 :                                   ' R a n D T '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R a n D T ( ) , 
 
         1 9 5 :                                   ' R e s u l t s F i l e P a t h '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s F i l e P a t h ( ) , 
 
 
 
     L i n e   1 9 4   [ m a t c h :   W a v e ] : 
 
         1 9 2 :                                   ' W a s S u c c e s s f u l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s S u c c e s s f u l ( ) , 
 
         1 9 3 :                                   ' W a s M a n u a l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s M a n u a l ( ) , 
 
   > >   1 9 4 :                                   ' R a n D T '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R a n D T ( ) , 
 
         1 9 5 :                                   ' R e s u l t s F i l e P a t h '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s F i l e P a t h ( ) , 
 
         1 9 6 :                           ] ; 
 
 
 
     L i n e   1 9 5   [ m a t c h :   W a v e ] : 
 
         1 9 3 :                                   ' W a s M a n u a l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s M a n u a l ( ) , 
 
         1 9 4 :                                   ' R a n D T '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R a n D T ( ) , 
 
   > >   1 9 5 :                                   ' R e s u l t s F i l e P a t h '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s F i l e P a t h ( ) , 
 
         1 9 6 :                           ] ; 
 
         1 9 7 :                   } 
 
 
 
     L i n e   5   [ m a t c h :   W A V E ] : 
 
         3 :   n a m e s p a c e   A p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ A d m i n ; 
 
         4 :   
 
   > >   5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y ; 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
 
 
     L i n e   6   [ m a t c h :   W A V E ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y ; 
 
   > >   6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         8 :   u s e   S a v v i o r \ D a t a \ R e c o r d L i s t R e s u l t ; 
 
 
 
     L i n e   7   [ m a t c h :   W A V E ] : 
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y ; 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   7 :   u s e   A p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e ; 
 
         8 :   u s e   S a v v i o r \ D a t a \ R e c o r d L i s t R e s u l t ; 
 
         9 :   u s e   S a v v i o r \ L a r a v e l \ A p p \ S e r v i c e s \ R o u t e H e l p e r ; 
 
 
 
     L i n e   1 8   [ m a t c h :   W A V E ] : 
 
         1 6 :   u s e   S a v v i o r \ U I \ G r i d \ M e n u \ T e m p l a t e \ M e n u T e m p l a t e ; 
 
         1 7 :   
 
   > >   1 8 :   c l a s s   W a v e P r o c e s s C o n t r o l l e r   e x t e n d s   C r u d B a s e 
 
         1 9 :   { 
 
         2 0 :           p r o t e c t e d   $ e n t i t y N a m e   =   ' w a v e _ P r o c e s s ' ; 
 
 
 
     L i n e   2 0   [ m a t c h :   W A V E ] : 
 
         1 8 :   c l a s s   W a v e P r o c e s s C o n t r o l l e r   e x t e n d s   C r u d B a s e 
 
         1 9 :   { 
 
   > >   2 0 :           p r o t e c t e d   $ e n t i t y N a m e   =   ' w a v e _ P r o c e s s ' ; 
 
         2 1 :           p r o t e c t e d   $ m a s t e r T e m p l a t e   =   ' q u e s t . a d m i n . w a v e _ e d i . i n d e x ' ; 
 
         2 2 :           p r o t e c t e d   $ t e m p l a t e M a i n S e c t i o n   =   ' c r u d _ m a i n ' ; 
 
 
 
     L i n e   2 1   [ m a t c h :   W A V E ] : 
 
         1 9 :   { 
 
         2 0 :           p r o t e c t e d   $ e n t i t y N a m e   =   ' w a v e _ P r o c e s s ' ; 
 
   > >   2 1 :           p r o t e c t e d   $ m a s t e r T e m p l a t e   =   ' q u e s t . a d m i n . w a v e _ e d i . i n d e x ' ; 
 
         2 2 :           p r o t e c t e d   $ t e m p l a t e M a i n S e c t i o n   =   ' c r u d _ m a i n ' ; 
 
         2 3 :           p r o t e c t e d   $ t e m p l a t e S c r i p t s S e c t i o n   =   ' c r u d _ s c r i p t s ' ; 
 
 
 
     L i n e   3 7   [ m a t c h :   W A V E ] : 
 
         3 5 :           p u b l i c   f u n c t i o n   g e t V i e w ( ) 
 
         3 6 :           { 
 
   > >   3 7 :                   $ t h i s - > m a s t e r T e m p l a t e   =   ' q u e s t . a d m i n . w a v e _ e d i . s h o w ' ; 
 
         3 8 :   
 
         3 9 :                   / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
 
 
     L i n e   3 9   [ m a t c h :   W A V E ] : 
 
         3 7 :                   $ t h i s - > m a s t e r T e m p l a t e   =   ' q u e s t . a d m i n . w a v e _ e d i . s h o w ' ; 
 
         3 8 :   
 
   > >   3 9 :                   / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
         4 0 :                   $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         4 1 :   
 
 
 
     L i n e   4 0   [ m a t c h :   W A V E ] : 
 
         3 8 :   
 
         3 9 :                   / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
   > >   4 0 :                   $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         4 1 :   
 
         4 2 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
 
 
     L i n e   4 2   [ m a t c h :   W A V E ] : 
 
         4 0 :                   $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         4 1 :   
 
   > >   4 2 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
         4 3 :                   $ w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s R e p o - > f i n d O n e B y ( [ ' I D '   = >   \ R o u t e : : g e t C u r r e n t R o u t e ( ) - > p a r a m e t e r ( ' c r u d _ v i e w _ i d ' ) ] ) ; 
 
         4 4 :   
 
 
 
     L i n e   4 3   [ m a t c h :   W A V E ] : 
 
         4 1 :   
 
         4 2 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
   > >   4 3 :                   $ w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s R e p o - > f i n d O n e B y ( [ ' I D '   = >   \ R o u t e : : g e t C u r r e n t R o u t e ( ) - > p a r a m e t e r ( ' c r u d _ v i e w _ i d ' ) ] ) ; 
 
         4 4 :   
 
         4 5 :                   $ w a v e _ P r o c e s s H i s t o r y G r i d   =   $ t h i s - > _ m a k e P r o c e s s H i s t o r y G r i d ( $ w a v e _ P r o c e s s ) ; 
 
 
 
     L i n e   4 5   [ m a t c h :   W A V E ] : 
 
         4 3 :                   $ w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s R e p o - > f i n d O n e B y ( [ ' I D '   = >   \ R o u t e : : g e t C u r r e n t R o u t e ( ) - > p a r a m e t e r ( ' c r u d _ v i e w _ i d ' ) ] ) ; 
 
         4 4 :   
 
   > >   4 5 :                   $ w a v e _ P r o c e s s H i s t o r y G r i d   =   $ t h i s - > _ m a k e P r o c e s s H i s t o r y G r i d ( $ w a v e _ P r o c e s s ) ; 
 
         4 6 :   
 
         4 7 :                   / * *   @ v a r   R o u t e H e l p e r   $ R o u t e H e l p e r   * / 
 
 
 
     L i n e   6 5   [ m a t c h :   W A V E ] : 
 
         6 3 :                   $ D i s p l a y H T M L   =   $ D i s p l a y - > r e n d e r ( ) ; 
 
         6 4 :   
 
   > >   6 5 :                   r e t u r n   v i e w ( ' l c r u d b a s e : : v i e w ' ,   $ t h i s - > _ a p p e n d T e m p l a t e I n f o F o r V i e w ( a r r a y _ m e r g e ( $ w a v e _ P r o c e s s H i s t o r y G r i d ,   c o m p a c t ( ' D i s p l a y H T M L ' ) ) ) ) ; 
 
         6 6 :           } 
 
         6 7 :   
 
 
 
     L i n e   6 9   [ m a t c h :   W A V E ] : 
 
         6 7 :   
 
         6 8 :           / * * 
 
   > >   6 9 :             *   @ p a r a m   W a v e S e r v i c e   $ W a v e S e r v i c e 
 
         7 0 :             *   @ p a r a m   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o 
 
         7 1 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e | \ I l l u m i n a t e \ H t t p \ R e d i r e c t R e s p o n s e 
 
 
 
     L i n e   7 0   [ m a t c h :   W A V E ] : 
 
         6 8 :           / * * 
 
         6 9 :             *   @ p a r a m   W a v e S e r v i c e   $ W a v e S e r v i c e 
 
   > >   7 0 :             *   @ p a r a m   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o 
 
         7 1 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e | \ I l l u m i n a t e \ H t t p \ R e d i r e c t R e s p o n s e 
 
         7 2 :             * / 
 
 
 
     L i n e   7 3   [ m a t c h :   W A V E ] : 
 
         7 1 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ J s o n R e s p o n s e | \ I l l u m i n a t e \ H t t p \ R e d i r e c t R e s p o n s e 
 
         7 2 :             * / 
 
   > >   7 3 :           p u b l i c   f u n c t i o n   r e p r o c e s s S t e p ( W a v e S e r v i c e   $ W a v e S e r v i c e ,   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o ) 
 
         7 4 :           { 
 
         7 5 :                   t r y   { 
 
 
 
     L i n e   8 4   [ m a t c h :   W A V E ] : 
 
         8 2 :                           e l s e 
 
         8 3 :                           { 
 
   > >   8 4 :                                   $ w a v e _ P r o c e s s   =   $ W a v e S e r v i c e - > l o o k u p P r o c e s s ( $ P r o c e s s C o d i n g K e y ) ; 
 
         8 5 :                                   i f ( $ w a v e _ P r o c e s s   = = =   n u l l ) 
 
         8 6 :                                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' P r o c e s s   C o d i n g K e y   n o t   f o u n d ' ) ; 
 
 
 
     L i n e   8 5   [ m a t c h :   W A V E ] : 
 
         8 3 :                           { 
 
         8 4 :                                   $ w a v e _ P r o c e s s   =   $ W a v e S e r v i c e - > l o o k u p P r o c e s s ( $ P r o c e s s C o d i n g K e y ) ; 
 
   > >   8 5 :                                   i f ( $ w a v e _ P r o c e s s   = = =   n u l l ) 
 
         8 6 :                                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' P r o c e s s   C o d i n g K e y   n o t   f o u n d ' ) ; 
 
         8 7 :   
 
 
 
     L i n e   1 0 0   [ m a t c h :   W A V E ] : 
 
         9 8 :   
 
         9 9 :           / * * 
 
   > >   1 0 0 :             *   @ p a r a m   W a v e S e r v i c e   $ W a v e S e r v i c e 
 
         1 0 1 :             *   @ p a r a m   \ A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y R e p o 
 
         1 0 2 :             *   @ p a r a m   $ w a v e _ P r o c e s s H i s t o r y _ P K 
 
 
 
     L i n e   1 0 1   [ m a t c h :   W A V E ] : 
 
         9 9 :           / * * 
 
         1 0 0 :             *   @ p a r a m   W a v e S e r v i c e   $ W a v e S e r v i c e 
 
   > >   1 0 1 :             *   @ p a r a m   \ A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y R e p o 
 
         1 0 2 :             *   @ p a r a m   $ w a v e _ P r o c e s s H i s t o r y _ P K 
 
         1 0 3 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ R e d i r e c t R e s p o n s e | \ S y m f o n y \ C o m p o n e n t \ H t t p F o u n d a t i o n \ B i n a r y F i l e R e s p o n s e 
 
 
 
     L i n e   1 0 2   [ m a t c h :   W A V E ] : 
 
         1 0 0 :             *   @ p a r a m   W a v e S e r v i c e   $ W a v e S e r v i c e 
 
         1 0 1 :             *   @ p a r a m   \ A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y R e p o 
 
   > >   1 0 2 :             *   @ p a r a m   $ w a v e _ P r o c e s s H i s t o r y _ P K 
 
         1 0 3 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ R e d i r e c t R e s p o n s e | \ S y m f o n y \ C o m p o n e n t \ H t t p F o u n d a t i o n \ B i n a r y F i l e R e s p o n s e 
 
         1 0 4 :             * / 
 
 
 
     L i n e   1 0 5   [ m a t c h :   W A V E ] : 
 
         1 0 3 :             *   @ r e t u r n   \ I l l u m i n a t e \ H t t p \ R e d i r e c t R e s p o n s e | \ S y m f o n y \ C o m p o n e n t \ H t t p F o u n d a t i o n \ B i n a r y F i l e R e s p o n s e 
 
         1 0 4 :             * / 
 
   > >   1 0 5 :           p u b l i c   f u n c t i o n   d o w n l o a d R e s u l t s ( W a v e S e r v i c e   $ W a v e S e r v i c e ,   \ A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y R e p o ,   $ w a v e _ P r o c e s s H i s t o r y _ P K ) 
 
         1 0 6 :           { 
 
         1 0 7 :                   t r y { 
 
 
 
     L i n e   1 0 8   [ m a t c h :   W A V E ] : 
 
         1 0 6 :           { 
 
         1 0 7 :                   t r y { 
 
   > >   1 0 8 :                           / * *   @ v a r   w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y   * / 
 
         1 0 9 :                           $ w a v e _ P r o c e s s H i s t o r y   =   $ w a v e _ P r o c e s s H i s t o r y R e p o - > f i n d O n e B y ( [ ' I D '   = >   $ w a v e _ P r o c e s s H i s t o r y _ P K ] ) ; 
 
         1 1 0 :   
 
 
 
     L i n e   1 0 9   [ m a t c h :   W A V E ] : 
 
         1 0 7 :                   t r y { 
 
         1 0 8 :                           / * *   @ v a r   w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y   * / 
 
   > >   1 0 9 :                           $ w a v e _ P r o c e s s H i s t o r y   =   $ w a v e _ P r o c e s s H i s t o r y R e p o - > f i n d O n e B y ( [ ' I D '   = >   $ w a v e _ P r o c e s s H i s t o r y _ P K ] ) ; 
 
         1 1 0 :   
 
         1 1 1 :                           i f ( $ w a v e _ P r o c e s s H i s t o r y   = = =   n u l l   | |   $ w a v e _ P r o c e s s H i s t o r y - > g e t R e s u l t s F i l e P a t h ( )   = = =   n u l l ) 
 
 
 
     L i n e   1 1 1   [ m a t c h :   W A V E ] : 
 
         1 0 9 :                           $ w a v e _ P r o c e s s H i s t o r y   =   $ w a v e _ P r o c e s s H i s t o r y R e p o - > f i n d O n e B y ( [ ' I D '   = >   $ w a v e _ P r o c e s s H i s t o r y _ P K ] ) ; 
 
         1 1 0 :   
 
   > >   1 1 1 :                           i f ( $ w a v e _ P r o c e s s H i s t o r y   = = =   n u l l   | |   $ w a v e _ P r o c e s s H i s t o r y - > g e t R e s u l t s F i l e P a t h ( )   = = =   n u l l ) 
 
         1 1 2 :                                   r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' N o   r e s u l t s   f i l e   e x i s t s ' ) ; 
 
         1 1 3 :   
 
 
 
     L i n e   1 1 4   [ m a t c h :   W A V E ] : 
 
         1 1 2 :                                   r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' N o   r e s u l t s   f i l e   e x i s t s ' ) ; 
 
         1 1 3 :   
 
   > >   1 1 4 :                           r e t u r n   r e s p o n s e ( ) - > d o w n l o a d ( s t o r a g e _ p a t h ( ' a p p \ \ '   .   $ w a v e _ P r o c e s s H i s t o r y - > g e t R e s u l t s F i l e P a t h ( ) ) ) ; 
 
         1 1 5 :                   } 
 
         1 1 6 :                   c a t c h ( \ E x c e p t i o n   $ e )   { 
 
 
 
     L i n e   1 3 4   [ m a t c h :   W A V E ] : 
 
         1 3 2 :           / * * 
 
         1 3 3 :             *   C r e a t e s   t h e   H T M L   a n d   J a v a S c r i p t   f o r   t h e   o n e - t o - m a n y 
 
   > >   1 3 4 :             *   r e l a t i o n s h i p   o f   w a v e _ P r o c e s s ( 1 )   - >   w a v e _ P r o c e s s H i s t o r y ( M ) 
 
         1 3 5 :             * 
 
         1 3 6 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s 
 
 
 
     L i n e   1 3 6   [ m a t c h :   W A V E ] : 
 
         1 3 4 :             *   r e l a t i o n s h i p   o f   w a v e _ P r o c e s s ( 1 )   - >   w a v e _ P r o c e s s H i s t o r y ( M ) 
 
         1 3 5 :             * 
 
   > >   1 3 6 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s 
 
         1 3 7 :             *   @ r e t u r n   a r r a y 
 
         1 3 8 :             *   @ t h r o w s   \ E x c e p t i o n 
 
 
 
     L i n e   1 4 0   [ m a t c h :   W A V E ] : 
 
         1 3 8 :             *   @ t h r o w s   \ E x c e p t i o n 
 
         1 3 9 :             * / 
 
   > >   1 4 0 :           p r i v a t e   f u n c t i o n   _ m a k e P r o c e s s H i s t o r y G r i d ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s ) 
 
         1 4 1 :           { 
 
         1 4 2 :                   t r y { 
 
 
 
     L i n e   1 4 3   [ m a t c h :   W A V E ] : 
 
         1 4 1 :           { 
 
         1 4 2 :                   t r y { 
 
   > >   1 4 3 :                           $ G r i d   =   $ t h i s - > _ g e t P r o c e s s H i s t o r y G r i d O b j e c t ( $ w a v e _ P r o c e s s ) ; 
 
         1 4 4 :                           $ G r i d I D   =   $ G r i d - > g e t G r i d I D ( ) ; 
 
         1 4 5 :                           $ G r i d J S   =   $ G r i d - > r e n d e r ( ) ; 
 
 
 
     L i n e   1 5 0   [ m a t c h :   W A V E ] : 
 
         1 4 8 :                   } 
 
         1 4 9 :                   c a t c h ( \ E x c e p t i o n   $ e )   { 
 
   > >   1 5 0 :                           t h r o w   n e w   \ E x c e p t i o n ( ' E x c e p t i o n   t h r o w n   w h e n   c r e a t i n g   t h e   w a v e _ P r o c e s s H i s t o r y   g r i d :   '   .   $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 5 1 :                   } 
 
         1 5 2 :           } 
 
 
 
     L i n e   1 6 3   [ m a t c h :   W A V E ] : 
 
         1 6 1 :                   $ M e t a d a t a F a c t o r y   =   a p p ( M e t a d a t a F a c t o r y : : c l a s s ) ; 
 
         1 6 2 :   
 
   > >   1 6 3 :                   $ M e t a d a t a   =   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' w a v e _ P r o c e s s H i s t o r y ' ) ; 
 
         1 6 4 :                   $ M e t a d a t a - > s e t L a b e l ( ' R u n   H i s t o r y ' ) ; 
 
         1 6 5 :                   $ M e t a d a t a - > g e t F i e l d ( ' R a n D T ' ) - > s e t T y p e ( F i e l d M e t a d a t a F i e l d : : T Y P E _ D A T E T I M E ) - > s e t I s F i l t e r a b l e I n R e c o r d L i s t s ( t r u e ) ; 
 
 
 
     L i n e   1 7 4   [ m a t c h :   W A V E ] : 
 
         1 7 2 :   
 
         1 7 3 :           / * * 
 
   > >   1 7 4 :             *   @ p a r a m   $ w a v e _ P r o c e s s 
 
         1 7 5 :             *   @ r e t u r n   \ S a v v i o r \ U I \ G r i d \ G r i d 
 
         1 7 6 :             *   @ t h r o w s   \ S a v v i o r \ U I \ G r i d \ G r i d E x c e p t i o n 
 
 
 
     L i n e   1 7 9   [ m a t c h :   W A V E ] : 
 
         1 7 7 :             *   @ t h r o w s   \ S a v v i o r \ U I \ G r i d \ M e n u \ G r i d M e n u E x c e p t i o n 
 
         1 7 8 :             * / 
 
   > >   1 7 9 :           p r i v a t e   f u n c t i o n   _ g e t P r o c e s s H i s t o r y G r i d O b j e c t ( $ w a v e _ P r o c e s s ) 
 
         1 8 0 :           { 
 
         1 8 1 :                   / * *   @ v a r   G r i d F a c t o r y   $ G r i d F a c t o r y   * / 
 
 
 
     L i n e   1 8 6   [ m a t c h :   W A V E ] : 
 
         1 8 4 :   
 
         1 8 5 :                   $ D a t a   =   [ ] ; 
 
   > >   1 8 6 :                   / * *   @ v a r   w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y I t e m   * / 
 
         1 8 7 :                   f o r e a c h ( $ w a v e _ P r o c e s s - > g e t W a v e P r o c e s s H i s t o r y ( )   a s   $ w a v e _ P r o c e s s H i s t o r y I t e m ) 
 
         1 8 8 :                   { 
 
 
 
     L i n e   1 8 7   [ m a t c h :   W A V E ] : 
 
         1 8 5 :                   $ D a t a   =   [ ] ; 
 
         1 8 6 :                   / * *   @ v a r   w a v e _ P r o c e s s H i s t o r y   $ w a v e _ P r o c e s s H i s t o r y I t e m   * / 
 
   > >   1 8 7 :                   f o r e a c h ( $ w a v e _ P r o c e s s - > g e t W a v e P r o c e s s H i s t o r y ( )   a s   $ w a v e _ P r o c e s s H i s t o r y I t e m ) 
 
         1 8 8 :                   { 
 
         1 8 9 :                           $ D a t a [ ]   =   [ 
 
 
 
     L i n e   1 9 0   [ m a t c h :   W A V E ] : 
 
         1 8 8 :                   { 
 
         1 8 9 :                           $ D a t a [ ]   =   [ 
 
   > >   1 9 0 :                                   ' I D '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t I D ( ) , 
 
         1 9 1 :                                   ' R e s u l t s '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s ( ) , 
 
         1 9 2 :                                   ' W a s S u c c e s s f u l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s S u c c e s s f u l ( ) , 
 
 
 
     L i n e   1 9 1   [ m a t c h :   W A V E ] : 
 
         1 8 9 :                           $ D a t a [ ]   =   [ 
 
         1 9 0 :                                   ' I D '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t I D ( ) , 
 
   > >   1 9 1 :                                   ' R e s u l t s '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s ( ) , 
 
         1 9 2 :                                   ' W a s S u c c e s s f u l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s S u c c e s s f u l ( ) , 
 
         1 9 3 :                                   ' W a s M a n u a l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s M a n u a l ( ) , 
 
 
 
     L i n e   1 9 2   [ m a t c h :   W A V E ] : 
 
         1 9 0 :                                   ' I D '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t I D ( ) , 
 
         1 9 1 :                                   ' R e s u l t s '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s ( ) , 
 
   > >   1 9 2 :                                   ' W a s S u c c e s s f u l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s S u c c e s s f u l ( ) , 
 
         1 9 3 :                                   ' W a s M a n u a l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s M a n u a l ( ) , 
 
         1 9 4 :                                   ' R a n D T '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R a n D T ( ) , 
 
 
 
     L i n e   1 9 3   [ m a t c h :   W A V E ] : 
 
         1 9 1 :                                   ' R e s u l t s '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s ( ) , 
 
         1 9 2 :                                   ' W a s S u c c e s s f u l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s S u c c e s s f u l ( ) , 
 
   > >   1 9 3 :                                   ' W a s M a n u a l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s M a n u a l ( ) , 
 
         1 9 4 :                                   ' R a n D T '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R a n D T ( ) , 
 
         1 9 5 :                                   ' R e s u l t s F i l e P a t h '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s F i l e P a t h ( ) , 
 
 
 
     L i n e   1 9 4   [ m a t c h :   W A V E ] : 
 
         1 9 2 :                                   ' W a s S u c c e s s f u l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s S u c c e s s f u l ( ) , 
 
         1 9 3 :                                   ' W a s M a n u a l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s M a n u a l ( ) , 
 
   > >   1 9 4 :                                   ' R a n D T '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R a n D T ( ) , 
 
         1 9 5 :                                   ' R e s u l t s F i l e P a t h '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s F i l e P a t h ( ) , 
 
         1 9 6 :                           ] ; 
 
 
 
     L i n e   1 9 5   [ m a t c h :   W A V E ] : 
 
         1 9 3 :                                   ' W a s M a n u a l '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t W a s M a n u a l ( ) , 
 
         1 9 4 :                                   ' R a n D T '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R a n D T ( ) , 
 
   > >   1 9 5 :                                   ' R e s u l t s F i l e P a t h '   = >   $ w a v e _ P r o c e s s H i s t o r y I t e m - > g e t R e s u l t s F i l e P a t h ( ) , 
 
         1 9 6 :                           ] ; 
 
         1 9 7 :                   } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ C o i l A l l o c a t i o n \ B a s e C o i l A l l o c a t i o n R e q u e s t C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 0   [ m a t c h :   e p i c o r ] : 
 
         8 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ H i s t o r i c a l A l l o c a t i o n C a r t ; 
 
         9 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n H e l p e r ; 
 
   > >   1 0 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 1 :   u s e   A p p \ S e r v i c e s \ Q u e s t P a g e V a l u e s ; 
 
         1 2 :   u s e   A p p \ S e r v i c e s \ S e l e c t e d C o m p a n y P r o v i d e r ; 
 
 
 
     L i n e   1 9 7   [ m a t c h :   e p i c o r ] : 
 
         1 9 5 :                           / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 9 6 :                           $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 9 7 :                           $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D ' , F i l t e r F i e l d : : O P E R A T O R _ E Q U A L , $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ; 
 
         1 9 8 :                   } 
 
         1 9 9 :   
 
 
 
     L i n e   3 5 2   [ m a t c h :   e p i c o r ] : 
 
         3 5 0 :                   / * *   @ v a r   D a t a H a n d l e r   $ D a t a H a n d l e r   * / 
 
         3 5 1 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
   > >   3 5 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         3 5 3 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 5 4 :                   / * *   @ v a r   a l l o c _ R e q u e s t   $ c o i l A l l o c a t i o n R e q u e s t s R e p o   * / 
 
 
 
     L i n e   3 5 3   [ m a t c h :   e p i c o r ] : 
 
         3 5 1 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
         3 5 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   3 5 3 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 5 4 :                   / * *   @ v a r   a l l o c _ R e q u e s t   $ c o i l A l l o c a t i o n R e q u e s t s R e p o   * / 
 
         3 5 5 :                   $ c o i l A l l o c a t i o n R e q u e s t s R e p o   =   a p p ( a l l o c _ R e q u e s t : : c l a s s ) ; 
 
 
 
     L i n e   3 7 6   [ m a t c h :   e p i c o r ] : 
 
         3 7 4 :                   / * 
 
         3 7 5 :                   t r y   { 
 
   > >   3 7 6 :                           $ P l a n t U s e r E m a i l s   =   $ E p i c o r D a t a b a s e - > g e t P l a n t U s e r E m a i l A d d r e s s e s ( $ R e q u e s t I n f o [ ' P l a n t ' ] ) ; 
 
         3 7 7 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         3 7 8 :                           $ P l a n t U s e r E m a i l s   =   [ ] ; 
 
 
 
     L i n e   1 0   [ m a t c h :   E p i c o r ] : 
 
         8 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ H i s t o r i c a l A l l o c a t i o n C a r t ; 
 
         9 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n H e l p e r ; 
 
   > >   1 0 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 1 :   u s e   A p p \ S e r v i c e s \ Q u e s t P a g e V a l u e s ; 
 
         1 2 :   u s e   A p p \ S e r v i c e s \ S e l e c t e d C o m p a n y P r o v i d e r ; 
 
 
 
     L i n e   1 9 7   [ m a t c h :   E p i c o r ] : 
 
         1 9 5 :                           / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 9 6 :                           $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 9 7 :                           $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D ' , F i l t e r F i e l d : : O P E R A T O R _ E Q U A L , $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ; 
 
         1 9 8 :                   } 
 
         1 9 9 :   
 
 
 
     L i n e   3 5 2   [ m a t c h :   E p i c o r ] : 
 
         3 5 0 :                   / * *   @ v a r   D a t a H a n d l e r   $ D a t a H a n d l e r   * / 
 
         3 5 1 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
   > >   3 5 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         3 5 3 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 5 4 :                   / * *   @ v a r   a l l o c _ R e q u e s t   $ c o i l A l l o c a t i o n R e q u e s t s R e p o   * / 
 
 
 
     L i n e   3 5 3   [ m a t c h :   E p i c o r ] : 
 
         3 5 1 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
         3 5 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   3 5 3 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 5 4 :                   / * *   @ v a r   a l l o c _ R e q u e s t   $ c o i l A l l o c a t i o n R e q u e s t s R e p o   * / 
 
         3 5 5 :                   $ c o i l A l l o c a t i o n R e q u e s t s R e p o   =   a p p ( a l l o c _ R e q u e s t : : c l a s s ) ; 
 
 
 
     L i n e   3 7 6   [ m a t c h :   E p i c o r ] : 
 
         3 7 4 :                   / * 
 
         3 7 5 :                   t r y   { 
 
   > >   3 7 6 :                           $ P l a n t U s e r E m a i l s   =   $ E p i c o r D a t a b a s e - > g e t P l a n t U s e r E m a i l A d d r e s s e s ( $ R e q u e s t I n f o [ ' P l a n t ' ] ) ; 
 
         3 7 7 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         3 7 8 :                           $ P l a n t U s e r E m a i l s   =   [ ] ; 
 
 
 
     L i n e   1 0   [ m a t c h :   E P I C O R ] : 
 
         8 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ H i s t o r i c a l A l l o c a t i o n C a r t ; 
 
         9 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n H e l p e r ; 
 
   > >   1 0 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 1 :   u s e   A p p \ S e r v i c e s \ Q u e s t P a g e V a l u e s ; 
 
         1 2 :   u s e   A p p \ S e r v i c e s \ S e l e c t e d C o m p a n y P r o v i d e r ; 
 
 
 
     L i n e   1 9 7   [ m a t c h :   E P I C O R ] : 
 
         1 9 5 :                           / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 9 6 :                           $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 9 7 :                           $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D ' , F i l t e r F i e l d : : O P E R A T O R _ E Q U A L , $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ; 
 
         1 9 8 :                   } 
 
         1 9 9 :   
 
 
 
     L i n e   3 5 2   [ m a t c h :   E P I C O R ] : 
 
         3 5 0 :                   / * *   @ v a r   D a t a H a n d l e r   $ D a t a H a n d l e r   * / 
 
         3 5 1 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
   > >   3 5 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         3 5 3 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 5 4 :                   / * *   @ v a r   a l l o c _ R e q u e s t   $ c o i l A l l o c a t i o n R e q u e s t s R e p o   * / 
 
 
 
     L i n e   3 5 3   [ m a t c h :   E P I C O R ] : 
 
         3 5 1 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
         3 5 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   3 5 3 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 5 4 :                   / * *   @ v a r   a l l o c _ R e q u e s t   $ c o i l A l l o c a t i o n R e q u e s t s R e p o   * / 
 
         3 5 5 :                   $ c o i l A l l o c a t i o n R e q u e s t s R e p o   =   a p p ( a l l o c _ R e q u e s t : : c l a s s ) ; 
 
 
 
     L i n e   3 7 6   [ m a t c h :   E P I C O R ] : 
 
         3 7 4 :                   / * 
 
         3 7 5 :                   t r y   { 
 
   > >   3 7 6 :                           $ P l a n t U s e r E m a i l s   =   $ E p i c o r D a t a b a s e - > g e t P l a n t U s e r E m a i l A d d r e s s e s ( $ R e q u e s t I n f o [ ' P l a n t ' ] ) ; 
 
         3 7 7 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         3 7 8 :                           $ P l a n t U s e r E m a i l s   =   [ ] ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ C o i l A l l o c a t i o n \ C o i l A l l o c a t i o n R e q u e s t C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 9   [ m a t c h :   e p i c o r ] : 
 
         5 7 :                   $ D a t a   =   r e q u e s t ( ) - > e x c e p t ( [ ' _ t o k e n ' ] ) ; 
 
         5 8 :   
 
   > >   5 9 :                   $ C u s t o m e r I D   =   $ C u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         6 0 :   
 
         6 1 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ E m a i l E v e n t   $ q u e s t _ E m a i l E v e n t _ C o p y   * / 
 
 
 
     L i n e   5 9   [ m a t c h :   E p i c o r ] : 
 
         5 7 :                   $ D a t a   =   r e q u e s t ( ) - > e x c e p t ( [ ' _ t o k e n ' ] ) ; 
 
         5 8 :   
 
   > >   5 9 :                   $ C u s t o m e r I D   =   $ C u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         6 0 :   
 
         6 1 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ E m a i l E v e n t   $ q u e s t _ E m a i l E v e n t _ C o p y   * / 
 
 
 
     L i n e   5 9   [ m a t c h :   E P I C O R ] : 
 
         5 7 :                   $ D a t a   =   r e q u e s t ( ) - > e x c e p t ( [ ' _ t o k e n ' ] ) ; 
 
         5 8 :   
 
   > >   5 9 :                   $ C u s t o m e r I D   =   $ C u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         6 0 :   
 
         6 1 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ E m a i l E v e n t   $ q u e s t _ E m a i l E v e n t _ C o p y   * / 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ B a s e C o i l A l l o c a t i o n C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 1   [ m a t c h :   e p i c o r ] : 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ C o i l A l l o c a t i o n C a n c e l l e d ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ C o i l A l l o c a t i o n R e q u e s t C a n c e l l a t i o n N o t i f i c a t i o n ; 
 
   > >   1 1 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 2 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ H i s t o r i c a l A l l o c a t i o n C a r t ; 
 
         1 3 :   u s e   A p p \ S e r v i c e s \ Q u e s t P a g e V a l u e s ; 
 
 
 
     L i n e   1 8 8   [ m a t c h :   e p i c o r ] : 
 
         1 8 6 :                           / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 8 7 :                           $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 8 8 :                           $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D ' , F i l t e r F i e l d : : O P E R A T O R _ E Q U A L , $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ; 
 
         1 8 9 :                   } 
 
         1 9 0 :   
 
 
 
     L i n e   3 5 1   [ m a t c h :   e p i c o r ] : 
 
         3 4 9 :                   $ M e t a d a t a F a c t o r y   =   a p p ( M e t a d a t a F a c t o r y : : c l a s s ) ; 
 
         3 5 0 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
   > >   3 5 1 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 5 2 :                   $ R O S h i p m e n t R e l e a s e R e p o   =   a p p ( \ A p p \ M o d e l \ R e p o s \ a l l o c _ R e q u e s t : : c l a s s ) ; 
 
         3 5 3 :                   $ R O E m a i l E v e n t R e p o   =   a p p ( q u e s t _ E m a i l E v e n t R e p o : : c l a s s ) ; 
 
 
 
     L i n e   3 6 6   [ m a t c h :   e p i c o r ] : 
 
         3 6 4 :   
 
         3 6 5 :                   t r y   { 
 
   > >   3 6 6 :                           $ P l a n t U s e r E m a i l s   =   $ E p i c o r D a t a b a s e - > g e t P l a n t U s e r E m a i l A d d r e s s e s ( $ R e q u e s t I n f o [ ' P l a n t ' ] ) ; 
 
         3 6 7 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         3 6 8 :                           $ P l a n t U s e r E m a i l s   =   [ ] ; 
 
 
 
     L i n e   4 1 6   [ m a t c h :   e p i c o r ] : 
 
         4 1 4 :           p r i v a t e   f u n c t i o n   _ _ f e t c h J o b I n f o r m a t i o n F o r H e a d e r ( $ J o b N u m ) 
 
         4 1 5 :           { 
 
   > >   4 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 1 8 :   
 
 
 
     L i n e   4 1 7   [ m a t c h :   e p i c o r ] : 
 
         4 1 5 :           { 
 
         4 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 1 8 :   
 
         4 1 9 :                   $ J o b   =   $ E p i c o r D B - > g e t J o b ( $ J o b N u m ) [ 0 ] ; 
 
 
 
     L i n e   4 1 9   [ m a t c h :   e p i c o r ] : 
 
         4 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 1 8 :   
 
   > >   4 1 9 :                   $ J o b   =   $ E p i c o r D B - > g e t J o b ( $ J o b N u m ) [ 0 ] ; 
 
         4 2 0 :                   $ C u s t I D   =   $ J o b [ ' C u s t I D ' ]   .   "   \ n   "   .   $ J o b [ ' C u s t o m e r _ N a m e ' ] ; 
 
         4 2 1 :                   / / $ C u s t o m e r N a m e   =   $ J o b [ ' C u s t o m e r _ N a m e ' ] ; 
 
 
 
     L i n e   1 1   [ m a t c h :   E p i c o r ] : 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ C o i l A l l o c a t i o n C a n c e l l e d ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ C o i l A l l o c a t i o n R e q u e s t C a n c e l l a t i o n N o t i f i c a t i o n ; 
 
   > >   1 1 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 2 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ H i s t o r i c a l A l l o c a t i o n C a r t ; 
 
         1 3 :   u s e   A p p \ S e r v i c e s \ Q u e s t P a g e V a l u e s ; 
 
 
 
     L i n e   1 8 8   [ m a t c h :   E p i c o r ] : 
 
         1 8 6 :                           / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 8 7 :                           $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 8 8 :                           $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D ' , F i l t e r F i e l d : : O P E R A T O R _ E Q U A L , $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ; 
 
         1 8 9 :                   } 
 
         1 9 0 :   
 
 
 
     L i n e   3 5 1   [ m a t c h :   E p i c o r ] : 
 
         3 4 9 :                   $ M e t a d a t a F a c t o r y   =   a p p ( M e t a d a t a F a c t o r y : : c l a s s ) ; 
 
         3 5 0 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
   > >   3 5 1 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 5 2 :                   $ R O S h i p m e n t R e l e a s e R e p o   =   a p p ( \ A p p \ M o d e l \ R e p o s \ a l l o c _ R e q u e s t : : c l a s s ) ; 
 
         3 5 3 :                   $ R O E m a i l E v e n t R e p o   =   a p p ( q u e s t _ E m a i l E v e n t R e p o : : c l a s s ) ; 
 
 
 
     L i n e   3 6 6   [ m a t c h :   E p i c o r ] : 
 
         3 6 4 :   
 
         3 6 5 :                   t r y   { 
 
   > >   3 6 6 :                           $ P l a n t U s e r E m a i l s   =   $ E p i c o r D a t a b a s e - > g e t P l a n t U s e r E m a i l A d d r e s s e s ( $ R e q u e s t I n f o [ ' P l a n t ' ] ) ; 
 
         3 6 7 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         3 6 8 :                           $ P l a n t U s e r E m a i l s   =   [ ] ; 
 
 
 
     L i n e   4 1 6   [ m a t c h :   E p i c o r ] : 
 
         4 1 4 :           p r i v a t e   f u n c t i o n   _ _ f e t c h J o b I n f o r m a t i o n F o r H e a d e r ( $ J o b N u m ) 
 
         4 1 5 :           { 
 
   > >   4 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 1 8 :   
 
 
 
     L i n e   4 1 7   [ m a t c h :   E p i c o r ] : 
 
         4 1 5 :           { 
 
         4 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 1 8 :   
 
         4 1 9 :                   $ J o b   =   $ E p i c o r D B - > g e t J o b ( $ J o b N u m ) [ 0 ] ; 
 
 
 
     L i n e   4 1 9   [ m a t c h :   E p i c o r ] : 
 
         4 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 1 8 :   
 
   > >   4 1 9 :                   $ J o b   =   $ E p i c o r D B - > g e t J o b ( $ J o b N u m ) [ 0 ] ; 
 
         4 2 0 :                   $ C u s t I D   =   $ J o b [ ' C u s t I D ' ]   .   "   \ n   "   .   $ J o b [ ' C u s t o m e r _ N a m e ' ] ; 
 
         4 2 1 :                   / / $ C u s t o m e r N a m e   =   $ J o b [ ' C u s t o m e r _ N a m e ' ] ; 
 
 
 
     L i n e   1 1   [ m a t c h :   E P I C O R ] : 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ C o i l A l l o c a t i o n C a n c e l l e d ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ C o i l A l l o c a t i o n R e q u e s t C a n c e l l a t i o n N o t i f i c a t i o n ; 
 
   > >   1 1 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 2 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ H i s t o r i c a l A l l o c a t i o n C a r t ; 
 
         1 3 :   u s e   A p p \ S e r v i c e s \ Q u e s t P a g e V a l u e s ; 
 
 
 
     L i n e   1 8 8   [ m a t c h :   E P I C O R ] : 
 
         1 8 6 :                           / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 8 7 :                           $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 8 8 :                           $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D ' , F i l t e r F i e l d : : O P E R A T O R _ E Q U A L , $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ; 
 
         1 8 9 :                   } 
 
         1 9 0 :   
 
 
 
     L i n e   3 5 1   [ m a t c h :   E P I C O R ] : 
 
         3 4 9 :                   $ M e t a d a t a F a c t o r y   =   a p p ( M e t a d a t a F a c t o r y : : c l a s s ) ; 
 
         3 5 0 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
   > >   3 5 1 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 5 2 :                   $ R O S h i p m e n t R e l e a s e R e p o   =   a p p ( \ A p p \ M o d e l \ R e p o s \ a l l o c _ R e q u e s t : : c l a s s ) ; 
 
         3 5 3 :                   $ R O E m a i l E v e n t R e p o   =   a p p ( q u e s t _ E m a i l E v e n t R e p o : : c l a s s ) ; 
 
 
 
     L i n e   3 6 6   [ m a t c h :   E P I C O R ] : 
 
         3 6 4 :   
 
         3 6 5 :                   t r y   { 
 
   > >   3 6 6 :                           $ P l a n t U s e r E m a i l s   =   $ E p i c o r D a t a b a s e - > g e t P l a n t U s e r E m a i l A d d r e s s e s ( $ R e q u e s t I n f o [ ' P l a n t ' ] ) ; 
 
         3 6 7 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         3 6 8 :                           $ P l a n t U s e r E m a i l s   =   [ ] ; 
 
 
 
     L i n e   4 1 6   [ m a t c h :   E P I C O R ] : 
 
         4 1 4 :           p r i v a t e   f u n c t i o n   _ _ f e t c h J o b I n f o r m a t i o n F o r H e a d e r ( $ J o b N u m ) 
 
         4 1 5 :           { 
 
   > >   4 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 1 8 :   
 
 
 
     L i n e   4 1 7   [ m a t c h :   E P I C O R ] : 
 
         4 1 5 :           { 
 
         4 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 1 8 :   
 
         4 1 9 :                   $ J o b   =   $ E p i c o r D B - > g e t J o b ( $ J o b N u m ) [ 0 ] ; 
 
 
 
     L i n e   4 1 9   [ m a t c h :   E P I C O R ] : 
 
         4 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 1 8 :   
 
   > >   4 1 9 :                   $ J o b   =   $ E p i c o r D B - > g e t J o b ( $ J o b N u m ) [ 0 ] ; 
 
         4 2 0 :                   $ C u s t I D   =   $ J o b [ ' C u s t I D ' ]   .   "   \ n   "   .   $ J o b [ ' C u s t o m e r _ N a m e ' ] ; 
 
         4 2 1 :                   / / $ C u s t o m e r N a m e   =   $ J o b [ ' C u s t o m e r _ N a m e ' ] ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ B a s e S h i p m e n t R e l e a s e C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   8   [ m a t c h :   e p i c o r ] : 
 
         6 :   u s e   A p p \ N o t i f i c a t i o n s \ S h i p m e n t R e l e a s e C a n c e l l e d ; 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ S h i p m e n t R e l e a s e R e q u e s t C a n c e l l a t i o n ; 
 
   > >   8 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         9 :   u s e   A p p \ S e r v i c e s \ H i s t o r i c a l S h i p m e n t C a r t ; 
 
         1 0 :   u s e   A p p \ S e r v i c e s \ Q u e s t P a g e V a l u e s ; 
 
 
 
     L i n e   2 1 0   [ m a t c h :   e p i c o r ] : 
 
         2 0 8 :                           / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 0 9 :                           $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   2 1 0 :                           $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D ' , F i l t e r F i e l d : : O P E R A T O R _ E Q U A L , $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ; 
 
         2 1 1 :                   } 
 
         2 1 2 :   
 
 
 
     L i n e   3 7 7   [ m a t c h :   e p i c o r ] : 
 
         3 7 5 :                   / * *   @ v a r   D a t a H a n d l e r   $ D a t a H a n d l e r   * / 
 
         3 7 6 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
   > >   3 7 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         3 7 8 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 9 :                   / * *   @ v a r   s h i p _ R e q u e s t R e p o   $ R O S h i p m e n t R e l e a s e R e p o   * / 
 
 
 
     L i n e   3 7 8   [ m a t c h :   e p i c o r ] : 
 
         3 7 6 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
         3 7 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   3 7 8 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 9 :                   / * *   @ v a r   s h i p _ R e q u e s t R e p o   $ R O S h i p m e n t R e l e a s e R e p o   * / 
 
         3 8 0 :                   $ R O S h i p m e n t R e l e a s e R e p o   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
 
 
     L i n e   3 9 7   [ m a t c h :   e p i c o r ] : 
 
         3 9 5 :   
 
         3 9 6 :                   t r y   { 
 
   > >   3 9 7 :                           $ P l a n t U s e r E m a i l s   =   $ E p i c o r D a t a b a s e - > g e t P l a n t U s e r E m a i l A d d r e s s e s ( $ R e q u e s t I n f o [ ' P l a n t ' ] ) ; 
 
         3 9 8 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         3 9 9 :                           $ P l a n t U s e r E m a i l s   =   [ ] ; 
 
 
 
     L i n e   8   [ m a t c h :   E p i c o r ] : 
 
         6 :   u s e   A p p \ N o t i f i c a t i o n s \ S h i p m e n t R e l e a s e C a n c e l l e d ; 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ S h i p m e n t R e l e a s e R e q u e s t C a n c e l l a t i o n ; 
 
   > >   8 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         9 :   u s e   A p p \ S e r v i c e s \ H i s t o r i c a l S h i p m e n t C a r t ; 
 
         1 0 :   u s e   A p p \ S e r v i c e s \ Q u e s t P a g e V a l u e s ; 
 
 
 
     L i n e   2 1 0   [ m a t c h :   E p i c o r ] : 
 
         2 0 8 :                           / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 0 9 :                           $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   2 1 0 :                           $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D ' , F i l t e r F i e l d : : O P E R A T O R _ E Q U A L , $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ; 
 
         2 1 1 :                   } 
 
         2 1 2 :   
 
 
 
     L i n e   3 7 7   [ m a t c h :   E p i c o r ] : 
 
         3 7 5 :                   / * *   @ v a r   D a t a H a n d l e r   $ D a t a H a n d l e r   * / 
 
         3 7 6 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
   > >   3 7 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         3 7 8 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 9 :                   / * *   @ v a r   s h i p _ R e q u e s t R e p o   $ R O S h i p m e n t R e l e a s e R e p o   * / 
 
 
 
     L i n e   3 7 8   [ m a t c h :   E p i c o r ] : 
 
         3 7 6 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
         3 7 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   3 7 8 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 9 :                   / * *   @ v a r   s h i p _ R e q u e s t R e p o   $ R O S h i p m e n t R e l e a s e R e p o   * / 
 
         3 8 0 :                   $ R O S h i p m e n t R e l e a s e R e p o   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
 
 
     L i n e   3 9 7   [ m a t c h :   E p i c o r ] : 
 
         3 9 5 :   
 
         3 9 6 :                   t r y   { 
 
   > >   3 9 7 :                           $ P l a n t U s e r E m a i l s   =   $ E p i c o r D a t a b a s e - > g e t P l a n t U s e r E m a i l A d d r e s s e s ( $ R e q u e s t I n f o [ ' P l a n t ' ] ) ; 
 
         3 9 8 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         3 9 9 :                           $ P l a n t U s e r E m a i l s   =   [ ] ; 
 
 
 
     L i n e   8   [ m a t c h :   E P I C O R ] : 
 
         6 :   u s e   A p p \ N o t i f i c a t i o n s \ S h i p m e n t R e l e a s e C a n c e l l e d ; 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ S h i p m e n t R e l e a s e R e q u e s t C a n c e l l a t i o n ; 
 
   > >   8 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         9 :   u s e   A p p \ S e r v i c e s \ H i s t o r i c a l S h i p m e n t C a r t ; 
 
         1 0 :   u s e   A p p \ S e r v i c e s \ Q u e s t P a g e V a l u e s ; 
 
 
 
     L i n e   2 1 0   [ m a t c h :   E P I C O R ] : 
 
         2 0 8 :                           / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 0 9 :                           $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   2 1 0 :                           $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D ' , F i l t e r F i e l d : : O P E R A T O R _ E Q U A L , $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ; 
 
         2 1 1 :                   } 
 
         2 1 2 :   
 
 
 
     L i n e   3 7 7   [ m a t c h :   E P I C O R ] : 
 
         3 7 5 :                   / * *   @ v a r   D a t a H a n d l e r   $ D a t a H a n d l e r   * / 
 
         3 7 6 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
   > >   3 7 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         3 7 8 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 9 :                   / * *   @ v a r   s h i p _ R e q u e s t R e p o   $ R O S h i p m e n t R e l e a s e R e p o   * / 
 
 
 
     L i n e   3 7 8   [ m a t c h :   E P I C O R ] : 
 
         3 7 6 :                   $ D a t a H a n d l e r   =   a p p ( D a t a H a n d l e r : : c l a s s ) ; 
 
         3 7 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   3 7 8 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 9 :                   / * *   @ v a r   s h i p _ R e q u e s t R e p o   $ R O S h i p m e n t R e l e a s e R e p o   * / 
 
         3 8 0 :                   $ R O S h i p m e n t R e l e a s e R e p o   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
 
 
     L i n e   3 9 7   [ m a t c h :   E P I C O R ] : 
 
         3 9 5 :   
 
         3 9 6 :                   t r y   { 
 
   > >   3 9 7 :                           $ P l a n t U s e r E m a i l s   =   $ E p i c o r D a t a b a s e - > g e t P l a n t U s e r E m a i l A d d r e s s e s ( $ R e q u e s t I n f o [ ' P l a n t ' ] ) ; 
 
         3 9 8 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         3 9 9 :                           $ P l a n t U s e r E m a i l s   =   [ ] ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ C o i l A l l o c a t i o n C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 8   [ m a t c h :   e p i c o r ] : 
 
         5 6 :                   $ D a t a   =   r e q u e s t ( ) - > e x c e p t ( [ ' _ t o k e n ' ] ) ; 
 
         5 7 :   
 
   > >   5 8 :                   $ C u s t o m e r I D   =   $ C u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         5 9 :   
 
         6 0 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ E m a i l E v e n t   $ q u e s t _ E m a i l E v e n t _ C o p y   * / 
 
 
 
     L i n e   5 8   [ m a t c h :   E p i c o r ] : 
 
         5 6 :                   $ D a t a   =   r e q u e s t ( ) - > e x c e p t ( [ ' _ t o k e n ' ] ) ; 
 
         5 7 :   
 
   > >   5 8 :                   $ C u s t o m e r I D   =   $ C u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         5 9 :   
 
         6 0 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ E m a i l E v e n t   $ q u e s t _ E m a i l E v e n t _ C o p y   * / 
 
 
 
     L i n e   5 8   [ m a t c h :   E P I C O R ] : 
 
         5 6 :                   $ D a t a   =   r e q u e s t ( ) - > e x c e p t ( [ ' _ t o k e n ' ] ) ; 
 
         5 7 :   
 
   > >   5 8 :                   $ C u s t o m e r I D   =   $ C u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         5 9 :   
 
         6 0 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ E m a i l E v e n t   $ q u e s t _ E m a i l E v e n t _ C o p y   * / 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ D a s h b o a r d C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4   [ m a t c h :   e p i c o r ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ N o t i f i c a t i o n   a s   q u e s t _ N o t i f i c a t i o n R e p o ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ S e l e c t e d C o m p a n y P r o v i d e r ; 
 
         6 :   u s e   S a v v i o r \ L T a b b y P a g e s \ C o n t r o l l e r s \ B a s e T a b b y P a g e s C o n t r o l l e r ; 
 
 
 
     L i n e   9   [ m a t c h :   e p i c o r ] : 
 
         7 :   u s e   S a v v i o r \ L T a b b y P a g e s \ T a b b y P a g e M a n a g e r ; 
 
         8 :   u s e   S a v v i o r \ L T a b b y P a g e s \ T a b b y P a g e ; 
 
   > >   9 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         1 0 :   u s e   S a v v i o r \ M e t a d a t a \ F i e l d M e t a d a t a F i e l d ; 
 
         1 1 :   u s e   S a v v i o r \ M e t a d a t a \ U I \ C u s t o m R e c o r d L i s t T e m p l a t e ; 
 
 
 
     L i n e   7 8   [ m a t c h :   e p i c o r ] : 
 
         7 6 :           p r o t e c t e d   f u n c t i o n   g e t L a t e s t S h i p m e n t s ( ) 
 
         7 7 :           { 
 
   > >   7 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         7 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 0 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   7 9   [ m a t c h :   e p i c o r ] : 
 
         7 7 :           { 
 
         7 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   7 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 0 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         8 1 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   8 4   [ m a t c h :   e p i c o r ] : 
 
         8 2 :   
 
         8 3 :                   $ S h i p m e n t D a t a   =   c o l l e c t ( 
 
   > >   8 4 :                           $ E p i c o r D B - > g e t T o p 1 0 0 S h i p m e n t s D a t a ( 
 
         8 5 :                                   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) 
 
         8 6 :                           ) 
 
 
 
     L i n e   8 5   [ m a t c h :   e p i c o r ] : 
 
         8 3 :                   $ S h i p m e n t D a t a   =   c o l l e c t ( 
 
         8 4 :                           $ E p i c o r D B - > g e t T o p 1 0 0 S h i p m e n t s D a t a ( 
 
   > >   8 5 :                                   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) 
 
         8 6 :                           ) 
 
         8 7 :                   ) ; 
 
 
 
     L i n e   1 2 7   [ m a t c h :   e p i c o r ] : 
 
         1 2 5 :           p r i v a t e   f u n c t i o n   g e t S h i p m e n t s M e t a d a t a ( ) 
 
         1 2 6 :           { 
 
   > >   1 2 7 :                   $ M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' S h i p m e n t s D a t a ' ) ;   / /   p a s s   t h e   n a m e   o f   t h e   v i e w   i n   E p i c o r   g i v i n g   y o u   t h e   d a t a ,   o t h e r w i s e   s o m e   u n i q u e   n a m e   f o r   t h i s   d a t a   s t r u c t u r e 
 
         1 2 8 :   
 
         1 2 9 :                   $ P l a n t N a m e   =   $ M e t a d a t a - > a d d N e w F i e l d ( ' P l a n t N a m e ' ,   F i e l d M e t a d a t a F i e l d : : c l a s s ) ; 
 
 
 
     L i n e   1 8 2   [ m a t c h :   e p i c o r ] : 
 
         1 8 0 :           p r o t e c t e d   f u n c t i o n   g e t L a t e s t O r d e r s ( ) 
 
         1 8 1 :           { 
 
   > >   1 8 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 8 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 8 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 8 3   [ m a t c h :   e p i c o r ] : 
 
         1 8 1 :           { 
 
         1 8 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 8 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 8 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 8 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 8 9   [ m a t c h :   e p i c o r ] : 
 
         1 8 7 :                   / / P u t   t h e   d a t a   i n t o   a   c o l l e c t i o n   s o   w e   c a n   t r a n s f o r m   u s i n g   c o l l e c t i o n   m e t h o d s 
 
         1 8 8 :                   $ O r d e r D a t a   =   c o l l e c t ( 
 
   > >   1 8 9 :                           $ E p i c o r D B - > g e t T o p 1 0 0 O r d e r s D a t a ( 
 
         1 9 0 :                                   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) 
 
         1 9 1 :                           ) 
 
 
 
     L i n e   1 9 0   [ m a t c h :   e p i c o r ] : 
 
         1 8 8 :                   $ O r d e r D a t a   =   c o l l e c t ( 
 
         1 8 9 :                           $ E p i c o r D B - > g e t T o p 1 0 0 O r d e r s D a t a ( 
 
   > >   1 9 0 :                                   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) 
 
         1 9 1 :                           ) 
 
         1 9 2 :                   ) ; 
 
 
 
     L i n e   2 4 0   [ m a t c h :   e p i c o r ] : 
 
         2 3 8 :           p r i v a t e   f u n c t i o n   g e t O r d e r s M e t a d a t a ( ) 
 
         2 3 9 :           { 
 
   > >   2 4 0 :                   $ M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' O r d e r s D a t a ' ) ;   / /   p a s s   t h e   n a m e   o f   t h e   v i e w   i n   E p i c o r   g i v i n g   y o u   t h e   d a t a ,   o t h e r w i s e   s o m e   u n i q u e   n a m e   f o r   t h i s   d a t a   s t r u c t u r e 
 
         2 4 1 :   
 
         2 4 2 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P h o n y K e y   * / 
 
 
 
     L i n e   4   [ m a t c h :   E p i c o r ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ N o t i f i c a t i o n   a s   q u e s t _ N o t i f i c a t i o n R e p o ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ S e l e c t e d C o m p a n y P r o v i d e r ; 
 
         6 :   u s e   S a v v i o r \ L T a b b y P a g e s \ C o n t r o l l e r s \ B a s e T a b b y P a g e s C o n t r o l l e r ; 
 
 
 
     L i n e   9   [ m a t c h :   E p i c o r ] : 
 
         7 :   u s e   S a v v i o r \ L T a b b y P a g e s \ T a b b y P a g e M a n a g e r ; 
 
         8 :   u s e   S a v v i o r \ L T a b b y P a g e s \ T a b b y P a g e ; 
 
   > >   9 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         1 0 :   u s e   S a v v i o r \ M e t a d a t a \ F i e l d M e t a d a t a F i e l d ; 
 
         1 1 :   u s e   S a v v i o r \ M e t a d a t a \ U I \ C u s t o m R e c o r d L i s t T e m p l a t e ; 
 
 
 
     L i n e   7 8   [ m a t c h :   E p i c o r ] : 
 
         7 6 :           p r o t e c t e d   f u n c t i o n   g e t L a t e s t S h i p m e n t s ( ) 
 
         7 7 :           { 
 
   > >   7 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         7 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 0 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   7 9   [ m a t c h :   E p i c o r ] : 
 
         7 7 :           { 
 
         7 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   7 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 0 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         8 1 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   8 4   [ m a t c h :   E p i c o r ] : 
 
         8 2 :   
 
         8 3 :                   $ S h i p m e n t D a t a   =   c o l l e c t ( 
 
   > >   8 4 :                           $ E p i c o r D B - > g e t T o p 1 0 0 S h i p m e n t s D a t a ( 
 
         8 5 :                                   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) 
 
         8 6 :                           ) 
 
 
 
     L i n e   8 5   [ m a t c h :   E p i c o r ] : 
 
         8 3 :                   $ S h i p m e n t D a t a   =   c o l l e c t ( 
 
         8 4 :                           $ E p i c o r D B - > g e t T o p 1 0 0 S h i p m e n t s D a t a ( 
 
   > >   8 5 :                                   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) 
 
         8 6 :                           ) 
 
         8 7 :                   ) ; 
 
 
 
     L i n e   1 2 7   [ m a t c h :   E p i c o r ] : 
 
         1 2 5 :           p r i v a t e   f u n c t i o n   g e t S h i p m e n t s M e t a d a t a ( ) 
 
         1 2 6 :           { 
 
   > >   1 2 7 :                   $ M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' S h i p m e n t s D a t a ' ) ;   / /   p a s s   t h e   n a m e   o f   t h e   v i e w   i n   E p i c o r   g i v i n g   y o u   t h e   d a t a ,   o t h e r w i s e   s o m e   u n i q u e   n a m e   f o r   t h i s   d a t a   s t r u c t u r e 
 
         1 2 8 :   
 
         1 2 9 :                   $ P l a n t N a m e   =   $ M e t a d a t a - > a d d N e w F i e l d ( ' P l a n t N a m e ' ,   F i e l d M e t a d a t a F i e l d : : c l a s s ) ; 
 
 
 
     L i n e   1 8 2   [ m a t c h :   E p i c o r ] : 
 
         1 8 0 :           p r o t e c t e d   f u n c t i o n   g e t L a t e s t O r d e r s ( ) 
 
         1 8 1 :           { 
 
   > >   1 8 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 8 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 8 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 8 3   [ m a t c h :   E p i c o r ] : 
 
         1 8 1 :           { 
 
         1 8 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 8 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 8 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 8 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 8 9   [ m a t c h :   E p i c o r ] : 
 
         1 8 7 :                   / / P u t   t h e   d a t a   i n t o   a   c o l l e c t i o n   s o   w e   c a n   t r a n s f o r m   u s i n g   c o l l e c t i o n   m e t h o d s 
 
         1 8 8 :                   $ O r d e r D a t a   =   c o l l e c t ( 
 
   > >   1 8 9 :                           $ E p i c o r D B - > g e t T o p 1 0 0 O r d e r s D a t a ( 
 
         1 9 0 :                                   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) 
 
         1 9 1 :                           ) 
 
 
 
     L i n e   1 9 0   [ m a t c h :   E p i c o r ] : 
 
         1 8 8 :                   $ O r d e r D a t a   =   c o l l e c t ( 
 
         1 8 9 :                           $ E p i c o r D B - > g e t T o p 1 0 0 O r d e r s D a t a ( 
 
   > >   1 9 0 :                                   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) 
 
         1 9 1 :                           ) 
 
         1 9 2 :                   ) ; 
 
 
 
     L i n e   2 4 0   [ m a t c h :   E p i c o r ] : 
 
         2 3 8 :           p r i v a t e   f u n c t i o n   g e t O r d e r s M e t a d a t a ( ) 
 
         2 3 9 :           { 
 
   > >   2 4 0 :                   $ M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' O r d e r s D a t a ' ) ;   / /   p a s s   t h e   n a m e   o f   t h e   v i e w   i n   E p i c o r   g i v i n g   y o u   t h e   d a t a ,   o t h e r w i s e   s o m e   u n i q u e   n a m e   f o r   t h i s   d a t a   s t r u c t u r e 
 
         2 4 1 :   
 
         2 4 2 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P h o n y K e y   * / 
 
 
 
     L i n e   4   [ m a t c h :   E P I C O R ] : 
 
         2 :   
 
         3 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ N o t i f i c a t i o n   a s   q u e s t _ N o t i f i c a t i o n R e p o ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ S e l e c t e d C o m p a n y P r o v i d e r ; 
 
         6 :   u s e   S a v v i o r \ L T a b b y P a g e s \ C o n t r o l l e r s \ B a s e T a b b y P a g e s C o n t r o l l e r ; 
 
 
 
     L i n e   9   [ m a t c h :   E P I C O R ] : 
 
         7 :   u s e   S a v v i o r \ L T a b b y P a g e s \ T a b b y P a g e M a n a g e r ; 
 
         8 :   u s e   S a v v i o r \ L T a b b y P a g e s \ T a b b y P a g e ; 
 
   > >   9 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         1 0 :   u s e   S a v v i o r \ M e t a d a t a \ F i e l d M e t a d a t a F i e l d ; 
 
         1 1 :   u s e   S a v v i o r \ M e t a d a t a \ U I \ C u s t o m R e c o r d L i s t T e m p l a t e ; 
 
 
 
     L i n e   7 8   [ m a t c h :   E P I C O R ] : 
 
         7 6 :           p r o t e c t e d   f u n c t i o n   g e t L a t e s t S h i p m e n t s ( ) 
 
         7 7 :           { 
 
   > >   7 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         7 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 0 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   7 9   [ m a t c h :   E P I C O R ] : 
 
         7 7 :           { 
 
         7 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   7 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 0 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         8 1 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   8 4   [ m a t c h :   E P I C O R ] : 
 
         8 2 :   
 
         8 3 :                   $ S h i p m e n t D a t a   =   c o l l e c t ( 
 
   > >   8 4 :                           $ E p i c o r D B - > g e t T o p 1 0 0 S h i p m e n t s D a t a ( 
 
         8 5 :                                   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) 
 
         8 6 :                           ) 
 
 
 
     L i n e   8 5   [ m a t c h :   E P I C O R ] : 
 
         8 3 :                   $ S h i p m e n t D a t a   =   c o l l e c t ( 
 
         8 4 :                           $ E p i c o r D B - > g e t T o p 1 0 0 S h i p m e n t s D a t a ( 
 
   > >   8 5 :                                   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) 
 
         8 6 :                           ) 
 
         8 7 :                   ) ; 
 
 
 
     L i n e   1 2 7   [ m a t c h :   E P I C O R ] : 
 
         1 2 5 :           p r i v a t e   f u n c t i o n   g e t S h i p m e n t s M e t a d a t a ( ) 
 
         1 2 6 :           { 
 
   > >   1 2 7 :                   $ M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' S h i p m e n t s D a t a ' ) ;   / /   p a s s   t h e   n a m e   o f   t h e   v i e w   i n   E p i c o r   g i v i n g   y o u   t h e   d a t a ,   o t h e r w i s e   s o m e   u n i q u e   n a m e   f o r   t h i s   d a t a   s t r u c t u r e 
 
         1 2 8 :   
 
         1 2 9 :                   $ P l a n t N a m e   =   $ M e t a d a t a - > a d d N e w F i e l d ( ' P l a n t N a m e ' ,   F i e l d M e t a d a t a F i e l d : : c l a s s ) ; 
 
 
 
     L i n e   1 8 2   [ m a t c h :   E P I C O R ] : 
 
         1 8 0 :           p r o t e c t e d   f u n c t i o n   g e t L a t e s t O r d e r s ( ) 
 
         1 8 1 :           { 
 
   > >   1 8 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 8 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 8 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 8 3   [ m a t c h :   E P I C O R ] : 
 
         1 8 1 :           { 
 
         1 8 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 8 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 8 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 8 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 8 9   [ m a t c h :   E P I C O R ] : 
 
         1 8 7 :                   / / P u t   t h e   d a t a   i n t o   a   c o l l e c t i o n   s o   w e   c a n   t r a n s f o r m   u s i n g   c o l l e c t i o n   m e t h o d s 
 
         1 8 8 :                   $ O r d e r D a t a   =   c o l l e c t ( 
 
   > >   1 8 9 :                           $ E p i c o r D B - > g e t T o p 1 0 0 O r d e r s D a t a ( 
 
         1 9 0 :                                   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) 
 
         1 9 1 :                           ) 
 
 
 
     L i n e   1 9 0   [ m a t c h :   E P I C O R ] : 
 
         1 8 8 :                   $ O r d e r D a t a   =   c o l l e c t ( 
 
         1 8 9 :                           $ E p i c o r D B - > g e t T o p 1 0 0 O r d e r s D a t a ( 
 
   > >   1 9 0 :                                   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) 
 
         1 9 1 :                           ) 
 
         1 9 2 :                   ) ; 
 
 
 
     L i n e   2 4 0   [ m a t c h :   E P I C O R ] : 
 
         2 3 8 :           p r i v a t e   f u n c t i o n   g e t O r d e r s M e t a d a t a ( ) 
 
         2 3 9 :           { 
 
   > >   2 4 0 :                   $ M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' O r d e r s D a t a ' ) ;   / /   p a s s   t h e   n a m e   o f   t h e   v i e w   i n   E p i c o r   g i v i n g   y o u   t h e   d a t a ,   o t h e r w i s e   s o m e   u n i q u e   n a m e   f o r   t h i s   d a t a   s t r u c t u r e 
 
         2 4 1 :   
 
         2 4 2 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P h o n y K e y   * / 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ I n v e n t o r y C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 0 6 3   [ m a t c h :   F R O M   ] : 
 
         1 0 6 1 :   
 
         1 0 6 2 :                   i f ( $ S h i p m e n t C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ P l a n t   ! = =   $ S h i p m e n t C a r t - > g e t P l a n t ( ) ) 
 
   > >   1 0 6 3 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e   c u r r e n t   s h i p m e n t   r e l e a s e   a l r e a d y   c o n t a i n s   i t e m s   f r o m   a n o t h e r   p l a n t ' ,   ' a c t i o n '   = >   ' b a d _ p l a n t ' ] ) ; 
 
         1 0 6 4 :                   e l s e i f ( $ S h i p m e n t C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ S h i p m e n t C a r t - > i s D e t a i l I n C a r t ( $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   ( i n t ) $ O n H a n d Q u a n t i t y ) ) 
 
         1 0 6 5 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   s h i p m e n t   r e l e a s e ' ,   ' a c t i o n '   = >   ' i n _ c a r t ' ] ) ; 
 
 
 
     L i n e   1 1 2 6   [ m a t c h :   F R O M   ] : 
 
         1 1 2 4 :   
 
         1 1 2 5 :                   i f ( $ S h i p m e n t C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ P l a n t   ! =   $ S h i p m e n t C a r t - > g e t P l a n t ( ) ) 
 
   > >   1 1 2 6 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e   c u r r e n t   s h i p m e n t   r e l e a s e   a l r e a d y   c o n t a i n s   i t e m s   f r o m   a n o t h e r   p l a n t ' ,   ' a c t i o n '   = >   ' b a d _ p l a n t ' ] ) ; 
 
         1 1 2 7 :   
 
         1 1 2 8 :                   $ D e t a i l L i n e s T h a t E x i s t I n R e l e a s e   =   $ R O S h i p m e n t R e q u e s t D e t a i l R e p o - > g e t D e t a i l L i n e s T h a t E x i s t F o r N o n C a n c e l l e d S h i p m e n t s ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ P l a n t ,   $ P a r t ,   $ W a r e h o u s e ,   $ D a t a ) ; 
 
 
 
     L i n e   1 1 9 2   [ m a t c h :   F R O M   ] : 
 
         1 1 9 0 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 1 9 1 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
   > >   1 1 9 2 :                           L o g : : e r r o r ( ' D e l e t i n g   i t e m   f r o m   s h i p m e n t :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 1 9 3 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   r e m o v i n g   t h i s   i t e m   f r o m   y o u r   s h i p m e n t .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         1 1 9 4 :                   } 
 
 
 
     L i n e   1 1 9 3   [ m a t c h :   F R O M   ] : 
 
         1 1 9 1 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         1 1 9 2 :                           L o g : : e r r o r ( ' D e l e t i n g   i t e m   f r o m   s h i p m e n t :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
   > >   1 1 9 3 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   r e m o v i n g   t h i s   i t e m   f r o m   y o u r   s h i p m e n t .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         1 1 9 4 :                   } 
 
         1 1 9 5 :   
 
 
 
     L i n e   1 1 9 6   [ m a t c h :   F R O M   ] : 
 
         1 1 9 4 :                   } 
 
         1 1 9 5 :   
 
   > >   1 1 9 6 :                   r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h ( [ ' s u c c e s s '   = >   ' I t e m   s u c c e s s f u l l y   r e m o v e d   f r o m   s h i p m e n t   r e l e a s e ' ] ) ; 
 
         1 1 9 7 :           } 
 
         1 1 9 8 :   
 
 
 
     L i n e   8 1 9   [ m a t c h :   S E L E C T   ] : 
 
         8 1 7 :   
 
         8 1 8 :                   i f ( i s _ n u l l ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) 
 
   > >   8 1 9 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' P l e a s e   s e l e c t   a   c u s t o m e r   b e f o r e   s t a r t i n g   a   s h i p m e n t   r e l e a s e ' ) ; 
 
         8 2 0 :   
 
         8 2 1 :                   $ N o w   =   n e w   \ D a t e T i m e ( ) ; 
 
 
 
     L i n e   1 4 1 7   [ m a t c h :   U P D A T E   ] : 
 
         1 4 1 5 :                           $ S h i p m e n t R e l e a s e H e l p e r - > g e n e r a t e C o m p l e t e d R e l e a s e P D F ( $ S h i p m e n t C a r t ,   a r r a y _ d i f f _ k e y ( $ D B D a t a ,   a r r a y _ f l i p ( $ E x c l u d e D a t a L o c k K e y s ) ) ) ; 
 
         1 4 1 6 :   
 
   > >   1 4 1 7 :                           / /   u p d a t e   D B 
 
         1 4 1 8 :                           $ D a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
         1 4 1 9 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( $ D B D a t a ,   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' s h i p _ R e q u e s t ' ) ) ; 
 
 
 
     L i n e   1 4   [ m a t c h :   e p i c o r ] : 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ S h i p m e n t R e l e a s e C o n f i r m a t i o n ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ S h i p T o A d d r e s s I n q u i r y ; 
 
   > >   1 4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 5 :   u s e   A p p \ S e r v i c e s \ I n v e n t o r y H e l p e r ; 
 
         1 6 :   u s e   A p p \ S e r v i c e s \ P D F H e l p e r ; 
 
 
 
     L i n e   6 0   [ m a t c h :   e p i c o r ] : 
 
         5 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ c u s t o m e r   * / 
 
         5 9 :                   $ c u s t o m e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   6 0 :                   $ c u s t o m e r   =   $ c u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         6 1 :   
 
         6 2 :                   / * *   @ v a r   q u e s t _ C o m p a n y   $ q u e s t _ C o m p a n y R e p o   * / 
 
 
 
     L i n e   6 5   [ m a t c h :   e p i c o r ] : 
 
         6 3 :                   $ q u e s t _ C o m p a n y R e p o   =   a p p ( q u e s t _ C o m p a n y : : c l a s s ) ; 
 
         6 4 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y   $ q u e s t _ C o m p a n y   * / 
 
   > >   6 5 :                   $ q u e s t _ C o m p a n y   =   $ q u e s t _ C o m p a n y R e p o - > f i n d O n e B y ( [ ' E p i c o r C u s t I D '   = >   $ c u s t o m e r ] ) ; 
 
         6 6 :   
 
         6 7 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r [ ]   $ q u e s t _ C o m p a n y U s e r s   * / 
 
 
 
     L i n e   2 9 9   [ m a t c h :   e p i c o r ] : 
 
         2 9 7 :   
 
         2 9 8 :   
 
   > >   2 9 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         3 0 0 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 1 :   
 
 
 
     L i n e   3 0 0   [ m a t c h :   e p i c o r ] : 
 
         2 9 8 :   
 
         2 9 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
   > >   3 0 0 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 1 :   
 
         3 0 2 :   
 
 
 
     L i n e   3 0 5   [ m a t c h :   e p i c o r ] : 
 
         3 0 3 :   
 
         3 0 4 :                   / * *   @ t o d o   -   g e t   s e r v i c e   c a l l   N I C K   L   * / 
 
   > >   3 0 5 :               / /     $ b o l D a t a   =   $ e p i c o r e - > g e t B O L ( $ b o l N u m ) ; 
 
         3 0 6 :   
 
         3 0 7 :                   $ p l a n t   =   ' V a l e n c i a   P l a n t ' ; 
 
 
 
     L i n e   3 7 9   [ m a t c h :   e p i c o r ] : 
 
         3 7 7 :   
 
         3 7 8 :   
 
   > >   3 7 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         3 8 0 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 8 1 :   
 
 
 
     L i n e   3 8 0   [ m a t c h :   e p i c o r ] : 
 
         3 7 8 :   
 
         3 7 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
   > >   3 8 0 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 8 1 :   
 
         3 8 2 :   
 
 
 
     L i n e   3 8 3   [ m a t c h :   e p i c o r ] : 
 
         3 8 1 :   
 
         3 8 2 :   
 
   > >   3 8 3 :                   $ b o l D a t a   =   $ e p i c o r e - > g e t B O L ( $ b o l N u m ) ; 
 
         3 8 4 :             / /       $ p a c k e r D a t a   =   $ e p i c o r e - > g e t P a c k e r ( $ b o l N u m ) ; 
 
         3 8 5 :   
 
 
 
     L i n e   3 8 4   [ m a t c h :   e p i c o r ] : 
 
         3 8 2 :   
 
         3 8 3 :                   $ b o l D a t a   =   $ e p i c o r e - > g e t B O L ( $ b o l N u m ) ; 
 
   > >   3 8 4 :             / /       $ p a c k e r D a t a   =   $ e p i c o r e - > g e t P a c k e r ( $ b o l N u m ) ; 
 
         3 8 5 :   
 
         3 8 6 :   
 
 
 
     L i n e   4 6 2   [ m a t c h :   e p i c o r ] : 
 
         4 6 0 :   
 
         4 6 1 :   
 
   > >   4 6 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         4 6 3 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 6 4 :   
 
 
 
     L i n e   4 6 3   [ m a t c h :   e p i c o r ] : 
 
         4 6 1 :   
 
         4 6 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
   > >   4 6 3 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 6 4 :   
 
         4 6 5 :   
 
 
 
     L i n e   4 6 6   [ m a t c h :   e p i c o r ] : 
 
         4 6 4 :   
 
         4 6 5 :   
 
   > >   4 6 6 :                   $ j o b T r a v e l e r D a t a   =   $ e p i c o r e - > g e t J o b T r a v e l e r ( $ j o b _ n u m ) ; 
 
         4 6 7 :   
 
         4 6 8 :                   i f   ( c o u n t ( $ j o b T r a v e l e r D a t a )   = =   0 ) 
 
 
 
     L i n e   6 6 9   [ m a t c h :   e p i c o r ] : 
 
         6 6 7 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ c u s t o m e r   * / 
 
         6 6 8 :                   $ c u s t o m e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   6 6 9 :                   $ c u s t o m e r   =   $ c u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         6 7 0 :   
 
         6 7 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
 
 
     L i n e   6 7 1   [ m a t c h :   e p i c o r ] : 
 
         6 6 9 :                   $ c u s t o m e r   =   $ c u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         6 7 0 :   
 
   > >   6 7 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         6 7 2 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 7 3 :   
 
 
 
     L i n e   6 7 2   [ m a t c h :   e p i c o r ] : 
 
         6 7 0 :   
 
         6 7 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
   > >   6 7 2 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 7 3 :   
 
         6 7 4 :   
 
 
 
     L i n e   6 7 5   [ m a t c h :   e p i c o r ] : 
 
         6 7 3 :   
 
         6 7 4 :   
 
   > >   6 7 5 :                   $ C o i l B y C o i l D a t a   =   $ e p i c o r e - > g e t C o i l B y C o i l ( $ j o b _ n u m , $ c u s t o m e r ) ; 
 
         6 7 6 :   
 
         6 7 7 :   
 
 
 
     L i n e   8 1 8   [ m a t c h :   e p i c o r ] : 
 
         8 1 6 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A   s h i p m e n t   r e l e a s e   c a n n o t   b e   s t a r t e d   f o r   t h i s   c u s t o m e r   a s   t h e r e   i s   a l r e a d y   o n e   i n   p r o g r e s s ' ) ; 
 
         8 1 7 :   
 
   > >   8 1 8 :                   i f ( i s _ n u l l ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) 
 
         8 1 9 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' P l e a s e   s e l e c t   a   c u s t o m e r   b e f o r e   s t a r t i n g   a   s h i p m e n t   r e l e a s e ' ) ; 
 
         8 2 0 :   
 
 
 
     L i n e   8 2 6   [ m a t c h :   e p i c o r ] : 
 
         8 2 4 :                   t r y   { 
 
         8 2 5 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
   > >   8 2 6 :                                   ' q u e s t _ C o m p a n y '   = >   [ ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) - > g e t I D ( ) ] , 
 
         8 2 7 :                                   ' q u e s t _ U s e r '   = >   [ ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ] , 
 
         8 2 8 :                                   ' O p e n C a r t C o n s t r a i n t '   = >   t r u e , 
 
 
 
     L i n e   8 4 1   [ m a t c h :   e p i c o r ] : 
 
         8 3 9 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         8 4 0 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
   > >   8 4 1 :                           L o g : : e r r o r ( ' S H I P M E N T   R E Q U E S T   S T A R T   D B   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         8 4 2 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   s t a r t i n g   t h i s   s h i p m e n t   r e l e a s e .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         8 4 3 :                   } 
 
 
 
     L i n e   8 5 9   [ m a t c h :   e p i c o r ] : 
 
         8 5 7 :           } 
 
         8 5 8 :   
 
   > >   8 5 9 :           p u b l i c   f u n c t i o n   g e t S e l e c t S h i p T o A d d r e s s D u p l i c a t e ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e , 
 
         8 6 0 :                                                                                                           S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y , 
 
         8 6 1 :                                                                                                           D a t a H a n d l e r   $ D a t a H a n d l e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
 
 
     L i n e   8 8 2   [ m a t c h :   e p i c o r ] : 
 
         8 8 0 :                                   ' S h i p T o S e l e c t e d '   = >   t r u e , 
 
         8 8 1 :                                   ' S h i p T o N u m '   = >   $ S h i p R e q u e s t 1 - > g e t S h i p T o N u m ( ) , 
 
   > >   8 8 2 :                                   ' S h i p T o C u s t o m e r '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) - > g e t E p i N a m e ( ) , 
 
         8 8 3 :                                   ' S h i p T o N a m e '   = >   $ S h i p R e q u e s t 1 - > g e t S h i p T o N a m e ( ) , 
 
         8 8 4 :                                   ' S h i p T o A d d r e s s 1 '   = >   $ S h i p R e q u e s t 1 - > g e t S h i p T o A d d r e s s 1 ( ) , 
 
 
 
     L i n e   9 2 8   [ m a t c h :   e p i c o r ] : 
 
         9 2 6 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         9 2 7 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
   > >   9 2 8 :                           L o g : : e r r o r ( ' S H I P M E N T   R E Q U E S T   C A N C E L   D B   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         9 2 9 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   c a n c e l l i n g   t h i s   s h i p m e n t   r e l e a s e .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         9 3 0 :                   } 
 
 
 
     L i n e   9 3 5   [ m a t c h :   e p i c o r ] : 
 
         9 3 3 :           } 
 
         9 3 4 :   
 
   > >   9 3 5 :           p u b l i c   f u n c t i o n   g e t S e l e c t S h i p T o A d d r e s s ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e , 
 
         9 3 6 :                                                                                         S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s 
 
         9 3 7 :                                                                                         $ Q u e s t P a g e V a l u e s ,   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ) 
 
 
 
     L i n e   9 4 2   [ m a t c h :   e p i c o r ] : 
 
         9 4 0 :                           r e t u r n   r e d i r e c t ( ) - > a c t i o n ( ' Q u e s t \ I n v e n t o r y C o n t r o l l e r @ g e t I n d e x ' ) - > w i t h ( ( r e q u e s t ( ) - > s e s s i o n ( ) - > h a s ( ' s u c c e s s ' )   ?   [ ' s u c c e s s '   = >   r e q u e s t ( ) - > s e s s i o n ( ) - > g e t ( ' s u c c e s s ' ) ]   :   [ ] ) ) ; 
 
         9 4 1 :   
 
   > >   9 4 2 :                   $ S h i p T o A d d r e s s e s   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r S h i p T o A d d r e s s e s ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ; 
 
         9 4 3 :   
 
         9 4 4 :                   $ S h i p T o A d d r e s s L i n e s   =   [ ] ; 
 
 
 
     L i n e   9 4 6   [ m a t c h :   e p i c o r ] : 
 
         9 4 4 :                   $ S h i p T o A d d r e s s L i n e s   =   [ ] ; 
 
         9 4 5 :                   $ S h i p T o A d d r e s s N u m s   =   [ ] ; 
 
   > >   9 4 6 :                   $ C u s t o m e r N a m e   =   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) - > g e t E p i N a m e ( ) ; 
 
         9 4 7 :                   f o r e a c h ( $ S h i p T o A d d r e s s e s   a s   $ S h i p T o A d d r e s s ) 
 
         9 4 8 :                   { 
 
 
 
     L i n e   9 6 0   [ m a t c h :   e p i c o r ] : 
 
         9 5 8 :   
 
         9 5 9 :           / / / h e r e 
 
   > >   9 6 0 :           p u b l i c   f u n c t i o n   p o s t S e l e c t S h i p T o A d d r e s s ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e , 
 
         9 6 1 :                                                                                           S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y , 
 
         9 6 2 :                                                                                           D a t a H a n d l e r   $ D a t a H a n d l e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
 
 
     L i n e   9 7 0   [ m a t c h :   e p i c o r ] : 
 
         9 6 8 :                         r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' T h e   s h i p   t o   a d d r e s s   s e l e c t e d   i s   n o t   v a l i d .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         9 6 9 :   
 
   > >   9 7 0 :                   $ S e l e c t e d S h i p T o A d d r e s s I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r S i n g l e S h i p T o A d d r e s s B y N u m ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ S h i p T o N u m ) ; 
 
         9 7 1 :   
 
         9 7 2 :                   i f ( i s _ n u l l ( $ S e l e c t e d S h i p T o A d d r e s s I n f o ) ) 
 
 
 
     L i n e   9 8 1   [ m a t c h :   e p i c o r ] : 
 
         9 7 9 :                                   ' S h i p T o S e l e c t e d '   = >   t r u e , 
 
         9 8 0 :                                   ' S h i p T o N u m '   = >   $ S h i p T o N u m , 
 
   > >   9 8 1 :                                   ' S h i p T o C u s t o m e r '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) - > g e t E p i N a m e ( ) , 
 
         9 8 2 :                                   ' S h i p T o N a m e '   = >   $ S e l e c t e d S h i p T o A d d r e s s I n f o [ ' S h i p T o N a m e ' ] , 
 
         9 8 3 :                                   ' S h i p T o A d d r e s s 1 '   = >   $ S e l e c t e d S h i p T o A d d r e s s I n f o [ ' S h i p T o A d d r e s s 1 ' ] , 
 
 
 
     L i n e   9 9 9   [ m a t c h :   e p i c o r ] : 
 
         9 9 7 :           } 
 
         9 9 8 :   
 
   > >   9 9 9 :           p u b l i c   f u n c t i o n   p o s t S h i p T o A d d r e s s I n q u i r y ( q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 0 0 0 :           { 
 
         1 0 0 1 :                   $ E m a i l I n q u i r y T o   =   $ R O E m a i l E v e n t R e p o - > g e t E m a i l s F o r A c t i v e Q u e s t U s e r s T h a t R e c e i v e E m a i l E v e n t ( ' S H I P _ T O _ A D D R E S S _ I N Q U I R Y ' ) ; 
 
 
 
     L i n e   1 0 1 1   [ m a t c h :   e p i c o r ] : 
 
         1 0 0 9 :                   i f ( ! i n _ a r r a y ( $ T y p e ,   [ ' a d d ' , ' e d i t ' , ' d e l e t e ' ] ) ) 
 
         1 0 1 0 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' I n v a l i d   i n q u i r y   t y p e   p r o v i d e d ' ) ; 
 
   > >   1 0 1 1 :                   i f ( ( $ T y p e   = =   ' e d i t '   | |   $ T y p e   = =   ' d e l e t e ' )   & &   ( i s _ n u l l ( $ S h i p T o N u m   =   r e q u e s t ( ) - > i n p u t ( ' i d ' ) )   | |   i s _ n u l l ( $ S h i p T o I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r S i n g l e S h i p T o A d d r e s s B y N u m ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ S h i p T o N u m ) ) ) ) 
 
         1 0 1 2 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' T h e   s h i p   t o   a d d r e s s   f o r   y o u r   i n q u i r y   n o   l o n g e r   e x i s t s . ' ) ; 
 
         1 0 1 3 :                   i f ( ( $ T y p e   = =   ' a d d '   | |   $ T y p e   = =   ' e d i t ' )   & &   ! s t r l e n ( $ I n q u i r y   =   t r i m ( r e q u e s t ( ) - > i n p u t ( ' i n q u i r y ' ) ) ) ) 
 
 
 
     L i n e   1 0 3 9   [ m a t c h :   e p i c o r ] : 
 
         1 0 3 7 :           p u b l i c   f u n c t i o n   p o s t A d d I t e m T o S h i p m e n t ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   s h i p _ R e q u e s t R e p o   $ R O S h i p m e n t R e q u e s t R e p o ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   D a t a H a n d l e r   $ D a t a H a n d l e r ) 
 
         1 0 3 8 :           { 
 
   > >   1 0 3 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         1 0 4 0 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 4 1 :   
 
 
 
     L i n e   1 0 4 0   [ m a t c h :   e p i c o r ] : 
 
         1 0 3 8 :           { 
 
         1 0 3 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   1 0 4 0 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 4 1 :   
 
         1 0 4 2 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   1 0 6 6   [ m a t c h :   e p i c o r ] : 
 
         1 0 6 4 :                   e l s e i f ( $ S h i p m e n t C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ S h i p m e n t C a r t - > i s D e t a i l I n C a r t ( $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   ( i n t ) $ O n H a n d Q u a n t i t y ) ) 
 
         1 0 6 5 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   s h i p m e n t   r e l e a s e ' ,   ' a c t i o n '   = >   ' i n _ c a r t ' ] ) ; 
 
   > >   1 0 6 6 :                   e l s e i f ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d S h i p m e n t E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) ) 
 
         1 0 6 7 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   p a r t   o f   a n o t h e r   s h i p m e n t   r e l e a s e   f o r   t h i s   c u s t o m e r ' ,   ' a c t i o n '   = >   ' a n o t h e r _ c a r t ' ] ) ; 
 
         1 0 6 8 :   
 
 
 
     L i n e   1 0 6 9   [ m a t c h :   e p i c o r ] : 
 
         1 0 6 7 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   p a r t   o f   a n o t h e r   s h i p m e n t   r e l e a s e   f o r   t h i s   c u s t o m e r ' ,   ' a c t i o n '   = >   ' a n o t h e r _ c a r t ' ] ) ; 
 
         1 0 6 8 :   
 
   > >   1 0 6 9 :                   $ P a r t D e s c r i p t i o n   =   $ E p i c o r D a t a b a s e - > g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r W i t h P a i n t C o d e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) , $ P a r t N u m ) ; 
 
         1 0 7 0 :   
 
         1 0 7 1 :                   $ D a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
 
 
     L i n e   1 0 7 6   [ m a t c h :   e p i c o r ] : 
 
         1 0 7 4 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 0 7 5 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   1 0 7 6 :                           L o g : : e r r o r ( ' A D D I N G   I T E M   T O   S H I P M E N T   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ S h i p m e n t C a r t - > g e t C a r t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 0 7 7 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e r e   w a s   a n   u n e x p e c t e d   e r r o r   a d d i n g   t h i s   i t e m   t o   y o u r   s h i p m e n t .     P l e a s e   t r y   a g a i n . ' ] ) ; 
 
         1 0 7 8 :                   } 
 
 
 
     L i n e   1 0 8 9   [ m a t c h :   e p i c o r ] : 
 
         1 0 8 7 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 0 8 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 0 8 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         1 0 9 0 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 9 1 :                   / * *   @ v a r   s h i p _ R e q u e s t D e t a i l R e p o   $ R O S h i p m e n t R e q u e s t D e t a i l R e p o   * / 
 
 
 
     L i n e   1 0 9 0   [ m a t c h :   e p i c o r ] : 
 
         1 0 8 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 0 8 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   1 0 9 0 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 9 1 :                   / * *   @ v a r   s h i p _ R e q u e s t D e t a i l R e p o   $ R O S h i p m e n t R e q u e s t D e t a i l R e p o   * / 
 
         1 0 9 2 :                   $ R O S h i p m e n t R e q u e s t D e t a i l R e p o   =   a p p ( s h i p _ R e q u e s t D e t a i l R e p o : : c l a s s ) ; 
 
 
 
     L i n e   1 1 0 4   [ m a t c h :   e p i c o r ] : 
 
         1 1 0 2 :                   { 
 
         1 1 0 3 :                           c a s e   ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y S u m m a r y ' : 
 
   > >   1 1 0 4 :                                   $ D a t a   =   $ E p i c o r D a t a b a s e - > g e t I n v e n t o r y U n p r o c e s s e d D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 1 0 5 :                                   b r e a k ; 
 
         1 1 0 6 :                           c a s e   ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' : 
 
 
 
     L i n e   1 1 0 7   [ m a t c h :   e p i c o r ] : 
 
         1 1 0 5 :                                   b r e a k ; 
 
         1 1 0 6 :                           c a s e   ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' : 
 
   > >   1 1 0 7 :                                   $ D a t a   =   $ E p i c o r D a t a b a s e - > g e t I n v e n t o r y U n p r o c e s s e d R R D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 1 0 8 :                                   b r e a k ; 
 
         1 1 0 9 :                           c a s e   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' : 
 
 
 
     L i n e   1 1 1 0   [ m a t c h :   e p i c o r ] : 
 
         1 1 0 8 :                                   b r e a k ; 
 
         1 1 0 9 :                           c a s e   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' : 
 
   > >   1 1 1 0 :                                   $ D a t a   =   $ E p i c o r D a t a b a s e - > g e t I n v e n t o r y W o r k I n P r o g r e s s D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 1 1 1 :                                   b r e a k ; 
 
         1 1 1 2 :                           c a s e   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y S u m m a r y ' : 
 
 
 
     L i n e   1 1 1 3   [ m a t c h :   e p i c o r ] : 
 
         1 1 1 1 :                                   b r e a k ; 
 
         1 1 1 2 :                           c a s e   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y S u m m a r y ' : 
 
   > >   1 1 1 3 :                                   $ D a t a   =   $ E p i c o r D a t a b a s e - > g e t I n v e n t o r y F i n i s h e d G o o d s D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 1 1 4 :                                   b r e a k ; 
 
         1 1 1 5 :                           c a s e   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y ' : 
 
 
 
     L i n e   1 1 1 6   [ m a t c h :   e p i c o r ] : 
 
         1 1 1 4 :                                   b r e a k ; 
 
         1 1 1 5 :                           c a s e   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y ' : 
 
   > >   1 1 1 6 :                                   $ D a t a   =   $ E p i c o r D a t a b a s e - > g e t I n v e n t o r y P r o c e s s e d O t h e r D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 1 1 7 :                                   b r e a k ; 
 
         1 1 1 8 :                           c a s e   ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' : 
 
 
 
     L i n e   1 1 1 9   [ m a t c h :   e p i c o r ] : 
 
         1 1 1 7 :                                   b r e a k ; 
 
         1 1 1 8 :                           c a s e   ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' : 
 
   > >   1 1 1 9 :                                   $ D a t a   =   $ E p i c o r D a t a b a s e - > g e t I n v e n t o r y P r o c e s s e d R R D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 1 2 0 :                                   b r e a k ; 
 
         1 1 2 1 :                           d e f a u l t : 
 
 
 
     L i n e   1 1 2 8   [ m a t c h :   e p i c o r ] : 
 
         1 1 2 6 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e   c u r r e n t   s h i p m e n t   r e l e a s e   a l r e a d y   c o n t a i n s   i t e m s   f r o m   a n o t h e r   p l a n t ' ,   ' a c t i o n '   = >   ' b a d _ p l a n t ' ] ) ; 
 
         1 1 2 7 :   
 
   > >   1 1 2 8 :                   $ D e t a i l L i n e s T h a t E x i s t I n R e l e a s e   =   $ R O S h i p m e n t R e q u e s t D e t a i l R e p o - > g e t D e t a i l L i n e s T h a t E x i s t F o r N o n C a n c e l l e d S h i p m e n t s ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ P l a n t ,   $ P a r t ,   $ W a r e h o u s e ,   $ D a t a ) ; 
 
         1 1 2 9 :   
 
         1 1 3 0 :                   $ A d d e d   =   [ ] ; 
 
 
 
     L i n e   1 1 5 4   [ m a t c h :   e p i c o r ] : 
 
         1 1 5 2 :                                           c o n t i n u e ;   / /   a l r e a d y   i n   a n o t h e r   r e l e a s e 
 
         1 1 5 3 :                                   } 
 
   > >   1 1 5 4 :                                   $ P a r t D e s c r i p t i o n   =   $ E p i c o r D a t a b a s e - > g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r W i t h P a i n t C o d e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) , $ P a r t ) ; 
 
         1 1 5 5 :                                   $ t h i s - > _ a d d L i n e T o S h i p m e n t R e l e a s e ( $ S h i p m e n t C a r t - > g e t C a r t I D ( ) ,   $ P a r t ,   $ W a r e h o u s e ,   $ D a t a S i n g l e [ ' L o t N u m ' ] ,   $ P a r t D e s c r i p t i o n ,   $ D a t a S i n g l e [ ' O n H a n d Q t y ' ] ,   $ D a t a S i n g l e [ ' C u s t P a r t N u m ' ] ,   ( $ D a t a S i n g l e [ ' S k i d N u m ' ]   ? ?   n u l l ) ,   ( $ D a t a S i n g l e [ ' C u s t o m e r P o N u m ' ]   ? ?   n u l l ) ,   ( $ D a t a S i n g l e [ ' V o r t e q J o b N u m ' ]   ? ?   n u l l ) , 
 
         1 1 5 6 :                                           ( $ D a t a S i n g l e [ ' V o r t e q S a l e s O r d e r N u m ' ]   ? ?   n u l l ) ,   $ D a t a S i n g l e [ ' B i n ' ] ,   $ P l a n t , ( $ D a t a S i n g l e [ ' M f g L o t ' ]   ? ?   n u l l )   ) ; 
 
 
 
     L i n e   1 1 6 1   [ m a t c h :   e p i c o r ] : 
 
         1 1 5 9 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 1 6 0 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   1 1 6 1 :                           L o g : : e r r o r ( ' A D D I N G   I T E M   T O   S H I P M E N T   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ S h i p m e n t C a r t - > g e t C a r t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 1 6 2 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e r e   w a s   a n   u n e x p e c t e d   e r r o r   a d d i n g   t h i s   i t e m   t o   y o u r   s h i p m e n t .     P l e a s e   t r y   a g a i n . ' ] ) ; 
 
         1 1 6 3 :                   } 
 
 
 
     L i n e   1 2 4 1   [ m a t c h :   e p i c o r ] : 
 
         1 2 3 9 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 2 4 0 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   1 2 4 1 :                           / /         L o g : : e r r o r ( ' A D D I N G   I T E M   T O   A L L O C A T I O N   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ A l l o c C a r t - > g e t C a r t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 2 4 2 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e r e   w a s   a n   u n e x p e c t e d   e r r o r   s a v i n g   t h e   f o r m ' ] ) ; 
 
         1 2 4 3 :                   } 
 
 
 
     L i n e   1 3 0 4   [ m a t c h :   e p i c o r ] : 
 
         1 3 0 2 :           } 
 
         1 3 0 3 :   
 
   > >   1 3 0 4 :           p u b l i c   f u n c t i o n   p o s t C o m p l e t e S h i p m e n t ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   S h i p m e n t R e l e a s e H e l p e r   $ S h i p m e n t R e l e a s e H e l p e r ) 
 
         1 3 0 5 :           { 
 
         1 3 0 6 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   1 3 4 9   [ m a t c h :   e p i c o r ] : 
 
         1 3 4 7 :                           $ q p   =   a p p ( q u e s t _ P l a n t : : c l a s s ) ; 
 
         1 3 4 8 :   
 
   > >   1 3 4 9 :                           $ C o n f i r m a t i o n E m a i l P l a n t   =   $ q p - > f i n d O n e B y ( [ ' P l a n t C o d e '   = >   $ C o n f i r m a t i o n E m a i l P l a n t - > g e t E p i c o r K e y ( ) ] ) ; 
 
         1 3 5 0 :                   } 
 
         1 3 5 1 :                   c a t c h   ( \ T h r o w a b l e   $ e ) { 
 
 
 
     L i n e   1 3 7 1   [ m a t c h :   e p i c o r ] : 
 
         1 3 6 9 :   
 
         1 3 7 0 :                 / *   t r y   { 
 
   > >   1 3 7 1 :                           $ P l a n t U s e r E m a i l s   =   $ E p i c o r D a t a b a s e - > g e t P l a n t U s e r E m a i l A d d r e s s e s ( $ S h i p m e n t C a r t - > g e t P l a n t ( ) ) ; 
 
         1 3 7 2 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         1 3 7 3 :                           L o g : : e r r o r ( ' C o u l d   n o t   c o m p l e t e   s h i p m e n t   r e l e a s e   b e c a u s e   c o u l d   n o t   g e t   p l a n t   e m a i l s   f o r   ' . $ S h i p m e n t C a r t - > g e t P l a n t ( ) . '   ( ' . $ S h i p m e n t C a r t - > g e t C a r t I D ( ) . ' ) ' ) ; 
 
 
 
     L i n e   1 4 4 2   [ m a t c h :   e p i c o r ] : 
 
         1 4 4 0 :                   $ S h i p m e n t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' s h i p m e n t _ i d ' ) ; 
 
         1 4 4 1 :   
 
   > >   1 4 4 2 :                   i f ( i s _ n u l l ( $ S h i p m e n t R e f e r e n c e N u m   =   $ R O S h i p m e n t R e q u e s t R e p o - > g e t S u b m i t t e d R e q u e s t R e f e r e n c e N u m B y Q u e s t U s e r A n d E p i c o r C u s t I D ( $ S h i p m e n t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ,   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ) 
 
         1 4 4 3 :                           r e t u r n   r e d i r e c t ( ) - > a c t i o n ( ' Q u e s t \ I n v e n t o r y C o n t r o l l e r @ g e t I n d e x ' ) ; 
 
         1 4 4 4 :   
 
 
 
     L i n e   1 4 8 4   [ m a t c h :   e p i c o r ] : 
 
         1 4 8 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 4 8 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 4 8 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 4 8 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 4 8 6 :                   / * *   @ v a r   S h i p m e n t C a r t   $ S h i p m e n t C a r t   * / 
 
 
 
     L i n e   1 4 8 5   [ m a t c h :   e p i c o r ] : 
 
         1 4 8 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 4 8 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 4 8 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 4 8 6 :                   / * *   @ v a r   S h i p m e n t C a r t   $ S h i p m e n t C a r t   * / 
 
         1 4 8 7 :                   $ S h i p m e n t C a r t   =   a p p ( S h i p m e n t C a r t : : c l a s s ) ; 
 
 
 
     L i n e   1 4 9 4   [ m a t c h :   e p i c o r ] : 
 
         1 4 9 2 :                   $ W a r e h o u s e   =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' w a r e h o u s e ' ) ) ; 
 
         1 4 9 3 :   
 
   > >   1 4 9 4 :                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ) ; 
 
         1 4 9 5 :   
 
         1 4 9 6 :               / /     $ I n c l u d e L i n k s   =   t r u e ; 
 
 
 
     L i n e   1 5 0 7   [ m a t c h :   e p i c o r ] : 
 
         1 5 0 5 :                                   $ S o u r c e N a m e   =   ' U n p r o c e s s e d ' ; 
 
         1 5 0 6 :                                   $ W r a p C l a s s   =   ' v o r - o r a n g e ' ; 
 
   > >   1 5 0 7 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 5 0 8 :                                   b r e a k ; 
 
         1 5 0 9 :                           c a s e   ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' : 
 
 
 
     L i n e   1 5 1 3   [ m a t c h :   e p i c o r ] : 
 
         1 5 1 1 :                                   $ S o u r c e N a m e   =   ' U n p r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) ' ; 
 
         1 5 1 2 :                                   $ W r a p C l a s s   =   ' v o r - p u r p l e ' ; 
 
   > >   1 5 1 3 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 5 1 4 :                                   b r e a k ; 
 
         1 5 1 5 :                           c a s e   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' : 
 
 
 
     L i n e   1 5 1 9   [ m a t c h :   e p i c o r ] : 
 
         1 5 1 7 :                                   $ S o u r c e N a m e   =   ' W o r k   I n   P r o g r e s s ' ; 
 
         1 5 1 8 :                                   $ W r a p C l a s s   =   ' v o r - g r e e n ' ; 
 
   > >   1 5 1 9 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 5 2 0 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y V 6 ' ) ; 
 
         1 5 2 1 :                                   b r e a k ; 
 
 
 
     L i n e   1 5 2 0   [ m a t c h :   e p i c o r ] : 
 
         1 5 1 8 :                                   $ W r a p C l a s s   =   ' v o r - g r e e n ' ; 
 
         1 5 1 9 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   1 5 2 0 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y V 6 ' ) ; 
 
         1 5 2 1 :                                   b r e a k ; 
 
         1 5 2 2 :                           c a s e   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y S u m m a r y ' : 
 
 
 
     L i n e   1 5 2 6   [ m a t c h :   e p i c o r ] : 
 
         1 5 2 4 :                                   $ S o u r c e N a m e   =   ' F i n i s h e d   G o o d s ' ; 
 
         1 5 2 5 :                                   $ W r a p C l a s s   =   ' v o r - b l u e ' ; 
 
   > >   1 5 2 6 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 5 2 7 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y V 6 ' ) ; 
 
         1 5 2 8 :                                   b r e a k ; 
 
 
 
     L i n e   1 5 2 7   [ m a t c h :   e p i c o r ] : 
 
         1 5 2 5 :                                   $ W r a p C l a s s   =   ' v o r - b l u e ' ; 
 
         1 5 2 6 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   1 5 2 7 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y V 6 ' ) ; 
 
         1 5 2 8 :                                   b r e a k ; 
 
         1 5 2 9 :                           c a s e   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y ' : 
 
 
 
     L i n e   1 5 3 3   [ m a t c h :   e p i c o r ] : 
 
         1 5 3 1 :                                   $ S o u r c e N a m e   =   ' P r o c e s s e d   -   O t h e r ' ; 
 
         1 5 3 2 :                                   $ W r a p C l a s s   =   ' v o r - y e l l o w ' ; 
 
   > >   1 5 3 3 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 5 3 4 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y V 6 ' ) ; 
 
         1 5 3 5 :                                   b r e a k ; 
 
 
 
     L i n e   1 5 3 4   [ m a t c h :   e p i c o r ] : 
 
         1 5 3 2 :                                   $ W r a p C l a s s   =   ' v o r - y e l l o w ' ; 
 
         1 5 3 3 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   1 5 3 4 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y V 6 ' ) ; 
 
         1 5 3 5 :                                   b r e a k ; 
 
         1 5 3 6 :                           c a s e   ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' : 
 
 
 
     L i n e   1 5 4 0   [ m a t c h :   e p i c o r ] : 
 
         1 5 3 8 :                                   $ S o u r c e N a m e   =   ' P r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) ' ; 
 
         1 5 3 9 :                                   $ W r a p C l a s s   =   ' v o r - r e d ' ; 
 
   > >   1 5 4 0 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 5 4 1 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e , ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ' ) ; 
 
         1 5 4 2 :                                   b r e a k ; 
 
 
 
     L i n e   1 5 4 1   [ m a t c h :   e p i c o r ] : 
 
         1 5 3 9 :                                   $ W r a p C l a s s   =   ' v o r - r e d ' ; 
 
         1 5 4 0 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   1 5 4 1 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e , ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ' ) ; 
 
         1 5 4 2 :                                   b r e a k ; 
 
         1 5 4 3 :                           d e f a u l t : 
 
 
 
     L i n e   1 4   [ m a t c h :   E p i c o r ] : 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ S h i p m e n t R e l e a s e C o n f i r m a t i o n ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ S h i p T o A d d r e s s I n q u i r y ; 
 
   > >   1 4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 5 :   u s e   A p p \ S e r v i c e s \ I n v e n t o r y H e l p e r ; 
 
         1 6 :   u s e   A p p \ S e r v i c e s \ P D F H e l p e r ; 
 
 
 
     L i n e   6 0   [ m a t c h :   E p i c o r ] : 
 
         5 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ c u s t o m e r   * / 
 
         5 9 :                   $ c u s t o m e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   6 0 :                   $ c u s t o m e r   =   $ c u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         6 1 :   
 
         6 2 :                   / * *   @ v a r   q u e s t _ C o m p a n y   $ q u e s t _ C o m p a n y R e p o   * / 
 
 
 
     L i n e   6 5   [ m a t c h :   E p i c o r ] : 
 
         6 3 :                   $ q u e s t _ C o m p a n y R e p o   =   a p p ( q u e s t _ C o m p a n y : : c l a s s ) ; 
 
         6 4 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y   $ q u e s t _ C o m p a n y   * / 
 
   > >   6 5 :                   $ q u e s t _ C o m p a n y   =   $ q u e s t _ C o m p a n y R e p o - > f i n d O n e B y ( [ ' E p i c o r C u s t I D '   = >   $ c u s t o m e r ] ) ; 
 
         6 6 :   
 
         6 7 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r [ ]   $ q u e s t _ C o m p a n y U s e r s   * / 
 
 
 
     L i n e   2 9 9   [ m a t c h :   E p i c o r ] : 
 
         2 9 7 :   
 
         2 9 8 :   
 
   > >   2 9 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         3 0 0 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 1 :   
 
 
 
     L i n e   3 0 0   [ m a t c h :   E p i c o r ] : 
 
         2 9 8 :   
 
         2 9 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
   > >   3 0 0 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 1 :   
 
         3 0 2 :   
 
 
 
     L i n e   3 0 5   [ m a t c h :   E p i c o r ] : 
 
         3 0 3 :   
 
         3 0 4 :                   / * *   @ t o d o   -   g e t   s e r v i c e   c a l l   N I C K   L   * / 
 
   > >   3 0 5 :               / /     $ b o l D a t a   =   $ e p i c o r e - > g e t B O L ( $ b o l N u m ) ; 
 
         3 0 6 :   
 
         3 0 7 :                   $ p l a n t   =   ' V a l e n c i a   P l a n t ' ; 
 
 
 
     L i n e   3 7 9   [ m a t c h :   E p i c o r ] : 
 
         3 7 7 :   
 
         3 7 8 :   
 
   > >   3 7 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         3 8 0 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 8 1 :   
 
 
 
     L i n e   3 8 0   [ m a t c h :   E p i c o r ] : 
 
         3 7 8 :   
 
         3 7 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
   > >   3 8 0 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 8 1 :   
 
         3 8 2 :   
 
 
 
     L i n e   3 8 3   [ m a t c h :   E p i c o r ] : 
 
         3 8 1 :   
 
         3 8 2 :   
 
   > >   3 8 3 :                   $ b o l D a t a   =   $ e p i c o r e - > g e t B O L ( $ b o l N u m ) ; 
 
         3 8 4 :             / /       $ p a c k e r D a t a   =   $ e p i c o r e - > g e t P a c k e r ( $ b o l N u m ) ; 
 
         3 8 5 :   
 
 
 
     L i n e   3 8 4   [ m a t c h :   E p i c o r ] : 
 
         3 8 2 :   
 
         3 8 3 :                   $ b o l D a t a   =   $ e p i c o r e - > g e t B O L ( $ b o l N u m ) ; 
 
   > >   3 8 4 :             / /       $ p a c k e r D a t a   =   $ e p i c o r e - > g e t P a c k e r ( $ b o l N u m ) ; 
 
         3 8 5 :   
 
         3 8 6 :   
 
 
 
     L i n e   4 6 2   [ m a t c h :   E p i c o r ] : 
 
         4 6 0 :   
 
         4 6 1 :   
 
   > >   4 6 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         4 6 3 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 6 4 :   
 
 
 
     L i n e   4 6 3   [ m a t c h :   E p i c o r ] : 
 
         4 6 1 :   
 
         4 6 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
   > >   4 6 3 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 6 4 :   
 
         4 6 5 :   
 
 
 
     L i n e   4 6 6   [ m a t c h :   E p i c o r ] : 
 
         4 6 4 :   
 
         4 6 5 :   
 
   > >   4 6 6 :                   $ j o b T r a v e l e r D a t a   =   $ e p i c o r e - > g e t J o b T r a v e l e r ( $ j o b _ n u m ) ; 
 
         4 6 7 :   
 
         4 6 8 :                   i f   ( c o u n t ( $ j o b T r a v e l e r D a t a )   = =   0 ) 
 
 
 
     L i n e   6 6 9   [ m a t c h :   E p i c o r ] : 
 
         6 6 7 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ c u s t o m e r   * / 
 
         6 6 8 :                   $ c u s t o m e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   6 6 9 :                   $ c u s t o m e r   =   $ c u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         6 7 0 :   
 
         6 7 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
 
 
     L i n e   6 7 1   [ m a t c h :   E p i c o r ] : 
 
         6 6 9 :                   $ c u s t o m e r   =   $ c u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         6 7 0 :   
 
   > >   6 7 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         6 7 2 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 7 3 :   
 
 
 
     L i n e   6 7 2   [ m a t c h :   E p i c o r ] : 
 
         6 7 0 :   
 
         6 7 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
   > >   6 7 2 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 7 3 :   
 
         6 7 4 :   
 
 
 
     L i n e   6 7 5   [ m a t c h :   E p i c o r ] : 
 
         6 7 3 :   
 
         6 7 4 :   
 
   > >   6 7 5 :                   $ C o i l B y C o i l D a t a   =   $ e p i c o r e - > g e t C o i l B y C o i l ( $ j o b _ n u m , $ c u s t o m e r ) ; 
 
         6 7 6 :   
 
         6 7 7 :   
 
 
 
     L i n e   8 1 8   [ m a t c h :   E p i c o r ] : 
 
         8 1 6 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A   s h i p m e n t   r e l e a s e   c a n n o t   b e   s t a r t e d   f o r   t h i s   c u s t o m e r   a s   t h e r e   i s   a l r e a d y   o n e   i n   p r o g r e s s ' ) ; 
 
         8 1 7 :   
 
   > >   8 1 8 :                   i f ( i s _ n u l l ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) 
 
         8 1 9 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' P l e a s e   s e l e c t   a   c u s t o m e r   b e f o r e   s t a r t i n g   a   s h i p m e n t   r e l e a s e ' ) ; 
 
         8 2 0 :   
 
 
 
     L i n e   8 2 6   [ m a t c h :   E p i c o r ] : 
 
         8 2 4 :                   t r y   { 
 
         8 2 5 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
   > >   8 2 6 :                                   ' q u e s t _ C o m p a n y '   = >   [ ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) - > g e t I D ( ) ] , 
 
         8 2 7 :                                   ' q u e s t _ U s e r '   = >   [ ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ] , 
 
         8 2 8 :                                   ' O p e n C a r t C o n s t r a i n t '   = >   t r u e , 
 
 
 
     L i n e   8 4 1   [ m a t c h :   E p i c o r ] : 
 
         8 3 9 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         8 4 0 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
   > >   8 4 1 :                           L o g : : e r r o r ( ' S H I P M E N T   R E Q U E S T   S T A R T   D B   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         8 4 2 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   s t a r t i n g   t h i s   s h i p m e n t   r e l e a s e .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         8 4 3 :                   } 
 
 
 
     L i n e   8 5 9   [ m a t c h :   E p i c o r ] : 
 
         8 5 7 :           } 
 
         8 5 8 :   
 
   > >   8 5 9 :           p u b l i c   f u n c t i o n   g e t S e l e c t S h i p T o A d d r e s s D u p l i c a t e ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e , 
 
         8 6 0 :                                                                                                           S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y , 
 
         8 6 1 :                                                                                                           D a t a H a n d l e r   $ D a t a H a n d l e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
 
 
     L i n e   8 8 2   [ m a t c h :   E p i c o r ] : 
 
         8 8 0 :                                   ' S h i p T o S e l e c t e d '   = >   t r u e , 
 
         8 8 1 :                                   ' S h i p T o N u m '   = >   $ S h i p R e q u e s t 1 - > g e t S h i p T o N u m ( ) , 
 
   > >   8 8 2 :                                   ' S h i p T o C u s t o m e r '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) - > g e t E p i N a m e ( ) , 
 
         8 8 3 :                                   ' S h i p T o N a m e '   = >   $ S h i p R e q u e s t 1 - > g e t S h i p T o N a m e ( ) , 
 
         8 8 4 :                                   ' S h i p T o A d d r e s s 1 '   = >   $ S h i p R e q u e s t 1 - > g e t S h i p T o A d d r e s s 1 ( ) , 
 
 
 
     L i n e   9 2 8   [ m a t c h :   E p i c o r ] : 
 
         9 2 6 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         9 2 7 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
   > >   9 2 8 :                           L o g : : e r r o r ( ' S H I P M E N T   R E Q U E S T   C A N C E L   D B   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         9 2 9 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   c a n c e l l i n g   t h i s   s h i p m e n t   r e l e a s e .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         9 3 0 :                   } 
 
 
 
     L i n e   9 3 5   [ m a t c h :   E p i c o r ] : 
 
         9 3 3 :           } 
 
         9 3 4 :   
 
   > >   9 3 5 :           p u b l i c   f u n c t i o n   g e t S e l e c t S h i p T o A d d r e s s ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e , 
 
         9 3 6 :                                                                                         S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s 
 
         9 3 7 :                                                                                         $ Q u e s t P a g e V a l u e s ,   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ) 
 
 
 
     L i n e   9 4 2   [ m a t c h :   E p i c o r ] : 
 
         9 4 0 :                           r e t u r n   r e d i r e c t ( ) - > a c t i o n ( ' Q u e s t \ I n v e n t o r y C o n t r o l l e r @ g e t I n d e x ' ) - > w i t h ( ( r e q u e s t ( ) - > s e s s i o n ( ) - > h a s ( ' s u c c e s s ' )   ?   [ ' s u c c e s s '   = >   r e q u e s t ( ) - > s e s s i o n ( ) - > g e t ( ' s u c c e s s ' ) ]   :   [ ] ) ) ; 
 
         9 4 1 :   
 
   > >   9 4 2 :                   $ S h i p T o A d d r e s s e s   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r S h i p T o A d d r e s s e s ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ; 
 
         9 4 3 :   
 
         9 4 4 :                   $ S h i p T o A d d r e s s L i n e s   =   [ ] ; 
 
 
 
     L i n e   9 4 6   [ m a t c h :   E p i c o r ] : 
 
         9 4 4 :                   $ S h i p T o A d d r e s s L i n e s   =   [ ] ; 
 
         9 4 5 :                   $ S h i p T o A d d r e s s N u m s   =   [ ] ; 
 
   > >   9 4 6 :                   $ C u s t o m e r N a m e   =   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) - > g e t E p i N a m e ( ) ; 
 
         9 4 7 :                   f o r e a c h ( $ S h i p T o A d d r e s s e s   a s   $ S h i p T o A d d r e s s ) 
 
         9 4 8 :                   { 
 
 
 
     L i n e   9 6 0   [ m a t c h :   E p i c o r ] : 
 
         9 5 8 :   
 
         9 5 9 :           / / / h e r e 
 
   > >   9 6 0 :           p u b l i c   f u n c t i o n   p o s t S e l e c t S h i p T o A d d r e s s ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e , 
 
         9 6 1 :                                                                                           S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y , 
 
         9 6 2 :                                                                                           D a t a H a n d l e r   $ D a t a H a n d l e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
 
 
     L i n e   9 7 0   [ m a t c h :   E p i c o r ] : 
 
         9 6 8 :                         r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' T h e   s h i p   t o   a d d r e s s   s e l e c t e d   i s   n o t   v a l i d .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         9 6 9 :   
 
   > >   9 7 0 :                   $ S e l e c t e d S h i p T o A d d r e s s I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r S i n g l e S h i p T o A d d r e s s B y N u m ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ S h i p T o N u m ) ; 
 
         9 7 1 :   
 
         9 7 2 :                   i f ( i s _ n u l l ( $ S e l e c t e d S h i p T o A d d r e s s I n f o ) ) 
 
 
 
     L i n e   9 8 1   [ m a t c h :   E p i c o r ] : 
 
         9 7 9 :                                   ' S h i p T o S e l e c t e d '   = >   t r u e , 
 
         9 8 0 :                                   ' S h i p T o N u m '   = >   $ S h i p T o N u m , 
 
   > >   9 8 1 :                                   ' S h i p T o C u s t o m e r '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) - > g e t E p i N a m e ( ) , 
 
         9 8 2 :                                   ' S h i p T o N a m e '   = >   $ S e l e c t e d S h i p T o A d d r e s s I n f o [ ' S h i p T o N a m e ' ] , 
 
         9 8 3 :                                   ' S h i p T o A d d r e s s 1 '   = >   $ S e l e c t e d S h i p T o A d d r e s s I n f o [ ' S h i p T o A d d r e s s 1 ' ] , 
 
 
 
     L i n e   9 9 9   [ m a t c h :   E p i c o r ] : 
 
         9 9 7 :           } 
 
         9 9 8 :   
 
   > >   9 9 9 :           p u b l i c   f u n c t i o n   p o s t S h i p T o A d d r e s s I n q u i r y ( q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 0 0 0 :           { 
 
         1 0 0 1 :                   $ E m a i l I n q u i r y T o   =   $ R O E m a i l E v e n t R e p o - > g e t E m a i l s F o r A c t i v e Q u e s t U s e r s T h a t R e c e i v e E m a i l E v e n t ( ' S H I P _ T O _ A D D R E S S _ I N Q U I R Y ' ) ; 
 
 
 
     L i n e   1 0 1 1   [ m a t c h :   E p i c o r ] : 
 
         1 0 0 9 :                   i f ( ! i n _ a r r a y ( $ T y p e ,   [ ' a d d ' , ' e d i t ' , ' d e l e t e ' ] ) ) 
 
         1 0 1 0 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' I n v a l i d   i n q u i r y   t y p e   p r o v i d e d ' ) ; 
 
   > >   1 0 1 1 :                   i f ( ( $ T y p e   = =   ' e d i t '   | |   $ T y p e   = =   ' d e l e t e ' )   & &   ( i s _ n u l l ( $ S h i p T o N u m   =   r e q u e s t ( ) - > i n p u t ( ' i d ' ) )   | |   i s _ n u l l ( $ S h i p T o I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r S i n g l e S h i p T o A d d r e s s B y N u m ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ S h i p T o N u m ) ) ) ) 
 
         1 0 1 2 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' T h e   s h i p   t o   a d d r e s s   f o r   y o u r   i n q u i r y   n o   l o n g e r   e x i s t s . ' ) ; 
 
         1 0 1 3 :                   i f ( ( $ T y p e   = =   ' a d d '   | |   $ T y p e   = =   ' e d i t ' )   & &   ! s t r l e n ( $ I n q u i r y   =   t r i m ( r e q u e s t ( ) - > i n p u t ( ' i n q u i r y ' ) ) ) ) 
 
 
 
     L i n e   1 0 3 9   [ m a t c h :   E p i c o r ] : 
 
         1 0 3 7 :           p u b l i c   f u n c t i o n   p o s t A d d I t e m T o S h i p m e n t ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   s h i p _ R e q u e s t R e p o   $ R O S h i p m e n t R e q u e s t R e p o ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   D a t a H a n d l e r   $ D a t a H a n d l e r ) 
 
         1 0 3 8 :           { 
 
   > >   1 0 3 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         1 0 4 0 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 4 1 :   
 
 
 
     L i n e   1 0 4 0   [ m a t c h :   E p i c o r ] : 
 
         1 0 3 8 :           { 
 
         1 0 3 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   1 0 4 0 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 4 1 :   
 
         1 0 4 2 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   1 0 6 6   [ m a t c h :   E p i c o r ] : 
 
         1 0 6 4 :                   e l s e i f ( $ S h i p m e n t C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ S h i p m e n t C a r t - > i s D e t a i l I n C a r t ( $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   ( i n t ) $ O n H a n d Q u a n t i t y ) ) 
 
         1 0 6 5 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   s h i p m e n t   r e l e a s e ' ,   ' a c t i o n '   = >   ' i n _ c a r t ' ] ) ; 
 
   > >   1 0 6 6 :                   e l s e i f ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d S h i p m e n t E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) ) 
 
         1 0 6 7 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   p a r t   o f   a n o t h e r   s h i p m e n t   r e l e a s e   f o r   t h i s   c u s t o m e r ' ,   ' a c t i o n '   = >   ' a n o t h e r _ c a r t ' ] ) ; 
 
         1 0 6 8 :   
 
 
 
     L i n e   1 0 6 9   [ m a t c h :   E p i c o r ] : 
 
         1 0 6 7 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   p a r t   o f   a n o t h e r   s h i p m e n t   r e l e a s e   f o r   t h i s   c u s t o m e r ' ,   ' a c t i o n '   = >   ' a n o t h e r _ c a r t ' ] ) ; 
 
         1 0 6 8 :   
 
   > >   1 0 6 9 :                   $ P a r t D e s c r i p t i o n   =   $ E p i c o r D a t a b a s e - > g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r W i t h P a i n t C o d e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) , $ P a r t N u m ) ; 
 
         1 0 7 0 :   
 
         1 0 7 1 :                   $ D a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
 
 
     L i n e   1 0 7 6   [ m a t c h :   E p i c o r ] : 
 
         1 0 7 4 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 0 7 5 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   1 0 7 6 :                           L o g : : e r r o r ( ' A D D I N G   I T E M   T O   S H I P M E N T   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ S h i p m e n t C a r t - > g e t C a r t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 0 7 7 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e r e   w a s   a n   u n e x p e c t e d   e r r o r   a d d i n g   t h i s   i t e m   t o   y o u r   s h i p m e n t .     P l e a s e   t r y   a g a i n . ' ] ) ; 
 
         1 0 7 8 :                   } 
 
 
 
     L i n e   1 0 8 9   [ m a t c h :   E p i c o r ] : 
 
         1 0 8 7 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 0 8 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 0 8 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         1 0 9 0 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 9 1 :                   / * *   @ v a r   s h i p _ R e q u e s t D e t a i l R e p o   $ R O S h i p m e n t R e q u e s t D e t a i l R e p o   * / 
 
 
 
     L i n e   1 0 9 0   [ m a t c h :   E p i c o r ] : 
 
         1 0 8 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 0 8 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   1 0 9 0 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 9 1 :                   / * *   @ v a r   s h i p _ R e q u e s t D e t a i l R e p o   $ R O S h i p m e n t R e q u e s t D e t a i l R e p o   * / 
 
         1 0 9 2 :                   $ R O S h i p m e n t R e q u e s t D e t a i l R e p o   =   a p p ( s h i p _ R e q u e s t D e t a i l R e p o : : c l a s s ) ; 
 
 
 
     L i n e   1 1 0 4   [ m a t c h :   E p i c o r ] : 
 
         1 1 0 2 :                   { 
 
         1 1 0 3 :                           c a s e   ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y S u m m a r y ' : 
 
   > >   1 1 0 4 :                                   $ D a t a   =   $ E p i c o r D a t a b a s e - > g e t I n v e n t o r y U n p r o c e s s e d D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 1 0 5 :                                   b r e a k ; 
 
         1 1 0 6 :                           c a s e   ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' : 
 
 
 
     L i n e   1 1 0 7   [ m a t c h :   E p i c o r ] : 
 
         1 1 0 5 :                                   b r e a k ; 
 
         1 1 0 6 :                           c a s e   ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' : 
 
   > >   1 1 0 7 :                                   $ D a t a   =   $ E p i c o r D a t a b a s e - > g e t I n v e n t o r y U n p r o c e s s e d R R D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 1 0 8 :                                   b r e a k ; 
 
         1 1 0 9 :                           c a s e   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' : 
 
 
 
     L i n e   1 1 1 0   [ m a t c h :   E p i c o r ] : 
 
         1 1 0 8 :                                   b r e a k ; 
 
         1 1 0 9 :                           c a s e   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' : 
 
   > >   1 1 1 0 :                                   $ D a t a   =   $ E p i c o r D a t a b a s e - > g e t I n v e n t o r y W o r k I n P r o g r e s s D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 1 1 1 :                                   b r e a k ; 
 
         1 1 1 2 :                           c a s e   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y S u m m a r y ' : 
 
 
 
     L i n e   1 1 1 3   [ m a t c h :   E p i c o r ] : 
 
         1 1 1 1 :                                   b r e a k ; 
 
         1 1 1 2 :                           c a s e   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y S u m m a r y ' : 
 
   > >   1 1 1 3 :                                   $ D a t a   =   $ E p i c o r D a t a b a s e - > g e t I n v e n t o r y F i n i s h e d G o o d s D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 1 1 4 :                                   b r e a k ; 
 
         1 1 1 5 :                           c a s e   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y ' : 
 
 
 
     L i n e   1 1 1 6   [ m a t c h :   E p i c o r ] : 
 
         1 1 1 4 :                                   b r e a k ; 
 
         1 1 1 5 :                           c a s e   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y ' : 
 
   > >   1 1 1 6 :                                   $ D a t a   =   $ E p i c o r D a t a b a s e - > g e t I n v e n t o r y P r o c e s s e d O t h e r D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 1 1 7 :                                   b r e a k ; 
 
         1 1 1 8 :                           c a s e   ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' : 
 
 
 
     L i n e   1 1 1 9   [ m a t c h :   E p i c o r ] : 
 
         1 1 1 7 :                                   b r e a k ; 
 
         1 1 1 8 :                           c a s e   ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' : 
 
   > >   1 1 1 9 :                                   $ D a t a   =   $ E p i c o r D a t a b a s e - > g e t I n v e n t o r y P r o c e s s e d R R D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 1 2 0 :                                   b r e a k ; 
 
         1 1 2 1 :                           d e f a u l t : 
 
 
 
     L i n e   1 1 2 8   [ m a t c h :   E p i c o r ] : 
 
         1 1 2 6 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e   c u r r e n t   s h i p m e n t   r e l e a s e   a l r e a d y   c o n t a i n s   i t e m s   f r o m   a n o t h e r   p l a n t ' ,   ' a c t i o n '   = >   ' b a d _ p l a n t ' ] ) ; 
 
         1 1 2 7 :   
 
   > >   1 1 2 8 :                   $ D e t a i l L i n e s T h a t E x i s t I n R e l e a s e   =   $ R O S h i p m e n t R e q u e s t D e t a i l R e p o - > g e t D e t a i l L i n e s T h a t E x i s t F o r N o n C a n c e l l e d S h i p m e n t s ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ P l a n t ,   $ P a r t ,   $ W a r e h o u s e ,   $ D a t a ) ; 
 
         1 1 2 9 :   
 
         1 1 3 0 :                   $ A d d e d   =   [ ] ; 
 
 
 
     L i n e   1 1 5 4   [ m a t c h :   E p i c o r ] : 
 
         1 1 5 2 :                                           c o n t i n u e ;   / /   a l r e a d y   i n   a n o t h e r   r e l e a s e 
 
         1 1 5 3 :                                   } 
 
   > >   1 1 5 4 :                                   $ P a r t D e s c r i p t i o n   =   $ E p i c o r D a t a b a s e - > g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r W i t h P a i n t C o d e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) , $ P a r t ) ; 
 
         1 1 5 5 :                                   $ t h i s - > _ a d d L i n e T o S h i p m e n t R e l e a s e ( $ S h i p m e n t C a r t - > g e t C a r t I D ( ) ,   $ P a r t ,   $ W a r e h o u s e ,   $ D a t a S i n g l e [ ' L o t N u m ' ] ,   $ P a r t D e s c r i p t i o n ,   $ D a t a S i n g l e [ ' O n H a n d Q t y ' ] ,   $ D a t a S i n g l e [ ' C u s t P a r t N u m ' ] ,   ( $ D a t a S i n g l e [ ' S k i d N u m ' ]   ? ?   n u l l ) ,   ( $ D a t a S i n g l e [ ' C u s t o m e r P o N u m ' ]   ? ?   n u l l ) ,   ( $ D a t a S i n g l e [ ' V o r t e q J o b N u m ' ]   ? ?   n u l l ) , 
 
         1 1 5 6 :                                           ( $ D a t a S i n g l e [ ' V o r t e q S a l e s O r d e r N u m ' ]   ? ?   n u l l ) ,   $ D a t a S i n g l e [ ' B i n ' ] ,   $ P l a n t , ( $ D a t a S i n g l e [ ' M f g L o t ' ]   ? ?   n u l l )   ) ; 
 
 
 
     L i n e   1 1 6 1   [ m a t c h :   E p i c o r ] : 
 
         1 1 5 9 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 1 6 0 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   1 1 6 1 :                           L o g : : e r r o r ( ' A D D I N G   I T E M   T O   S H I P M E N T   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ S h i p m e n t C a r t - > g e t C a r t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 1 6 2 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e r e   w a s   a n   u n e x p e c t e d   e r r o r   a d d i n g   t h i s   i t e m   t o   y o u r   s h i p m e n t .     P l e a s e   t r y   a g a i n . ' ] ) ; 
 
         1 1 6 3 :                   } 
 
 
 
     L i n e   1 2 4 1   [ m a t c h :   E p i c o r ] : 
 
         1 2 3 9 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 2 4 0 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   1 2 4 1 :                           / /         L o g : : e r r o r ( ' A D D I N G   I T E M   T O   A L L O C A T I O N   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ A l l o c C a r t - > g e t C a r t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 2 4 2 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e r e   w a s   a n   u n e x p e c t e d   e r r o r   s a v i n g   t h e   f o r m ' ] ) ; 
 
         1 2 4 3 :                   } 
 
 
 
     L i n e   1 3 0 4   [ m a t c h :   E p i c o r ] : 
 
         1 3 0 2 :           } 
 
         1 3 0 3 :   
 
   > >   1 3 0 4 :           p u b l i c   f u n c t i o n   p o s t C o m p l e t e S h i p m e n t ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   S h i p m e n t R e l e a s e H e l p e r   $ S h i p m e n t R e l e a s e H e l p e r ) 
 
         1 3 0 5 :           { 
 
         1 3 0 6 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   1 3 4 9   [ m a t c h :   E p i c o r ] : 
 
         1 3 4 7 :                           $ q p   =   a p p ( q u e s t _ P l a n t : : c l a s s ) ; 
 
         1 3 4 8 :   
 
   > >   1 3 4 9 :                           $ C o n f i r m a t i o n E m a i l P l a n t   =   $ q p - > f i n d O n e B y ( [ ' P l a n t C o d e '   = >   $ C o n f i r m a t i o n E m a i l P l a n t - > g e t E p i c o r K e y ( ) ] ) ; 
 
         1 3 5 0 :                   } 
 
         1 3 5 1 :                   c a t c h   ( \ T h r o w a b l e   $ e ) { 
 
 
 
     L i n e   1 3 7 1   [ m a t c h :   E p i c o r ] : 
 
         1 3 6 9 :   
 
         1 3 7 0 :                 / *   t r y   { 
 
   > >   1 3 7 1 :                           $ P l a n t U s e r E m a i l s   =   $ E p i c o r D a t a b a s e - > g e t P l a n t U s e r E m a i l A d d r e s s e s ( $ S h i p m e n t C a r t - > g e t P l a n t ( ) ) ; 
 
         1 3 7 2 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         1 3 7 3 :                           L o g : : e r r o r ( ' C o u l d   n o t   c o m p l e t e   s h i p m e n t   r e l e a s e   b e c a u s e   c o u l d   n o t   g e t   p l a n t   e m a i l s   f o r   ' . $ S h i p m e n t C a r t - > g e t P l a n t ( ) . '   ( ' . $ S h i p m e n t C a r t - > g e t C a r t I D ( ) . ' ) ' ) ; 
 
 
 
     L i n e   1 4 4 2   [ m a t c h :   E p i c o r ] : 
 
         1 4 4 0 :                   $ S h i p m e n t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' s h i p m e n t _ i d ' ) ; 
 
         1 4 4 1 :   
 
   > >   1 4 4 2 :                   i f ( i s _ n u l l ( $ S h i p m e n t R e f e r e n c e N u m   =   $ R O S h i p m e n t R e q u e s t R e p o - > g e t S u b m i t t e d R e q u e s t R e f e r e n c e N u m B y Q u e s t U s e r A n d E p i c o r C u s t I D ( $ S h i p m e n t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ,   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ) 
 
         1 4 4 3 :                           r e t u r n   r e d i r e c t ( ) - > a c t i o n ( ' Q u e s t \ I n v e n t o r y C o n t r o l l e r @ g e t I n d e x ' ) ; 
 
         1 4 4 4 :   
 
 
 
     L i n e   1 4 8 4   [ m a t c h :   E p i c o r ] : 
 
         1 4 8 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 4 8 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 4 8 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 4 8 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 4 8 6 :                   / * *   @ v a r   S h i p m e n t C a r t   $ S h i p m e n t C a r t   * / 
 
 
 
     L i n e   1 4 8 5   [ m a t c h :   E p i c o r ] : 
 
         1 4 8 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 4 8 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 4 8 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 4 8 6 :                   / * *   @ v a r   S h i p m e n t C a r t   $ S h i p m e n t C a r t   * / 
 
         1 4 8 7 :                   $ S h i p m e n t C a r t   =   a p p ( S h i p m e n t C a r t : : c l a s s ) ; 
 
 
 
     L i n e   1 4 9 4   [ m a t c h :   E p i c o r ] : 
 
         1 4 9 2 :                   $ W a r e h o u s e   =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' w a r e h o u s e ' ) ) ; 
 
         1 4 9 3 :   
 
   > >   1 4 9 4 :                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ) ; 
 
         1 4 9 5 :   
 
         1 4 9 6 :               / /     $ I n c l u d e L i n k s   =   t r u e ; 
 
 
 
     L i n e   1 5 0 7   [ m a t c h :   E p i c o r ] : 
 
         1 5 0 5 :                                   $ S o u r c e N a m e   =   ' U n p r o c e s s e d ' ; 
 
         1 5 0 6 :                                   $ W r a p C l a s s   =   ' v o r - o r a n g e ' ; 
 
   > >   1 5 0 7 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 5 0 8 :                                   b r e a k ; 
 
         1 5 0 9 :                           c a s e   ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' : 
 
 
 
     L i n e   1 5 1 3   [ m a t c h :   E p i c o r ] : 
 
         1 5 1 1 :                                   $ S o u r c e N a m e   =   ' U n p r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) ' ; 
 
         1 5 1 2 :                                   $ W r a p C l a s s   =   ' v o r - p u r p l e ' ; 
 
   > >   1 5 1 3 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 5 1 4 :                                   b r e a k ; 
 
         1 5 1 5 :                           c a s e   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' : 
 
 
 
     L i n e   1 5 1 9   [ m a t c h :   E p i c o r ] : 
 
         1 5 1 7 :                                   $ S o u r c e N a m e   =   ' W o r k   I n   P r o g r e s s ' ; 
 
         1 5 1 8 :                                   $ W r a p C l a s s   =   ' v o r - g r e e n ' ; 
 
   > >   1 5 1 9 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 5 2 0 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y V 6 ' ) ; 
 
         1 5 2 1 :                                   b r e a k ; 
 
 
 
     L i n e   1 5 2 0   [ m a t c h :   E p i c o r ] : 
 
         1 5 1 8 :                                   $ W r a p C l a s s   =   ' v o r - g r e e n ' ; 
 
         1 5 1 9 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   1 5 2 0 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y V 6 ' ) ; 
 
         1 5 2 1 :                                   b r e a k ; 
 
         1 5 2 2 :                           c a s e   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y S u m m a r y ' : 
 
 
 
     L i n e   1 5 2 6   [ m a t c h :   E p i c o r ] : 
 
         1 5 2 4 :                                   $ S o u r c e N a m e   =   ' F i n i s h e d   G o o d s ' ; 
 
         1 5 2 5 :                                   $ W r a p C l a s s   =   ' v o r - b l u e ' ; 
 
   > >   1 5 2 6 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 5 2 7 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y V 6 ' ) ; 
 
         1 5 2 8 :                                   b r e a k ; 
 
 
 
     L i n e   1 5 2 7   [ m a t c h :   E p i c o r ] : 
 
         1 5 2 5 :                                   $ W r a p C l a s s   =   ' v o r - b l u e ' ; 
 
         1 5 2 6 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   1 5 2 7 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y V 6 ' ) ; 
 
         1 5 2 8 :                                   b r e a k ; 
 
         1 5 2 9 :                           c a s e   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y ' : 
 
 
 
     L i n e   1 5 3 3   [ m a t c h :   E p i c o r ] : 
 
         1 5 3 1 :                                   $ S o u r c e N a m e   =   ' P r o c e s s e d   -   O t h e r ' ; 
 
         1 5 3 2 :                                   $ W r a p C l a s s   =   ' v o r - y e l l o w ' ; 
 
   > >   1 5 3 3 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 5 3 4 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y V 6 ' ) ; 
 
         1 5 3 5 :                                   b r e a k ; 
 
 
 
     L i n e   1 5 3 4   [ m a t c h :   E p i c o r ] : 
 
         1 5 3 2 :                                   $ W r a p C l a s s   =   ' v o r - y e l l o w ' ; 
 
         1 5 3 3 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   1 5 3 4 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y V 6 ' ) ; 
 
         1 5 3 5 :                                   b r e a k ; 
 
         1 5 3 6 :                           c a s e   ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' : 
 
 
 
     L i n e   1 5 4 0   [ m a t c h :   E p i c o r ] : 
 
         1 5 3 8 :                                   $ S o u r c e N a m e   =   ' P r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) ' ; 
 
         1 5 3 9 :                                   $ W r a p C l a s s   =   ' v o r - r e d ' ; 
 
   > >   1 5 4 0 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 5 4 1 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e , ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ' ) ; 
 
         1 5 4 2 :                                   b r e a k ; 
 
 
 
     L i n e   1 5 4 1   [ m a t c h :   E p i c o r ] : 
 
         1 5 3 9 :                                   $ W r a p C l a s s   =   ' v o r - r e d ' ; 
 
         1 5 4 0 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   1 5 4 1 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e , ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ' ) ; 
 
         1 5 4 2 :                                   b r e a k ; 
 
         1 5 4 3 :                           d e f a u l t : 
 
 
 
     L i n e   1 4   [ m a t c h :   E P I C O R ] : 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ S h i p m e n t R e l e a s e C o n f i r m a t i o n ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ S h i p T o A d d r e s s I n q u i r y ; 
 
   > >   1 4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 5 :   u s e   A p p \ S e r v i c e s \ I n v e n t o r y H e l p e r ; 
 
         1 6 :   u s e   A p p \ S e r v i c e s \ P D F H e l p e r ; 
 
 
 
     L i n e   6 0   [ m a t c h :   E P I C O R ] : 
 
         5 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ c u s t o m e r   * / 
 
         5 9 :                   $ c u s t o m e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   6 0 :                   $ c u s t o m e r   =   $ c u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         6 1 :   
 
         6 2 :                   / * *   @ v a r   q u e s t _ C o m p a n y   $ q u e s t _ C o m p a n y R e p o   * / 
 
 
 
     L i n e   6 5   [ m a t c h :   E P I C O R ] : 
 
         6 3 :                   $ q u e s t _ C o m p a n y R e p o   =   a p p ( q u e s t _ C o m p a n y : : c l a s s ) ; 
 
         6 4 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y   $ q u e s t _ C o m p a n y   * / 
 
   > >   6 5 :                   $ q u e s t _ C o m p a n y   =   $ q u e s t _ C o m p a n y R e p o - > f i n d O n e B y ( [ ' E p i c o r C u s t I D '   = >   $ c u s t o m e r ] ) ; 
 
         6 6 :   
 
         6 7 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r [ ]   $ q u e s t _ C o m p a n y U s e r s   * / 
 
 
 
     L i n e   2 9 9   [ m a t c h :   E P I C O R ] : 
 
         2 9 7 :   
 
         2 9 8 :   
 
   > >   2 9 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         3 0 0 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 1 :   
 
 
 
     L i n e   3 0 0   [ m a t c h :   E P I C O R ] : 
 
         2 9 8 :   
 
         2 9 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
   > >   3 0 0 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 0 1 :   
 
         3 0 2 :   
 
 
 
     L i n e   3 0 5   [ m a t c h :   E P I C O R ] : 
 
         3 0 3 :   
 
         3 0 4 :                   / * *   @ t o d o   -   g e t   s e r v i c e   c a l l   N I C K   L   * / 
 
   > >   3 0 5 :               / /     $ b o l D a t a   =   $ e p i c o r e - > g e t B O L ( $ b o l N u m ) ; 
 
         3 0 6 :   
 
         3 0 7 :                   $ p l a n t   =   ' V a l e n c i a   P l a n t ' ; 
 
 
 
     L i n e   3 7 9   [ m a t c h :   E P I C O R ] : 
 
         3 7 7 :   
 
         3 7 8 :   
 
   > >   3 7 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         3 8 0 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 8 1 :   
 
 
 
     L i n e   3 8 0   [ m a t c h :   E P I C O R ] : 
 
         3 7 8 :   
 
         3 7 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
   > >   3 8 0 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 8 1 :   
 
         3 8 2 :   
 
 
 
     L i n e   3 8 3   [ m a t c h :   E P I C O R ] : 
 
         3 8 1 :   
 
         3 8 2 :   
 
   > >   3 8 3 :                   $ b o l D a t a   =   $ e p i c o r e - > g e t B O L ( $ b o l N u m ) ; 
 
         3 8 4 :             / /       $ p a c k e r D a t a   =   $ e p i c o r e - > g e t P a c k e r ( $ b o l N u m ) ; 
 
         3 8 5 :   
 
 
 
     L i n e   3 8 4   [ m a t c h :   E P I C O R ] : 
 
         3 8 2 :   
 
         3 8 3 :                   $ b o l D a t a   =   $ e p i c o r e - > g e t B O L ( $ b o l N u m ) ; 
 
   > >   3 8 4 :             / /       $ p a c k e r D a t a   =   $ e p i c o r e - > g e t P a c k e r ( $ b o l N u m ) ; 
 
         3 8 5 :   
 
         3 8 6 :   
 
 
 
     L i n e   4 6 2   [ m a t c h :   E P I C O R ] : 
 
         4 6 0 :   
 
         4 6 1 :   
 
   > >   4 6 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         4 6 3 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 6 4 :   
 
 
 
     L i n e   4 6 3   [ m a t c h :   E P I C O R ] : 
 
         4 6 1 :   
 
         4 6 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
   > >   4 6 3 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 6 4 :   
 
         4 6 5 :   
 
 
 
     L i n e   4 6 6   [ m a t c h :   E P I C O R ] : 
 
         4 6 4 :   
 
         4 6 5 :   
 
   > >   4 6 6 :                   $ j o b T r a v e l e r D a t a   =   $ e p i c o r e - > g e t J o b T r a v e l e r ( $ j o b _ n u m ) ; 
 
         4 6 7 :   
 
         4 6 8 :                   i f   ( c o u n t ( $ j o b T r a v e l e r D a t a )   = =   0 ) 
 
 
 
     L i n e   6 6 9   [ m a t c h :   E P I C O R ] : 
 
         6 6 7 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ c u s t o m e r   * / 
 
         6 6 8 :                   $ c u s t o m e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   6 6 9 :                   $ c u s t o m e r   =   $ c u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         6 7 0 :   
 
         6 7 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
 
 
     L i n e   6 7 1   [ m a t c h :   E P I C O R ] : 
 
         6 6 9 :                   $ c u s t o m e r   =   $ c u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         6 7 0 :   
 
   > >   6 7 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
         6 7 2 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 7 3 :   
 
 
 
     L i n e   6 7 2   [ m a t c h :   E P I C O R ] : 
 
         6 7 0 :   
 
         6 7 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r e   * / 
 
   > >   6 7 2 :                   $ e p i c o r e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 7 3 :   
 
         6 7 4 :   
 
 
 
     L i n e   6 7 5   [ m a t c h :   E P I C O R ] : 
 
         6 7 3 :   
 
         6 7 4 :   
 
   > >   6 7 5 :                   $ C o i l B y C o i l D a t a   =   $ e p i c o r e - > g e t C o i l B y C o i l ( $ j o b _ n u m , $ c u s t o m e r ) ; 
 
         6 7 6 :   
 
         6 7 7 :   
 
 
 
     L i n e   8 1 8   [ m a t c h :   E P I C O R ] : 
 
         8 1 6 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A   s h i p m e n t   r e l e a s e   c a n n o t   b e   s t a r t e d   f o r   t h i s   c u s t o m e r   a s   t h e r e   i s   a l r e a d y   o n e   i n   p r o g r e s s ' ) ; 
 
         8 1 7 :   
 
   > >   8 1 8 :                   i f ( i s _ n u l l ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) 
 
         8 1 9 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' P l e a s e   s e l e c t   a   c u s t o m e r   b e f o r e   s t a r t i n g   a   s h i p m e n t   r e l e a s e ' ) ; 
 
         8 2 0 :   
 
 
 
     L i n e   8 2 6   [ m a t c h :   E P I C O R ] : 
 
         8 2 4 :                   t r y   { 
 
         8 2 5 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
   > >   8 2 6 :                                   ' q u e s t _ C o m p a n y '   = >   [ ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) - > g e t I D ( ) ] , 
 
         8 2 7 :                                   ' q u e s t _ U s e r '   = >   [ ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ] , 
 
         8 2 8 :                                   ' O p e n C a r t C o n s t r a i n t '   = >   t r u e , 
 
 
 
     L i n e   8 4 1   [ m a t c h :   E P I C O R ] : 
 
         8 3 9 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         8 4 0 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
   > >   8 4 1 :                           L o g : : e r r o r ( ' S H I P M E N T   R E Q U E S T   S T A R T   D B   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         8 4 2 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   s t a r t i n g   t h i s   s h i p m e n t   r e l e a s e .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         8 4 3 :                   } 
 
 
 
     L i n e   8 5 9   [ m a t c h :   E P I C O R ] : 
 
         8 5 7 :           } 
 
         8 5 8 :   
 
   > >   8 5 9 :           p u b l i c   f u n c t i o n   g e t S e l e c t S h i p T o A d d r e s s D u p l i c a t e ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e , 
 
         8 6 0 :                                                                                                           S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y , 
 
         8 6 1 :                                                                                                           D a t a H a n d l e r   $ D a t a H a n d l e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
 
 
     L i n e   8 8 2   [ m a t c h :   E P I C O R ] : 
 
         8 8 0 :                                   ' S h i p T o S e l e c t e d '   = >   t r u e , 
 
         8 8 1 :                                   ' S h i p T o N u m '   = >   $ S h i p R e q u e s t 1 - > g e t S h i p T o N u m ( ) , 
 
   > >   8 8 2 :                                   ' S h i p T o C u s t o m e r '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) - > g e t E p i N a m e ( ) , 
 
         8 8 3 :                                   ' S h i p T o N a m e '   = >   $ S h i p R e q u e s t 1 - > g e t S h i p T o N a m e ( ) , 
 
         8 8 4 :                                   ' S h i p T o A d d r e s s 1 '   = >   $ S h i p R e q u e s t 1 - > g e t S h i p T o A d d r e s s 1 ( ) , 
 
 
 
     L i n e   9 2 8   [ m a t c h :   E P I C O R ] : 
 
         9 2 6 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         9 2 7 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
   > >   9 2 8 :                           L o g : : e r r o r ( ' S H I P M E N T   R E Q U E S T   C A N C E L   D B   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         9 2 9 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   c a n c e l l i n g   t h i s   s h i p m e n t   r e l e a s e .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         9 3 0 :                   } 
 
 
 
     L i n e   9 3 5   [ m a t c h :   E P I C O R ] : 
 
         9 3 3 :           } 
 
         9 3 4 :   
 
   > >   9 3 5 :           p u b l i c   f u n c t i o n   g e t S e l e c t S h i p T o A d d r e s s ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e , 
 
         9 3 6 :                                                                                         S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s 
 
         9 3 7 :                                                                                         $ Q u e s t P a g e V a l u e s ,   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ) 
 
 
 
     L i n e   9 4 2   [ m a t c h :   E P I C O R ] : 
 
         9 4 0 :                           r e t u r n   r e d i r e c t ( ) - > a c t i o n ( ' Q u e s t \ I n v e n t o r y C o n t r o l l e r @ g e t I n d e x ' ) - > w i t h ( ( r e q u e s t ( ) - > s e s s i o n ( ) - > h a s ( ' s u c c e s s ' )   ?   [ ' s u c c e s s '   = >   r e q u e s t ( ) - > s e s s i o n ( ) - > g e t ( ' s u c c e s s ' ) ]   :   [ ] ) ) ; 
 
         9 4 1 :   
 
   > >   9 4 2 :                   $ S h i p T o A d d r e s s e s   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r S h i p T o A d d r e s s e s ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ; 
 
         9 4 3 :   
 
         9 4 4 :                   $ S h i p T o A d d r e s s L i n e s   =   [ ] ; 
 
 
 
     L i n e   9 4 6   [ m a t c h :   E P I C O R ] : 
 
         9 4 4 :                   $ S h i p T o A d d r e s s L i n e s   =   [ ] ; 
 
         9 4 5 :                   $ S h i p T o A d d r e s s N u m s   =   [ ] ; 
 
   > >   9 4 6 :                   $ C u s t o m e r N a m e   =   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) - > g e t E p i N a m e ( ) ; 
 
         9 4 7 :                   f o r e a c h ( $ S h i p T o A d d r e s s e s   a s   $ S h i p T o A d d r e s s ) 
 
         9 4 8 :                   { 
 
 
 
     L i n e   9 6 0   [ m a t c h :   E P I C O R ] : 
 
         9 5 8 :   
 
         9 5 9 :           / / / h e r e 
 
   > >   9 6 0 :           p u b l i c   f u n c t i o n   p o s t S e l e c t S h i p T o A d d r e s s ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e , 
 
         9 6 1 :                                                                                           S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y , 
 
         9 6 2 :                                                                                           D a t a H a n d l e r   $ D a t a H a n d l e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
 
 
     L i n e   9 7 0   [ m a t c h :   E P I C O R ] : 
 
         9 6 8 :                         r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' T h e   s h i p   t o   a d d r e s s   s e l e c t e d   i s   n o t   v a l i d .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         9 6 9 :   
 
   > >   9 7 0 :                   $ S e l e c t e d S h i p T o A d d r e s s I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r S i n g l e S h i p T o A d d r e s s B y N u m ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ S h i p T o N u m ) ; 
 
         9 7 1 :   
 
         9 7 2 :                   i f ( i s _ n u l l ( $ S e l e c t e d S h i p T o A d d r e s s I n f o ) ) 
 
 
 
     L i n e   9 8 1   [ m a t c h :   E P I C O R ] : 
 
         9 7 9 :                                   ' S h i p T o S e l e c t e d '   = >   t r u e , 
 
         9 8 0 :                                   ' S h i p T o N u m '   = >   $ S h i p T o N u m , 
 
   > >   9 8 1 :                                   ' S h i p T o C u s t o m e r '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) - > g e t E p i N a m e ( ) , 
 
         9 8 2 :                                   ' S h i p T o N a m e '   = >   $ S e l e c t e d S h i p T o A d d r e s s I n f o [ ' S h i p T o N a m e ' ] , 
 
         9 8 3 :                                   ' S h i p T o A d d r e s s 1 '   = >   $ S e l e c t e d S h i p T o A d d r e s s I n f o [ ' S h i p T o A d d r e s s 1 ' ] , 
 
 
 
     L i n e   9 9 9   [ m a t c h :   E P I C O R ] : 
 
         9 9 7 :           } 
 
         9 9 8 :   
 
   > >   9 9 9 :           p u b l i c   f u n c t i o n   p o s t S h i p T o A d d r e s s I n q u i r y ( q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ) 
 
         1 0 0 0 :           { 
 
         1 0 0 1 :                   $ E m a i l I n q u i r y T o   =   $ R O E m a i l E v e n t R e p o - > g e t E m a i l s F o r A c t i v e Q u e s t U s e r s T h a t R e c e i v e E m a i l E v e n t ( ' S H I P _ T O _ A D D R E S S _ I N Q U I R Y ' ) ; 
 
 
 
     L i n e   1 0 1 1   [ m a t c h :   E P I C O R ] : 
 
         1 0 0 9 :                   i f ( ! i n _ a r r a y ( $ T y p e ,   [ ' a d d ' , ' e d i t ' , ' d e l e t e ' ] ) ) 
 
         1 0 1 0 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' I n v a l i d   i n q u i r y   t y p e   p r o v i d e d ' ) ; 
 
   > >   1 0 1 1 :                   i f ( ( $ T y p e   = =   ' e d i t '   | |   $ T y p e   = =   ' d e l e t e ' )   & &   ( i s _ n u l l ( $ S h i p T o N u m   =   r e q u e s t ( ) - > i n p u t ( ' i d ' ) )   | |   i s _ n u l l ( $ S h i p T o I n f o   =   $ E p i c o r D a t a b a s e - > g e t C u s t o m e r S i n g l e S h i p T o A d d r e s s B y N u m ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ S h i p T o N u m ) ) ) ) 
 
         1 0 1 2 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' T h e   s h i p   t o   a d d r e s s   f o r   y o u r   i n q u i r y   n o   l o n g e r   e x i s t s . ' ) ; 
 
         1 0 1 3 :                   i f ( ( $ T y p e   = =   ' a d d '   | |   $ T y p e   = =   ' e d i t ' )   & &   ! s t r l e n ( $ I n q u i r y   =   t r i m ( r e q u e s t ( ) - > i n p u t ( ' i n q u i r y ' ) ) ) ) 
 
 
 
     L i n e   1 0 3 9   [ m a t c h :   E P I C O R ] : 
 
         1 0 3 7 :           p u b l i c   f u n c t i o n   p o s t A d d I t e m T o S h i p m e n t ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   s h i p _ R e q u e s t R e p o   $ R O S h i p m e n t R e q u e s t R e p o ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   D a t a H a n d l e r   $ D a t a H a n d l e r ) 
 
         1 0 3 8 :           { 
 
   > >   1 0 3 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         1 0 4 0 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 4 1 :   
 
 
 
     L i n e   1 0 4 0   [ m a t c h :   E P I C O R ] : 
 
         1 0 3 8 :           { 
 
         1 0 3 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   1 0 4 0 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 4 1 :   
 
         1 0 4 2 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   1 0 6 6   [ m a t c h :   E P I C O R ] : 
 
         1 0 6 4 :                   e l s e i f ( $ S h i p m e n t C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ S h i p m e n t C a r t - > i s D e t a i l I n C a r t ( $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   ( i n t ) $ O n H a n d Q u a n t i t y ) ) 
 
         1 0 6 5 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   s h i p m e n t   r e l e a s e ' ,   ' a c t i o n '   = >   ' i n _ c a r t ' ] ) ; 
 
   > >   1 0 6 6 :                   e l s e i f ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d S h i p m e n t E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) ) 
 
         1 0 6 7 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   p a r t   o f   a n o t h e r   s h i p m e n t   r e l e a s e   f o r   t h i s   c u s t o m e r ' ,   ' a c t i o n '   = >   ' a n o t h e r _ c a r t ' ] ) ; 
 
         1 0 6 8 :   
 
 
 
     L i n e   1 0 6 9   [ m a t c h :   E P I C O R ] : 
 
         1 0 6 7 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   p a r t   o f   a n o t h e r   s h i p m e n t   r e l e a s e   f o r   t h i s   c u s t o m e r ' ,   ' a c t i o n '   = >   ' a n o t h e r _ c a r t ' ] ) ; 
 
         1 0 6 8 :   
 
   > >   1 0 6 9 :                   $ P a r t D e s c r i p t i o n   =   $ E p i c o r D a t a b a s e - > g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r W i t h P a i n t C o d e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) , $ P a r t N u m ) ; 
 
         1 0 7 0 :   
 
         1 0 7 1 :                   $ D a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
 
 
     L i n e   1 0 7 6   [ m a t c h :   E P I C O R ] : 
 
         1 0 7 4 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 0 7 5 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   1 0 7 6 :                           L o g : : e r r o r ( ' A D D I N G   I T E M   T O   S H I P M E N T   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ S h i p m e n t C a r t - > g e t C a r t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 0 7 7 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e r e   w a s   a n   u n e x p e c t e d   e r r o r   a d d i n g   t h i s   i t e m   t o   y o u r   s h i p m e n t .     P l e a s e   t r y   a g a i n . ' ] ) ; 
 
         1 0 7 8 :                   } 
 
 
 
     L i n e   1 0 8 9   [ m a t c h :   E P I C O R ] : 
 
         1 0 8 7 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 0 8 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 0 8 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         1 0 9 0 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 9 1 :                   / * *   @ v a r   s h i p _ R e q u e s t D e t a i l R e p o   $ R O S h i p m e n t R e q u e s t D e t a i l R e p o   * / 
 
 
 
     L i n e   1 0 9 0   [ m a t c h :   E P I C O R ] : 
 
         1 0 8 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 0 8 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   1 0 9 0 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 9 1 :                   / * *   @ v a r   s h i p _ R e q u e s t D e t a i l R e p o   $ R O S h i p m e n t R e q u e s t D e t a i l R e p o   * / 
 
         1 0 9 2 :                   $ R O S h i p m e n t R e q u e s t D e t a i l R e p o   =   a p p ( s h i p _ R e q u e s t D e t a i l R e p o : : c l a s s ) ; 
 
 
 
     L i n e   1 1 0 4   [ m a t c h :   E P I C O R ] : 
 
         1 1 0 2 :                   { 
 
         1 1 0 3 :                           c a s e   ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y S u m m a r y ' : 
 
   > >   1 1 0 4 :                                   $ D a t a   =   $ E p i c o r D a t a b a s e - > g e t I n v e n t o r y U n p r o c e s s e d D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 1 0 5 :                                   b r e a k ; 
 
         1 1 0 6 :                           c a s e   ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' : 
 
 
 
     L i n e   1 1 0 7   [ m a t c h :   E P I C O R ] : 
 
         1 1 0 5 :                                   b r e a k ; 
 
         1 1 0 6 :                           c a s e   ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' : 
 
   > >   1 1 0 7 :                                   $ D a t a   =   $ E p i c o r D a t a b a s e - > g e t I n v e n t o r y U n p r o c e s s e d R R D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 1 0 8 :                                   b r e a k ; 
 
         1 1 0 9 :                           c a s e   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' : 
 
 
 
     L i n e   1 1 1 0   [ m a t c h :   E P I C O R ] : 
 
         1 1 0 8 :                                   b r e a k ; 
 
         1 1 0 9 :                           c a s e   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' : 
 
   > >   1 1 1 0 :                                   $ D a t a   =   $ E p i c o r D a t a b a s e - > g e t I n v e n t o r y W o r k I n P r o g r e s s D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 1 1 1 :                                   b r e a k ; 
 
         1 1 1 2 :                           c a s e   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y S u m m a r y ' : 
 
 
 
     L i n e   1 1 1 3   [ m a t c h :   E P I C O R ] : 
 
         1 1 1 1 :                                   b r e a k ; 
 
         1 1 1 2 :                           c a s e   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y S u m m a r y ' : 
 
   > >   1 1 1 3 :                                   $ D a t a   =   $ E p i c o r D a t a b a s e - > g e t I n v e n t o r y F i n i s h e d G o o d s D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 1 1 4 :                                   b r e a k ; 
 
         1 1 1 5 :                           c a s e   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y ' : 
 
 
 
     L i n e   1 1 1 6   [ m a t c h :   E P I C O R ] : 
 
         1 1 1 4 :                                   b r e a k ; 
 
         1 1 1 5 :                           c a s e   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y ' : 
 
   > >   1 1 1 6 :                                   $ D a t a   =   $ E p i c o r D a t a b a s e - > g e t I n v e n t o r y P r o c e s s e d O t h e r D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 1 1 7 :                                   b r e a k ; 
 
         1 1 1 8 :                           c a s e   ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' : 
 
 
 
     L i n e   1 1 1 9   [ m a t c h :   E P I C O R ] : 
 
         1 1 1 7 :                                   b r e a k ; 
 
         1 1 1 8 :                           c a s e   ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' : 
 
   > >   1 1 1 9 :                                   $ D a t a   =   $ E p i c o r D a t a b a s e - > g e t I n v e n t o r y P r o c e s s e d R R D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 1 2 0 :                                   b r e a k ; 
 
         1 1 2 1 :                           d e f a u l t : 
 
 
 
     L i n e   1 1 2 8   [ m a t c h :   E P I C O R ] : 
 
         1 1 2 6 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e   c u r r e n t   s h i p m e n t   r e l e a s e   a l r e a d y   c o n t a i n s   i t e m s   f r o m   a n o t h e r   p l a n t ' ,   ' a c t i o n '   = >   ' b a d _ p l a n t ' ] ) ; 
 
         1 1 2 7 :   
 
   > >   1 1 2 8 :                   $ D e t a i l L i n e s T h a t E x i s t I n R e l e a s e   =   $ R O S h i p m e n t R e q u e s t D e t a i l R e p o - > g e t D e t a i l L i n e s T h a t E x i s t F o r N o n C a n c e l l e d S h i p m e n t s ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ P l a n t ,   $ P a r t ,   $ W a r e h o u s e ,   $ D a t a ) ; 
 
         1 1 2 9 :   
 
         1 1 3 0 :                   $ A d d e d   =   [ ] ; 
 
 
 
     L i n e   1 1 5 4   [ m a t c h :   E P I C O R ] : 
 
         1 1 5 2 :                                           c o n t i n u e ;   / /   a l r e a d y   i n   a n o t h e r   r e l e a s e 
 
         1 1 5 3 :                                   } 
 
   > >   1 1 5 4 :                                   $ P a r t D e s c r i p t i o n   =   $ E p i c o r D a t a b a s e - > g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r W i t h P a i n t C o d e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) , $ P a r t ) ; 
 
         1 1 5 5 :                                   $ t h i s - > _ a d d L i n e T o S h i p m e n t R e l e a s e ( $ S h i p m e n t C a r t - > g e t C a r t I D ( ) ,   $ P a r t ,   $ W a r e h o u s e ,   $ D a t a S i n g l e [ ' L o t N u m ' ] ,   $ P a r t D e s c r i p t i o n ,   $ D a t a S i n g l e [ ' O n H a n d Q t y ' ] ,   $ D a t a S i n g l e [ ' C u s t P a r t N u m ' ] ,   ( $ D a t a S i n g l e [ ' S k i d N u m ' ]   ? ?   n u l l ) ,   ( $ D a t a S i n g l e [ ' C u s t o m e r P o N u m ' ]   ? ?   n u l l ) ,   ( $ D a t a S i n g l e [ ' V o r t e q J o b N u m ' ]   ? ?   n u l l ) , 
 
         1 1 5 6 :                                           ( $ D a t a S i n g l e [ ' V o r t e q S a l e s O r d e r N u m ' ]   ? ?   n u l l ) ,   $ D a t a S i n g l e [ ' B i n ' ] ,   $ P l a n t , ( $ D a t a S i n g l e [ ' M f g L o t ' ]   ? ?   n u l l )   ) ; 
 
 
 
     L i n e   1 1 6 1   [ m a t c h :   E P I C O R ] : 
 
         1 1 5 9 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 1 6 0 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   1 1 6 1 :                           L o g : : e r r o r ( ' A D D I N G   I T E M   T O   S H I P M E N T   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ S h i p m e n t C a r t - > g e t C a r t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 1 6 2 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e r e   w a s   a n   u n e x p e c t e d   e r r o r   a d d i n g   t h i s   i t e m   t o   y o u r   s h i p m e n t .     P l e a s e   t r y   a g a i n . ' ] ) ; 
 
         1 1 6 3 :                   } 
 
 
 
     L i n e   1 2 4 1   [ m a t c h :   E P I C O R ] : 
 
         1 2 3 9 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 2 4 0 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   1 2 4 1 :                           / /         L o g : : e r r o r ( ' A D D I N G   I T E M   T O   A L L O C A T I O N   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ A l l o c C a r t - > g e t C a r t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 2 4 2 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e r e   w a s   a n   u n e x p e c t e d   e r r o r   s a v i n g   t h e   f o r m ' ] ) ; 
 
         1 2 4 3 :                   } 
 
 
 
     L i n e   1 3 0 4   [ m a t c h :   E P I C O R ] : 
 
         1 3 0 2 :           } 
 
         1 3 0 3 :   
 
   > >   1 3 0 4 :           p u b l i c   f u n c t i o n   p o s t C o m p l e t e S h i p m e n t ( S h i p m e n t C a r t   $ S h i p m e n t C a r t ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   S h i p m e n t R e l e a s e H e l p e r   $ S h i p m e n t R e l e a s e H e l p e r ) 
 
         1 3 0 5 :           { 
 
         1 3 0 6 :                   i f ( ! $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   1 3 4 9   [ m a t c h :   E P I C O R ] : 
 
         1 3 4 7 :                           $ q p   =   a p p ( q u e s t _ P l a n t : : c l a s s ) ; 
 
         1 3 4 8 :   
 
   > >   1 3 4 9 :                           $ C o n f i r m a t i o n E m a i l P l a n t   =   $ q p - > f i n d O n e B y ( [ ' P l a n t C o d e '   = >   $ C o n f i r m a t i o n E m a i l P l a n t - > g e t E p i c o r K e y ( ) ] ) ; 
 
         1 3 5 0 :                   } 
 
         1 3 5 1 :                   c a t c h   ( \ T h r o w a b l e   $ e ) { 
 
 
 
     L i n e   1 3 7 1   [ m a t c h :   E P I C O R ] : 
 
         1 3 6 9 :   
 
         1 3 7 0 :                 / *   t r y   { 
 
   > >   1 3 7 1 :                           $ P l a n t U s e r E m a i l s   =   $ E p i c o r D a t a b a s e - > g e t P l a n t U s e r E m a i l A d d r e s s e s ( $ S h i p m e n t C a r t - > g e t P l a n t ( ) ) ; 
 
         1 3 7 2 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         1 3 7 3 :                           L o g : : e r r o r ( ' C o u l d   n o t   c o m p l e t e   s h i p m e n t   r e l e a s e   b e c a u s e   c o u l d   n o t   g e t   p l a n t   e m a i l s   f o r   ' . $ S h i p m e n t C a r t - > g e t P l a n t ( ) . '   ( ' . $ S h i p m e n t C a r t - > g e t C a r t I D ( ) . ' ) ' ) ; 
 
 
 
     L i n e   1 4 4 2   [ m a t c h :   E P I C O R ] : 
 
         1 4 4 0 :                   $ S h i p m e n t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' s h i p m e n t _ i d ' ) ; 
 
         1 4 4 1 :   
 
   > >   1 4 4 2 :                   i f ( i s _ n u l l ( $ S h i p m e n t R e f e r e n c e N u m   =   $ R O S h i p m e n t R e q u e s t R e p o - > g e t S u b m i t t e d R e q u e s t R e f e r e n c e N u m B y Q u e s t U s e r A n d E p i c o r C u s t I D ( $ S h i p m e n t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ,   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ) 
 
         1 4 4 3 :                           r e t u r n   r e d i r e c t ( ) - > a c t i o n ( ' Q u e s t \ I n v e n t o r y C o n t r o l l e r @ g e t I n d e x ' ) ; 
 
         1 4 4 4 :   
 
 
 
     L i n e   1 4 8 4   [ m a t c h :   E P I C O R ] : 
 
         1 4 8 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 4 8 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 4 8 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 4 8 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 4 8 6 :                   / * *   @ v a r   S h i p m e n t C a r t   $ S h i p m e n t C a r t   * / 
 
 
 
     L i n e   1 4 8 5   [ m a t c h :   E P I C O R ] : 
 
         1 4 8 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 4 8 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 4 8 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 4 8 6 :                   / * *   @ v a r   S h i p m e n t C a r t   $ S h i p m e n t C a r t   * / 
 
         1 4 8 7 :                   $ S h i p m e n t C a r t   =   a p p ( S h i p m e n t C a r t : : c l a s s ) ; 
 
 
 
     L i n e   1 4 9 4   [ m a t c h :   E P I C O R ] : 
 
         1 4 9 2 :                   $ W a r e h o u s e   =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' w a r e h o u s e ' ) ) ; 
 
         1 4 9 3 :   
 
   > >   1 4 9 4 :                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ) ; 
 
         1 4 9 5 :   
 
         1 4 9 6 :               / /     $ I n c l u d e L i n k s   =   t r u e ; 
 
 
 
     L i n e   1 5 0 7   [ m a t c h :   E P I C O R ] : 
 
         1 5 0 5 :                                   $ S o u r c e N a m e   =   ' U n p r o c e s s e d ' ; 
 
         1 5 0 6 :                                   $ W r a p C l a s s   =   ' v o r - o r a n g e ' ; 
 
   > >   1 5 0 7 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 5 0 8 :                                   b r e a k ; 
 
         1 5 0 9 :                           c a s e   ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' : 
 
 
 
     L i n e   1 5 1 3   [ m a t c h :   E P I C O R ] : 
 
         1 5 1 1 :                                   $ S o u r c e N a m e   =   ' U n p r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) ' ; 
 
         1 5 1 2 :                                   $ W r a p C l a s s   =   ' v o r - p u r p l e ' ; 
 
   > >   1 5 1 3 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 5 1 4 :                                   b r e a k ; 
 
         1 5 1 5 :                           c a s e   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' : 
 
 
 
     L i n e   1 5 1 9   [ m a t c h :   E P I C O R ] : 
 
         1 5 1 7 :                                   $ S o u r c e N a m e   =   ' W o r k   I n   P r o g r e s s ' ; 
 
         1 5 1 8 :                                   $ W r a p C l a s s   =   ' v o r - g r e e n ' ; 
 
   > >   1 5 1 9 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 5 2 0 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y V 6 ' ) ; 
 
         1 5 2 1 :                                   b r e a k ; 
 
 
 
     L i n e   1 5 2 0   [ m a t c h :   E P I C O R ] : 
 
         1 5 1 8 :                                   $ W r a p C l a s s   =   ' v o r - g r e e n ' ; 
 
         1 5 1 9 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   1 5 2 0 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y V 6 ' ) ; 
 
         1 5 2 1 :                                   b r e a k ; 
 
         1 5 2 2 :                           c a s e   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y S u m m a r y ' : 
 
 
 
     L i n e   1 5 2 6   [ m a t c h :   E P I C O R ] : 
 
         1 5 2 4 :                                   $ S o u r c e N a m e   =   ' F i n i s h e d   G o o d s ' ; 
 
         1 5 2 5 :                                   $ W r a p C l a s s   =   ' v o r - b l u e ' ; 
 
   > >   1 5 2 6 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 5 2 7 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y V 6 ' ) ; 
 
         1 5 2 8 :                                   b r e a k ; 
 
 
 
     L i n e   1 5 2 7   [ m a t c h :   E P I C O R ] : 
 
         1 5 2 5 :                                   $ W r a p C l a s s   =   ' v o r - b l u e ' ; 
 
         1 5 2 6 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   1 5 2 7 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y V 6 ' ) ; 
 
         1 5 2 8 :                                   b r e a k ; 
 
         1 5 2 9 :                           c a s e   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y ' : 
 
 
 
     L i n e   1 5 3 3   [ m a t c h :   E P I C O R ] : 
 
         1 5 3 1 :                                   $ S o u r c e N a m e   =   ' P r o c e s s e d   -   O t h e r ' ; 
 
         1 5 3 2 :                                   $ W r a p C l a s s   =   ' v o r - y e l l o w ' ; 
 
   > >   1 5 3 3 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 5 3 4 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y V 6 ' ) ; 
 
         1 5 3 5 :                                   b r e a k ; 
 
 
 
     L i n e   1 5 3 4   [ m a t c h :   E P I C O R ] : 
 
         1 5 3 2 :                                   $ W r a p C l a s s   =   ' v o r - y e l l o w ' ; 
 
         1 5 3 3 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   1 5 3 4 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y V 6 ' ) ; 
 
         1 5 3 5 :                                   b r e a k ; 
 
         1 5 3 6 :                           c a s e   ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' : 
 
 
 
     L i n e   1 5 4 0   [ m a t c h :   E P I C O R ] : 
 
         1 5 3 8 :                                   $ S o u r c e N a m e   =   ' P r o c e s s e d   ( R e j e c t s   /   R e t u r n s ) ' ; 
 
         1 5 3 9 :                                   $ W r a p C l a s s   =   ' v o r - r e d ' ; 
 
   > >   1 5 4 0 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         1 5 4 1 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e , ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ' ) ; 
 
         1 5 4 2 :                                   b r e a k ; 
 
 
 
     L i n e   1 5 4 1   [ m a t c h :   E P I C O R ] : 
 
         1 5 3 9 :                                   $ W r a p C l a s s   =   ' v o r - r e d ' ; 
 
         1 5 4 0 :                                   $ T o t a l Q O H   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
   > >   1 5 4 1 :                                   $ P a r t D e s c   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d P a i n t C o d e D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e , ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ' ) ; 
 
         1 5 4 2 :                                   b r e a k ; 
 
         1 5 4 3 :                           d e f a u l t : 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ I n v o i c e s C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   e p i c o r ] : 
 
         2 5 :                   / * *   @ v a r   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s   * / 
 
         2 6 :                   $ Q u e s t P a g e V a l u e s   =   a p p ( Q u e s t P a g e V a l u e s : : c l a s s ) ; 
 
   > >   2 7 :                   i f ( ! s i z e o f ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s W i t h I n v o i c i n g A c c e s s ( ) ) ) 
 
         2 8 :                           r e t u r n   a b o r t ( 4 0 4 ) ; 
 
         2 9 :   
 
 
 
     L i n e   8 6   [ m a t c h :   e p i c o r ] : 
 
         8 4 :                   / * *   @ v a r   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s   * / 
 
         8 5 :                   $ Q u e s t P a g e V a l u e s   =   a p p ( Q u e s t P a g e V a l u e s : : c l a s s ) ; 
 
   > >   8 6 :                   i f ( ! s i z e o f ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s W i t h I n v o i c i n g A c c e s s ( ) ) ) 
 
         8 7 :                           r e t u r n   a b o r t ( 4 0 4 ) ; 
 
         8 8 :   
 
 
 
     L i n e   1 0 2   [ m a t c h :   e p i c o r ] : 
 
         1 0 0 :                           r e t u r n   a b o r t ( 4 0 4 ) ; 
 
         1 0 1 :   
 
   > >   1 0 2 :                   i f ( s i z e o f ( $ M a t c h e d A c t i v e C o m p a n i e s F o r U s e r   =   a r r a y _ f i l t e r ( $ Q u e s t P a g e V a l u e s - > g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ,   f u n c t i o n ( q u e s t _ C o m p a n y   $ c o m p a n y )   u s e   ( $ I n v o i c e C o m p a n y I D )   {   r e t u r n   $ c o m p a n y - > g e t I D ( )   = =   $ I n v o i c e C o m p a n y I D ; } ) )   ! = =   1 ) 
 
         1 0 3 :                           r e t u r n   a b o r t ( 4 0 4 ) ; 
 
         1 0 4 :   
 
 
 
     L i n e   1 0 8   [ m a t c h :   e p i c o r ] : 
 
         1 0 6 :                   { 
 
         1 0 7 :                         $ P e r m i t t e d C o m p a n y F o r U s e r   =   $ M a t c h e d A c t i v e C o m p a n i e s F o r U s e r [ a r r a y _ k e y s ( $ M a t c h e d A c t i v e C o m p a n i e s F o r U s e r ) [ 0 ] ] ; 
 
   > >   1 0 8 :                         $ S e l e c t e d C o m p a n y P r o v i d e r - > s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ P e r m i t t e d C o m p a n y F o r U s e r - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         1 0 9 :                   } 
 
         1 1 0 :   
 
 
 
     L i n e   1 1 8   [ m a t c h :   e p i c o r ] : 
 
         1 1 6 :                   / * *   @ v a r   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s   * / 
 
         1 1 7 :                   $ Q u e s t P a g e V a l u e s   =   a p p ( Q u e s t P a g e V a l u e s : : c l a s s ) ; 
 
   > >   1 1 8 :                   i f ( ! s i z e o f ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s W i t h I n v o i c i n g A c c e s s ( ) ) ) 
 
         1 1 9 :                           r e t u r n   a b o r t ( 4 0 4 ) ; 
 
         1 2 0 :   
 
 
 
     L i n e   1 6 0   [ m a t c h :   e p i c o r ] : 
 
         1 5 8 :                   $ M e t a d a t a - > g e t F i e l d ( ' I n v o i c e N u m b e r ' ) - > s e t D e f a u l t S o r t D i r e c t i o n I n R e c o r d L i s t s ( O r d e r B y F i e l d : : D I R _ D E S C ) ; 
 
         1 5 9 :   
 
   > >   1 6 0 :                   $ E p i c o r I n v o i c e M e t a d a t a   =   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' e p i _ I n v c H e a d ' ) ; 
 
         1 6 1 :                   $ E p i c o r I n v o i c e M e t a d a t a - > g e t F i e l d ( ' O p e n I n v o i c e ' ) - > s e t L a b e l ( ' I s   P a i d ? ' ) ; 
 
         1 6 2 :   
 
 
 
     L i n e   1 6 1   [ m a t c h :   e p i c o r ] : 
 
         1 5 9 :   
 
         1 6 0 :                   $ E p i c o r I n v o i c e M e t a d a t a   =   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' e p i _ I n v c H e a d ' ) ; 
 
   > >   1 6 1 :                   $ E p i c o r I n v o i c e M e t a d a t a - > g e t F i e l d ( ' O p e n I n v o i c e ' ) - > s e t L a b e l ( ' I s   P a i d ? ' ) ; 
 
         1 6 2 :   
 
         1 6 3 :                   r e t u r n   $ M e t a d a t a ; 
 
 
 
     L i n e   2 7   [ m a t c h :   E p i c o r ] : 
 
         2 5 :                   / * *   @ v a r   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s   * / 
 
         2 6 :                   $ Q u e s t P a g e V a l u e s   =   a p p ( Q u e s t P a g e V a l u e s : : c l a s s ) ; 
 
   > >   2 7 :                   i f ( ! s i z e o f ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s W i t h I n v o i c i n g A c c e s s ( ) ) ) 
 
         2 8 :                           r e t u r n   a b o r t ( 4 0 4 ) ; 
 
         2 9 :   
 
 
 
     L i n e   8 6   [ m a t c h :   E p i c o r ] : 
 
         8 4 :                   / * *   @ v a r   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s   * / 
 
         8 5 :                   $ Q u e s t P a g e V a l u e s   =   a p p ( Q u e s t P a g e V a l u e s : : c l a s s ) ; 
 
   > >   8 6 :                   i f ( ! s i z e o f ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s W i t h I n v o i c i n g A c c e s s ( ) ) ) 
 
         8 7 :                           r e t u r n   a b o r t ( 4 0 4 ) ; 
 
         8 8 :   
 
 
 
     L i n e   1 0 2   [ m a t c h :   E p i c o r ] : 
 
         1 0 0 :                           r e t u r n   a b o r t ( 4 0 4 ) ; 
 
         1 0 1 :   
 
   > >   1 0 2 :                   i f ( s i z e o f ( $ M a t c h e d A c t i v e C o m p a n i e s F o r U s e r   =   a r r a y _ f i l t e r ( $ Q u e s t P a g e V a l u e s - > g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ,   f u n c t i o n ( q u e s t _ C o m p a n y   $ c o m p a n y )   u s e   ( $ I n v o i c e C o m p a n y I D )   {   r e t u r n   $ c o m p a n y - > g e t I D ( )   = =   $ I n v o i c e C o m p a n y I D ; } ) )   ! = =   1 ) 
 
         1 0 3 :                           r e t u r n   a b o r t ( 4 0 4 ) ; 
 
         1 0 4 :   
 
 
 
     L i n e   1 0 8   [ m a t c h :   E p i c o r ] : 
 
         1 0 6 :                   { 
 
         1 0 7 :                         $ P e r m i t t e d C o m p a n y F o r U s e r   =   $ M a t c h e d A c t i v e C o m p a n i e s F o r U s e r [ a r r a y _ k e y s ( $ M a t c h e d A c t i v e C o m p a n i e s F o r U s e r ) [ 0 ] ] ; 
 
   > >   1 0 8 :                         $ S e l e c t e d C o m p a n y P r o v i d e r - > s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ P e r m i t t e d C o m p a n y F o r U s e r - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         1 0 9 :                   } 
 
         1 1 0 :   
 
 
 
     L i n e   1 1 8   [ m a t c h :   E p i c o r ] : 
 
         1 1 6 :                   / * *   @ v a r   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s   * / 
 
         1 1 7 :                   $ Q u e s t P a g e V a l u e s   =   a p p ( Q u e s t P a g e V a l u e s : : c l a s s ) ; 
 
   > >   1 1 8 :                   i f ( ! s i z e o f ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s W i t h I n v o i c i n g A c c e s s ( ) ) ) 
 
         1 1 9 :                           r e t u r n   a b o r t ( 4 0 4 ) ; 
 
         1 2 0 :   
 
 
 
     L i n e   1 6 0   [ m a t c h :   E p i c o r ] : 
 
         1 5 8 :                   $ M e t a d a t a - > g e t F i e l d ( ' I n v o i c e N u m b e r ' ) - > s e t D e f a u l t S o r t D i r e c t i o n I n R e c o r d L i s t s ( O r d e r B y F i e l d : : D I R _ D E S C ) ; 
 
         1 5 9 :   
 
   > >   1 6 0 :                   $ E p i c o r I n v o i c e M e t a d a t a   =   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' e p i _ I n v c H e a d ' ) ; 
 
         1 6 1 :                   $ E p i c o r I n v o i c e M e t a d a t a - > g e t F i e l d ( ' O p e n I n v o i c e ' ) - > s e t L a b e l ( ' I s   P a i d ? ' ) ; 
 
         1 6 2 :   
 
 
 
     L i n e   1 6 1   [ m a t c h :   E p i c o r ] : 
 
         1 5 9 :   
 
         1 6 0 :                   $ E p i c o r I n v o i c e M e t a d a t a   =   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' e p i _ I n v c H e a d ' ) ; 
 
   > >   1 6 1 :                   $ E p i c o r I n v o i c e M e t a d a t a - > g e t F i e l d ( ' O p e n I n v o i c e ' ) - > s e t L a b e l ( ' I s   P a i d ? ' ) ; 
 
         1 6 2 :   
 
         1 6 3 :                   r e t u r n   $ M e t a d a t a ; 
 
 
 
     L i n e   2 7   [ m a t c h :   E P I C O R ] : 
 
         2 5 :                   / * *   @ v a r   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s   * / 
 
         2 6 :                   $ Q u e s t P a g e V a l u e s   =   a p p ( Q u e s t P a g e V a l u e s : : c l a s s ) ; 
 
   > >   2 7 :                   i f ( ! s i z e o f ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s W i t h I n v o i c i n g A c c e s s ( ) ) ) 
 
         2 8 :                           r e t u r n   a b o r t ( 4 0 4 ) ; 
 
         2 9 :   
 
 
 
     L i n e   8 6   [ m a t c h :   E P I C O R ] : 
 
         8 4 :                   / * *   @ v a r   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s   * / 
 
         8 5 :                   $ Q u e s t P a g e V a l u e s   =   a p p ( Q u e s t P a g e V a l u e s : : c l a s s ) ; 
 
   > >   8 6 :                   i f ( ! s i z e o f ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s W i t h I n v o i c i n g A c c e s s ( ) ) ) 
 
         8 7 :                           r e t u r n   a b o r t ( 4 0 4 ) ; 
 
         8 8 :   
 
 
 
     L i n e   1 0 2   [ m a t c h :   E P I C O R ] : 
 
         1 0 0 :                           r e t u r n   a b o r t ( 4 0 4 ) ; 
 
         1 0 1 :   
 
   > >   1 0 2 :                   i f ( s i z e o f ( $ M a t c h e d A c t i v e C o m p a n i e s F o r U s e r   =   a r r a y _ f i l t e r ( $ Q u e s t P a g e V a l u e s - > g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ,   f u n c t i o n ( q u e s t _ C o m p a n y   $ c o m p a n y )   u s e   ( $ I n v o i c e C o m p a n y I D )   {   r e t u r n   $ c o m p a n y - > g e t I D ( )   = =   $ I n v o i c e C o m p a n y I D ; } ) )   ! = =   1 ) 
 
         1 0 3 :                           r e t u r n   a b o r t ( 4 0 4 ) ; 
 
         1 0 4 :   
 
 
 
     L i n e   1 0 8   [ m a t c h :   E P I C O R ] : 
 
         1 0 6 :                   { 
 
         1 0 7 :                         $ P e r m i t t e d C o m p a n y F o r U s e r   =   $ M a t c h e d A c t i v e C o m p a n i e s F o r U s e r [ a r r a y _ k e y s ( $ M a t c h e d A c t i v e C o m p a n i e s F o r U s e r ) [ 0 ] ] ; 
 
   > >   1 0 8 :                         $ S e l e c t e d C o m p a n y P r o v i d e r - > s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ P e r m i t t e d C o m p a n y F o r U s e r - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         1 0 9 :                   } 
 
         1 1 0 :   
 
 
 
     L i n e   1 1 8   [ m a t c h :   E P I C O R ] : 
 
         1 1 6 :                   / * *   @ v a r   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s   * / 
 
         1 1 7 :                   $ Q u e s t P a g e V a l u e s   =   a p p ( Q u e s t P a g e V a l u e s : : c l a s s ) ; 
 
   > >   1 1 8 :                   i f ( ! s i z e o f ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s W i t h I n v o i c i n g A c c e s s ( ) ) ) 
 
         1 1 9 :                           r e t u r n   a b o r t ( 4 0 4 ) ; 
 
         1 2 0 :   
 
 
 
     L i n e   1 6 0   [ m a t c h :   E P I C O R ] : 
 
         1 5 8 :                   $ M e t a d a t a - > g e t F i e l d ( ' I n v o i c e N u m b e r ' ) - > s e t D e f a u l t S o r t D i r e c t i o n I n R e c o r d L i s t s ( O r d e r B y F i e l d : : D I R _ D E S C ) ; 
 
         1 5 9 :   
 
   > >   1 6 0 :                   $ E p i c o r I n v o i c e M e t a d a t a   =   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' e p i _ I n v c H e a d ' ) ; 
 
         1 6 1 :                   $ E p i c o r I n v o i c e M e t a d a t a - > g e t F i e l d ( ' O p e n I n v o i c e ' ) - > s e t L a b e l ( ' I s   P a i d ? ' ) ; 
 
         1 6 2 :   
 
 
 
     L i n e   1 6 1   [ m a t c h :   E P I C O R ] : 
 
         1 5 9 :   
 
         1 6 0 :                   $ E p i c o r I n v o i c e M e t a d a t a   =   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' e p i _ I n v c H e a d ' ) ; 
 
   > >   1 6 1 :                   $ E p i c o r I n v o i c e M e t a d a t a - > g e t F i e l d ( ' O p e n I n v o i c e ' ) - > s e t L a b e l ( ' I s   P a i d ? ' ) ; 
 
         1 6 2 :   
 
         1 6 3 :                   r e t u r n   $ M e t a d a t a ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ J o b S t a t u s B y P l a n t B y C u s t o m e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4   [ m a t c h :   e p i c o r ] : 
 
         2 :   
 
         3 :   u s e   A p p \ H t t p \ C o n t r o l l e r s \ C o n t r o l l e r ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ S e l e c t e d C o m p a n y P r o v i d e r ; 
 
         6 :   u s e   I l l u m i n a t e \ H t t p \ R e s p o n s e ; 
 
 
 
     L i n e   1 7   [ m a t c h :   e p i c o r ] : 
 
         1 5 :                   $ c o m p   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 6 :   
 
   > >   1 7 :                   $ c u s t o m e r =   $ c o m p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         1 8 :   
 
         1 9 :   
 
 
 
     L i n e   2 2   [ m a t c h :   e p i c o r ] : 
 
         2 0 :   
 
         2 1 :   
 
   > >   2 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         2 3 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 :   
 
 
 
     L i n e   2 3   [ m a t c h :   e p i c o r ] : 
 
         2 1 :   
 
         2 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   2 3 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 :   
 
         2 5 :   
 
 
 
     L i n e   2 7   [ m a t c h :   e p i c o r ] : 
 
         2 5 :   
 
         2 6 :   
 
   > >   2 7 :                   $ d a t a   =   $ E p i c o r D a t a b a s e - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ c u s t o m e r ) ; 
 
         2 8 :   
 
         2 9 :                   / / d d ( $ d a t a ) ; 
 
 
 
     L i n e   4   [ m a t c h :   E p i c o r ] : 
 
         2 :   
 
         3 :   u s e   A p p \ H t t p \ C o n t r o l l e r s \ C o n t r o l l e r ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ S e l e c t e d C o m p a n y P r o v i d e r ; 
 
         6 :   u s e   I l l u m i n a t e \ H t t p \ R e s p o n s e ; 
 
 
 
     L i n e   1 7   [ m a t c h :   E p i c o r ] : 
 
         1 5 :                   $ c o m p   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 6 :   
 
   > >   1 7 :                   $ c u s t o m e r =   $ c o m p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         1 8 :   
 
         1 9 :   
 
 
 
     L i n e   2 2   [ m a t c h :   E p i c o r ] : 
 
         2 0 :   
 
         2 1 :   
 
   > >   2 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         2 3 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 :   
 
 
 
     L i n e   2 3   [ m a t c h :   E p i c o r ] : 
 
         2 1 :   
 
         2 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   2 3 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 :   
 
         2 5 :   
 
 
 
     L i n e   2 7   [ m a t c h :   E p i c o r ] : 
 
         2 5 :   
 
         2 6 :   
 
   > >   2 7 :                   $ d a t a   =   $ E p i c o r D a t a b a s e - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ c u s t o m e r ) ; 
 
         2 8 :   
 
         2 9 :                   / / d d ( $ d a t a ) ; 
 
 
 
     L i n e   4   [ m a t c h :   E P I C O R ] : 
 
         2 :   
 
         3 :   u s e   A p p \ H t t p \ C o n t r o l l e r s \ C o n t r o l l e r ; 
 
   > >   4 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ S e l e c t e d C o m p a n y P r o v i d e r ; 
 
         6 :   u s e   I l l u m i n a t e \ H t t p \ R e s p o n s e ; 
 
 
 
     L i n e   1 7   [ m a t c h :   E P I C O R ] : 
 
         1 5 :                   $ c o m p   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 6 :   
 
   > >   1 7 :                   $ c u s t o m e r =   $ c o m p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         1 8 :   
 
         1 9 :   
 
 
 
     L i n e   2 2   [ m a t c h :   E P I C O R ] : 
 
         2 0 :   
 
         2 1 :   
 
   > >   2 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         2 3 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 :   
 
 
 
     L i n e   2 3   [ m a t c h :   E P I C O R ] : 
 
         2 1 :   
 
         2 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   2 3 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 :   
 
         2 5 :   
 
 
 
     L i n e   2 7   [ m a t c h :   E P I C O R ] : 
 
         2 5 :   
 
         2 6 :   
 
   > >   2 7 :                   $ d a t a   =   $ E p i c o r D a t a b a s e - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ c u s t o m e r ) ; 
 
         2 8 :   
 
         2 9 :                   / / d d ( $ d a t a ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ O r d e r A c k n o w l e d g e m e n t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 6   [ m a t c h :   e p i c o r ] : 
 
         1 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ c o m p   * / 
 
         1 5 :                   $ c o m p   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 6 :                   $ c u s t o m e r =   $ c o m p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         1 7 :   
 
         1 8 :                   / / 5 3 8 6 0 
 
 
 
     L i n e   1 6   [ m a t c h :   E p i c o r ] : 
 
         1 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ c o m p   * / 
 
         1 5 :                   $ c o m p   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 6 :                   $ c u s t o m e r =   $ c o m p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         1 7 :   
 
         1 8 :                   / / 5 3 8 6 0 
 
 
 
     L i n e   1 6   [ m a t c h :   E P I C O R ] : 
 
         1 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ c o m p   * / 
 
         1 5 :                   $ c o m p   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 6 :                   $ c u s t o m e r =   $ c o m p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         1 7 :   
 
         1 8 :                   / / 5 3 8 6 0 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ O r d e r C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 2 4   [ m a t c h :   F R O M   ] : 
 
         6 2 2 :   
 
         6 2 3 :                           i f ( $ A l l o c C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ P l a n t   ! = =   $ A l l o c C a r t - > g e t P l a n t ( ) ) 
 
   > >   6 2 4 :                                   r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e   c u r r e n t   c o i l   a l l o c a t i o n   a l r e a d y   c o n t a i n s   i t e m s   f r o m   a n o t h e r   p l a n t ' ,   ' a c t i o n '   = >   ' b a d _ p l a n t ' ] ) ; 
 
         6 2 5 :                           e l s e i f ( $ A l l o c C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ A l l o c C a r t - > i s D e t a i l I n C a r t ( $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   ( i n t ) $ O n H a n d Q u a n t i t y ) ) 
 
         6 2 6 :                                   r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   c o i l   a l l o c a t i o n ' ,   ' a c t i o n '   = >   ' i n _ c a r t ' ] ) ; 
 
 
 
     L i n e   6 8 7   [ m a t c h :   F R O M   ] : 
 
         6 8 5 :   
 
         6 8 6 :                   i f ( $ A l l o c C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ P l a n t   ! = =   $ A l l o c C a r t - > g e t P l a n t ( ) ) 
 
   > >   6 8 7 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e   c u r r e n t   c o i l   a l l o c a t i o n   a l r e a d y   c o n t a i n s   i t e m s   f r o m   a n o t h e r   p l a n t ' ,   ' a c t i o n '   = >   ' b a d _ p l a n t ' ] ) ; 
 
         6 8 8 :                   e l s e i f ( $ A l l o c C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ A l l o c C a r t - > i s D e t a i l I n C a r t ( $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   ( i n t ) $ O n H a n d Q u a n t i t y ) ) 
 
         6 8 9 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   c o i l   a l l o c a t i o n ' ,   ' a c t i o n '   = >   ' i n _ c a r t ' ] ) ; 
 
 
 
     L i n e   7 4 9   [ m a t c h :   F R O M   ] : 
 
         7 4 7 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         7 4 8 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
   > >   7 4 9 :                           L o g : : e r r o r ( ' D e l e t i n g   i t e m   f r o m   a l l o c a t i o n :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         7 5 0 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   r e m o v i n g   t h i s   i t e m   f r o m   y o u r   c o i l   a l l o c a t i o n .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         7 5 1 :                   } 
 
 
 
     L i n e   7 5 0   [ m a t c h :   F R O M   ] : 
 
         7 4 8 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         7 4 9 :                           L o g : : e r r o r ( ' D e l e t i n g   i t e m   f r o m   a l l o c a t i o n :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
   > >   7 5 0 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   r e m o v i n g   t h i s   i t e m   f r o m   y o u r   c o i l   a l l o c a t i o n .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         7 5 1 :                   } 
 
         7 5 2 :   
 
 
 
     L i n e   7 5 3   [ m a t c h :   F R O M   ] : 
 
         7 5 1 :                   } 
 
         7 5 2 :   
 
   > >   7 5 3 :                   r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h ( [ ' s u c c e s s '   = >   ' I t e m   s u c c e s s f u l l y   r e m o v e d   f r o m   c o i l   a l l o c a t i o n   r e l e a s e ' ] ) ; 
 
         7 5 4 :           } 
 
         7 5 5 :   
 
 
 
     L i n e   7 7 6   [ m a t c h :   S E L E C T   ] : 
 
         7 7 4 :   
 
         7 7 5 :                   i f ( i s _ n u l l ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) 
 
   > >   7 7 6 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' P l e a s e   s e l e c t   a   c u s t o m e r   b e f o r e   s t a r t i n g   a   c o i l   a l l o c a t i o n ' ) ; 
 
         7 7 7 :   
 
         7 7 8 :                   $ N o w   =   n e w   \ D a t e T i m e ( ) ; 
 
 
 
     L i n e   1 0 1 9   [ m a t c h :   U P D A T E   ] : 
 
         1 0 1 7 :                           $ C o i l A l l o c a t i o n H e l p e r - > g e n e r a t e C o m p l e t e d R e l e a s e P D F ( $ A l l o c C a r t ,   $ d a t a ,   $ a d d D a t a ) ; 
 
         1 0 1 8 :   
 
   > >   1 0 1 9 :                           / /   u p d a t e   D B 
 
         1 0 2 0 :                           $ D a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
         1 0 2 1 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( $ D B D a t a ,   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' a l l o c _ R e q u e s t ' ) ) ; 
 
 
 
     L i n e   1 8   [ m a t c h :   e p i c o r ] : 
 
         1 6 :   u s e   K n p \ S n a p p y \ P d f ; 
 
         1 7 :   u s e   I l l u m i n a t e \ S u p p o r t \ F a c a d e s \ N o t i f i c a t i o n ; 
 
   > >   1 8 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 9 :   u s e   A p p \ S e r v i c e s \ S e l e c t e d C o m p a n y P r o v i d e r ; 
 
         2 0 :   u s e   S a v v i o r \ D a t a \ D a t a H a n d l e r ; 
 
 
 
     L i n e   2 8   [ m a t c h :   e p i c o r ] : 
 
         2 6 :   u s e   S a v v i o r \ L T a b b y P a g e s \ T a b b y P a g e M a n a g e r ; 
 
         2 7 :   u s e   S a v v i o r \ L T a b b y P a g e s \ T a b b y P a g e ; 
 
   > >   2 8 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         2 9 :   u s e   S a v v i o r \ M e t a d a t a \ F i e l d M e t a d a t a F i e l d ; 
 
         3 0 :   u s e   S a v v i o r \ M e t a d a t a \ M e t a d a t a F a c t o r y ; 
 
 
 
     L i n e   5 4   [ m a t c h :   e p i c o r ] : 
 
         5 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ c u s t o m e r   * / 
 
         5 3 :                   $ c u s t o m e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   5 4 :                   $ c u s t o m e r   =   $ c u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         5 5 :   
 
         5 6 :   
 
 
 
     L i n e   6 1   [ m a t c h :   e p i c o r ] : 
 
         5 9 :                   $ q u e s t _ C o m p a n y R e p o   =   a p p ( q u e s t _ C o m p a n y : : c l a s s ) ; 
 
         6 0 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y   $ q u e s t _ C o m p a n y   * / 
 
   > >   6 1 :                   $ q u e s t _ C o m p a n y   =   $ q u e s t _ C o m p a n y R e p o - > f i n d O n e B y ( [ ' E p i c o r C u s t I D '   = >   $ c u s t o m e r ] ) ; 
 
         6 2 :   
 
         6 3 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r [ ]   $ q u e s t _ C o m p a n y U s e r s   * / 
 
 
 
     L i n e   1 5 1   [ m a t c h :   e p i c o r ] : 
 
         1 4 9 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 5 0 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   1 5 1 :                   / /         L o g : : e r r o r ( ' A D D I N G   I T E M   T O   A L L O C A T I O N   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ A l l o c C a r t - > g e t C a r t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 5 2 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e r e   w a s   a n   u n e x p e c t e d   e r r o r   s a v i n g   c o m m e n t s ' ] ) ; 
 
         1 5 3 :                   } 
 
 
 
     L i n e   2 1 8   [ m a t c h :   e p i c o r ] : 
 
         2 1 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 1 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   2 1 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 1 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 2 0 :                   / * *   @ v a r   A l l o c C a r t   $ A l l o c C a r t   * / 
 
 
 
     L i n e   2 1 9   [ m a t c h :   e p i c o r ] : 
 
         2 1 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 1 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 1 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 2 0 :                   / * *   @ v a r   A l l o c C a r t   $ A l l o c C a r t   * / 
 
         2 2 1 :                   $ A l l o c C a r t   =   a p p ( A l l o c C a r t : : c l a s s ) ; 
 
 
 
     L i n e   2 2 7   [ m a t c h :   e p i c o r ] : 
 
         2 2 5 :                   $ P l a n t   =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' p l a n t ' ) ) ; 
 
         2 2 6 :   
 
   > >   2 2 7 :                   $ J o b   =   $ E p i c o r D B - > g e t J o b ( $ J o b N u m ) [ 0 ] ; 
 
         2 2 8 :   
 
         2 2 9 :                   $ C u s t I D   =   $ J o b [ ' C u s t I D ' ]   .   "   \ n   "   .   $ J o b [ ' C u s t o m e r _ N a m e ' ] ; 
 
 
 
     L i n e   3 3 6   [ m a t c h :   e p i c o r ] : 
 
         3 3 4 :           p r o t e c t e d   f u n c t i o n   g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( ) 
 
         3 3 5 :           { 
 
   > >   3 3 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 3 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 3 8 :   
 
 
 
     L i n e   3 3 7   [ m a t c h :   e p i c o r ] : 
 
         3 3 5 :           { 
 
         3 3 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 3 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 3 8 :   
 
         3 3 9 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   3 4 1   [ m a t c h :   e p i c o r ] : 
 
         3 3 9 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         3 4 0 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   3 4 1 :                   $ c o m p a n y   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         3 4 2 :   
 
         3 4 3 :                   $ O r d e r D a t a   =   c o l l e c t ( 
 
 
 
     L i n e   3 4 4   [ m a t c h :   e p i c o r ] : 
 
         3 4 2 :   
 
         3 4 3 :                   $ O r d e r D a t a   =   c o l l e c t ( 
 
   > >   3 4 4 :                           $ E p i c o r D B - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ c o m p a n y ) 
 
         3 4 5 :                   ) ; 
 
         3 4 6 :   
 
 
 
     L i n e   3 8 2   [ m a t c h :   e p i c o r ] : 
 
         3 8 0 :           p r i v a t e   f u n c t i o n   g e t O p e n O r d e r s M e t a d a t a ( ) 
 
         3 8 1 :           { 
 
   > >   3 8 2 :                   $ M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ O p e n O r d e r s ' ) ;   / /   p a s s   t h e   n a m e   o f   t h e   v i e w   i n   E p i c o r   g i v i n g   y o u   t h e   d a t a ,   o t h e r w i s e   s o m e   u n i q u e   n a m e   f o r   t h i s   d a t a   s t r u c t u r e 
 
         3 8 3 :   
 
         3 8 4 :                   $ P h o n y I D   =   $ M e t a d a t a - > a d d N e w F i e l d ( ' P h o n y I D ' ,   F i e l d M e t a d a t a F i e l d : : c l a s s ) ;   / /   n e e d e d   t o   s a t i s f y   n e w   g r i d   r e q u i r e m e n t   o f   h a v i n g   a n   i d e n t i f i e r   f i e l d   w h e n   t h e r e   a r e   l i n k s   ( f o r   o u r   p u r p o s e s ,   n o t   u s e d ,   s o   w e   a r e n ' t   p r o v i d i n g   v a l u e s   f o r   i t ! ) 
 
 
 
     L i n e   6 2 7   [ m a t c h :   e p i c o r ] : 
 
         6 2 5 :                           e l s e i f ( $ A l l o c C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ A l l o c C a r t - > i s D e t a i l I n C a r t ( $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   ( i n t ) $ O n H a n d Q u a n t i t y ) ) 
 
         6 2 6 :                                   r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   c o i l   a l l o c a t i o n ' ,   ' a c t i o n '   = >   ' i n _ c a r t ' ] ) ; 
 
   > >   6 2 7 :                           e l s e i f ( $ R O A l l o c a t i o n R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) ) 
 
         6 2 8 :                                   r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   p a r t   o f   a n o t h e r   c o i l   a l l o c a t i o n   f o r   t h i s   c u s t o m e r ' ,   ' a c t i o n '   = >   ' a n o t h e r _ c a r t ' ] ) ; 
 
         6 2 9 :   
 
 
 
     L i n e   6 9 0   [ m a t c h :   e p i c o r ] : 
 
         6 8 8 :                   e l s e i f ( $ A l l o c C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ A l l o c C a r t - > i s D e t a i l I n C a r t ( $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   ( i n t ) $ O n H a n d Q u a n t i t y ) ) 
 
         6 8 9 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   c o i l   a l l o c a t i o n ' ,   ' a c t i o n '   = >   ' i n _ c a r t ' ] ) ; 
 
   > >   6 9 0 :                   e l s e i f ( $ R O A l l o c a t i o n R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) ) 
 
         6 9 1 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   p a r t   o f   a n o t h e r   c o i l   a l l o c a t i o n   f o r   t h i s   c u s t o m e r ' ,   ' a c t i o n '   = >   ' a n o t h e r _ c a r t ' ] ) ; 
 
         6 9 2 :   
 
 
 
     L i n e   7 1 7   [ m a t c h :   e p i c o r ] : 
 
         7 1 5 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         7 1 6 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   7 1 7 :                           L o g : : e r r o r ( ' A D D I N G   I T E M   T O   A L L O C A T I O N   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ A l l o c C a r t - > g e t C a r t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         7 1 8 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e r e   w a s   a n   u n e x p e c t e d   e r r o r   a d d i n g   t h i s   i t e m   t o   y o u r   c o i l   a l l o c a t i o n .     P l e a s e   t r y   a g a i n . ' ] ) ; 
 
         7 1 9 :                   } 
 
 
 
     L i n e   7 6 2   [ m a t c h :   e p i c o r ] : 
 
         7 6 0 :   
 
         7 6 1 :                   i f ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d J o b N u m ( 
 
   > >   7 6 2 :                           $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) , 
 
         7 6 3 :                           r e q u e s t ( ) - > P l a n t , 
 
         7 6 4 :                           r e q u e s t ( ) - > J o b N u m ) 
 
 
 
     L i n e   7 7 5   [ m a t c h :   e p i c o r ] : 
 
         7 7 3 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A   c o i l   a l l o c a t i o n   c a n n o t   b e   s t a r t e d   f o r   t h i s   c u s t o m e r   a s   t h e r e   i s   a l r e a d y   o n e   i n   p r o g r e s s ' ) ; 
 
         7 7 4 :   
 
   > >   7 7 5 :                   i f ( i s _ n u l l ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) 
 
         7 7 6 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' P l e a s e   s e l e c t   a   c u s t o m e r   b e f o r e   s t a r t i n g   a   c o i l   a l l o c a t i o n ' ) ; 
 
         7 7 7 :   
 
 
 
     L i n e   7 8 4   [ m a t c h :   e p i c o r ] : 
 
         7 8 2 :                   t r y   { 
 
         7 8 3 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
   > >   7 8 4 :                                   ' q u e s t _ C o m p a n y '   = >   [ ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) - > g e t I D ( ) ] , 
 
         7 8 5 :                                   ' q u e s t _ U s e r '   = >   [ ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ] , 
 
         7 8 6 :                                   ' P l a n t '   = >   r e q u e s t ( ) - > P l a n t , 
 
 
 
     L i n e   8 0 2   [ m a t c h :   e p i c o r ] : 
 
         8 0 0 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         8 0 1 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
   > >   8 0 2 :                           L o g : : e r r o r ( ' A L L O C A T I O N   R E Q U E S T   S T A R T   D B   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         8 0 3 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   s t a r t i n g   t h i s   c o i l   a l l o c a t i o n     P l e a s e   t r y   a g a i n . ' ) ; 
 
         8 0 4 :                   } 
 
 
 
     L i n e   8 2 0   [ m a t c h :   e p i c o r ] : 
 
         8 1 8 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         8 1 9 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
   > >   8 2 0 :                           L o g : : e r r o r ( ' C O I L   A L L O C A T I O N   R E Q U E S T   C A N C E L   D B   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         8 2 1 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   c a n c e l l i n g   t h i s   c o i l a   a l l o c a t i o n .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         8 2 2 :                   } 
 
 
 
     L i n e   8 3 3   [ m a t c h :   e p i c o r ] : 
 
         8 3 1 :   
 
         8 3 2 :                   $ O H   =   a p p ( O r d e r H e l p e r : : c l a s s ) ; 
 
   > >   8 3 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 3 4 :   
 
         8 3 5 :                   $ A l l o c C a r t - > s e t C a r t R e d i r e c t L o c a t i o n ( u r l ( ) - > c u r r e n t ( ) ) ; 
 
 
 
     L i n e   8 4 0   [ m a t c h :   e p i c o r ] : 
 
         8 3 8 :                   $ P l a n t   =   $ A l l o c C a r t - > g e t P l a n t ( ) ; 
 
         8 3 9 :   
 
   > >   8 4 0 :                   $ J o b   =   $ E p i c o r D B - > g e t J o b ( $ J o b N u m ) [ 0 ] ; 
 
         8 4 1 :   
 
         8 4 2 :                   $ C u s t I D   =   $ J o b [ ' C u s t I D ' ]   .   "   \ n   "   .   $ J o b [ ' C u s t o m e r _ N a m e ' ] ; 
 
 
 
     L i n e   9 2 5   [ m a t c h :   e p i c o r ] : 
 
         9 2 3 :                   $ A l l o c a t i o n I d   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' a l l o c a t i o n _ i d ' ) ; 
 
         9 2 4 :   
 
   > >   9 2 5 :                   i f ( i s _ n u l l ( $ A l l o c a t i o n R e f e r e n c e N u m   =   $ R O A l l o c R e q u e s t R e p o - > g e t S u b m i t t e d R e q u e s t R e f e r e n c e N u m B y Q u e s t U s e r A n d E p i c o r C u s t I D ( $ A l l o c a t i o n I d ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ,   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ) 
 
         9 2 6 :                           r e t u r n   r e d i r e c t ( ) - > a c t i o n ( ' Q u e s t \ I n v e n t o r y C o n t r o l l e r @ g e t I n d e x ' ) ; 
 
         9 2 7 :   
 
 
 
     L i n e   9 3 1   [ m a t c h :   e p i c o r ] : 
 
         9 2 9 :           } 
 
         9 3 0 :   
 
   > >   9 3 1 :           p u b l i c   f u n c t i o n   p o s t C o m p l e t e A l l o c a t i o n ( A l l o c C a r t   $ A l l o c C a r t ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   C o i l A l l o c a t i o n H e l p e r   $ C o i l A l l o c a t i o n H e l p e r ) 
 
         9 3 2 :           { 
 
         9 3 3 :                   i f ( ! $ A l l o c C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   9 6 7   [ m a t c h :   e p i c o r ] : 
 
         9 6 5 :                   / * 
 
         9 6 6 :                   t r y   { 
 
   > >   9 6 7 :                           $ P l a n t U s e r E m a i l s   =   $ E p i c o r D a t a b a s e - > g e t P l a n t U s e r E m a i l A d d r e s s e s ( $ A l l o c C a r t - > g e t P l a n t ( ) ) ; 
 
         9 6 8 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         9 6 9 :                           L o g : : e r r o r ( ' C o u l d   n o t   c o m p l e t e   c o i l   a l l o c a t i o n   b e c a u s e   c o u l d   n o t   g e t   p l a n t   e m a i l s   f o r   ' . $ A l l o c C a r t - > g e t P l a n t ( ) . '   ( ' . $ A l l o c C a r t - > g e t C a r t I D ( ) . ' ) ' ) ; 
 
 
 
     L i n e   1 0 4 2   [ m a t c h :   e p i c o r ] : 
 
         1 0 4 0 :           p r i v a t e   f u n c t i o n   _ _ f e t c h J o b I n f o r m a t i o n F o r H e a d e r ( $ J o b N u m ) 
 
         1 0 4 1 :           { 
 
   > >   1 0 4 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 0 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 4 4 :   
 
 
 
     L i n e   1 0 4 3   [ m a t c h :   e p i c o r ] : 
 
         1 0 4 1 :           { 
 
         1 0 4 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 0 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 4 4 :   
 
         1 0 4 5 :                   $ J o b   =   $ E p i c o r D B - > g e t J o b ( $ J o b N u m ) [ 0 ] ; 
 
 
 
     L i n e   1 0 4 5   [ m a t c h :   e p i c o r ] : 
 
         1 0 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 4 4 :   
 
   > >   1 0 4 5 :                   $ J o b   =   $ E p i c o r D B - > g e t J o b ( $ J o b N u m ) [ 0 ] ; 
 
         1 0 4 6 :                   $ C u s t I D   =   $ J o b [ ' C u s t I D ' ]   .   "   \ n   "   .   $ J o b [ ' C u s t o m e r _ N a m e ' ] ; 
 
         1 0 4 7 :                   / / $ C u s t o m e r N a m e   =   $ J o b [ ' C u s t o m e r _ N a m e ' ] ; 
 
 
 
     L i n e   1 8   [ m a t c h :   E p i c o r ] : 
 
         1 6 :   u s e   K n p \ S n a p p y \ P d f ; 
 
         1 7 :   u s e   I l l u m i n a t e \ S u p p o r t \ F a c a d e s \ N o t i f i c a t i o n ; 
 
   > >   1 8 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 9 :   u s e   A p p \ S e r v i c e s \ S e l e c t e d C o m p a n y P r o v i d e r ; 
 
         2 0 :   u s e   S a v v i o r \ D a t a \ D a t a H a n d l e r ; 
 
 
 
     L i n e   2 8   [ m a t c h :   E p i c o r ] : 
 
         2 6 :   u s e   S a v v i o r \ L T a b b y P a g e s \ T a b b y P a g e M a n a g e r ; 
 
         2 7 :   u s e   S a v v i o r \ L T a b b y P a g e s \ T a b b y P a g e ; 
 
   > >   2 8 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         2 9 :   u s e   S a v v i o r \ M e t a d a t a \ F i e l d M e t a d a t a F i e l d ; 
 
         3 0 :   u s e   S a v v i o r \ M e t a d a t a \ M e t a d a t a F a c t o r y ; 
 
 
 
     L i n e   5 4   [ m a t c h :   E p i c o r ] : 
 
         5 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ c u s t o m e r   * / 
 
         5 3 :                   $ c u s t o m e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   5 4 :                   $ c u s t o m e r   =   $ c u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         5 5 :   
 
         5 6 :   
 
 
 
     L i n e   6 1   [ m a t c h :   E p i c o r ] : 
 
         5 9 :                   $ q u e s t _ C o m p a n y R e p o   =   a p p ( q u e s t _ C o m p a n y : : c l a s s ) ; 
 
         6 0 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y   $ q u e s t _ C o m p a n y   * / 
 
   > >   6 1 :                   $ q u e s t _ C o m p a n y   =   $ q u e s t _ C o m p a n y R e p o - > f i n d O n e B y ( [ ' E p i c o r C u s t I D '   = >   $ c u s t o m e r ] ) ; 
 
         6 2 :   
 
         6 3 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r [ ]   $ q u e s t _ C o m p a n y U s e r s   * / 
 
 
 
     L i n e   1 5 1   [ m a t c h :   E p i c o r ] : 
 
         1 4 9 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 5 0 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   1 5 1 :                   / /         L o g : : e r r o r ( ' A D D I N G   I T E M   T O   A L L O C A T I O N   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ A l l o c C a r t - > g e t C a r t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 5 2 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e r e   w a s   a n   u n e x p e c t e d   e r r o r   s a v i n g   c o m m e n t s ' ] ) ; 
 
         1 5 3 :                   } 
 
 
 
     L i n e   2 1 8   [ m a t c h :   E p i c o r ] : 
 
         2 1 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 1 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   2 1 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 1 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 2 0 :                   / * *   @ v a r   A l l o c C a r t   $ A l l o c C a r t   * / 
 
 
 
     L i n e   2 1 9   [ m a t c h :   E p i c o r ] : 
 
         2 1 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 1 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 1 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 2 0 :                   / * *   @ v a r   A l l o c C a r t   $ A l l o c C a r t   * / 
 
         2 2 1 :                   $ A l l o c C a r t   =   a p p ( A l l o c C a r t : : c l a s s ) ; 
 
 
 
     L i n e   2 2 7   [ m a t c h :   E p i c o r ] : 
 
         2 2 5 :                   $ P l a n t   =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' p l a n t ' ) ) ; 
 
         2 2 6 :   
 
   > >   2 2 7 :                   $ J o b   =   $ E p i c o r D B - > g e t J o b ( $ J o b N u m ) [ 0 ] ; 
 
         2 2 8 :   
 
         2 2 9 :                   $ C u s t I D   =   $ J o b [ ' C u s t I D ' ]   .   "   \ n   "   .   $ J o b [ ' C u s t o m e r _ N a m e ' ] ; 
 
 
 
     L i n e   3 3 6   [ m a t c h :   E p i c o r ] : 
 
         3 3 4 :           p r o t e c t e d   f u n c t i o n   g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( ) 
 
         3 3 5 :           { 
 
   > >   3 3 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 3 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 3 8 :   
 
 
 
     L i n e   3 3 7   [ m a t c h :   E p i c o r ] : 
 
         3 3 5 :           { 
 
         3 3 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 3 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 3 8 :   
 
         3 3 9 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   3 4 1   [ m a t c h :   E p i c o r ] : 
 
         3 3 9 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         3 4 0 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   3 4 1 :                   $ c o m p a n y   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         3 4 2 :   
 
         3 4 3 :                   $ O r d e r D a t a   =   c o l l e c t ( 
 
 
 
     L i n e   3 4 4   [ m a t c h :   E p i c o r ] : 
 
         3 4 2 :   
 
         3 4 3 :                   $ O r d e r D a t a   =   c o l l e c t ( 
 
   > >   3 4 4 :                           $ E p i c o r D B - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ c o m p a n y ) 
 
         3 4 5 :                   ) ; 
 
         3 4 6 :   
 
 
 
     L i n e   3 8 2   [ m a t c h :   E p i c o r ] : 
 
         3 8 0 :           p r i v a t e   f u n c t i o n   g e t O p e n O r d e r s M e t a d a t a ( ) 
 
         3 8 1 :           { 
 
   > >   3 8 2 :                   $ M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ O p e n O r d e r s ' ) ;   / /   p a s s   t h e   n a m e   o f   t h e   v i e w   i n   E p i c o r   g i v i n g   y o u   t h e   d a t a ,   o t h e r w i s e   s o m e   u n i q u e   n a m e   f o r   t h i s   d a t a   s t r u c t u r e 
 
         3 8 3 :   
 
         3 8 4 :                   $ P h o n y I D   =   $ M e t a d a t a - > a d d N e w F i e l d ( ' P h o n y I D ' ,   F i e l d M e t a d a t a F i e l d : : c l a s s ) ;   / /   n e e d e d   t o   s a t i s f y   n e w   g r i d   r e q u i r e m e n t   o f   h a v i n g   a n   i d e n t i f i e r   f i e l d   w h e n   t h e r e   a r e   l i n k s   ( f o r   o u r   p u r p o s e s ,   n o t   u s e d ,   s o   w e   a r e n ' t   p r o v i d i n g   v a l u e s   f o r   i t ! ) 
 
 
 
     L i n e   6 2 7   [ m a t c h :   E p i c o r ] : 
 
         6 2 5 :                           e l s e i f ( $ A l l o c C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ A l l o c C a r t - > i s D e t a i l I n C a r t ( $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   ( i n t ) $ O n H a n d Q u a n t i t y ) ) 
 
         6 2 6 :                                   r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   c o i l   a l l o c a t i o n ' ,   ' a c t i o n '   = >   ' i n _ c a r t ' ] ) ; 
 
   > >   6 2 7 :                           e l s e i f ( $ R O A l l o c a t i o n R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) ) 
 
         6 2 8 :                                   r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   p a r t   o f   a n o t h e r   c o i l   a l l o c a t i o n   f o r   t h i s   c u s t o m e r ' ,   ' a c t i o n '   = >   ' a n o t h e r _ c a r t ' ] ) ; 
 
         6 2 9 :   
 
 
 
     L i n e   6 9 0   [ m a t c h :   E p i c o r ] : 
 
         6 8 8 :                   e l s e i f ( $ A l l o c C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ A l l o c C a r t - > i s D e t a i l I n C a r t ( $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   ( i n t ) $ O n H a n d Q u a n t i t y ) ) 
 
         6 8 9 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   c o i l   a l l o c a t i o n ' ,   ' a c t i o n '   = >   ' i n _ c a r t ' ] ) ; 
 
   > >   6 9 0 :                   e l s e i f ( $ R O A l l o c a t i o n R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) ) 
 
         6 9 1 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   p a r t   o f   a n o t h e r   c o i l   a l l o c a t i o n   f o r   t h i s   c u s t o m e r ' ,   ' a c t i o n '   = >   ' a n o t h e r _ c a r t ' ] ) ; 
 
         6 9 2 :   
 
 
 
     L i n e   7 1 7   [ m a t c h :   E p i c o r ] : 
 
         7 1 5 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         7 1 6 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   7 1 7 :                           L o g : : e r r o r ( ' A D D I N G   I T E M   T O   A L L O C A T I O N   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ A l l o c C a r t - > g e t C a r t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         7 1 8 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e r e   w a s   a n   u n e x p e c t e d   e r r o r   a d d i n g   t h i s   i t e m   t o   y o u r   c o i l   a l l o c a t i o n .     P l e a s e   t r y   a g a i n . ' ] ) ; 
 
         7 1 9 :                   } 
 
 
 
     L i n e   7 6 2   [ m a t c h :   E p i c o r ] : 
 
         7 6 0 :   
 
         7 6 1 :                   i f ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d J o b N u m ( 
 
   > >   7 6 2 :                           $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) , 
 
         7 6 3 :                           r e q u e s t ( ) - > P l a n t , 
 
         7 6 4 :                           r e q u e s t ( ) - > J o b N u m ) 
 
 
 
     L i n e   7 7 5   [ m a t c h :   E p i c o r ] : 
 
         7 7 3 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A   c o i l   a l l o c a t i o n   c a n n o t   b e   s t a r t e d   f o r   t h i s   c u s t o m e r   a s   t h e r e   i s   a l r e a d y   o n e   i n   p r o g r e s s ' ) ; 
 
         7 7 4 :   
 
   > >   7 7 5 :                   i f ( i s _ n u l l ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) 
 
         7 7 6 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' P l e a s e   s e l e c t   a   c u s t o m e r   b e f o r e   s t a r t i n g   a   c o i l   a l l o c a t i o n ' ) ; 
 
         7 7 7 :   
 
 
 
     L i n e   7 8 4   [ m a t c h :   E p i c o r ] : 
 
         7 8 2 :                   t r y   { 
 
         7 8 3 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
   > >   7 8 4 :                                   ' q u e s t _ C o m p a n y '   = >   [ ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) - > g e t I D ( ) ] , 
 
         7 8 5 :                                   ' q u e s t _ U s e r '   = >   [ ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ] , 
 
         7 8 6 :                                   ' P l a n t '   = >   r e q u e s t ( ) - > P l a n t , 
 
 
 
     L i n e   8 0 2   [ m a t c h :   E p i c o r ] : 
 
         8 0 0 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         8 0 1 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
   > >   8 0 2 :                           L o g : : e r r o r ( ' A L L O C A T I O N   R E Q U E S T   S T A R T   D B   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         8 0 3 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   s t a r t i n g   t h i s   c o i l   a l l o c a t i o n     P l e a s e   t r y   a g a i n . ' ) ; 
 
         8 0 4 :                   } 
 
 
 
     L i n e   8 2 0   [ m a t c h :   E p i c o r ] : 
 
         8 1 8 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         8 1 9 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
   > >   8 2 0 :                           L o g : : e r r o r ( ' C O I L   A L L O C A T I O N   R E Q U E S T   C A N C E L   D B   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         8 2 1 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   c a n c e l l i n g   t h i s   c o i l a   a l l o c a t i o n .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         8 2 2 :                   } 
 
 
 
     L i n e   8 3 3   [ m a t c h :   E p i c o r ] : 
 
         8 3 1 :   
 
         8 3 2 :                   $ O H   =   a p p ( O r d e r H e l p e r : : c l a s s ) ; 
 
   > >   8 3 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 3 4 :   
 
         8 3 5 :                   $ A l l o c C a r t - > s e t C a r t R e d i r e c t L o c a t i o n ( u r l ( ) - > c u r r e n t ( ) ) ; 
 
 
 
     L i n e   8 4 0   [ m a t c h :   E p i c o r ] : 
 
         8 3 8 :                   $ P l a n t   =   $ A l l o c C a r t - > g e t P l a n t ( ) ; 
 
         8 3 9 :   
 
   > >   8 4 0 :                   $ J o b   =   $ E p i c o r D B - > g e t J o b ( $ J o b N u m ) [ 0 ] ; 
 
         8 4 1 :   
 
         8 4 2 :                   $ C u s t I D   =   $ J o b [ ' C u s t I D ' ]   .   "   \ n   "   .   $ J o b [ ' C u s t o m e r _ N a m e ' ] ; 
 
 
 
     L i n e   9 2 5   [ m a t c h :   E p i c o r ] : 
 
         9 2 3 :                   $ A l l o c a t i o n I d   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' a l l o c a t i o n _ i d ' ) ; 
 
         9 2 4 :   
 
   > >   9 2 5 :                   i f ( i s _ n u l l ( $ A l l o c a t i o n R e f e r e n c e N u m   =   $ R O A l l o c R e q u e s t R e p o - > g e t S u b m i t t e d R e q u e s t R e f e r e n c e N u m B y Q u e s t U s e r A n d E p i c o r C u s t I D ( $ A l l o c a t i o n I d ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ,   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ) 
 
         9 2 6 :                           r e t u r n   r e d i r e c t ( ) - > a c t i o n ( ' Q u e s t \ I n v e n t o r y C o n t r o l l e r @ g e t I n d e x ' ) ; 
 
         9 2 7 :   
 
 
 
     L i n e   9 3 1   [ m a t c h :   E p i c o r ] : 
 
         9 2 9 :           } 
 
         9 3 0 :   
 
   > >   9 3 1 :           p u b l i c   f u n c t i o n   p o s t C o m p l e t e A l l o c a t i o n ( A l l o c C a r t   $ A l l o c C a r t ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   C o i l A l l o c a t i o n H e l p e r   $ C o i l A l l o c a t i o n H e l p e r ) 
 
         9 3 2 :           { 
 
         9 3 3 :                   i f ( ! $ A l l o c C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   9 6 7   [ m a t c h :   E p i c o r ] : 
 
         9 6 5 :                   / * 
 
         9 6 6 :                   t r y   { 
 
   > >   9 6 7 :                           $ P l a n t U s e r E m a i l s   =   $ E p i c o r D a t a b a s e - > g e t P l a n t U s e r E m a i l A d d r e s s e s ( $ A l l o c C a r t - > g e t P l a n t ( ) ) ; 
 
         9 6 8 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         9 6 9 :                           L o g : : e r r o r ( ' C o u l d   n o t   c o m p l e t e   c o i l   a l l o c a t i o n   b e c a u s e   c o u l d   n o t   g e t   p l a n t   e m a i l s   f o r   ' . $ A l l o c C a r t - > g e t P l a n t ( ) . '   ( ' . $ A l l o c C a r t - > g e t C a r t I D ( ) . ' ) ' ) ; 
 
 
 
     L i n e   1 0 4 2   [ m a t c h :   E p i c o r ] : 
 
         1 0 4 0 :           p r i v a t e   f u n c t i o n   _ _ f e t c h J o b I n f o r m a t i o n F o r H e a d e r ( $ J o b N u m ) 
 
         1 0 4 1 :           { 
 
   > >   1 0 4 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 0 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 4 4 :   
 
 
 
     L i n e   1 0 4 3   [ m a t c h :   E p i c o r ] : 
 
         1 0 4 1 :           { 
 
         1 0 4 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 0 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 4 4 :   
 
         1 0 4 5 :                   $ J o b   =   $ E p i c o r D B - > g e t J o b ( $ J o b N u m ) [ 0 ] ; 
 
 
 
     L i n e   1 0 4 5   [ m a t c h :   E p i c o r ] : 
 
         1 0 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 4 4 :   
 
   > >   1 0 4 5 :                   $ J o b   =   $ E p i c o r D B - > g e t J o b ( $ J o b N u m ) [ 0 ] ; 
 
         1 0 4 6 :                   $ C u s t I D   =   $ J o b [ ' C u s t I D ' ]   .   "   \ n   "   .   $ J o b [ ' C u s t o m e r _ N a m e ' ] ; 
 
         1 0 4 7 :                   / / $ C u s t o m e r N a m e   =   $ J o b [ ' C u s t o m e r _ N a m e ' ] ; 
 
 
 
     L i n e   1 8   [ m a t c h :   E P I C O R ] : 
 
         1 6 :   u s e   K n p \ S n a p p y \ P d f ; 
 
         1 7 :   u s e   I l l u m i n a t e \ S u p p o r t \ F a c a d e s \ N o t i f i c a t i o n ; 
 
   > >   1 8 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         1 9 :   u s e   A p p \ S e r v i c e s \ S e l e c t e d C o m p a n y P r o v i d e r ; 
 
         2 0 :   u s e   S a v v i o r \ D a t a \ D a t a H a n d l e r ; 
 
 
 
     L i n e   2 8   [ m a t c h :   E P I C O R ] : 
 
         2 6 :   u s e   S a v v i o r \ L T a b b y P a g e s \ T a b b y P a g e M a n a g e r ; 
 
         2 7 :   u s e   S a v v i o r \ L T a b b y P a g e s \ T a b b y P a g e ; 
 
   > >   2 8 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         2 9 :   u s e   S a v v i o r \ M e t a d a t a \ F i e l d M e t a d a t a F i e l d ; 
 
         3 0 :   u s e   S a v v i o r \ M e t a d a t a \ M e t a d a t a F a c t o r y ; 
 
 
 
     L i n e   5 4   [ m a t c h :   E P I C O R ] : 
 
         5 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ c u s t o m e r   * / 
 
         5 3 :                   $ c u s t o m e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   5 4 :                   $ c u s t o m e r   =   $ c u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         5 5 :   
 
         5 6 :   
 
 
 
     L i n e   6 1   [ m a t c h :   E P I C O R ] : 
 
         5 9 :                   $ q u e s t _ C o m p a n y R e p o   =   a p p ( q u e s t _ C o m p a n y : : c l a s s ) ; 
 
         6 0 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y   $ q u e s t _ C o m p a n y   * / 
 
   > >   6 1 :                   $ q u e s t _ C o m p a n y   =   $ q u e s t _ C o m p a n y R e p o - > f i n d O n e B y ( [ ' E p i c o r C u s t I D '   = >   $ c u s t o m e r ] ) ; 
 
         6 2 :   
 
         6 3 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r [ ]   $ q u e s t _ C o m p a n y U s e r s   * / 
 
 
 
     L i n e   1 5 1   [ m a t c h :   E P I C O R ] : 
 
         1 4 9 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         1 5 0 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   1 5 1 :                   / /         L o g : : e r r o r ( ' A D D I N G   I T E M   T O   A L L O C A T I O N   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ A l l o c C a r t - > g e t C a r t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         1 5 2 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e r e   w a s   a n   u n e x p e c t e d   e r r o r   s a v i n g   c o m m e n t s ' ] ) ; 
 
         1 5 3 :                   } 
 
 
 
     L i n e   2 1 8   [ m a t c h :   E P I C O R ] : 
 
         2 1 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 1 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   2 1 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 1 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 2 0 :                   / * *   @ v a r   A l l o c C a r t   $ A l l o c C a r t   * / 
 
 
 
     L i n e   2 1 9   [ m a t c h :   E P I C O R ] : 
 
         2 1 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 1 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 1 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 2 0 :                   / * *   @ v a r   A l l o c C a r t   $ A l l o c C a r t   * / 
 
         2 2 1 :                   $ A l l o c C a r t   =   a p p ( A l l o c C a r t : : c l a s s ) ; 
 
 
 
     L i n e   2 2 7   [ m a t c h :   E P I C O R ] : 
 
         2 2 5 :                   $ P l a n t   =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' p l a n t ' ) ) ; 
 
         2 2 6 :   
 
   > >   2 2 7 :                   $ J o b   =   $ E p i c o r D B - > g e t J o b ( $ J o b N u m ) [ 0 ] ; 
 
         2 2 8 :   
 
         2 2 9 :                   $ C u s t I D   =   $ J o b [ ' C u s t I D ' ]   .   "   \ n   "   .   $ J o b [ ' C u s t o m e r _ N a m e ' ] ; 
 
 
 
     L i n e   3 3 6   [ m a t c h :   E P I C O R ] : 
 
         3 3 4 :           p r o t e c t e d   f u n c t i o n   g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( ) 
 
         3 3 5 :           { 
 
   > >   3 3 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 3 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 3 8 :   
 
 
 
     L i n e   3 3 7   [ m a t c h :   E P I C O R ] : 
 
         3 3 5 :           { 
 
         3 3 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 3 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 3 8 :   
 
         3 3 9 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   3 4 1   [ m a t c h :   E P I C O R ] : 
 
         3 3 9 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         3 4 0 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   3 4 1 :                   $ c o m p a n y   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         3 4 2 :   
 
         3 4 3 :                   $ O r d e r D a t a   =   c o l l e c t ( 
 
 
 
     L i n e   3 4 4   [ m a t c h :   E P I C O R ] : 
 
         3 4 2 :   
 
         3 4 3 :                   $ O r d e r D a t a   =   c o l l e c t ( 
 
   > >   3 4 4 :                           $ E p i c o r D B - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ c o m p a n y ) 
 
         3 4 5 :                   ) ; 
 
         3 4 6 :   
 
 
 
     L i n e   3 8 2   [ m a t c h :   E P I C O R ] : 
 
         3 8 0 :           p r i v a t e   f u n c t i o n   g e t O p e n O r d e r s M e t a d a t a ( ) 
 
         3 8 1 :           { 
 
   > >   3 8 2 :                   $ M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ O p e n O r d e r s ' ) ;   / /   p a s s   t h e   n a m e   o f   t h e   v i e w   i n   E p i c o r   g i v i n g   y o u   t h e   d a t a ,   o t h e r w i s e   s o m e   u n i q u e   n a m e   f o r   t h i s   d a t a   s t r u c t u r e 
 
         3 8 3 :   
 
         3 8 4 :                   $ P h o n y I D   =   $ M e t a d a t a - > a d d N e w F i e l d ( ' P h o n y I D ' ,   F i e l d M e t a d a t a F i e l d : : c l a s s ) ;   / /   n e e d e d   t o   s a t i s f y   n e w   g r i d   r e q u i r e m e n t   o f   h a v i n g   a n   i d e n t i f i e r   f i e l d   w h e n   t h e r e   a r e   l i n k s   ( f o r   o u r   p u r p o s e s ,   n o t   u s e d ,   s o   w e   a r e n ' t   p r o v i d i n g   v a l u e s   f o r   i t ! ) 
 
 
 
     L i n e   6 2 7   [ m a t c h :   E P I C O R ] : 
 
         6 2 5 :                           e l s e i f ( $ A l l o c C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ A l l o c C a r t - > i s D e t a i l I n C a r t ( $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   ( i n t ) $ O n H a n d Q u a n t i t y ) ) 
 
         6 2 6 :                                   r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   c o i l   a l l o c a t i o n ' ,   ' a c t i o n '   = >   ' i n _ c a r t ' ] ) ; 
 
   > >   6 2 7 :                           e l s e i f ( $ R O A l l o c a t i o n R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) ) 
 
         6 2 8 :                                   r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   p a r t   o f   a n o t h e r   c o i l   a l l o c a t i o n   f o r   t h i s   c u s t o m e r ' ,   ' a c t i o n '   = >   ' a n o t h e r _ c a r t ' ] ) ; 
 
         6 2 9 :   
 
 
 
     L i n e   6 9 0   [ m a t c h :   E P I C O R ] : 
 
         6 8 8 :                   e l s e i f ( $ A l l o c C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ A l l o c C a r t - > i s D e t a i l I n C a r t ( $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   ( i n t ) $ O n H a n d Q u a n t i t y ) ) 
 
         6 8 9 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   c o i l   a l l o c a t i o n ' ,   ' a c t i o n '   = >   ' i n _ c a r t ' ] ) ; 
 
   > >   6 9 0 :                   e l s e i f ( $ R O A l l o c a t i o n R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) ) 
 
         6 9 1 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h i s   i t e m   i s   a l r e a d y   p a r t   o f   a n o t h e r   c o i l   a l l o c a t i o n   f o r   t h i s   c u s t o m e r ' ,   ' a c t i o n '   = >   ' a n o t h e r _ c a r t ' ] ) ; 
 
         6 9 2 :   
 
 
 
     L i n e   7 1 7   [ m a t c h :   E P I C O R ] : 
 
         7 1 5 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         7 1 6 :                   }   c a t c h   ( E x c e p t i o n   $ e )   { 
 
   > >   7 1 7 :                           L o g : : e r r o r ( ' A D D I N G   I T E M   T O   A L L O C A T I O N   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ A l l o c C a r t - > g e t C a r t I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         7 1 8 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   0 ,   ' r e a s o n '   = >   ' T h e r e   w a s   a n   u n e x p e c t e d   e r r o r   a d d i n g   t h i s   i t e m   t o   y o u r   c o i l   a l l o c a t i o n .     P l e a s e   t r y   a g a i n . ' ] ) ; 
 
         7 1 9 :                   } 
 
 
 
     L i n e   7 6 2   [ m a t c h :   E P I C O R ] : 
 
         7 6 0 :   
 
         7 6 1 :                   i f ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d J o b N u m ( 
 
   > >   7 6 2 :                           $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) , 
 
         7 6 3 :                           r e q u e s t ( ) - > P l a n t , 
 
         7 6 4 :                           r e q u e s t ( ) - > J o b N u m ) 
 
 
 
     L i n e   7 7 5   [ m a t c h :   E P I C O R ] : 
 
         7 7 3 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A   c o i l   a l l o c a t i o n   c a n n o t   b e   s t a r t e d   f o r   t h i s   c u s t o m e r   a s   t h e r e   i s   a l r e a d y   o n e   i n   p r o g r e s s ' ) ; 
 
         7 7 4 :   
 
   > >   7 7 5 :                   i f ( i s _ n u l l ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) 
 
         7 7 6 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' P l e a s e   s e l e c t   a   c u s t o m e r   b e f o r e   s t a r t i n g   a   c o i l   a l l o c a t i o n ' ) ; 
 
         7 7 7 :   
 
 
 
     L i n e   7 8 4   [ m a t c h :   E P I C O R ] : 
 
         7 8 2 :                   t r y   { 
 
         7 8 3 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
   > >   7 8 4 :                                   ' q u e s t _ C o m p a n y '   = >   [ ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) - > g e t I D ( ) ] , 
 
         7 8 5 :                                   ' q u e s t _ U s e r '   = >   [ ' I D '   = >   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ] , 
 
         7 8 6 :                                   ' P l a n t '   = >   r e q u e s t ( ) - > P l a n t , 
 
 
 
     L i n e   8 0 2   [ m a t c h :   E P I C O R ] : 
 
         8 0 0 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         8 0 1 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
   > >   8 0 2 :                           L o g : : e r r o r ( ' A L L O C A T I O N   R E Q U E S T   S T A R T   D B   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         8 0 3 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   s t a r t i n g   t h i s   c o i l   a l l o c a t i o n     P l e a s e   t r y   a g a i n . ' ) ; 
 
         8 0 4 :                   } 
 
 
 
     L i n e   8 2 0   [ m a t c h :   E P I C O R ] : 
 
         8 1 8 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         8 1 9 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
   > >   8 2 0 :                           L o g : : e r r o r ( ' C O I L   A L L O C A T I O N   R E Q U E S T   C A N C E L   D B   ( ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' , ' . $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) . ' ) :   ' . $ e - > g e t M e s s a g e ( ) ) ; 
 
         8 2 1 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h E r r o r s ( ' A n   u n e x p e c t e d   e r r o r   w a s   e n c o u n t e r e d   c a n c e l l i n g   t h i s   c o i l a   a l l o c a t i o n .     P l e a s e   t r y   a g a i n . ' ) ; 
 
         8 2 2 :                   } 
 
 
 
     L i n e   8 3 3   [ m a t c h :   E P I C O R ] : 
 
         8 3 1 :   
 
         8 3 2 :                   $ O H   =   a p p ( O r d e r H e l p e r : : c l a s s ) ; 
 
   > >   8 3 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 3 4 :   
 
         8 3 5 :                   $ A l l o c C a r t - > s e t C a r t R e d i r e c t L o c a t i o n ( u r l ( ) - > c u r r e n t ( ) ) ; 
 
 
 
     L i n e   8 4 0   [ m a t c h :   E P I C O R ] : 
 
         8 3 8 :                   $ P l a n t   =   $ A l l o c C a r t - > g e t P l a n t ( ) ; 
 
         8 3 9 :   
 
   > >   8 4 0 :                   $ J o b   =   $ E p i c o r D B - > g e t J o b ( $ J o b N u m ) [ 0 ] ; 
 
         8 4 1 :   
 
         8 4 2 :                   $ C u s t I D   =   $ J o b [ ' C u s t I D ' ]   .   "   \ n   "   .   $ J o b [ ' C u s t o m e r _ N a m e ' ] ; 
 
 
 
     L i n e   9 2 5   [ m a t c h :   E P I C O R ] : 
 
         9 2 3 :                   $ A l l o c a t i o n I d   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' a l l o c a t i o n _ i d ' ) ; 
 
         9 2 4 :   
 
   > >   9 2 5 :                   i f ( i s _ n u l l ( $ A l l o c a t i o n R e f e r e n c e N u m   =   $ R O A l l o c R e q u e s t R e p o - > g e t S u b m i t t e d R e q u e s t R e f e r e n c e N u m B y Q u e s t U s e r A n d E p i c o r C u s t I D ( $ A l l o c a t i o n I d ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ,   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ) 
 
         9 2 6 :                           r e t u r n   r e d i r e c t ( ) - > a c t i o n ( ' Q u e s t \ I n v e n t o r y C o n t r o l l e r @ g e t I n d e x ' ) ; 
 
         9 2 7 :   
 
 
 
     L i n e   9 3 1   [ m a t c h :   E P I C O R ] : 
 
         9 2 9 :           } 
 
         9 3 0 :   
 
   > >   9 3 1 :           p u b l i c   f u n c t i o n   p o s t C o m p l e t e A l l o c a t i o n ( A l l o c C a r t   $ A l l o c C a r t ,   Q u e s t P a g e V a l u e s   $ Q u e s t P a g e V a l u e s ,   q u e s t _ E m a i l E v e n t R e p o   $ R O E m a i l E v e n t R e p o ,   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   M e t a d a t a F a c t o r y   $ M e t a d a t a F a c t o r y ,   D a t a H a n d l e r   $ D a t a H a n d l e r ,   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r ,   C o i l A l l o c a t i o n H e l p e r   $ C o i l A l l o c a t i o n H e l p e r ) 
 
         9 3 2 :           { 
 
         9 3 3 :                   i f ( ! $ A l l o c C a r t - > g e t I s C a r t O p e n ( ) ) 
 
 
 
     L i n e   9 6 7   [ m a t c h :   E P I C O R ] : 
 
         9 6 5 :                   / * 
 
         9 6 6 :                   t r y   { 
 
   > >   9 6 7 :                           $ P l a n t U s e r E m a i l s   =   $ E p i c o r D a t a b a s e - > g e t P l a n t U s e r E m a i l A d d r e s s e s ( $ A l l o c C a r t - > g e t P l a n t ( ) ) ; 
 
         9 6 8 :                   }   c a t c h ( E x c e p t i o n   $ e )   { 
 
         9 6 9 :                           L o g : : e r r o r ( ' C o u l d   n o t   c o m p l e t e   c o i l   a l l o c a t i o n   b e c a u s e   c o u l d   n o t   g e t   p l a n t   e m a i l s   f o r   ' . $ A l l o c C a r t - > g e t P l a n t ( ) . '   ( ' . $ A l l o c C a r t - > g e t C a r t I D ( ) . ' ) ' ) ; 
 
 
 
     L i n e   1 0 4 2   [ m a t c h :   E P I C O R ] : 
 
         1 0 4 0 :           p r i v a t e   f u n c t i o n   _ _ f e t c h J o b I n f o r m a t i o n F o r H e a d e r ( $ J o b N u m ) 
 
         1 0 4 1 :           { 
 
   > >   1 0 4 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 0 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 4 4 :   
 
 
 
     L i n e   1 0 4 3   [ m a t c h :   E P I C O R ] : 
 
         1 0 4 1 :           { 
 
         1 0 4 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 0 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 4 4 :   
 
         1 0 4 5 :                   $ J o b   =   $ E p i c o r D B - > g e t J o b ( $ J o b N u m ) [ 0 ] ; 
 
 
 
     L i n e   1 0 4 5   [ m a t c h :   E P I C O R ] : 
 
         1 0 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 4 4 :   
 
   > >   1 0 4 5 :                   $ J o b   =   $ E p i c o r D B - > g e t J o b ( $ J o b N u m ) [ 0 ] ; 
 
         1 0 4 6 :                   $ C u s t I D   =   $ J o b [ ' C u s t I D ' ]   .   "   \ n   "   .   $ J o b [ ' C u s t o m e r _ N a m e ' ] ; 
 
         1 0 4 7 :                   / / $ C u s t o m e r N a m e   =   $ J o b [ ' C u s t o m e r _ N a m e ' ] ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ P a c k i n g S l i p U p l o a d C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   e p i c o r ] : 
 
         1 :   < ? p h p   n a m e s p a c e   A p p \ H t t p \ C o n t r o l l e r s \ Q u e s t ; 
 
         2 :   
 
   > >   3 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         4 :   u s e   A p p \ S e r v i c e s \ P a c k i n g S l i p H e l p e r ; 
 
         5 :   u s e   I l l u m i n a t e \ H t t p \ R e q u e s t ; 
 
 
 
     L i n e   2 3   [ m a t c h :   e p i c o r ] : 
 
         2 1 :   
 
         2 2 :   
 
   > >   2 3 :           p u b l i c   f u n c t i o n   m a n a g e ( E p i c o r D a t a b a s e   $ e p i c o r ) 
 
         2 4 :           { 
 
         2 5 :                 i f   ( i s s e t ( $ _ G E T [ " r e m o v e " ] ) ) 
 
 
 
     L i n e   5 0   [ m a t c h :   e p i c o r ] : 
 
         4 8 :           } 
 
         4 9 :   
 
   > >   5 0 :           p u b l i c   f u n c t i o n   s t e p 2 ( E p i c o r D a t a b a s e   $ e p i c c o r ,   P a c k i n g S l i p H e l p e r   $ P a c k i n g S l i p H e l p e r ) 
 
         5 1 :           { 
 
         5 2 :   
 
 
 
     L i n e   7 6   [ m a t c h :   e p i c o r ] : 
 
         7 4 :   
 
         7 5 :                           e l s e i f   ( $ e p i c c o r - > D o e s P a c k i n g S l i p E x i s t ( s t r _ r e p l a c e ( " . " . $ f i l e - > g e t E x t e n s i o n ( ) , ' ' , $ f i l e - > g e t F i l e n a m e ( ) ) )   = =   f a l s e ) 
 
   > >   7 6 :                                   $ u p l o a d e d F i l e s [ $ f i l e - > g e t F i l e n a m e ( ) ] [ " e r r o r " ] = ' P a c k i n g   S l i p   ' . s t r _ r e p l a c e ( " . " . $ f i l e - > g e t E x t e n s i o n ( ) , ' ' , $ f i l e - > g e t F i l e n a m e ( ) ) . "   i s   n o t   f o u n d   i n   E p i c o r e " ; 
 
         7 7 :   
 
         7 8 :                           e l s e 
 
 
 
     L i n e   3   [ m a t c h :   E p i c o r ] : 
 
         1 :   < ? p h p   n a m e s p a c e   A p p \ H t t p \ C o n t r o l l e r s \ Q u e s t ; 
 
         2 :   
 
   > >   3 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         4 :   u s e   A p p \ S e r v i c e s \ P a c k i n g S l i p H e l p e r ; 
 
         5 :   u s e   I l l u m i n a t e \ H t t p \ R e q u e s t ; 
 
 
 
     L i n e   2 3   [ m a t c h :   E p i c o r ] : 
 
         2 1 :   
 
         2 2 :   
 
   > >   2 3 :           p u b l i c   f u n c t i o n   m a n a g e ( E p i c o r D a t a b a s e   $ e p i c o r ) 
 
         2 4 :           { 
 
         2 5 :                 i f   ( i s s e t ( $ _ G E T [ " r e m o v e " ] ) ) 
 
 
 
     L i n e   5 0   [ m a t c h :   E p i c o r ] : 
 
         4 8 :           } 
 
         4 9 :   
 
   > >   5 0 :           p u b l i c   f u n c t i o n   s t e p 2 ( E p i c o r D a t a b a s e   $ e p i c c o r ,   P a c k i n g S l i p H e l p e r   $ P a c k i n g S l i p H e l p e r ) 
 
         5 1 :           { 
 
         5 2 :   
 
 
 
     L i n e   7 6   [ m a t c h :   E p i c o r ] : 
 
         7 4 :   
 
         7 5 :                           e l s e i f   ( $ e p i c c o r - > D o e s P a c k i n g S l i p E x i s t ( s t r _ r e p l a c e ( " . " . $ f i l e - > g e t E x t e n s i o n ( ) , ' ' , $ f i l e - > g e t F i l e n a m e ( ) ) )   = =   f a l s e ) 
 
   > >   7 6 :                                   $ u p l o a d e d F i l e s [ $ f i l e - > g e t F i l e n a m e ( ) ] [ " e r r o r " ] = ' P a c k i n g   S l i p   ' . s t r _ r e p l a c e ( " . " . $ f i l e - > g e t E x t e n s i o n ( ) , ' ' , $ f i l e - > g e t F i l e n a m e ( ) ) . "   i s   n o t   f o u n d   i n   E p i c o r e " ; 
 
         7 7 :   
 
         7 8 :                           e l s e 
 
 
 
     L i n e   3   [ m a t c h :   E P I C O R ] : 
 
         1 :   < ? p h p   n a m e s p a c e   A p p \ H t t p \ C o n t r o l l e r s \ Q u e s t ; 
 
         2 :   
 
   > >   3 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         4 :   u s e   A p p \ S e r v i c e s \ P a c k i n g S l i p H e l p e r ; 
 
         5 :   u s e   I l l u m i n a t e \ H t t p \ R e q u e s t ; 
 
 
 
     L i n e   2 3   [ m a t c h :   E P I C O R ] : 
 
         2 1 :   
 
         2 2 :   
 
   > >   2 3 :           p u b l i c   f u n c t i o n   m a n a g e ( E p i c o r D a t a b a s e   $ e p i c o r ) 
 
         2 4 :           { 
 
         2 5 :                 i f   ( i s s e t ( $ _ G E T [ " r e m o v e " ] ) ) 
 
 
 
     L i n e   5 0   [ m a t c h :   E P I C O R ] : 
 
         4 8 :           } 
 
         4 9 :   
 
   > >   5 0 :           p u b l i c   f u n c t i o n   s t e p 2 ( E p i c o r D a t a b a s e   $ e p i c c o r ,   P a c k i n g S l i p H e l p e r   $ P a c k i n g S l i p H e l p e r ) 
 
         5 1 :           { 
 
         5 2 :   
 
 
 
     L i n e   7 6   [ m a t c h :   E P I C O R ] : 
 
         7 4 :   
 
         7 5 :                           e l s e i f   ( $ e p i c c o r - > D o e s P a c k i n g S l i p E x i s t ( s t r _ r e p l a c e ( " . " . $ f i l e - > g e t E x t e n s i o n ( ) , ' ' , $ f i l e - > g e t F i l e n a m e ( ) ) )   = =   f a l s e ) 
 
   > >   7 6 :                                   $ u p l o a d e d F i l e s [ $ f i l e - > g e t F i l e n a m e ( ) ] [ " e r r o r " ] = ' P a c k i n g   S l i p   ' . s t r _ r e p l a c e ( " . " . $ f i l e - > g e t E x t e n s i o n ( ) , ' ' , $ f i l e - > g e t F i l e n a m e ( ) ) . "   i s   n o t   f o u n d   i n   E p i c o r e " ; 
 
         7 7 :   
 
         7 8 :                           e l s e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ P a i n t S c h e d u l e C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 2 3   [ m a t c h :   F R O M   ] : 
 
         2 2 1 :                                           ' ' , 
 
         2 2 2 :                                           ' ' , 
 
   > >   2 2 3 :                                           / / D o n ' t   c h a n g e   t h i s   f r o m   b e i n g   " S t a r t   L i n e " ,   l o t s   o f   f r o n t   e n d   l o g i c   i s   l o o k i n g   a t   t h i s 
 
         2 2 4 :                                           ' S t a r t   L i n e ' , 
 
         2 2 5 :                                           ' ' , 
 
 
 
     L i n e   8   [ m a t c h :   e p i c o r ] : 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ p a i n t _ P l a n t ; 
 
         7 :   u s e   A p p \ M o d e l \ R e p o s \ p a i n t _ S c h e d u l e ; 
 
   > >   8 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         9 :   u s e   A p p \ S e r v i c e s \ P a i n t S c h e d u l e S e r v i c e ; 
 
         1 0 :   u s e   P h p O f f i c e \ P h p S p r e a d s h e e t \ S p r e a d s h e e t ; 
 
 
 
     L i n e   6 7   [ m a t c h :   e p i c o r ] : 
 
         6 5 :           } 
 
         6 6 :   
 
   > >   6 7 :           p u b l i c   f u n c t i o n   p o s t E n t r y ( E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   p a i n t _ S c h e d u l e   $ R O P a i n t S c h e d u l e R e p o ,   p a i n t _ L i n e   $ R O P a i n t L i n e R e p o ,   p a i n t _ P l a n t   $ R O P a i n t P l a n t R e p o ,   U s e r P e r m i s s i o n C h e c k e r   $ U s e r P e r m i s s i o n s ) { 
 
         6 8 :                   $ P l a n t C o d e   =   e x p l o d e ( ' - ' ,   r e q u e s t ( ) - > i n p u t ( ' p r o d _ c o d e ' ) ) [ 0 ] ; 
 
         6 9 :   
 
 
 
     L i n e   7 3   [ m a t c h :   e p i c o r ] : 
 
         7 1 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t   $ P a i n t P l a n t   * / 
 
         7 2 :                   f o r e a c h   ( a u t h ( ) - > u s e r ( ) - > g e t Q u e s t U s e r ( ) - > g e t P a i n t P l a n t ( )   A S   $ P a i n t P l a n t ) 
 
   > >   7 3 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ]   =   $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ; 
 
         7 4 :   
 
         7 5 :                   / * *   @ v a r   p a i n t _ P l a n t L i n e   $ P a i n t P l a n t L i n e   * / 
 
 
 
     L i n e   7 7   [ m a t c h :   e p i c o r ] : 
 
         7 5 :                   / * *   @ v a r   p a i n t _ P l a n t L i n e   $ P a i n t P l a n t L i n e   * / 
 
         7 6 :                   f o r e a c h ( a u t h ( ) - > u s e r ( ) - > g e t Q u e s t U s e r ( ) - > g e t P a i n t P l a n t L i n e ( )   A S   $ P a i n t P l a n t L i n e ) 
 
   > >   7 7 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t L i n e - > g e t P a i n t P l a n t ( ) - > g e t E p i c o r K e y ( ) . " - " . $ P a i n t P l a n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ]   =   t r u e ; 
 
         7 8 :                   / / p r o d _ c o d e 
 
         7 9 :   
 
 
 
     L i n e   9 5   [ m a t c h :   e p i c o r ] : 
 
         9 3 :                                                   $ e r r o r s [ ]   =   ' R u n   S e q u e n c e   f o r   J o b   '   .   $ J o b N u m   .   '   i s   m i s s i n g ' ; 
 
         9 4 :   
 
   > >   9 5 :                                           $ J o b s   =   $ E p i c o r D a t a b a s e - > g e t J o b ( $ J o b N u m ) ; 
 
         9 6 :                                           $ C l o s e d J o b s   =   $ E p i c o r D a t a b a s e - > g e t C l o s e d J o b ( $ J o b N u m ) ; 
 
         9 7 :   
 
 
 
     L i n e   9 6   [ m a t c h :   e p i c o r ] : 
 
         9 4 :   
 
         9 5 :                                           $ J o b s   =   $ E p i c o r D a t a b a s e - > g e t J o b ( $ J o b N u m ) ; 
 
   > >   9 6 :                                           $ C l o s e d J o b s   =   $ E p i c o r D a t a b a s e - > g e t C l o s e d J o b ( $ J o b N u m ) ; 
 
         9 7 :   
 
         9 8 :                                           i f ( c o u n t ( $ C l o s e d J o b s )   >   0 ) { 
 
 
 
     L i n e   1 2 2   [ m a t c h :   e p i c o r ] : 
 
         1 2 0 :                                           i f ( e x p l o d e ( ' - ' ,   $ J o b [ ' L i n e C o d e ' ] ) [ 0 ]   ! =   e x p l o d e ( ' - ' ,   r e q u e s t ( ) - > i n p u t ( ' p r o d _ c o d e ' ) ) [ 0 ] ) { 
 
         1 2 1 :                                                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t   $ P l a n t E n t i t y   * / 
 
   > >   1 2 2 :                                                   $ P l a n t E n t i t y   =   $ R O P a i n t P l a n t R e p o - > f i n d O n e B y ( [ ' E p i c o r K e y '   = >   e x p l o d e ( ' - ' ,   $ J o b [ ' L i n e C o d e ' ] ) [ 0 ] ] ) ; 
 
         1 2 3 :   
 
         1 2 4 :                                                   $ e r r o r s [ ]   =   ' J o b   '   .   $ J o b N u m   .   '   i s   f o r   a   d i f f e r e n t   p l a n t   ( '   .   $ P l a n t E n t i t y - > g e t N a m e ( )   .   ' ) ' ; 
 
 
 
     L i n e   1 2 9   [ m a t c h :   e p i c o r ] : 
 
         1 2 7 :   
 
         1 2 8 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ L i n e   $ L i n e E n t i t y   * / 
 
   > >   1 2 9 :                                           $ L i n e E n t i t y   =   $ R O P a i n t L i n e R e p o - > f i n d O n e B y ( [ ' E p i c o r K e y '   = >   e x p l o d e ( ' - ' ,   r e q u e s t ( ) - > i n p u t ( ' p r o d _ c o d e ' ) ) [ 1 ] ] ) ; 
 
         1 3 0 :                                           i f ( $ J o b [ ' L i n e T y p e ' ]   ! =   $ L i n e E n t i t y - > g e t P a i n t L i n e T y p e ( ) - > g e t C o d i n g K e y ( ) ) { 
 
         1 3 1 :                                                   $ e r r o r s [ ]   =   ' J o b   '   .   $ J o b N u m   .   '   i s   a   '   .   $ J o b [ ' L i n e T y p e ' ]   .   '   J o b ' ; 
 
 
 
     L i n e   2 5 8   [ m a t c h :   e p i c o r ] : 
 
         2 5 6 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t   $ P a i n t P l a n t   * / 
 
         2 5 7 :                   f o r e a c h   ( a u t h ( ) - > u s e r ( ) - > g e t Q u e s t U s e r ( ) - > g e t P a i n t P l a n t ( )   A S   $ P a i n t P l a n t ) 
 
   > >   2 5 8 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ]   =   $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ; 
 
         2 5 9 :   
 
         2 6 0 :   
 
 
 
     L i n e   2 6 5   [ m a t c h :   e p i c o r ] : 
 
         2 6 3 :                   / * *   @ v a r   p a i n t _ P l a n t L i n e   $ P a i n t P l a n t L i n e   * / 
 
         2 6 4 :                   f o r e a c h ( a u t h ( ) - > u s e r ( ) - > g e t Q u e s t U s e r ( ) - > g e t P a i n t P l a n t L i n e ( )   A S   $ P a i n t P l a n t L i n e ) 
 
   > >   2 6 5 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t L i n e - > g e t P a i n t P l a n t ( ) - > g e t E p i c o r K e y ( ) . " - " . $ P a i n t P l a n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ]   =   t r u e ; 
 
         2 6 6 :                   / / p r o d _ c o d e 
 
         2 6 7 :   
 
 
 
     L i n e   3 2 2   [ m a t c h :   e p i c o r ] : 
 
         3 2 0 :           } 
 
         3 2 1 :   
 
   > >   3 2 2 :           p u b l i c   f u n c t i o n   g e t C o v e r P a g e ( p a i n t _ S c h e d u l e   $ R O P a i n t S c h e d u l e R e p o ,   E p i c o r D a t a b a s e   $ E p i c o r e D a t a b a s e ) 
 
         3 2 3 :           { 
 
         3 2 4 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ S c h e d u l e   $ S t a r t J o b   * / 
 
 
 
     L i n e   3 5 3   [ m a t c h :   e p i c o r ] : 
 
         3 5 1 :   
 
         3 5 2 :                   f o r e a c h   ( $ J o b s   A S   $ K e y   = >   $ J o b ) { 
 
   > >   3 5 3 :                           $ j o b T r a v e l e r D a t a   =   $ E p i c o r e D a t a b a s e - > g e t J o b T r a v e l e r ( $ J o b [ ' J o b I D ' ] ) ; 
 
         3 5 4 :                           $ R a w M a t e r i a l P a r t N u m b e r   =   $ R a w M a t e r i a l D e s c r i p t i o n   =   $ R a w M a t e r i a l Q t y   =   ' ' ; 
 
         3 5 5 :                           i f ( i s _ a r r a y ( $ j o b T r a v e l e r D a t a ) ) { 
 
 
 
     L i n e   3 9 7   [ m a t c h :   e p i c o r ] : 
 
         3 9 5 :   
 
         3 9 6 :   
 
   > >   3 9 7 :                           $ j o b T o t a l s R e s u l t   =   $ E p i c o r e D a t a b a s e - > g e t T o t a l C h a r g e s ( $ j o b A r ) ; 
 
         3 9 8 :                           $ j o b T o t a l s   =   $ j o b T o t a l s R e s u l t [ ' j o b s ' ] ; 
 
         3 9 9 :                           $ g r a n d T o t a l   =   $ j o b T o t a l s R e s u l t [ ' t o t a l ' ] ; 
 
 
 
     L i n e   8   [ m a t c h :   E p i c o r ] : 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ p a i n t _ P l a n t ; 
 
         7 :   u s e   A p p \ M o d e l \ R e p o s \ p a i n t _ S c h e d u l e ; 
 
   > >   8 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         9 :   u s e   A p p \ S e r v i c e s \ P a i n t S c h e d u l e S e r v i c e ; 
 
         1 0 :   u s e   P h p O f f i c e \ P h p S p r e a d s h e e t \ S p r e a d s h e e t ; 
 
 
 
     L i n e   6 7   [ m a t c h :   E p i c o r ] : 
 
         6 5 :           } 
 
         6 6 :   
 
   > >   6 7 :           p u b l i c   f u n c t i o n   p o s t E n t r y ( E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   p a i n t _ S c h e d u l e   $ R O P a i n t S c h e d u l e R e p o ,   p a i n t _ L i n e   $ R O P a i n t L i n e R e p o ,   p a i n t _ P l a n t   $ R O P a i n t P l a n t R e p o ,   U s e r P e r m i s s i o n C h e c k e r   $ U s e r P e r m i s s i o n s ) { 
 
         6 8 :                   $ P l a n t C o d e   =   e x p l o d e ( ' - ' ,   r e q u e s t ( ) - > i n p u t ( ' p r o d _ c o d e ' ) ) [ 0 ] ; 
 
         6 9 :   
 
 
 
     L i n e   7 3   [ m a t c h :   E p i c o r ] : 
 
         7 1 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t   $ P a i n t P l a n t   * / 
 
         7 2 :                   f o r e a c h   ( a u t h ( ) - > u s e r ( ) - > g e t Q u e s t U s e r ( ) - > g e t P a i n t P l a n t ( )   A S   $ P a i n t P l a n t ) 
 
   > >   7 3 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ]   =   $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ; 
 
         7 4 :   
 
         7 5 :                   / * *   @ v a r   p a i n t _ P l a n t L i n e   $ P a i n t P l a n t L i n e   * / 
 
 
 
     L i n e   7 7   [ m a t c h :   E p i c o r ] : 
 
         7 5 :                   / * *   @ v a r   p a i n t _ P l a n t L i n e   $ P a i n t P l a n t L i n e   * / 
 
         7 6 :                   f o r e a c h ( a u t h ( ) - > u s e r ( ) - > g e t Q u e s t U s e r ( ) - > g e t P a i n t P l a n t L i n e ( )   A S   $ P a i n t P l a n t L i n e ) 
 
   > >   7 7 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t L i n e - > g e t P a i n t P l a n t ( ) - > g e t E p i c o r K e y ( ) . " - " . $ P a i n t P l a n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ]   =   t r u e ; 
 
         7 8 :                   / / p r o d _ c o d e 
 
         7 9 :   
 
 
 
     L i n e   9 5   [ m a t c h :   E p i c o r ] : 
 
         9 3 :                                                   $ e r r o r s [ ]   =   ' R u n   S e q u e n c e   f o r   J o b   '   .   $ J o b N u m   .   '   i s   m i s s i n g ' ; 
 
         9 4 :   
 
   > >   9 5 :                                           $ J o b s   =   $ E p i c o r D a t a b a s e - > g e t J o b ( $ J o b N u m ) ; 
 
         9 6 :                                           $ C l o s e d J o b s   =   $ E p i c o r D a t a b a s e - > g e t C l o s e d J o b ( $ J o b N u m ) ; 
 
         9 7 :   
 
 
 
     L i n e   9 6   [ m a t c h :   E p i c o r ] : 
 
         9 4 :   
 
         9 5 :                                           $ J o b s   =   $ E p i c o r D a t a b a s e - > g e t J o b ( $ J o b N u m ) ; 
 
   > >   9 6 :                                           $ C l o s e d J o b s   =   $ E p i c o r D a t a b a s e - > g e t C l o s e d J o b ( $ J o b N u m ) ; 
 
         9 7 :   
 
         9 8 :                                           i f ( c o u n t ( $ C l o s e d J o b s )   >   0 ) { 
 
 
 
     L i n e   1 2 2   [ m a t c h :   E p i c o r ] : 
 
         1 2 0 :                                           i f ( e x p l o d e ( ' - ' ,   $ J o b [ ' L i n e C o d e ' ] ) [ 0 ]   ! =   e x p l o d e ( ' - ' ,   r e q u e s t ( ) - > i n p u t ( ' p r o d _ c o d e ' ) ) [ 0 ] ) { 
 
         1 2 1 :                                                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t   $ P l a n t E n t i t y   * / 
 
   > >   1 2 2 :                                                   $ P l a n t E n t i t y   =   $ R O P a i n t P l a n t R e p o - > f i n d O n e B y ( [ ' E p i c o r K e y '   = >   e x p l o d e ( ' - ' ,   $ J o b [ ' L i n e C o d e ' ] ) [ 0 ] ] ) ; 
 
         1 2 3 :   
 
         1 2 4 :                                                   $ e r r o r s [ ]   =   ' J o b   '   .   $ J o b N u m   .   '   i s   f o r   a   d i f f e r e n t   p l a n t   ( '   .   $ P l a n t E n t i t y - > g e t N a m e ( )   .   ' ) ' ; 
 
 
 
     L i n e   1 2 9   [ m a t c h :   E p i c o r ] : 
 
         1 2 7 :   
 
         1 2 8 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ L i n e   $ L i n e E n t i t y   * / 
 
   > >   1 2 9 :                                           $ L i n e E n t i t y   =   $ R O P a i n t L i n e R e p o - > f i n d O n e B y ( [ ' E p i c o r K e y '   = >   e x p l o d e ( ' - ' ,   r e q u e s t ( ) - > i n p u t ( ' p r o d _ c o d e ' ) ) [ 1 ] ] ) ; 
 
         1 3 0 :                                           i f ( $ J o b [ ' L i n e T y p e ' ]   ! =   $ L i n e E n t i t y - > g e t P a i n t L i n e T y p e ( ) - > g e t C o d i n g K e y ( ) ) { 
 
         1 3 1 :                                                   $ e r r o r s [ ]   =   ' J o b   '   .   $ J o b N u m   .   '   i s   a   '   .   $ J o b [ ' L i n e T y p e ' ]   .   '   J o b ' ; 
 
 
 
     L i n e   2 5 8   [ m a t c h :   E p i c o r ] : 
 
         2 5 6 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t   $ P a i n t P l a n t   * / 
 
         2 5 7 :                   f o r e a c h   ( a u t h ( ) - > u s e r ( ) - > g e t Q u e s t U s e r ( ) - > g e t P a i n t P l a n t ( )   A S   $ P a i n t P l a n t ) 
 
   > >   2 5 8 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ]   =   $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ; 
 
         2 5 9 :   
 
         2 6 0 :   
 
 
 
     L i n e   2 6 5   [ m a t c h :   E p i c o r ] : 
 
         2 6 3 :                   / * *   @ v a r   p a i n t _ P l a n t L i n e   $ P a i n t P l a n t L i n e   * / 
 
         2 6 4 :                   f o r e a c h ( a u t h ( ) - > u s e r ( ) - > g e t Q u e s t U s e r ( ) - > g e t P a i n t P l a n t L i n e ( )   A S   $ P a i n t P l a n t L i n e ) 
 
   > >   2 6 5 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t L i n e - > g e t P a i n t P l a n t ( ) - > g e t E p i c o r K e y ( ) . " - " . $ P a i n t P l a n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ]   =   t r u e ; 
 
         2 6 6 :                   / / p r o d _ c o d e 
 
         2 6 7 :   
 
 
 
     L i n e   3 2 2   [ m a t c h :   E p i c o r ] : 
 
         3 2 0 :           } 
 
         3 2 1 :   
 
   > >   3 2 2 :           p u b l i c   f u n c t i o n   g e t C o v e r P a g e ( p a i n t _ S c h e d u l e   $ R O P a i n t S c h e d u l e R e p o ,   E p i c o r D a t a b a s e   $ E p i c o r e D a t a b a s e ) 
 
         3 2 3 :           { 
 
         3 2 4 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ S c h e d u l e   $ S t a r t J o b   * / 
 
 
 
     L i n e   3 5 3   [ m a t c h :   E p i c o r ] : 
 
         3 5 1 :   
 
         3 5 2 :                   f o r e a c h   ( $ J o b s   A S   $ K e y   = >   $ J o b ) { 
 
   > >   3 5 3 :                           $ j o b T r a v e l e r D a t a   =   $ E p i c o r e D a t a b a s e - > g e t J o b T r a v e l e r ( $ J o b [ ' J o b I D ' ] ) ; 
 
         3 5 4 :                           $ R a w M a t e r i a l P a r t N u m b e r   =   $ R a w M a t e r i a l D e s c r i p t i o n   =   $ R a w M a t e r i a l Q t y   =   ' ' ; 
 
         3 5 5 :                           i f ( i s _ a r r a y ( $ j o b T r a v e l e r D a t a ) ) { 
 
 
 
     L i n e   3 9 7   [ m a t c h :   E p i c o r ] : 
 
         3 9 5 :   
 
         3 9 6 :   
 
   > >   3 9 7 :                           $ j o b T o t a l s R e s u l t   =   $ E p i c o r e D a t a b a s e - > g e t T o t a l C h a r g e s ( $ j o b A r ) ; 
 
         3 9 8 :                           $ j o b T o t a l s   =   $ j o b T o t a l s R e s u l t [ ' j o b s ' ] ; 
 
         3 9 9 :                           $ g r a n d T o t a l   =   $ j o b T o t a l s R e s u l t [ ' t o t a l ' ] ; 
 
 
 
     L i n e   8   [ m a t c h :   E P I C O R ] : 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ p a i n t _ P l a n t ; 
 
         7 :   u s e   A p p \ M o d e l \ R e p o s \ p a i n t _ S c h e d u l e ; 
 
   > >   8 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         9 :   u s e   A p p \ S e r v i c e s \ P a i n t S c h e d u l e S e r v i c e ; 
 
         1 0 :   u s e   P h p O f f i c e \ P h p S p r e a d s h e e t \ S p r e a d s h e e t ; 
 
 
 
     L i n e   6 7   [ m a t c h :   E P I C O R ] : 
 
         6 5 :           } 
 
         6 6 :   
 
   > >   6 7 :           p u b l i c   f u n c t i o n   p o s t E n t r y ( E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e ,   p a i n t _ S c h e d u l e   $ R O P a i n t S c h e d u l e R e p o ,   p a i n t _ L i n e   $ R O P a i n t L i n e R e p o ,   p a i n t _ P l a n t   $ R O P a i n t P l a n t R e p o ,   U s e r P e r m i s s i o n C h e c k e r   $ U s e r P e r m i s s i o n s ) { 
 
         6 8 :                   $ P l a n t C o d e   =   e x p l o d e ( ' - ' ,   r e q u e s t ( ) - > i n p u t ( ' p r o d _ c o d e ' ) ) [ 0 ] ; 
 
         6 9 :   
 
 
 
     L i n e   7 3   [ m a t c h :   E P I C O R ] : 
 
         7 1 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t   $ P a i n t P l a n t   * / 
 
         7 2 :                   f o r e a c h   ( a u t h ( ) - > u s e r ( ) - > g e t Q u e s t U s e r ( ) - > g e t P a i n t P l a n t ( )   A S   $ P a i n t P l a n t ) 
 
   > >   7 3 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ]   =   $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ; 
 
         7 4 :   
 
         7 5 :                   / * *   @ v a r   p a i n t _ P l a n t L i n e   $ P a i n t P l a n t L i n e   * / 
 
 
 
     L i n e   7 7   [ m a t c h :   E P I C O R ] : 
 
         7 5 :                   / * *   @ v a r   p a i n t _ P l a n t L i n e   $ P a i n t P l a n t L i n e   * / 
 
         7 6 :                   f o r e a c h ( a u t h ( ) - > u s e r ( ) - > g e t Q u e s t U s e r ( ) - > g e t P a i n t P l a n t L i n e ( )   A S   $ P a i n t P l a n t L i n e ) 
 
   > >   7 7 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t L i n e - > g e t P a i n t P l a n t ( ) - > g e t E p i c o r K e y ( ) . " - " . $ P a i n t P l a n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ]   =   t r u e ; 
 
         7 8 :                   / / p r o d _ c o d e 
 
         7 9 :   
 
 
 
     L i n e   9 5   [ m a t c h :   E P I C O R ] : 
 
         9 3 :                                                   $ e r r o r s [ ]   =   ' R u n   S e q u e n c e   f o r   J o b   '   .   $ J o b N u m   .   '   i s   m i s s i n g ' ; 
 
         9 4 :   
 
   > >   9 5 :                                           $ J o b s   =   $ E p i c o r D a t a b a s e - > g e t J o b ( $ J o b N u m ) ; 
 
         9 6 :                                           $ C l o s e d J o b s   =   $ E p i c o r D a t a b a s e - > g e t C l o s e d J o b ( $ J o b N u m ) ; 
 
         9 7 :   
 
 
 
     L i n e   9 6   [ m a t c h :   E P I C O R ] : 
 
         9 4 :   
 
         9 5 :                                           $ J o b s   =   $ E p i c o r D a t a b a s e - > g e t J o b ( $ J o b N u m ) ; 
 
   > >   9 6 :                                           $ C l o s e d J o b s   =   $ E p i c o r D a t a b a s e - > g e t C l o s e d J o b ( $ J o b N u m ) ; 
 
         9 7 :   
 
         9 8 :                                           i f ( c o u n t ( $ C l o s e d J o b s )   >   0 ) { 
 
 
 
     L i n e   1 2 2   [ m a t c h :   E P I C O R ] : 
 
         1 2 0 :                                           i f ( e x p l o d e ( ' - ' ,   $ J o b [ ' L i n e C o d e ' ] ) [ 0 ]   ! =   e x p l o d e ( ' - ' ,   r e q u e s t ( ) - > i n p u t ( ' p r o d _ c o d e ' ) ) [ 0 ] ) { 
 
         1 2 1 :                                                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t   $ P l a n t E n t i t y   * / 
 
   > >   1 2 2 :                                                   $ P l a n t E n t i t y   =   $ R O P a i n t P l a n t R e p o - > f i n d O n e B y ( [ ' E p i c o r K e y '   = >   e x p l o d e ( ' - ' ,   $ J o b [ ' L i n e C o d e ' ] ) [ 0 ] ] ) ; 
 
         1 2 3 :   
 
         1 2 4 :                                                   $ e r r o r s [ ]   =   ' J o b   '   .   $ J o b N u m   .   '   i s   f o r   a   d i f f e r e n t   p l a n t   ( '   .   $ P l a n t E n t i t y - > g e t N a m e ( )   .   ' ) ' ; 
 
 
 
     L i n e   1 2 9   [ m a t c h :   E P I C O R ] : 
 
         1 2 7 :   
 
         1 2 8 :                                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ L i n e   $ L i n e E n t i t y   * / 
 
   > >   1 2 9 :                                           $ L i n e E n t i t y   =   $ R O P a i n t L i n e R e p o - > f i n d O n e B y ( [ ' E p i c o r K e y '   = >   e x p l o d e ( ' - ' ,   r e q u e s t ( ) - > i n p u t ( ' p r o d _ c o d e ' ) ) [ 1 ] ] ) ; 
 
         1 3 0 :                                           i f ( $ J o b [ ' L i n e T y p e ' ]   ! =   $ L i n e E n t i t y - > g e t P a i n t L i n e T y p e ( ) - > g e t C o d i n g K e y ( ) ) { 
 
         1 3 1 :                                                   $ e r r o r s [ ]   =   ' J o b   '   .   $ J o b N u m   .   '   i s   a   '   .   $ J o b [ ' L i n e T y p e ' ]   .   '   J o b ' ; 
 
 
 
     L i n e   2 5 8   [ m a t c h :   E P I C O R ] : 
 
         2 5 6 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t   $ P a i n t P l a n t   * / 
 
         2 5 7 :                   f o r e a c h   ( a u t h ( ) - > u s e r ( ) - > g e t Q u e s t U s e r ( ) - > g e t P a i n t P l a n t ( )   A S   $ P a i n t P l a n t ) 
 
   > >   2 5 8 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ]   =   $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ; 
 
         2 5 9 :   
 
         2 6 0 :   
 
 
 
     L i n e   2 6 5   [ m a t c h :   E P I C O R ] : 
 
         2 6 3 :                   / * *   @ v a r   p a i n t _ P l a n t L i n e   $ P a i n t P l a n t L i n e   * / 
 
         2 6 4 :                   f o r e a c h ( a u t h ( ) - > u s e r ( ) - > g e t Q u e s t U s e r ( ) - > g e t P a i n t P l a n t L i n e ( )   A S   $ P a i n t P l a n t L i n e ) 
 
   > >   2 6 5 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t L i n e - > g e t P a i n t P l a n t ( ) - > g e t E p i c o r K e y ( ) . " - " . $ P a i n t P l a n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ]   =   t r u e ; 
 
         2 6 6 :                   / / p r o d _ c o d e 
 
         2 6 7 :   
 
 
 
     L i n e   3 2 2   [ m a t c h :   E P I C O R ] : 
 
         3 2 0 :           } 
 
         3 2 1 :   
 
   > >   3 2 2 :           p u b l i c   f u n c t i o n   g e t C o v e r P a g e ( p a i n t _ S c h e d u l e   $ R O P a i n t S c h e d u l e R e p o ,   E p i c o r D a t a b a s e   $ E p i c o r e D a t a b a s e ) 
 
         3 2 3 :           { 
 
         3 2 4 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ S c h e d u l e   $ S t a r t J o b   * / 
 
 
 
     L i n e   3 5 3   [ m a t c h :   E P I C O R ] : 
 
         3 5 1 :   
 
         3 5 2 :                   f o r e a c h   ( $ J o b s   A S   $ K e y   = >   $ J o b ) { 
 
   > >   3 5 3 :                           $ j o b T r a v e l e r D a t a   =   $ E p i c o r e D a t a b a s e - > g e t J o b T r a v e l e r ( $ J o b [ ' J o b I D ' ] ) ; 
 
         3 5 4 :                           $ R a w M a t e r i a l P a r t N u m b e r   =   $ R a w M a t e r i a l D e s c r i p t i o n   =   $ R a w M a t e r i a l Q t y   =   ' ' ; 
 
         3 5 5 :                           i f ( i s _ a r r a y ( $ j o b T r a v e l e r D a t a ) ) { 
 
 
 
     L i n e   3 9 7   [ m a t c h :   E P I C O R ] : 
 
         3 9 5 :   
 
         3 9 6 :   
 
   > >   3 9 7 :                           $ j o b T o t a l s R e s u l t   =   $ E p i c o r e D a t a b a s e - > g e t T o t a l C h a r g e s ( $ j o b A r ) ; 
 
         3 9 8 :                           $ j o b T o t a l s   =   $ j o b T o t a l s R e s u l t [ ' j o b s ' ] ; 
 
         3 9 9 :                           $ g r a n d T o t a l   =   $ j o b T o t a l s R e s u l t [ ' t o t a l ' ] ; 
 
 
 
     L i n e   3 2 9   [ m a t c h :   - > q u e r y ( ] : 
 
         3 2 7 :                   $ E n d J o b   =   $ R O P a i n t S c h e d u l e R e p o - > f i n d O n e B y ( [ ' J o b I D '   = >   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ e n d ' ) ] ) ; 
 
         3 2 8 :   
 
   > >   3 2 9 :                   $ S h o w S a l e s P r i c e   =   r e q u e s t ( ) - > q u e r y ( ' s h o w _ s a l e s _ p r i c e ' )   = = =   ' Y ' ; 
 
         3 3 0 :   
 
         3 3 1 :                   i f   ( ! i s _ o b j e c t ( $ S t a r t J o b ) ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ S e l e c t C o m p a n y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 5   [ m a t c h :   e p i c o r ] : 
 
         1 3 :                           r e t u r n   a b o r t ( 4 0 4 ) ; 
 
         1 4 :   
 
   > >   1 5 :                   $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   $ Q u e s t P a g e V a l u e s - > g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
         1 6 :   
 
         1 7 :                   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ R e q u e s t - > i n p u t ( ' s e l e c t e d _ c o m p a n y _ e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   1 7   [ m a t c h :   e p i c o r ] : 
 
         1 5 :                   $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   $ Q u e s t P a g e V a l u e s - > g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
         1 6 :   
 
   > >   1 7 :                   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ R e q u e s t - > i n p u t ( ' s e l e c t e d _ c o m p a n y _ e p i c o r _ c u s t _ i d ' ) ; 
 
         1 8 :   
 
         1 9 :                   i f ( i s _ n u l l ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D )   | |   ! i s s e t ( $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ] ) ) 
 
 
 
     L i n e   1 9   [ m a t c h :   e p i c o r ] : 
 
         1 7 :                   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ R e q u e s t - > i n p u t ( ' s e l e c t e d _ c o m p a n y _ e p i c o r _ c u s t _ i d ' ) ; 
 
         1 8 :   
 
   > >   1 9 :                   i f ( i s _ n u l l ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D )   | |   ! i s s e t ( $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ] ) ) 
 
         2 0 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   ' 0 ' ] ) ; 
 
         2 1 :   
 
 
 
     L i n e   2 2   [ m a t c h :   e p i c o r ] : 
 
         2 0 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   ' 0 ' ] ) ; 
 
         2 1 :   
 
   > >   2 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r - > s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ) ; 
 
         2 3 :   
 
         2 4 :                   r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   ' 1 ' ] ) ; 
 
 
 
     L i n e   1 5   [ m a t c h :   E p i c o r ] : 
 
         1 3 :                           r e t u r n   a b o r t ( 4 0 4 ) ; 
 
         1 4 :   
 
   > >   1 5 :                   $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   $ Q u e s t P a g e V a l u e s - > g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
         1 6 :   
 
         1 7 :                   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ R e q u e s t - > i n p u t ( ' s e l e c t e d _ c o m p a n y _ e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   1 7   [ m a t c h :   E p i c o r ] : 
 
         1 5 :                   $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   $ Q u e s t P a g e V a l u e s - > g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
         1 6 :   
 
   > >   1 7 :                   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ R e q u e s t - > i n p u t ( ' s e l e c t e d _ c o m p a n y _ e p i c o r _ c u s t _ i d ' ) ; 
 
         1 8 :   
 
         1 9 :                   i f ( i s _ n u l l ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D )   | |   ! i s s e t ( $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ] ) ) 
 
 
 
     L i n e   1 9   [ m a t c h :   E p i c o r ] : 
 
         1 7 :                   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ R e q u e s t - > i n p u t ( ' s e l e c t e d _ c o m p a n y _ e p i c o r _ c u s t _ i d ' ) ; 
 
         1 8 :   
 
   > >   1 9 :                   i f ( i s _ n u l l ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D )   | |   ! i s s e t ( $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ] ) ) 
 
         2 0 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   ' 0 ' ] ) ; 
 
         2 1 :   
 
 
 
     L i n e   2 2   [ m a t c h :   E p i c o r ] : 
 
         2 0 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   ' 0 ' ] ) ; 
 
         2 1 :   
 
   > >   2 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r - > s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ) ; 
 
         2 3 :   
 
         2 4 :                   r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   ' 1 ' ] ) ; 
 
 
 
     L i n e   1 5   [ m a t c h :   E P I C O R ] : 
 
         1 3 :                           r e t u r n   a b o r t ( 4 0 4 ) ; 
 
         1 4 :   
 
   > >   1 5 :                   $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   $ Q u e s t P a g e V a l u e s - > g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
         1 6 :   
 
         1 7 :                   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ R e q u e s t - > i n p u t ( ' s e l e c t e d _ c o m p a n y _ e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   1 7   [ m a t c h :   E P I C O R ] : 
 
         1 5 :                   $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   $ Q u e s t P a g e V a l u e s - > g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
         1 6 :   
 
   > >   1 7 :                   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ R e q u e s t - > i n p u t ( ' s e l e c t e d _ c o m p a n y _ e p i c o r _ c u s t _ i d ' ) ; 
 
         1 8 :   
 
         1 9 :                   i f ( i s _ n u l l ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D )   | |   ! i s s e t ( $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ] ) ) 
 
 
 
     L i n e   1 9   [ m a t c h :   E P I C O R ] : 
 
         1 7 :                   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ R e q u e s t - > i n p u t ( ' s e l e c t e d _ c o m p a n y _ e p i c o r _ c u s t _ i d ' ) ; 
 
         1 8 :   
 
   > >   1 9 :                   i f ( i s _ n u l l ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D )   | |   ! i s s e t ( $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ] ) ) 
 
         2 0 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   ' 0 ' ] ) ; 
 
         2 1 :   
 
 
 
     L i n e   2 2   [ m a t c h :   E P I C O R ] : 
 
         2 0 :                           r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   ' 0 ' ] ) ; 
 
         2 1 :   
 
   > >   2 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r - > s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ) ; 
 
         2 3 :   
 
         2 4 :                   r e t u r n   r e s p o n s e ( ) - > j s o n ( [ ' s u c c e s s '   = >   ' 1 ' ] ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ C o n t r o l l e r s \ Q u e s t \ S h i p m e n t R e l e a s e C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 9   [ m a t c h :   e p i c o r ] : 
 
         5 7 :                   $ D a t a   =   r e q u e s t ( ) - > e x c e p t ( [ ' _ t o k e n ' ] ) ; 
 
         5 8 :   
 
   > >   5 9 :                   $ C u s t o m e r I D   =   $ C u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         6 0 :   
 
         6 1 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ E m a i l E v e n t   $ q u e s t _ E m a i l E v e n t _ C o p y   * / 
 
 
 
     L i n e   5 9   [ m a t c h :   E p i c o r ] : 
 
         5 7 :                   $ D a t a   =   r e q u e s t ( ) - > e x c e p t ( [ ' _ t o k e n ' ] ) ; 
 
         5 8 :   
 
   > >   5 9 :                   $ C u s t o m e r I D   =   $ C u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         6 0 :   
 
         6 1 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ E m a i l E v e n t   $ q u e s t _ E m a i l E v e n t _ C o p y   * / 
 
 
 
     L i n e   5 9   [ m a t c h :   E P I C O R ] : 
 
         5 7 :                   $ D a t a   =   r e q u e s t ( ) - > e x c e p t ( [ ' _ t o k e n ' ] ) ; 
 
         5 8 :   
 
   > >   5 9 :                   $ C u s t o m e r I D   =   $ C u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         6 0 :   
 
         6 1 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ E m a i l E v e n t   $ q u e s t _ E m a i l E v e n t _ C o p y   * / 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ M i d d l e w a r e \ C o m p a n y D a t a . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 2   [ m a t c h :   e p i c o r ] : 
 
         3 0 :                           r e t u r n   $ n e x t ( $ r e q u e s t ) ; 
 
         3 1 :   
 
   > >   3 2 :                   $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   $ Q u e s t P a g e V a l u e s - > g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
         3 3 :   
 
         3 4 :   
 
 
 
     L i n e   4 0   [ m a t c h :   e p i c o r ] : 
 
         3 8 :   
 
         3 9 :   
 
   > >   4 0 :                   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         4 1 :                   $ C o m p a n y S e l e c t i o n O p t i o n s   =   [ ] ; 
 
         4 2 :                   f o r e a c h ( $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
 
 
     L i n e   4 2   [ m a t c h :   e p i c o r ] : 
 
         4 0 :                   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         4 1 :                   $ C o m p a n y S e l e c t i o n O p t i o n s   =   [ ] ; 
 
   > >   4 2 :                   f o r e a c h ( $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
         4 3 :                           $ C o m p a n y S e l e c t i o n O p t i o n s [ $ E p i c o r C u s t I D ]   =   $ C o m p a n y - > g e t C a l c D i s p l a y N a m e ( ) ; 
 
         4 4 :   
 
 
 
     L i n e   4 3   [ m a t c h :   e p i c o r ] : 
 
         4 1 :                   $ C o m p a n y S e l e c t i o n O p t i o n s   =   [ ] ; 
 
         4 2 :                   f o r e a c h ( $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
   > >   4 3 :                           $ C o m p a n y S e l e c t i o n O p t i o n s [ $ E p i c o r C u s t I D ]   =   $ C o m p a n y - > g e t C a l c D i s p l a y N a m e ( ) ; 
 
         4 4 :   
 
         4 5 :                   k s o r t ( $ C o m p a n y S e l e c t i o n O p t i o n s ) ; 
 
 
 
     L i n e   5 1   [ m a t c h :   e p i c o r ] : 
 
         4 9 :                   v i e w ( ) - > s h a r e ( ' C o m p a n y S e l e c t i o n O p t i o n s ' ,   $ C o m p a n y S e l e c t i o n O p t i o n s ) ; 
 
         5 0 :   
 
   > >   5 1 :                   i f ( i s _ n u l l ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ) )   / /   g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D   a l r e a d y   c l e a r s   o u t   a n y   v a l u e   s e t   f o r   a n y   n o   l o n g e r   a c t i v e   c o m p a n i e s   ( f o r   t h i s   u s e r ) 
 
         5 2 :                   { 
 
         5 3 :                           i f ( $ r e q u e s t - > e x p e c t s J s o n ( )   | |   $ r e q u e s t - > m e t h o d ( )   ! = =   ' G E T ' ) 
 
 
 
     L i n e   5 5   [ m a t c h :   e p i c o r ] : 
 
         5 3 :                           i f ( $ r e q u e s t - > e x p e c t s J s o n ( )   | |   $ r e q u e s t - > m e t h o d ( )   ! = =   ' G E T ' ) 
 
         5 4 :                                   r e t u r n   a b o r t ( 4 0 4 ) ; 
 
   > >   5 5 :                           v i e w ( ) - > s h a r e ( ' S e l e c t e d C o m p a n y E p i c o r C u s t I D ' ,   n u l l ) ; 
 
         5 6 :                           r e t u r n   r e s p o n s e ( ) - > v i e w ( ' q u e s t . s e l e c t _ c o m p a n y ' ) ; 
 
         5 7 :                   } 
 
 
 
     L i n e   5 9   [ m a t c h :   e p i c o r ] : 
 
         5 7 :                   } 
 
         5 8 :   
 
   > >   5 9 :                   v i e w ( ) - > s h a r e ( ' S e l e c t e d C o m p a n y E p i c o r C u s t I D ' ,   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ) ; 
 
         6 0 :                   v i e w ( ) - > s h a r e ( ' S e l e c t e d C o m p a n y N a m e ' ,   $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ] - > g e t C a l c D i s p l a y N a m e ( ) ) ; 
 
         6 1 :   
 
 
 
     L i n e   6 0   [ m a t c h :   e p i c o r ] : 
 
         5 8 :   
 
         5 9 :                   v i e w ( ) - > s h a r e ( ' S e l e c t e d C o m p a n y E p i c o r C u s t I D ' ,   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ) ; 
 
   > >   6 0 :                   v i e w ( ) - > s h a r e ( ' S e l e c t e d C o m p a n y N a m e ' ,   $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ] - > g e t C a l c D i s p l a y N a m e ( ) ) ; 
 
         6 1 :   
 
         6 2 :                   r e t u r n   $ n e x t ( $ r e q u e s t ) ; 
 
 
 
     L i n e   3 2   [ m a t c h :   E p i c o r ] : 
 
         3 0 :                           r e t u r n   $ n e x t ( $ r e q u e s t ) ; 
 
         3 1 :   
 
   > >   3 2 :                   $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   $ Q u e s t P a g e V a l u e s - > g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
         3 3 :   
 
         3 4 :   
 
 
 
     L i n e   4 0   [ m a t c h :   E p i c o r ] : 
 
         3 8 :   
 
         3 9 :   
 
   > >   4 0 :                   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         4 1 :                   $ C o m p a n y S e l e c t i o n O p t i o n s   =   [ ] ; 
 
         4 2 :                   f o r e a c h ( $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
 
 
     L i n e   4 2   [ m a t c h :   E p i c o r ] : 
 
         4 0 :                   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         4 1 :                   $ C o m p a n y S e l e c t i o n O p t i o n s   =   [ ] ; 
 
   > >   4 2 :                   f o r e a c h ( $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
         4 3 :                           $ C o m p a n y S e l e c t i o n O p t i o n s [ $ E p i c o r C u s t I D ]   =   $ C o m p a n y - > g e t C a l c D i s p l a y N a m e ( ) ; 
 
         4 4 :   
 
 
 
     L i n e   4 3   [ m a t c h :   E p i c o r ] : 
 
         4 1 :                   $ C o m p a n y S e l e c t i o n O p t i o n s   =   [ ] ; 
 
         4 2 :                   f o r e a c h ( $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
   > >   4 3 :                           $ C o m p a n y S e l e c t i o n O p t i o n s [ $ E p i c o r C u s t I D ]   =   $ C o m p a n y - > g e t C a l c D i s p l a y N a m e ( ) ; 
 
         4 4 :   
 
         4 5 :                   k s o r t ( $ C o m p a n y S e l e c t i o n O p t i o n s ) ; 
 
 
 
     L i n e   5 1   [ m a t c h :   E p i c o r ] : 
 
         4 9 :                   v i e w ( ) - > s h a r e ( ' C o m p a n y S e l e c t i o n O p t i o n s ' ,   $ C o m p a n y S e l e c t i o n O p t i o n s ) ; 
 
         5 0 :   
 
   > >   5 1 :                   i f ( i s _ n u l l ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ) )   / /   g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D   a l r e a d y   c l e a r s   o u t   a n y   v a l u e   s e t   f o r   a n y   n o   l o n g e r   a c t i v e   c o m p a n i e s   ( f o r   t h i s   u s e r ) 
 
         5 2 :                   { 
 
         5 3 :                           i f ( $ r e q u e s t - > e x p e c t s J s o n ( )   | |   $ r e q u e s t - > m e t h o d ( )   ! = =   ' G E T ' ) 
 
 
 
     L i n e   5 5   [ m a t c h :   E p i c o r ] : 
 
         5 3 :                           i f ( $ r e q u e s t - > e x p e c t s J s o n ( )   | |   $ r e q u e s t - > m e t h o d ( )   ! = =   ' G E T ' ) 
 
         5 4 :                                   r e t u r n   a b o r t ( 4 0 4 ) ; 
 
   > >   5 5 :                           v i e w ( ) - > s h a r e ( ' S e l e c t e d C o m p a n y E p i c o r C u s t I D ' ,   n u l l ) ; 
 
         5 6 :                           r e t u r n   r e s p o n s e ( ) - > v i e w ( ' q u e s t . s e l e c t _ c o m p a n y ' ) ; 
 
         5 7 :                   } 
 
 
 
     L i n e   5 9   [ m a t c h :   E p i c o r ] : 
 
         5 7 :                   } 
 
         5 8 :   
 
   > >   5 9 :                   v i e w ( ) - > s h a r e ( ' S e l e c t e d C o m p a n y E p i c o r C u s t I D ' ,   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ) ; 
 
         6 0 :                   v i e w ( ) - > s h a r e ( ' S e l e c t e d C o m p a n y N a m e ' ,   $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ] - > g e t C a l c D i s p l a y N a m e ( ) ) ; 
 
         6 1 :   
 
 
 
     L i n e   6 0   [ m a t c h :   E p i c o r ] : 
 
         5 8 :   
 
         5 9 :                   v i e w ( ) - > s h a r e ( ' S e l e c t e d C o m p a n y E p i c o r C u s t I D ' ,   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ) ; 
 
   > >   6 0 :                   v i e w ( ) - > s h a r e ( ' S e l e c t e d C o m p a n y N a m e ' ,   $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ] - > g e t C a l c D i s p l a y N a m e ( ) ) ; 
 
         6 1 :   
 
         6 2 :                   r e t u r n   $ n e x t ( $ r e q u e s t ) ; 
 
 
 
     L i n e   3 2   [ m a t c h :   E P I C O R ] : 
 
         3 0 :                           r e t u r n   $ n e x t ( $ r e q u e s t ) ; 
 
         3 1 :   
 
   > >   3 2 :                   $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   $ Q u e s t P a g e V a l u e s - > g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
         3 3 :   
 
         3 4 :   
 
 
 
     L i n e   4 0   [ m a t c h :   E P I C O R ] : 
 
         3 8 :   
 
         3 9 :   
 
   > >   4 0 :                   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         4 1 :                   $ C o m p a n y S e l e c t i o n O p t i o n s   =   [ ] ; 
 
         4 2 :                   f o r e a c h ( $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
 
 
     L i n e   4 2   [ m a t c h :   E P I C O R ] : 
 
         4 0 :                   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         4 1 :                   $ C o m p a n y S e l e c t i o n O p t i o n s   =   [ ] ; 
 
   > >   4 2 :                   f o r e a c h ( $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
         4 3 :                           $ C o m p a n y S e l e c t i o n O p t i o n s [ $ E p i c o r C u s t I D ]   =   $ C o m p a n y - > g e t C a l c D i s p l a y N a m e ( ) ; 
 
         4 4 :   
 
 
 
     L i n e   4 3   [ m a t c h :   E P I C O R ] : 
 
         4 1 :                   $ C o m p a n y S e l e c t i o n O p t i o n s   =   [ ] ; 
 
         4 2 :                   f o r e a c h ( $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
   > >   4 3 :                           $ C o m p a n y S e l e c t i o n O p t i o n s [ $ E p i c o r C u s t I D ]   =   $ C o m p a n y - > g e t C a l c D i s p l a y N a m e ( ) ; 
 
         4 4 :   
 
         4 5 :                   k s o r t ( $ C o m p a n y S e l e c t i o n O p t i o n s ) ; 
 
 
 
     L i n e   5 1   [ m a t c h :   E P I C O R ] : 
 
         4 9 :                   v i e w ( ) - > s h a r e ( ' C o m p a n y S e l e c t i o n O p t i o n s ' ,   $ C o m p a n y S e l e c t i o n O p t i o n s ) ; 
 
         5 0 :   
 
   > >   5 1 :                   i f ( i s _ n u l l ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ) )   / /   g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D   a l r e a d y   c l e a r s   o u t   a n y   v a l u e   s e t   f o r   a n y   n o   l o n g e r   a c t i v e   c o m p a n i e s   ( f o r   t h i s   u s e r ) 
 
         5 2 :                   { 
 
         5 3 :                           i f ( $ r e q u e s t - > e x p e c t s J s o n ( )   | |   $ r e q u e s t - > m e t h o d ( )   ! = =   ' G E T ' ) 
 
 
 
     L i n e   5 5   [ m a t c h :   E P I C O R ] : 
 
         5 3 :                           i f ( $ r e q u e s t - > e x p e c t s J s o n ( )   | |   $ r e q u e s t - > m e t h o d ( )   ! = =   ' G E T ' ) 
 
         5 4 :                                   r e t u r n   a b o r t ( 4 0 4 ) ; 
 
   > >   5 5 :                           v i e w ( ) - > s h a r e ( ' S e l e c t e d C o m p a n y E p i c o r C u s t I D ' ,   n u l l ) ; 
 
         5 6 :                           r e t u r n   r e s p o n s e ( ) - > v i e w ( ' q u e s t . s e l e c t _ c o m p a n y ' ) ; 
 
         5 7 :                   } 
 
 
 
     L i n e   5 9   [ m a t c h :   E P I C O R ] : 
 
         5 7 :                   } 
 
         5 8 :   
 
   > >   5 9 :                   v i e w ( ) - > s h a r e ( ' S e l e c t e d C o m p a n y E p i c o r C u s t I D ' ,   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ) ; 
 
         6 0 :                   v i e w ( ) - > s h a r e ( ' S e l e c t e d C o m p a n y N a m e ' ,   $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ] - > g e t C a l c D i s p l a y N a m e ( ) ) ; 
 
         6 1 :   
 
 
 
     L i n e   6 0   [ m a t c h :   E P I C O R ] : 
 
         5 8 :   
 
         5 9 :                   v i e w ( ) - > s h a r e ( ' S e l e c t e d C o m p a n y E p i c o r C u s t I D ' ,   $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ) ; 
 
   > >   6 0 :                   v i e w ( ) - > s h a r e ( ' S e l e c t e d C o m p a n y N a m e ' ,   $ A c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ] - > g e t C a l c D i s p l a y N a m e ( ) ) ; 
 
         6 1 :   
 
         6 2 :                   r e t u r n   $ n e x t ( $ r e q u e s t ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ M i d d l e w a r e \ V e r i f y A n d S h a r e Q u e s t U s e r A n d C o m p a n y I n f o . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 2   [ m a t c h :   e p i c o r ] : 
 
         3 0 :   
 
         3 1 :                   v i e w ( ) - > s h a r e ( ' Q u e s t U s e r N a m e ' ,   $ Q u e s t U s e r - > g e t F u l l N a m e ( ) ) ; 
 
   > >   3 2 :                   v i e w ( ) - > s h a r e ( ' Q u e s t C o m p a n y N a m e ' ,   ( ! $ Q u e s t P a g e V a l u e s - > d o e s U s e r B e l o n g T o S i n g l e A c t i v e C o m p a n y ( )   ?   n u l l   :   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) [ 0 ] ) - > g e t C a l c D i s p l a y N a m e ( ) ) ) ; 
 
         3 3 :   
 
         3 4 :   	 	 r e t u r n   $ n e x t ( $ r e q u e s t ) ; 
 
 
 
     L i n e   3 2   [ m a t c h :   E p i c o r ] : 
 
         3 0 :   
 
         3 1 :                   v i e w ( ) - > s h a r e ( ' Q u e s t U s e r N a m e ' ,   $ Q u e s t U s e r - > g e t F u l l N a m e ( ) ) ; 
 
   > >   3 2 :                   v i e w ( ) - > s h a r e ( ' Q u e s t C o m p a n y N a m e ' ,   ( ! $ Q u e s t P a g e V a l u e s - > d o e s U s e r B e l o n g T o S i n g l e A c t i v e C o m p a n y ( )   ?   n u l l   :   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) [ 0 ] ) - > g e t C a l c D i s p l a y N a m e ( ) ) ) ; 
 
         3 3 :   
 
         3 4 :   	 	 r e t u r n   $ n e x t ( $ r e q u e s t ) ; 
 
 
 
     L i n e   3 2   [ m a t c h :   E P I C O R ] : 
 
         3 0 :   
 
         3 1 :                   v i e w ( ) - > s h a r e ( ' Q u e s t U s e r N a m e ' ,   $ Q u e s t U s e r - > g e t F u l l N a m e ( ) ) ; 
 
   > >   3 2 :                   v i e w ( ) - > s h a r e ( ' Q u e s t C o m p a n y N a m e ' ,   ( ! $ Q u e s t P a g e V a l u e s - > d o e s U s e r B e l o n g T o S i n g l e A c t i v e C o m p a n y ( )   ?   n u l l   :   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) [ 0 ] ) - > g e t C a l c D i s p l a y N a m e ( ) ) ) ; 
 
         3 3 :   
 
         3 4 :   	 	 r e t u r n   $ n e x t ( $ r e q u e s t ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ M i d d l e w a r e \ V e r i f y C s r f T o k e n . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 0   [ m a t c h :   F R O M   ] : 
 
         8 :   { 
 
         9 :           / * * 
 
   > >   1 0 :             *   T h e   U R I s   t h a t   s h o u l d   b e   e x c l u d e d   f r o m   C S R F   v e r i f i c a t i o n . 
 
         1 1 :             * 
 
         1 2 :             *   @ v a r   a r r a y < i n t ,   s t r i n g > 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ H t t p \ M i d d l e w a r e \ W e b S e r v i c e s C o m p a n y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 0   [ m a t c h :   e p i c o r ] : 
 
         2 8 :   	 	 $ A P I U s e r   =   a p p ( A P I U s e r : : c l a s s ) ; 
 
         2 9 :   
 
   > >   3 0 :   	 	 i f ( ! a r r a y _ k e y _ e x i s t s ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ,   $ A P I U s e r - > g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ) ) 
 
         3 1 :   	 	         t h r o w   n e w   W e b S e r v i c e s A c c e s s E x c e p t i o n ( ) ; 
 
         3 2 :   
 
 
 
     L i n e   3 0   [ m a t c h :   E p i c o r ] : 
 
         2 8 :   	 	 $ A P I U s e r   =   a p p ( A P I U s e r : : c l a s s ) ; 
 
         2 9 :   
 
   > >   3 0 :   	 	 i f ( ! a r r a y _ k e y _ e x i s t s ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ,   $ A P I U s e r - > g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ) ) 
 
         3 1 :   	 	         t h r o w   n e w   W e b S e r v i c e s A c c e s s E x c e p t i o n ( ) ; 
 
         3 2 :   
 
 
 
     L i n e   3 0   [ m a t c h :   E P I C O R ] : 
 
         2 8 :   	 	 $ A P I U s e r   =   a p p ( A P I U s e r : : c l a s s ) ; 
 
         2 9 :   
 
   > >   3 0 :   	 	 i f ( ! a r r a y _ k e y _ e x i s t s ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ,   $ A P I U s e r - > g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ) ) 
 
         3 1 :   	 	         t h r o w   n e w   W e b S e r v i c e s A c c e s s E x c e p t i o n ( ) ; 
 
         3 2 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ L i s t e n e r s \ L o g S e n t M e s s a g e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 8   [ m a t c h :   F R O M   ] : 
 
         6 6 :   
 
         6 7 :   
 
   > >   6 8 :                   $ f r o m   =   $ m e s s a g e - > g e t F r o m ( ) ; 
 
         6 9 :   
 
         7 0 :                   $ f   =   [ ] ; 
 
 
 
     L i n e   7 2   [ m a t c h :   F R O M   ] : 
 
         7 0 :                   $ f   =   [ ] ; 
 
         7 1 :   
 
   > >   7 2 :                   f o r e a c h   ( $ f r o m   a s   $ r e c i p i e n t ) 
 
         7 3 :                   { 
 
         7 4 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ E n t i t i e s \ G e n e r a t e d \ a l l o c _ R e q u e s t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 1 6   [ m a t c h :   U P D A T E   ] : 
 
         4 1 4 :             *   @ r e t u r n   a l l o c _ R e q u e s t 
 
         4 1 5 :             * / 
 
   > >   4 1 6 :           p u b l i c   f u n c t i o n   s e t R e q u e s t e d P i c k u p D a t e ( $ r e q u e s t e d P i c k u p D a t e   =   n u l l ) 
 
         4 1 7 :           { 
 
         4 1 8 :                   $ t h i s - > R e q u e s t e d P i c k u p D a t e   =   $ r e q u e s t e d P i c k u p D a t e ; 
 
 
 
     L i n e   4 1 8   [ m a t c h :   U P D A T E   ] : 
 
         4 1 6 :           p u b l i c   f u n c t i o n   s e t R e q u e s t e d P i c k u p D a t e ( $ r e q u e s t e d P i c k u p D a t e   =   n u l l ) 
 
         4 1 7 :           { 
 
   > >   4 1 8 :                   $ t h i s - > R e q u e s t e d P i c k u p D a t e   =   $ r e q u e s t e d P i c k u p D a t e ; 
 
         4 1 9 :   
 
         4 2 0 :                   r e t u r n   $ t h i s ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ E n t i t i e s \ G e n e r a t e d \ a u t h _ U s e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 7 5   [ m a t c h :   U P D A T E   ] : 
 
         7 7 3 :             *   @ r e t u r n   a u t h _ U s e r 
 
         7 7 4 :             * / 
 
   > >   7 7 5 :           p u b l i c   f u n c t i o n   s e t S S O L a s t F i e l d D a t a U p d a t e ( $ s S O L a s t F i e l d D a t a U p d a t e   =   n u l l ) 
 
         7 7 6 :           { 
 
         7 7 7 :                   $ t h i s - > S S O L a s t F i e l d D a t a U p d a t e   =   $ s S O L a s t F i e l d D a t a U p d a t e ; 
 
 
 
     L i n e   7 7 7   [ m a t c h :   U P D A T E   ] : 
 
         7 7 5 :           p u b l i c   f u n c t i o n   s e t S S O L a s t F i e l d D a t a U p d a t e ( $ s S O L a s t F i e l d D a t a U p d a t e   =   n u l l ) 
 
         7 7 6 :           { 
 
   > >   7 7 7 :                   $ t h i s - > S S O L a s t F i e l d D a t a U p d a t e   =   $ s S O L a s t F i e l d D a t a U p d a t e ; 
 
         7 7 8 :   
 
         7 7 9 :                   r e t u r n   $ t h i s ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ E n t i t i e s \ G e n e r a t e d \ p a i n t _ L i n e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 4   [ m a t c h :   e p i c o r ] : 
 
         2 2 :             *   @ v a r   s t r i n g 
 
         2 3 :             * / 
 
   > >   2 4 :           p r o t e c t e d   $ E p i c o r K e y ; 
 
         2 5 :   
 
         2 6 :           / * * 
 
 
 
     L i n e   8 0   [ m a t c h :   e p i c o r ] : 
 
         7 8 :   
 
         7 9 :           / * * 
 
   > >   8 0 :             *   S e t   e p i c o r K e y . 
 
         8 1 :             * 
 
         8 2 :             *   @ p a r a m   s t r i n g   $ e p i c o r K e y 
 
 
 
     L i n e   8 2   [ m a t c h :   e p i c o r ] : 
 
         8 0 :             *   S e t   e p i c o r K e y . 
 
         8 1 :             * 
 
   > >   8 2 :             *   @ p a r a m   s t r i n g   $ e p i c o r K e y 
 
         8 3 :             * 
 
         8 4 :             *   @ r e t u r n   p a i n t _ L i n e 
 
 
 
     L i n e   8 6   [ m a t c h :   e p i c o r ] : 
 
         8 4 :             *   @ r e t u r n   p a i n t _ L i n e 
 
         8 5 :             * / 
 
   > >   8 6 :           p u b l i c   f u n c t i o n   s e t E p i c o r K e y ( $ e p i c o r K e y ) 
 
         8 7 :           { 
 
         8 8 :                   $ t h i s - > E p i c o r K e y   =   $ e p i c o r K e y ; 
 
 
 
     L i n e   8 8   [ m a t c h :   e p i c o r ] : 
 
         8 6 :           p u b l i c   f u n c t i o n   s e t E p i c o r K e y ( $ e p i c o r K e y ) 
 
         8 7 :           { 
 
   > >   8 8 :                   $ t h i s - > E p i c o r K e y   =   $ e p i c o r K e y ; 
 
         8 9 :   
 
         9 0 :                   r e t u r n   $ t h i s ; 
 
 
 
     L i n e   9 4   [ m a t c h :   e p i c o r ] : 
 
         9 2 :   
 
         9 3 :           / * * 
 
   > >   9 4 :             *   G e t   e p i c o r K e y . 
 
         9 5 :             * 
 
         9 6 :             *   @ r e t u r n   s t r i n g 
 
 
 
     L i n e   9 8   [ m a t c h :   e p i c o r ] : 
 
         9 6 :             *   @ r e t u r n   s t r i n g 
 
         9 7 :             * / 
 
   > >   9 8 :           p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         9 9 :           { 
 
         1 0 0 :                   r e t u r n   $ t h i s - > E p i c o r K e y ; 
 
 
 
     L i n e   1 0 0   [ m a t c h :   e p i c o r ] : 
 
         9 8 :           p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         9 9 :           { 
 
   > >   1 0 0 :                   r e t u r n   $ t h i s - > E p i c o r K e y ; 
 
         1 0 1 :           } 
 
         1 0 2 :   
 
 
 
     L i n e   2 4   [ m a t c h :   E p i c o r ] : 
 
         2 2 :             *   @ v a r   s t r i n g 
 
         2 3 :             * / 
 
   > >   2 4 :           p r o t e c t e d   $ E p i c o r K e y ; 
 
         2 5 :   
 
         2 6 :           / * * 
 
 
 
     L i n e   8 0   [ m a t c h :   E p i c o r ] : 
 
         7 8 :   
 
         7 9 :           / * * 
 
   > >   8 0 :             *   S e t   e p i c o r K e y . 
 
         8 1 :             * 
 
         8 2 :             *   @ p a r a m   s t r i n g   $ e p i c o r K e y 
 
 
 
     L i n e   8 2   [ m a t c h :   E p i c o r ] : 
 
         8 0 :             *   S e t   e p i c o r K e y . 
 
         8 1 :             * 
 
   > >   8 2 :             *   @ p a r a m   s t r i n g   $ e p i c o r K e y 
 
         8 3 :             * 
 
         8 4 :             *   @ r e t u r n   p a i n t _ L i n e 
 
 
 
     L i n e   8 6   [ m a t c h :   E p i c o r ] : 
 
         8 4 :             *   @ r e t u r n   p a i n t _ L i n e 
 
         8 5 :             * / 
 
   > >   8 6 :           p u b l i c   f u n c t i o n   s e t E p i c o r K e y ( $ e p i c o r K e y ) 
 
         8 7 :           { 
 
         8 8 :                   $ t h i s - > E p i c o r K e y   =   $ e p i c o r K e y ; 
 
 
 
     L i n e   8 8   [ m a t c h :   E p i c o r ] : 
 
         8 6 :           p u b l i c   f u n c t i o n   s e t E p i c o r K e y ( $ e p i c o r K e y ) 
 
         8 7 :           { 
 
   > >   8 8 :                   $ t h i s - > E p i c o r K e y   =   $ e p i c o r K e y ; 
 
         8 9 :   
 
         9 0 :                   r e t u r n   $ t h i s ; 
 
 
 
     L i n e   9 4   [ m a t c h :   E p i c o r ] : 
 
         9 2 :   
 
         9 3 :           / * * 
 
   > >   9 4 :             *   G e t   e p i c o r K e y . 
 
         9 5 :             * 
 
         9 6 :             *   @ r e t u r n   s t r i n g 
 
 
 
     L i n e   9 8   [ m a t c h :   E p i c o r ] : 
 
         9 6 :             *   @ r e t u r n   s t r i n g 
 
         9 7 :             * / 
 
   > >   9 8 :           p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         9 9 :           { 
 
         1 0 0 :                   r e t u r n   $ t h i s - > E p i c o r K e y ; 
 
 
 
     L i n e   1 0 0   [ m a t c h :   E p i c o r ] : 
 
         9 8 :           p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         9 9 :           { 
 
   > >   1 0 0 :                   r e t u r n   $ t h i s - > E p i c o r K e y ; 
 
         1 0 1 :           } 
 
         1 0 2 :   
 
 
 
     L i n e   2 4   [ m a t c h :   E P I C O R ] : 
 
         2 2 :             *   @ v a r   s t r i n g 
 
         2 3 :             * / 
 
   > >   2 4 :           p r o t e c t e d   $ E p i c o r K e y ; 
 
         2 5 :   
 
         2 6 :           / * * 
 
 
 
     L i n e   8 0   [ m a t c h :   E P I C O R ] : 
 
         7 8 :   
 
         7 9 :           / * * 
 
   > >   8 0 :             *   S e t   e p i c o r K e y . 
 
         8 1 :             * 
 
         8 2 :             *   @ p a r a m   s t r i n g   $ e p i c o r K e y 
 
 
 
     L i n e   8 2   [ m a t c h :   E P I C O R ] : 
 
         8 0 :             *   S e t   e p i c o r K e y . 
 
         8 1 :             * 
 
   > >   8 2 :             *   @ p a r a m   s t r i n g   $ e p i c o r K e y 
 
         8 3 :             * 
 
         8 4 :             *   @ r e t u r n   p a i n t _ L i n e 
 
 
 
     L i n e   8 6   [ m a t c h :   E P I C O R ] : 
 
         8 4 :             *   @ r e t u r n   p a i n t _ L i n e 
 
         8 5 :             * / 
 
   > >   8 6 :           p u b l i c   f u n c t i o n   s e t E p i c o r K e y ( $ e p i c o r K e y ) 
 
         8 7 :           { 
 
         8 8 :                   $ t h i s - > E p i c o r K e y   =   $ e p i c o r K e y ; 
 
 
 
     L i n e   8 8   [ m a t c h :   E P I C O R ] : 
 
         8 6 :           p u b l i c   f u n c t i o n   s e t E p i c o r K e y ( $ e p i c o r K e y ) 
 
         8 7 :           { 
 
   > >   8 8 :                   $ t h i s - > E p i c o r K e y   =   $ e p i c o r K e y ; 
 
         8 9 :   
 
         9 0 :                   r e t u r n   $ t h i s ; 
 
 
 
     L i n e   9 4   [ m a t c h :   E P I C O R ] : 
 
         9 2 :   
 
         9 3 :           / * * 
 
   > >   9 4 :             *   G e t   e p i c o r K e y . 
 
         9 5 :             * 
 
         9 6 :             *   @ r e t u r n   s t r i n g 
 
 
 
     L i n e   9 8   [ m a t c h :   E P I C O R ] : 
 
         9 6 :             *   @ r e t u r n   s t r i n g 
 
         9 7 :             * / 
 
   > >   9 8 :           p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         9 9 :           { 
 
         1 0 0 :                   r e t u r n   $ t h i s - > E p i c o r K e y ; 
 
 
 
     L i n e   1 0 0   [ m a t c h :   E P I C O R ] : 
 
         9 8 :           p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         9 9 :           { 
 
   > >   1 0 0 :                   r e t u r n   $ t h i s - > E p i c o r K e y ; 
 
         1 0 1 :           } 
 
         1 0 2 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ E n t i t i e s \ G e n e r a t e d \ p a i n t _ P l a n t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 4   [ m a t c h :   e p i c o r ] : 
 
         2 2 :             *   @ v a r   s t r i n g 
 
         2 3 :             * / 
 
   > >   2 4 :           p r o t e c t e d   $ E p i c o r K e y ; 
 
         2 5 :   
 
         2 6 :           / * * 
 
 
 
     L i n e   8 6   [ m a t c h :   e p i c o r ] : 
 
         8 4 :   
 
         8 5 :           / * * 
 
   > >   8 6 :             *   S e t   e p i c o r K e y . 
 
         8 7 :             * 
 
         8 8 :             *   @ p a r a m   s t r i n g   $ e p i c o r K e y 
 
 
 
     L i n e   8 8   [ m a t c h :   e p i c o r ] : 
 
         8 6 :             *   S e t   e p i c o r K e y . 
 
         8 7 :             * 
 
   > >   8 8 :             *   @ p a r a m   s t r i n g   $ e p i c o r K e y 
 
         8 9 :             * 
 
         9 0 :             *   @ r e t u r n   p a i n t _ P l a n t 
 
 
 
     L i n e   9 2   [ m a t c h :   e p i c o r ] : 
 
         9 0 :             *   @ r e t u r n   p a i n t _ P l a n t 
 
         9 1 :             * / 
 
   > >   9 2 :           p u b l i c   f u n c t i o n   s e t E p i c o r K e y ( $ e p i c o r K e y ) 
 
         9 3 :           { 
 
         9 4 :                   $ t h i s - > E p i c o r K e y   =   $ e p i c o r K e y ; 
 
 
 
     L i n e   9 4   [ m a t c h :   e p i c o r ] : 
 
         9 2 :           p u b l i c   f u n c t i o n   s e t E p i c o r K e y ( $ e p i c o r K e y ) 
 
         9 3 :           { 
 
   > >   9 4 :                   $ t h i s - > E p i c o r K e y   =   $ e p i c o r K e y ; 
 
         9 5 :   
 
         9 6 :                   r e t u r n   $ t h i s ; 
 
 
 
     L i n e   1 0 0   [ m a t c h :   e p i c o r ] : 
 
         9 8 :   
 
         9 9 :           / * * 
 
   > >   1 0 0 :             *   G e t   e p i c o r K e y . 
 
         1 0 1 :             * 
 
         1 0 2 :             *   @ r e t u r n   s t r i n g 
 
 
 
     L i n e   1 0 4   [ m a t c h :   e p i c o r ] : 
 
         1 0 2 :             *   @ r e t u r n   s t r i n g 
 
         1 0 3 :             * / 
 
   > >   1 0 4 :           p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         1 0 5 :           { 
 
         1 0 6 :                   r e t u r n   $ t h i s - > E p i c o r K e y ; 
 
 
 
     L i n e   1 0 6   [ m a t c h :   e p i c o r ] : 
 
         1 0 4 :           p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         1 0 5 :           { 
 
   > >   1 0 6 :                   r e t u r n   $ t h i s - > E p i c o r K e y ; 
 
         1 0 7 :           } 
 
         1 0 8 :   
 
 
 
     L i n e   2 4   [ m a t c h :   E p i c o r ] : 
 
         2 2 :             *   @ v a r   s t r i n g 
 
         2 3 :             * / 
 
   > >   2 4 :           p r o t e c t e d   $ E p i c o r K e y ; 
 
         2 5 :   
 
         2 6 :           / * * 
 
 
 
     L i n e   8 6   [ m a t c h :   E p i c o r ] : 
 
         8 4 :   
 
         8 5 :           / * * 
 
   > >   8 6 :             *   S e t   e p i c o r K e y . 
 
         8 7 :             * 
 
         8 8 :             *   @ p a r a m   s t r i n g   $ e p i c o r K e y 
 
 
 
     L i n e   8 8   [ m a t c h :   E p i c o r ] : 
 
         8 6 :             *   S e t   e p i c o r K e y . 
 
         8 7 :             * 
 
   > >   8 8 :             *   @ p a r a m   s t r i n g   $ e p i c o r K e y 
 
         8 9 :             * 
 
         9 0 :             *   @ r e t u r n   p a i n t _ P l a n t 
 
 
 
     L i n e   9 2   [ m a t c h :   E p i c o r ] : 
 
         9 0 :             *   @ r e t u r n   p a i n t _ P l a n t 
 
         9 1 :             * / 
 
   > >   9 2 :           p u b l i c   f u n c t i o n   s e t E p i c o r K e y ( $ e p i c o r K e y ) 
 
         9 3 :           { 
 
         9 4 :                   $ t h i s - > E p i c o r K e y   =   $ e p i c o r K e y ; 
 
 
 
     L i n e   9 4   [ m a t c h :   E p i c o r ] : 
 
         9 2 :           p u b l i c   f u n c t i o n   s e t E p i c o r K e y ( $ e p i c o r K e y ) 
 
         9 3 :           { 
 
   > >   9 4 :                   $ t h i s - > E p i c o r K e y   =   $ e p i c o r K e y ; 
 
         9 5 :   
 
         9 6 :                   r e t u r n   $ t h i s ; 
 
 
 
     L i n e   1 0 0   [ m a t c h :   E p i c o r ] : 
 
         9 8 :   
 
         9 9 :           / * * 
 
   > >   1 0 0 :             *   G e t   e p i c o r K e y . 
 
         1 0 1 :             * 
 
         1 0 2 :             *   @ r e t u r n   s t r i n g 
 
 
 
     L i n e   1 0 4   [ m a t c h :   E p i c o r ] : 
 
         1 0 2 :             *   @ r e t u r n   s t r i n g 
 
         1 0 3 :             * / 
 
   > >   1 0 4 :           p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         1 0 5 :           { 
 
         1 0 6 :                   r e t u r n   $ t h i s - > E p i c o r K e y ; 
 
 
 
     L i n e   1 0 6   [ m a t c h :   E p i c o r ] : 
 
         1 0 4 :           p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         1 0 5 :           { 
 
   > >   1 0 6 :                   r e t u r n   $ t h i s - > E p i c o r K e y ; 
 
         1 0 7 :           } 
 
         1 0 8 :   
 
 
 
     L i n e   2 4   [ m a t c h :   E P I C O R ] : 
 
         2 2 :             *   @ v a r   s t r i n g 
 
         2 3 :             * / 
 
   > >   2 4 :           p r o t e c t e d   $ E p i c o r K e y ; 
 
         2 5 :   
 
         2 6 :           / * * 
 
 
 
     L i n e   8 6   [ m a t c h :   E P I C O R ] : 
 
         8 4 :   
 
         8 5 :           / * * 
 
   > >   8 6 :             *   S e t   e p i c o r K e y . 
 
         8 7 :             * 
 
         8 8 :             *   @ p a r a m   s t r i n g   $ e p i c o r K e y 
 
 
 
     L i n e   8 8   [ m a t c h :   E P I C O R ] : 
 
         8 6 :             *   S e t   e p i c o r K e y . 
 
         8 7 :             * 
 
   > >   8 8 :             *   @ p a r a m   s t r i n g   $ e p i c o r K e y 
 
         8 9 :             * 
 
         9 0 :             *   @ r e t u r n   p a i n t _ P l a n t 
 
 
 
     L i n e   9 2   [ m a t c h :   E P I C O R ] : 
 
         9 0 :             *   @ r e t u r n   p a i n t _ P l a n t 
 
         9 1 :             * / 
 
   > >   9 2 :           p u b l i c   f u n c t i o n   s e t E p i c o r K e y ( $ e p i c o r K e y ) 
 
         9 3 :           { 
 
         9 4 :                   $ t h i s - > E p i c o r K e y   =   $ e p i c o r K e y ; 
 
 
 
     L i n e   9 4   [ m a t c h :   E P I C O R ] : 
 
         9 2 :           p u b l i c   f u n c t i o n   s e t E p i c o r K e y ( $ e p i c o r K e y ) 
 
         9 3 :           { 
 
   > >   9 4 :                   $ t h i s - > E p i c o r K e y   =   $ e p i c o r K e y ; 
 
         9 5 :   
 
         9 6 :                   r e t u r n   $ t h i s ; 
 
 
 
     L i n e   1 0 0   [ m a t c h :   E P I C O R ] : 
 
         9 8 :   
 
         9 9 :           / * * 
 
   > >   1 0 0 :             *   G e t   e p i c o r K e y . 
 
         1 0 1 :             * 
 
         1 0 2 :             *   @ r e t u r n   s t r i n g 
 
 
 
     L i n e   1 0 4   [ m a t c h :   E P I C O R ] : 
 
         1 0 2 :             *   @ r e t u r n   s t r i n g 
 
         1 0 3 :             * / 
 
   > >   1 0 4 :           p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         1 0 5 :           { 
 
         1 0 6 :                   r e t u r n   $ t h i s - > E p i c o r K e y ; 
 
 
 
     L i n e   1 0 6   [ m a t c h :   E P I C O R ] : 
 
         1 0 4 :           p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         1 0 5 :           { 
 
   > >   1 0 6 :                   r e t u r n   $ t h i s - > E p i c o r K e y ; 
 
         1 0 7 :           } 
 
         1 0 8 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ E n t i t i e s \ G e n e r a t e d \ q u e s t _ C o m p a n y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 9   [ m a t c h :   e p i c o r ] : 
 
         1 7 :             *   @ v a r   s t r i n g 
 
         1 8 :             * / 
 
   > >   1 9 :           p r o t e c t e d   $ E p i c o r C u s t I D ; 
 
         2 0 :   
 
         2 1 :           / * * 
 
 
 
     L i n e   9 9   [ m a t c h :   e p i c o r ] : 
 
         9 7 :   
 
         9 8 :           / * * 
 
   > >   9 9 :             *   S e t   e p i c o r C u s t I D . 
 
         1 0 0 :             * 
 
         1 0 1 :             *   @ p a r a m   s t r i n g   $ e p i c o r C u s t I D 
 
 
 
     L i n e   1 0 1   [ m a t c h :   e p i c o r ] : 
 
         9 9 :             *   S e t   e p i c o r C u s t I D . 
 
         1 0 0 :             * 
 
   > >   1 0 1 :             *   @ p a r a m   s t r i n g   $ e p i c o r C u s t I D 
 
         1 0 2 :             * 
 
         1 0 3 :             *   @ r e t u r n   q u e s t _ C o m p a n y 
 
 
 
     L i n e   1 0 5   [ m a t c h :   e p i c o r ] : 
 
         1 0 3 :             *   @ r e t u r n   q u e s t _ C o m p a n y 
 
         1 0 4 :             * / 
 
   > >   1 0 5 :           p u b l i c   f u n c t i o n   s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) 
 
         1 0 6 :           { 
 
         1 0 7 :                   $ t h i s - > E p i c o r C u s t I D   =   $ e p i c o r C u s t I D ; 
 
 
 
     L i n e   1 0 7   [ m a t c h :   e p i c o r ] : 
 
         1 0 5 :           p u b l i c   f u n c t i o n   s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) 
 
         1 0 6 :           { 
 
   > >   1 0 7 :                   $ t h i s - > E p i c o r C u s t I D   =   $ e p i c o r C u s t I D ; 
 
         1 0 8 :   
 
         1 0 9 :                   r e t u r n   $ t h i s ; 
 
 
 
     L i n e   1 1 3   [ m a t c h :   e p i c o r ] : 
 
         1 1 1 :   
 
         1 1 2 :           / * * 
 
   > >   1 1 3 :             *   G e t   e p i c o r C u s t I D . 
 
         1 1 4 :             * 
 
         1 1 5 :             *   @ r e t u r n   s t r i n g 
 
 
 
     L i n e   1 1 7   [ m a t c h :   e p i c o r ] : 
 
         1 1 5 :             *   @ r e t u r n   s t r i n g 
 
         1 1 6 :             * / 
 
   > >   1 1 7 :           p u b l i c   f u n c t i o n   g e t E p i c o r C u s t I D ( ) 
 
         1 1 8 :           { 
 
         1 1 9 :                   r e t u r n   $ t h i s - > E p i c o r C u s t I D ; 
 
 
 
     L i n e   1 1 9   [ m a t c h :   e p i c o r ] : 
 
         1 1 7 :           p u b l i c   f u n c t i o n   g e t E p i c o r C u s t I D ( ) 
 
         1 1 8 :           { 
 
   > >   1 1 9 :                   r e t u r n   $ t h i s - > E p i c o r C u s t I D ; 
 
         1 2 0 :           } 
 
         1 2 1 :   
 
 
 
     L i n e   1 9   [ m a t c h :   E p i c o r ] : 
 
         1 7 :             *   @ v a r   s t r i n g 
 
         1 8 :             * / 
 
   > >   1 9 :           p r o t e c t e d   $ E p i c o r C u s t I D ; 
 
         2 0 :   
 
         2 1 :           / * * 
 
 
 
     L i n e   9 9   [ m a t c h :   E p i c o r ] : 
 
         9 7 :   
 
         9 8 :           / * * 
 
   > >   9 9 :             *   S e t   e p i c o r C u s t I D . 
 
         1 0 0 :             * 
 
         1 0 1 :             *   @ p a r a m   s t r i n g   $ e p i c o r C u s t I D 
 
 
 
     L i n e   1 0 1   [ m a t c h :   E p i c o r ] : 
 
         9 9 :             *   S e t   e p i c o r C u s t I D . 
 
         1 0 0 :             * 
 
   > >   1 0 1 :             *   @ p a r a m   s t r i n g   $ e p i c o r C u s t I D 
 
         1 0 2 :             * 
 
         1 0 3 :             *   @ r e t u r n   q u e s t _ C o m p a n y 
 
 
 
     L i n e   1 0 5   [ m a t c h :   E p i c o r ] : 
 
         1 0 3 :             *   @ r e t u r n   q u e s t _ C o m p a n y 
 
         1 0 4 :             * / 
 
   > >   1 0 5 :           p u b l i c   f u n c t i o n   s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) 
 
         1 0 6 :           { 
 
         1 0 7 :                   $ t h i s - > E p i c o r C u s t I D   =   $ e p i c o r C u s t I D ; 
 
 
 
     L i n e   1 0 7   [ m a t c h :   E p i c o r ] : 
 
         1 0 5 :           p u b l i c   f u n c t i o n   s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) 
 
         1 0 6 :           { 
 
   > >   1 0 7 :                   $ t h i s - > E p i c o r C u s t I D   =   $ e p i c o r C u s t I D ; 
 
         1 0 8 :   
 
         1 0 9 :                   r e t u r n   $ t h i s ; 
 
 
 
     L i n e   1 1 3   [ m a t c h :   E p i c o r ] : 
 
         1 1 1 :   
 
         1 1 2 :           / * * 
 
   > >   1 1 3 :             *   G e t   e p i c o r C u s t I D . 
 
         1 1 4 :             * 
 
         1 1 5 :             *   @ r e t u r n   s t r i n g 
 
 
 
     L i n e   1 1 7   [ m a t c h :   E p i c o r ] : 
 
         1 1 5 :             *   @ r e t u r n   s t r i n g 
 
         1 1 6 :             * / 
 
   > >   1 1 7 :           p u b l i c   f u n c t i o n   g e t E p i c o r C u s t I D ( ) 
 
         1 1 8 :           { 
 
         1 1 9 :                   r e t u r n   $ t h i s - > E p i c o r C u s t I D ; 
 
 
 
     L i n e   1 1 9   [ m a t c h :   E p i c o r ] : 
 
         1 1 7 :           p u b l i c   f u n c t i o n   g e t E p i c o r C u s t I D ( ) 
 
         1 1 8 :           { 
 
   > >   1 1 9 :                   r e t u r n   $ t h i s - > E p i c o r C u s t I D ; 
 
         1 2 0 :           } 
 
         1 2 1 :   
 
 
 
     L i n e   1 9   [ m a t c h :   E P I C O R ] : 
 
         1 7 :             *   @ v a r   s t r i n g 
 
         1 8 :             * / 
 
   > >   1 9 :           p r o t e c t e d   $ E p i c o r C u s t I D ; 
 
         2 0 :   
 
         2 1 :           / * * 
 
 
 
     L i n e   9 9   [ m a t c h :   E P I C O R ] : 
 
         9 7 :   
 
         9 8 :           / * * 
 
   > >   9 9 :             *   S e t   e p i c o r C u s t I D . 
 
         1 0 0 :             * 
 
         1 0 1 :             *   @ p a r a m   s t r i n g   $ e p i c o r C u s t I D 
 
 
 
     L i n e   1 0 1   [ m a t c h :   E P I C O R ] : 
 
         9 9 :             *   S e t   e p i c o r C u s t I D . 
 
         1 0 0 :             * 
 
   > >   1 0 1 :             *   @ p a r a m   s t r i n g   $ e p i c o r C u s t I D 
 
         1 0 2 :             * 
 
         1 0 3 :             *   @ r e t u r n   q u e s t _ C o m p a n y 
 
 
 
     L i n e   1 0 5   [ m a t c h :   E P I C O R ] : 
 
         1 0 3 :             *   @ r e t u r n   q u e s t _ C o m p a n y 
 
         1 0 4 :             * / 
 
   > >   1 0 5 :           p u b l i c   f u n c t i o n   s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) 
 
         1 0 6 :           { 
 
         1 0 7 :                   $ t h i s - > E p i c o r C u s t I D   =   $ e p i c o r C u s t I D ; 
 
 
 
     L i n e   1 0 7   [ m a t c h :   E P I C O R ] : 
 
         1 0 5 :           p u b l i c   f u n c t i o n   s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) 
 
         1 0 6 :           { 
 
   > >   1 0 7 :                   $ t h i s - > E p i c o r C u s t I D   =   $ e p i c o r C u s t I D ; 
 
         1 0 8 :   
 
         1 0 9 :                   r e t u r n   $ t h i s ; 
 
 
 
     L i n e   1 1 3   [ m a t c h :   E P I C O R ] : 
 
         1 1 1 :   
 
         1 1 2 :           / * * 
 
   > >   1 1 3 :             *   G e t   e p i c o r C u s t I D . 
 
         1 1 4 :             * 
 
         1 1 5 :             *   @ r e t u r n   s t r i n g 
 
 
 
     L i n e   1 1 7   [ m a t c h :   E P I C O R ] : 
 
         1 1 5 :             *   @ r e t u r n   s t r i n g 
 
         1 1 6 :             * / 
 
   > >   1 1 7 :           p u b l i c   f u n c t i o n   g e t E p i c o r C u s t I D ( ) 
 
         1 1 8 :           { 
 
         1 1 9 :                   r e t u r n   $ t h i s - > E p i c o r C u s t I D ; 
 
 
 
     L i n e   1 1 9   [ m a t c h :   E P I C O R ] : 
 
         1 1 7 :           p u b l i c   f u n c t i o n   g e t E p i c o r C u s t I D ( ) 
 
         1 1 8 :           { 
 
   > >   1 1 9 :                   r e t u r n   $ t h i s - > E p i c o r C u s t I D ; 
 
         1 2 0 :           } 
 
         1 2 1 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ E n t i t i e s \ G e n e r a t e d \ q u e s t _ E m a i l E v e n t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 9   [ m a t c h :   w a v e ] : 
 
         2 7 :             *   @ v a r   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ C o l l e c t i o n 
 
         2 8 :             * / 
 
   > >   2 9 :           p r o t e c t e d   $ w a v e _ P r o c e s s ; 
 
         3 0 :   
 
         3 1 :           / * * 
 
 
 
     L i n e   4 2   [ m a t c h :   w a v e ] : 
 
         4 0 :           { 
 
         4 1 :   	 	 p a r e n t : : _ _ c o n s t r u c t ( ) ; 
 
   > >   4 2 :                   $ t h i s - > w a v e _ P r o c e s s   =   n e w   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ A r r a y C o l l e c t i o n ( ) ; 
 
         4 3 :                   $ t h i s - > q u e s t _ U s e r   =   n e w   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ A r r a y C o l l e c t i o n ( ) ; 
 
         4 4 :           } 
 
 
 
     L i n e   1 0 5   [ m a t c h :   w a v e ] : 
 
         1 0 3 :   
 
         1 0 4 :           / * * 
 
   > >   1 0 5 :             *   A d d   w a v e P r o c e s s . 
 
         1 0 6 :             * 
 
         1 0 7 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s 
 
 
 
     L i n e   1 0 7   [ m a t c h :   w a v e ] : 
 
         1 0 5 :             *   A d d   w a v e P r o c e s s . 
 
         1 0 6 :             * 
 
   > >   1 0 7 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s 
 
         1 0 8 :             * 
 
         1 0 9 :             *   @ r e t u r n   q u e s t _ E m a i l E v e n t 
 
 
 
     L i n e   1 1 1   [ m a t c h :   w a v e ] : 
 
         1 0 9 :             *   @ r e t u r n   q u e s t _ E m a i l E v e n t 
 
         1 1 0 :             * / 
 
   > >   1 1 1 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s ) 
 
         1 1 2 :           { 
 
         1 1 3 :                   $ t h i s - > w a v e _ P r o c e s s [ ]   =   $ w a v e P r o c e s s ; 
 
 
 
     L i n e   1 1 3   [ m a t c h :   w a v e ] : 
 
         1 1 1 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s ) 
 
         1 1 2 :           { 
 
   > >   1 1 3 :                   $ t h i s - > w a v e _ P r o c e s s [ ]   =   $ w a v e P r o c e s s ; 
 
         1 1 4 :   
 
         1 1 5 :                   r e t u r n   $ t h i s ; 
 
 
 
     L i n e   1 1 9   [ m a t c h :   w a v e ] : 
 
         1 1 7 :   
 
         1 1 8 :           / * * 
 
   > >   1 1 9 :             *   R e m o v e   w a v e P r o c e s s . 
 
         1 2 0 :             * 
 
         1 2 1 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s 
 
 
 
     L i n e   1 2 1   [ m a t c h :   w a v e ] : 
 
         1 1 9 :             *   R e m o v e   w a v e P r o c e s s . 
 
         1 2 0 :             * 
 
   > >   1 2 1 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s 
 
         1 2 2 :             * 
 
         1 2 3 :             *   @ r e t u r n   b o o l e a n   T R U E   i f   t h i s   c o l l e c t i o n   c o n t a i n e d   t h e   s p e c i f i e d   e l e m e n t ,   F A L S E   o t h e r w i s e . 
 
 
 
     L i n e   1 2 5   [ m a t c h :   w a v e ] : 
 
         1 2 3 :             *   @ r e t u r n   b o o l e a n   T R U E   i f   t h i s   c o l l e c t i o n   c o n t a i n e d   t h e   s p e c i f i e d   e l e m e n t ,   F A L S E   o t h e r w i s e . 
 
         1 2 4 :             * / 
 
   > >   1 2 5 :           p u b l i c   f u n c t i o n   r e m o v e W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s ) 
 
         1 2 6 :           { 
 
         1 2 7 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s - > r e m o v e E l e m e n t ( $ w a v e P r o c e s s ) ; 
 
 
 
     L i n e   1 2 7   [ m a t c h :   w a v e ] : 
 
         1 2 5 :           p u b l i c   f u n c t i o n   r e m o v e W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s ) 
 
         1 2 6 :           { 
 
   > >   1 2 7 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s - > r e m o v e E l e m e n t ( $ w a v e P r o c e s s ) ; 
 
         1 2 8 :           } 
 
         1 2 9 :   
 
 
 
     L i n e   1 3 1   [ m a t c h :   w a v e ] : 
 
         1 2 9 :   
 
         1 3 0 :           / * * 
 
   > >   1 3 1 :             *   G e t   w a v e P r o c e s s . 
 
         1 3 2 :             * 
 
         1 3 3 :             *   @ r e t u r n   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ C o l l e c t i o n 
 
 
 
     L i n e   1 3 5   [ m a t c h :   w a v e ] : 
 
         1 3 3 :             *   @ r e t u r n   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ C o l l e c t i o n 
 
         1 3 4 :             * / 
 
   > >   1 3 5 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
         1 3 6 :           { 
 
         1 3 7 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s ; 
 
 
 
     L i n e   1 3 7   [ m a t c h :   w a v e ] : 
 
         1 3 5 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
         1 3 6 :           { 
 
   > >   1 3 7 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s ; 
 
         1 3 8 :           } 
 
         1 3 9 :   
 
 
 
     L i n e   2 9   [ m a t c h :   W a v e ] : 
 
         2 7 :             *   @ v a r   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ C o l l e c t i o n 
 
         2 8 :             * / 
 
   > >   2 9 :           p r o t e c t e d   $ w a v e _ P r o c e s s ; 
 
         3 0 :   
 
         3 1 :           / * * 
 
 
 
     L i n e   4 2   [ m a t c h :   W a v e ] : 
 
         4 0 :           { 
 
         4 1 :   	 	 p a r e n t : : _ _ c o n s t r u c t ( ) ; 
 
   > >   4 2 :                   $ t h i s - > w a v e _ P r o c e s s   =   n e w   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ A r r a y C o l l e c t i o n ( ) ; 
 
         4 3 :                   $ t h i s - > q u e s t _ U s e r   =   n e w   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ A r r a y C o l l e c t i o n ( ) ; 
 
         4 4 :           } 
 
 
 
     L i n e   1 0 5   [ m a t c h :   W a v e ] : 
 
         1 0 3 :   
 
         1 0 4 :           / * * 
 
   > >   1 0 5 :             *   A d d   w a v e P r o c e s s . 
 
         1 0 6 :             * 
 
         1 0 7 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s 
 
 
 
     L i n e   1 0 7   [ m a t c h :   W a v e ] : 
 
         1 0 5 :             *   A d d   w a v e P r o c e s s . 
 
         1 0 6 :             * 
 
   > >   1 0 7 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s 
 
         1 0 8 :             * 
 
         1 0 9 :             *   @ r e t u r n   q u e s t _ E m a i l E v e n t 
 
 
 
     L i n e   1 1 1   [ m a t c h :   W a v e ] : 
 
         1 0 9 :             *   @ r e t u r n   q u e s t _ E m a i l E v e n t 
 
         1 1 0 :             * / 
 
   > >   1 1 1 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s ) 
 
         1 1 2 :           { 
 
         1 1 3 :                   $ t h i s - > w a v e _ P r o c e s s [ ]   =   $ w a v e P r o c e s s ; 
 
 
 
     L i n e   1 1 3   [ m a t c h :   W a v e ] : 
 
         1 1 1 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s ) 
 
         1 1 2 :           { 
 
   > >   1 1 3 :                   $ t h i s - > w a v e _ P r o c e s s [ ]   =   $ w a v e P r o c e s s ; 
 
         1 1 4 :   
 
         1 1 5 :                   r e t u r n   $ t h i s ; 
 
 
 
     L i n e   1 1 9   [ m a t c h :   W a v e ] : 
 
         1 1 7 :   
 
         1 1 8 :           / * * 
 
   > >   1 1 9 :             *   R e m o v e   w a v e P r o c e s s . 
 
         1 2 0 :             * 
 
         1 2 1 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s 
 
 
 
     L i n e   1 2 1   [ m a t c h :   W a v e ] : 
 
         1 1 9 :             *   R e m o v e   w a v e P r o c e s s . 
 
         1 2 0 :             * 
 
   > >   1 2 1 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s 
 
         1 2 2 :             * 
 
         1 2 3 :             *   @ r e t u r n   b o o l e a n   T R U E   i f   t h i s   c o l l e c t i o n   c o n t a i n e d   t h e   s p e c i f i e d   e l e m e n t ,   F A L S E   o t h e r w i s e . 
 
 
 
     L i n e   1 2 5   [ m a t c h :   W a v e ] : 
 
         1 2 3 :             *   @ r e t u r n   b o o l e a n   T R U E   i f   t h i s   c o l l e c t i o n   c o n t a i n e d   t h e   s p e c i f i e d   e l e m e n t ,   F A L S E   o t h e r w i s e . 
 
         1 2 4 :             * / 
 
   > >   1 2 5 :           p u b l i c   f u n c t i o n   r e m o v e W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s ) 
 
         1 2 6 :           { 
 
         1 2 7 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s - > r e m o v e E l e m e n t ( $ w a v e P r o c e s s ) ; 
 
 
 
     L i n e   1 2 7   [ m a t c h :   W a v e ] : 
 
         1 2 5 :           p u b l i c   f u n c t i o n   r e m o v e W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s ) 
 
         1 2 6 :           { 
 
   > >   1 2 7 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s - > r e m o v e E l e m e n t ( $ w a v e P r o c e s s ) ; 
 
         1 2 8 :           } 
 
         1 2 9 :   
 
 
 
     L i n e   1 3 1   [ m a t c h :   W a v e ] : 
 
         1 2 9 :   
 
         1 3 0 :           / * * 
 
   > >   1 3 1 :             *   G e t   w a v e P r o c e s s . 
 
         1 3 2 :             * 
 
         1 3 3 :             *   @ r e t u r n   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ C o l l e c t i o n 
 
 
 
     L i n e   1 3 5   [ m a t c h :   W a v e ] : 
 
         1 3 3 :             *   @ r e t u r n   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ C o l l e c t i o n 
 
         1 3 4 :             * / 
 
   > >   1 3 5 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
         1 3 6 :           { 
 
         1 3 7 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s ; 
 
 
 
     L i n e   1 3 7   [ m a t c h :   W a v e ] : 
 
         1 3 5 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
         1 3 6 :           { 
 
   > >   1 3 7 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s ; 
 
         1 3 8 :           } 
 
         1 3 9 :   
 
 
 
     L i n e   2 9   [ m a t c h :   W A V E ] : 
 
         2 7 :             *   @ v a r   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ C o l l e c t i o n 
 
         2 8 :             * / 
 
   > >   2 9 :           p r o t e c t e d   $ w a v e _ P r o c e s s ; 
 
         3 0 :   
 
         3 1 :           / * * 
 
 
 
     L i n e   4 2   [ m a t c h :   W A V E ] : 
 
         4 0 :           { 
 
         4 1 :   	 	 p a r e n t : : _ _ c o n s t r u c t ( ) ; 
 
   > >   4 2 :                   $ t h i s - > w a v e _ P r o c e s s   =   n e w   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ A r r a y C o l l e c t i o n ( ) ; 
 
         4 3 :                   $ t h i s - > q u e s t _ U s e r   =   n e w   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ A r r a y C o l l e c t i o n ( ) ; 
 
         4 4 :           } 
 
 
 
     L i n e   1 0 5   [ m a t c h :   W A V E ] : 
 
         1 0 3 :   
 
         1 0 4 :           / * * 
 
   > >   1 0 5 :             *   A d d   w a v e P r o c e s s . 
 
         1 0 6 :             * 
 
         1 0 7 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s 
 
 
 
     L i n e   1 0 7   [ m a t c h :   W A V E ] : 
 
         1 0 5 :             *   A d d   w a v e P r o c e s s . 
 
         1 0 6 :             * 
 
   > >   1 0 7 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s 
 
         1 0 8 :             * 
 
         1 0 9 :             *   @ r e t u r n   q u e s t _ E m a i l E v e n t 
 
 
 
     L i n e   1 1 1   [ m a t c h :   W A V E ] : 
 
         1 0 9 :             *   @ r e t u r n   q u e s t _ E m a i l E v e n t 
 
         1 1 0 :             * / 
 
   > >   1 1 1 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s ) 
 
         1 1 2 :           { 
 
         1 1 3 :                   $ t h i s - > w a v e _ P r o c e s s [ ]   =   $ w a v e P r o c e s s ; 
 
 
 
     L i n e   1 1 3   [ m a t c h :   W A V E ] : 
 
         1 1 1 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s ) 
 
         1 1 2 :           { 
 
   > >   1 1 3 :                   $ t h i s - > w a v e _ P r o c e s s [ ]   =   $ w a v e P r o c e s s ; 
 
         1 1 4 :   
 
         1 1 5 :                   r e t u r n   $ t h i s ; 
 
 
 
     L i n e   1 1 9   [ m a t c h :   W A V E ] : 
 
         1 1 7 :   
 
         1 1 8 :           / * * 
 
   > >   1 1 9 :             *   R e m o v e   w a v e P r o c e s s . 
 
         1 2 0 :             * 
 
         1 2 1 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s 
 
 
 
     L i n e   1 2 1   [ m a t c h :   W A V E ] : 
 
         1 1 9 :             *   R e m o v e   w a v e P r o c e s s . 
 
         1 2 0 :             * 
 
   > >   1 2 1 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s 
 
         1 2 2 :             * 
 
         1 2 3 :             *   @ r e t u r n   b o o l e a n   T R U E   i f   t h i s   c o l l e c t i o n   c o n t a i n e d   t h e   s p e c i f i e d   e l e m e n t ,   F A L S E   o t h e r w i s e . 
 
 
 
     L i n e   1 2 5   [ m a t c h :   W A V E ] : 
 
         1 2 3 :             *   @ r e t u r n   b o o l e a n   T R U E   i f   t h i s   c o l l e c t i o n   c o n t a i n e d   t h e   s p e c i f i e d   e l e m e n t ,   F A L S E   o t h e r w i s e . 
 
         1 2 4 :             * / 
 
   > >   1 2 5 :           p u b l i c   f u n c t i o n   r e m o v e W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s ) 
 
         1 2 6 :           { 
 
         1 2 7 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s - > r e m o v e E l e m e n t ( $ w a v e P r o c e s s ) ; 
 
 
 
     L i n e   1 2 7   [ m a t c h :   W A V E ] : 
 
         1 2 5 :           p u b l i c   f u n c t i o n   r e m o v e W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s ) 
 
         1 2 6 :           { 
 
   > >   1 2 7 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s - > r e m o v e E l e m e n t ( $ w a v e P r o c e s s ) ; 
 
         1 2 8 :           } 
 
         1 2 9 :   
 
 
 
     L i n e   1 3 1   [ m a t c h :   W A V E ] : 
 
         1 2 9 :   
 
         1 3 0 :           / * * 
 
   > >   1 3 1 :             *   G e t   w a v e P r o c e s s . 
 
         1 3 2 :             * 
 
         1 3 3 :             *   @ r e t u r n   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ C o l l e c t i o n 
 
 
 
     L i n e   1 3 5   [ m a t c h :   W A V E ] : 
 
         1 3 3 :             *   @ r e t u r n   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ C o l l e c t i o n 
 
         1 3 4 :             * / 
 
   > >   1 3 5 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
         1 3 6 :           { 
 
         1 3 7 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s ; 
 
 
 
     L i n e   1 3 7   [ m a t c h :   W A V E ] : 
 
         1 3 5 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
         1 3 6 :           { 
 
   > >   1 3 7 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s ; 
 
         1 3 8 :           } 
 
         1 3 9 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ E n t i t i e s \ G e n e r a t e d \ s h i p _ R e q u e s t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 5 3   [ m a t c h :   U P D A T E   ] : 
 
         6 5 1 :             *   @ r e t u r n   s h i p _ R e q u e s t 
 
         6 5 2 :             * / 
 
   > >   6 5 3 :           p u b l i c   f u n c t i o n   s e t R e q u e s t e d P i c k u p D a t e ( $ r e q u e s t e d P i c k u p D a t e   =   n u l l ) 
 
         6 5 4 :           { 
 
         6 5 5 :                   $ t h i s - > R e q u e s t e d P i c k u p D a t e   =   $ r e q u e s t e d P i c k u p D a t e ; 
 
 
 
     L i n e   6 5 5   [ m a t c h :   U P D A T E   ] : 
 
         6 5 3 :           p u b l i c   f u n c t i o n   s e t R e q u e s t e d P i c k u p D a t e ( $ r e q u e s t e d P i c k u p D a t e   =   n u l l ) 
 
         6 5 4 :           { 
 
   > >   6 5 5 :                   $ t h i s - > R e q u e s t e d P i c k u p D a t e   =   $ r e q u e s t e d P i c k u p D a t e ; 
 
         6 5 6 :   
 
         6 5 7 :                   r e t u r n   $ t h i s ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ E n t i t i e s \ G e n e r a t e d \ w a v e _ P r o c e s s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6   [ m a t c h :   w a v e ] : 
 
         4 :   
 
         5 :   / * * 
 
   > >   6 :     *   w a v e _ P r o c e s s 
 
         7 :     *   @ M a p p e d S u p e r c l a s s 
 
         8 :     * / 
 
 
 
     L i n e   9   [ m a t c h :   w a v e ] : 
 
         7 :     *   @ M a p p e d S u p e r c l a s s 
 
         8 :     * / 
 
   > >   9 :   a b s t r a c t   c l a s s   w a v e _ P r o c e s s   e x t e n d s   \ A p p \ M o d e l \ B a s e \ E n t i t y 
 
         1 0 :   { 
 
         1 1 :           / * * 
 
 
 
     L i n e   4 9   [ m a t c h :   w a v e ] : 
 
         4 7 :             *   @ v a r   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ C o l l e c t i o n 
 
         4 8 :             * / 
 
   > >   4 9 :           p r o t e c t e d   $ w a v e _ P r o c e s s H i s t o r y ; 
 
         5 0 :   
 
         5 1 :           / * * 
 
 
 
     L i n e   6 2   [ m a t c h :   w a v e ] : 
 
         6 0 :           { 
 
         6 1 :   	 	 p a r e n t : : _ _ c o n s t r u c t ( ) ; 
 
   > >   6 2 :                   $ t h i s - > w a v e _ P r o c e s s H i s t o r y   =   n e w   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ A r r a y C o l l e c t i o n ( ) ; 
 
         6 3 :           } 
 
         6 4 :   
 
 
 
     L i n e   8 0   [ m a t c h :   w a v e ] : 
 
         7 8 :             *   @ p a r a m   s t r i n g   $ c o d i n g K e y 
 
         7 9 :             * 
 
   > >   8 0 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         8 1 :             * / 
 
         8 2 :           p u b l i c   f u n c t i o n   s e t C o d i n g K e y ( $ c o d i n g K e y ) 
 
 
 
     L i n e   1 0 4   [ m a t c h :   w a v e ] : 
 
         1 0 2 :             *   @ p a r a m   b o o l   $ i s E n a b l e d 
 
         1 0 3 :             * 
 
   > >   1 0 4 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         1 0 5 :             * / 
 
         1 0 6 :           p u b l i c   f u n c t i o n   s e t I s E n a b l e d ( $ i s E n a b l e d ) 
 
 
 
     L i n e   1 2 8   [ m a t c h :   w a v e ] : 
 
         1 2 6 :             *   @ p a r a m   i n t   $ p r o c e s s O r d e r 
 
         1 2 7 :             * 
 
   > >   1 2 8 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         1 2 9 :             * / 
 
         1 3 0 :           p u b l i c   f u n c t i o n   s e t P r o c e s s O r d e r ( $ p r o c e s s O r d e r ) 
 
 
 
     L i n e   1 5 2   [ m a t c h :   w a v e ] : 
 
         1 5 0 :             *   @ p a r a m   s t r i n g   $ p r o c e s s N a m e 
 
         1 5 1 :             * 
 
   > >   1 5 2 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         1 5 3 :             * / 
 
         1 5 4 :           p u b l i c   f u n c t i o n   s e t P r o c e s s N a m e ( $ p r o c e s s N a m e ) 
 
 
 
     L i n e   1 7 6   [ m a t c h :   w a v e ] : 
 
         1 7 4 :             *   @ p a r a m   s t r i n g | n u l l   $ p r o c e s s D e s c 
 
         1 7 5 :             * 
 
   > >   1 7 6 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         1 7 7 :             * / 
 
         1 7 8 :           p u b l i c   f u n c t i o n   s e t P r o c e s s D e s c ( $ p r o c e s s D e s c   =   n u l l ) 
 
 
 
     L i n e   2 0 0   [ m a t c h :   w a v e ] : 
 
         1 9 8 :             *   @ p a r a m   \ D a t e T i m e | n u l l   $ l a s t R a n D T 
 
         1 9 9 :             * 
 
   > >   2 0 0 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         2 0 1 :             * / 
 
         2 0 2 :           p u b l i c   f u n c t i o n   s e t L a s t R a n D T ( $ l a s t R a n D T   =   n u l l ) 
 
 
 
     L i n e   2 2 0   [ m a t c h :   w a v e ] : 
 
         2 1 8 :   
 
         2 1 9 :           / * * 
 
   > >   2 2 0 :             *   A d d   w a v e P r o c e s s H i s t o r y . 
 
         2 2 1 :             * 
 
         2 2 2 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y 
 
 
 
     L i n e   2 2 2   [ m a t c h :   w a v e ] : 
 
         2 2 0 :             *   A d d   w a v e P r o c e s s H i s t o r y . 
 
         2 2 1 :             * 
 
   > >   2 2 2 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y 
 
         2 2 3 :             * 
 
         2 2 4 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
 
 
     L i n e   2 2 4   [ m a t c h :   w a v e ] : 
 
         2 2 2 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y 
 
         2 2 3 :             * 
 
   > >   2 2 4 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         2 2 5 :             * / 
 
         2 2 6 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
 
 
     L i n e   2 2 6   [ m a t c h :   w a v e ] : 
 
         2 2 4 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         2 2 5 :             * / 
 
   > >   2 2 6 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
         2 2 7 :           { 
 
         2 2 8 :                   $ t h i s - > w a v e _ P r o c e s s H i s t o r y [ ]   =   $ w a v e P r o c e s s H i s t o r y ; 
 
 
 
     L i n e   2 2 8   [ m a t c h :   w a v e ] : 
 
         2 2 6 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
         2 2 7 :           { 
 
   > >   2 2 8 :                   $ t h i s - > w a v e _ P r o c e s s H i s t o r y [ ]   =   $ w a v e P r o c e s s H i s t o r y ; 
 
         2 2 9 :   
 
         2 3 0 :                   r e t u r n   $ t h i s ; 
 
 
 
     L i n e   2 3 4   [ m a t c h :   w a v e ] : 
 
         2 3 2 :   
 
         2 3 3 :           / * * 
 
   > >   2 3 4 :             *   R e m o v e   w a v e P r o c e s s H i s t o r y . 
 
         2 3 5 :             * 
 
         2 3 6 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y 
 
 
 
     L i n e   2 3 6   [ m a t c h :   w a v e ] : 
 
         2 3 4 :             *   R e m o v e   w a v e P r o c e s s H i s t o r y . 
 
         2 3 5 :             * 
 
   > >   2 3 6 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y 
 
         2 3 7 :             * 
 
         2 3 8 :             *   @ r e t u r n   b o o l e a n   T R U E   i f   t h i s   c o l l e c t i o n   c o n t a i n e d   t h e   s p e c i f i e d   e l e m e n t ,   F A L S E   o t h e r w i s e . 
 
 
 
     L i n e   2 4 0   [ m a t c h :   w a v e ] : 
 
         2 3 8 :             *   @ r e t u r n   b o o l e a n   T R U E   i f   t h i s   c o l l e c t i o n   c o n t a i n e d   t h e   s p e c i f i e d   e l e m e n t ,   F A L S E   o t h e r w i s e . 
 
         2 3 9 :             * / 
 
   > >   2 4 0 :           p u b l i c   f u n c t i o n   r e m o v e W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
         2 4 1 :           { 
 
         2 4 2 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s H i s t o r y - > r e m o v e E l e m e n t ( $ w a v e P r o c e s s H i s t o r y ) ; 
 
 
 
     L i n e   2 4 2   [ m a t c h :   w a v e ] : 
 
         2 4 0 :           p u b l i c   f u n c t i o n   r e m o v e W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
         2 4 1 :           { 
 
   > >   2 4 2 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s H i s t o r y - > r e m o v e E l e m e n t ( $ w a v e P r o c e s s H i s t o r y ) ; 
 
         2 4 3 :           } 
 
         2 4 4 :   
 
 
 
     L i n e   2 4 6   [ m a t c h :   w a v e ] : 
 
         2 4 4 :   
 
         2 4 5 :           / * * 
 
   > >   2 4 6 :             *   G e t   w a v e P r o c e s s H i s t o r y . 
 
         2 4 7 :             * 
 
         2 4 8 :             *   @ r e t u r n   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ C o l l e c t i o n 
 
 
 
     L i n e   2 5 0   [ m a t c h :   w a v e ] : 
 
         2 4 8 :             *   @ r e t u r n   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ C o l l e c t i o n 
 
         2 4 9 :             * / 
 
   > >   2 5 0 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s H i s t o r y ( ) 
 
         2 5 1 :           { 
 
         2 5 2 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s H i s t o r y ; 
 
 
 
     L i n e   2 5 2   [ m a t c h :   w a v e ] : 
 
         2 5 0 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s H i s t o r y ( ) 
 
         2 5 1 :           { 
 
   > >   2 5 2 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s H i s t o r y ; 
 
         2 5 3 :           } 
 
         2 5 4 :   
 
 
 
     L i n e   2 6 0   [ m a t c h :   w a v e ] : 
 
         2 5 8 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ E m a i l E v e n t | n u l l   $ q u e s t E m a i l E v e n t 
 
         2 5 9 :             * 
 
   > >   2 6 0 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         2 6 1 :             * / 
 
         2 6 2 :           p u b l i c   f u n c t i o n   s e t Q u e s t E m a i l E v e n t ( \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ E m a i l E v e n t   $ q u e s t E m a i l E v e n t   =   n u l l ) 
 
 
 
     L i n e   6   [ m a t c h :   W a v e ] : 
 
         4 :   
 
         5 :   / * * 
 
   > >   6 :     *   w a v e _ P r o c e s s 
 
         7 :     *   @ M a p p e d S u p e r c l a s s 
 
         8 :     * / 
 
 
 
     L i n e   9   [ m a t c h :   W a v e ] : 
 
         7 :     *   @ M a p p e d S u p e r c l a s s 
 
         8 :     * / 
 
   > >   9 :   a b s t r a c t   c l a s s   w a v e _ P r o c e s s   e x t e n d s   \ A p p \ M o d e l \ B a s e \ E n t i t y 
 
         1 0 :   { 
 
         1 1 :           / * * 
 
 
 
     L i n e   4 9   [ m a t c h :   W a v e ] : 
 
         4 7 :             *   @ v a r   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ C o l l e c t i o n 
 
         4 8 :             * / 
 
   > >   4 9 :           p r o t e c t e d   $ w a v e _ P r o c e s s H i s t o r y ; 
 
         5 0 :   
 
         5 1 :           / * * 
 
 
 
     L i n e   6 2   [ m a t c h :   W a v e ] : 
 
         6 0 :           { 
 
         6 1 :   	 	 p a r e n t : : _ _ c o n s t r u c t ( ) ; 
 
   > >   6 2 :                   $ t h i s - > w a v e _ P r o c e s s H i s t o r y   =   n e w   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ A r r a y C o l l e c t i o n ( ) ; 
 
         6 3 :           } 
 
         6 4 :   
 
 
 
     L i n e   8 0   [ m a t c h :   W a v e ] : 
 
         7 8 :             *   @ p a r a m   s t r i n g   $ c o d i n g K e y 
 
         7 9 :             * 
 
   > >   8 0 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         8 1 :             * / 
 
         8 2 :           p u b l i c   f u n c t i o n   s e t C o d i n g K e y ( $ c o d i n g K e y ) 
 
 
 
     L i n e   1 0 4   [ m a t c h :   W a v e ] : 
 
         1 0 2 :             *   @ p a r a m   b o o l   $ i s E n a b l e d 
 
         1 0 3 :             * 
 
   > >   1 0 4 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         1 0 5 :             * / 
 
         1 0 6 :           p u b l i c   f u n c t i o n   s e t I s E n a b l e d ( $ i s E n a b l e d ) 
 
 
 
     L i n e   1 2 8   [ m a t c h :   W a v e ] : 
 
         1 2 6 :             *   @ p a r a m   i n t   $ p r o c e s s O r d e r 
 
         1 2 7 :             * 
 
   > >   1 2 8 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         1 2 9 :             * / 
 
         1 3 0 :           p u b l i c   f u n c t i o n   s e t P r o c e s s O r d e r ( $ p r o c e s s O r d e r ) 
 
 
 
     L i n e   1 5 2   [ m a t c h :   W a v e ] : 
 
         1 5 0 :             *   @ p a r a m   s t r i n g   $ p r o c e s s N a m e 
 
         1 5 1 :             * 
 
   > >   1 5 2 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         1 5 3 :             * / 
 
         1 5 4 :           p u b l i c   f u n c t i o n   s e t P r o c e s s N a m e ( $ p r o c e s s N a m e ) 
 
 
 
     L i n e   1 7 6   [ m a t c h :   W a v e ] : 
 
         1 7 4 :             *   @ p a r a m   s t r i n g | n u l l   $ p r o c e s s D e s c 
 
         1 7 5 :             * 
 
   > >   1 7 6 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         1 7 7 :             * / 
 
         1 7 8 :           p u b l i c   f u n c t i o n   s e t P r o c e s s D e s c ( $ p r o c e s s D e s c   =   n u l l ) 
 
 
 
     L i n e   2 0 0   [ m a t c h :   W a v e ] : 
 
         1 9 8 :             *   @ p a r a m   \ D a t e T i m e | n u l l   $ l a s t R a n D T 
 
         1 9 9 :             * 
 
   > >   2 0 0 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         2 0 1 :             * / 
 
         2 0 2 :           p u b l i c   f u n c t i o n   s e t L a s t R a n D T ( $ l a s t R a n D T   =   n u l l ) 
 
 
 
     L i n e   2 2 0   [ m a t c h :   W a v e ] : 
 
         2 1 8 :   
 
         2 1 9 :           / * * 
 
   > >   2 2 0 :             *   A d d   w a v e P r o c e s s H i s t o r y . 
 
         2 2 1 :             * 
 
         2 2 2 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y 
 
 
 
     L i n e   2 2 2   [ m a t c h :   W a v e ] : 
 
         2 2 0 :             *   A d d   w a v e P r o c e s s H i s t o r y . 
 
         2 2 1 :             * 
 
   > >   2 2 2 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y 
 
         2 2 3 :             * 
 
         2 2 4 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
 
 
     L i n e   2 2 4   [ m a t c h :   W a v e ] : 
 
         2 2 2 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y 
 
         2 2 3 :             * 
 
   > >   2 2 4 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         2 2 5 :             * / 
 
         2 2 6 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
 
 
     L i n e   2 2 6   [ m a t c h :   W a v e ] : 
 
         2 2 4 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         2 2 5 :             * / 
 
   > >   2 2 6 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
         2 2 7 :           { 
 
         2 2 8 :                   $ t h i s - > w a v e _ P r o c e s s H i s t o r y [ ]   =   $ w a v e P r o c e s s H i s t o r y ; 
 
 
 
     L i n e   2 2 8   [ m a t c h :   W a v e ] : 
 
         2 2 6 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
         2 2 7 :           { 
 
   > >   2 2 8 :                   $ t h i s - > w a v e _ P r o c e s s H i s t o r y [ ]   =   $ w a v e P r o c e s s H i s t o r y ; 
 
         2 2 9 :   
 
         2 3 0 :                   r e t u r n   $ t h i s ; 
 
 
 
     L i n e   2 3 4   [ m a t c h :   W a v e ] : 
 
         2 3 2 :   
 
         2 3 3 :           / * * 
 
   > >   2 3 4 :             *   R e m o v e   w a v e P r o c e s s H i s t o r y . 
 
         2 3 5 :             * 
 
         2 3 6 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y 
 
 
 
     L i n e   2 3 6   [ m a t c h :   W a v e ] : 
 
         2 3 4 :             *   R e m o v e   w a v e P r o c e s s H i s t o r y . 
 
         2 3 5 :             * 
 
   > >   2 3 6 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y 
 
         2 3 7 :             * 
 
         2 3 8 :             *   @ r e t u r n   b o o l e a n   T R U E   i f   t h i s   c o l l e c t i o n   c o n t a i n e d   t h e   s p e c i f i e d   e l e m e n t ,   F A L S E   o t h e r w i s e . 
 
 
 
     L i n e   2 4 0   [ m a t c h :   W a v e ] : 
 
         2 3 8 :             *   @ r e t u r n   b o o l e a n   T R U E   i f   t h i s   c o l l e c t i o n   c o n t a i n e d   t h e   s p e c i f i e d   e l e m e n t ,   F A L S E   o t h e r w i s e . 
 
         2 3 9 :             * / 
 
   > >   2 4 0 :           p u b l i c   f u n c t i o n   r e m o v e W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
         2 4 1 :           { 
 
         2 4 2 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s H i s t o r y - > r e m o v e E l e m e n t ( $ w a v e P r o c e s s H i s t o r y ) ; 
 
 
 
     L i n e   2 4 2   [ m a t c h :   W a v e ] : 
 
         2 4 0 :           p u b l i c   f u n c t i o n   r e m o v e W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
         2 4 1 :           { 
 
   > >   2 4 2 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s H i s t o r y - > r e m o v e E l e m e n t ( $ w a v e P r o c e s s H i s t o r y ) ; 
 
         2 4 3 :           } 
 
         2 4 4 :   
 
 
 
     L i n e   2 4 6   [ m a t c h :   W a v e ] : 
 
         2 4 4 :   
 
         2 4 5 :           / * * 
 
   > >   2 4 6 :             *   G e t   w a v e P r o c e s s H i s t o r y . 
 
         2 4 7 :             * 
 
         2 4 8 :             *   @ r e t u r n   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ C o l l e c t i o n 
 
 
 
     L i n e   2 5 0   [ m a t c h :   W a v e ] : 
 
         2 4 8 :             *   @ r e t u r n   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ C o l l e c t i o n 
 
         2 4 9 :             * / 
 
   > >   2 5 0 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s H i s t o r y ( ) 
 
         2 5 1 :           { 
 
         2 5 2 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s H i s t o r y ; 
 
 
 
     L i n e   2 5 2   [ m a t c h :   W a v e ] : 
 
         2 5 0 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s H i s t o r y ( ) 
 
         2 5 1 :           { 
 
   > >   2 5 2 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s H i s t o r y ; 
 
         2 5 3 :           } 
 
         2 5 4 :   
 
 
 
     L i n e   2 6 0   [ m a t c h :   W a v e ] : 
 
         2 5 8 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ E m a i l E v e n t | n u l l   $ q u e s t E m a i l E v e n t 
 
         2 5 9 :             * 
 
   > >   2 6 0 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         2 6 1 :             * / 
 
         2 6 2 :           p u b l i c   f u n c t i o n   s e t Q u e s t E m a i l E v e n t ( \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ E m a i l E v e n t   $ q u e s t E m a i l E v e n t   =   n u l l ) 
 
 
 
     L i n e   6   [ m a t c h :   W A V E ] : 
 
         4 :   
 
         5 :   / * * 
 
   > >   6 :     *   w a v e _ P r o c e s s 
 
         7 :     *   @ M a p p e d S u p e r c l a s s 
 
         8 :     * / 
 
 
 
     L i n e   9   [ m a t c h :   W A V E ] : 
 
         7 :     *   @ M a p p e d S u p e r c l a s s 
 
         8 :     * / 
 
   > >   9 :   a b s t r a c t   c l a s s   w a v e _ P r o c e s s   e x t e n d s   \ A p p \ M o d e l \ B a s e \ E n t i t y 
 
         1 0 :   { 
 
         1 1 :           / * * 
 
 
 
     L i n e   4 9   [ m a t c h :   W A V E ] : 
 
         4 7 :             *   @ v a r   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ C o l l e c t i o n 
 
         4 8 :             * / 
 
   > >   4 9 :           p r o t e c t e d   $ w a v e _ P r o c e s s H i s t o r y ; 
 
         5 0 :   
 
         5 1 :           / * * 
 
 
 
     L i n e   6 2   [ m a t c h :   W A V E ] : 
 
         6 0 :           { 
 
         6 1 :   	 	 p a r e n t : : _ _ c o n s t r u c t ( ) ; 
 
   > >   6 2 :                   $ t h i s - > w a v e _ P r o c e s s H i s t o r y   =   n e w   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ A r r a y C o l l e c t i o n ( ) ; 
 
         6 3 :           } 
 
         6 4 :   
 
 
 
     L i n e   8 0   [ m a t c h :   W A V E ] : 
 
         7 8 :             *   @ p a r a m   s t r i n g   $ c o d i n g K e y 
 
         7 9 :             * 
 
   > >   8 0 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         8 1 :             * / 
 
         8 2 :           p u b l i c   f u n c t i o n   s e t C o d i n g K e y ( $ c o d i n g K e y ) 
 
 
 
     L i n e   1 0 4   [ m a t c h :   W A V E ] : 
 
         1 0 2 :             *   @ p a r a m   b o o l   $ i s E n a b l e d 
 
         1 0 3 :             * 
 
   > >   1 0 4 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         1 0 5 :             * / 
 
         1 0 6 :           p u b l i c   f u n c t i o n   s e t I s E n a b l e d ( $ i s E n a b l e d ) 
 
 
 
     L i n e   1 2 8   [ m a t c h :   W A V E ] : 
 
         1 2 6 :             *   @ p a r a m   i n t   $ p r o c e s s O r d e r 
 
         1 2 7 :             * 
 
   > >   1 2 8 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         1 2 9 :             * / 
 
         1 3 0 :           p u b l i c   f u n c t i o n   s e t P r o c e s s O r d e r ( $ p r o c e s s O r d e r ) 
 
 
 
     L i n e   1 5 2   [ m a t c h :   W A V E ] : 
 
         1 5 0 :             *   @ p a r a m   s t r i n g   $ p r o c e s s N a m e 
 
         1 5 1 :             * 
 
   > >   1 5 2 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         1 5 3 :             * / 
 
         1 5 4 :           p u b l i c   f u n c t i o n   s e t P r o c e s s N a m e ( $ p r o c e s s N a m e ) 
 
 
 
     L i n e   1 7 6   [ m a t c h :   W A V E ] : 
 
         1 7 4 :             *   @ p a r a m   s t r i n g | n u l l   $ p r o c e s s D e s c 
 
         1 7 5 :             * 
 
   > >   1 7 6 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         1 7 7 :             * / 
 
         1 7 8 :           p u b l i c   f u n c t i o n   s e t P r o c e s s D e s c ( $ p r o c e s s D e s c   =   n u l l ) 
 
 
 
     L i n e   2 0 0   [ m a t c h :   W A V E ] : 
 
         1 9 8 :             *   @ p a r a m   \ D a t e T i m e | n u l l   $ l a s t R a n D T 
 
         1 9 9 :             * 
 
   > >   2 0 0 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         2 0 1 :             * / 
 
         2 0 2 :           p u b l i c   f u n c t i o n   s e t L a s t R a n D T ( $ l a s t R a n D T   =   n u l l ) 
 
 
 
     L i n e   2 2 0   [ m a t c h :   W A V E ] : 
 
         2 1 8 :   
 
         2 1 9 :           / * * 
 
   > >   2 2 0 :             *   A d d   w a v e P r o c e s s H i s t o r y . 
 
         2 2 1 :             * 
 
         2 2 2 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y 
 
 
 
     L i n e   2 2 2   [ m a t c h :   W A V E ] : 
 
         2 2 0 :             *   A d d   w a v e P r o c e s s H i s t o r y . 
 
         2 2 1 :             * 
 
   > >   2 2 2 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y 
 
         2 2 3 :             * 
 
         2 2 4 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
 
 
     L i n e   2 2 4   [ m a t c h :   W A V E ] : 
 
         2 2 2 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y 
 
         2 2 3 :             * 
 
   > >   2 2 4 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         2 2 5 :             * / 
 
         2 2 6 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
 
 
     L i n e   2 2 6   [ m a t c h :   W A V E ] : 
 
         2 2 4 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         2 2 5 :             * / 
 
   > >   2 2 6 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
         2 2 7 :           { 
 
         2 2 8 :                   $ t h i s - > w a v e _ P r o c e s s H i s t o r y [ ]   =   $ w a v e P r o c e s s H i s t o r y ; 
 
 
 
     L i n e   2 2 8   [ m a t c h :   W A V E ] : 
 
         2 2 6 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
         2 2 7 :           { 
 
   > >   2 2 8 :                   $ t h i s - > w a v e _ P r o c e s s H i s t o r y [ ]   =   $ w a v e P r o c e s s H i s t o r y ; 
 
         2 2 9 :   
 
         2 3 0 :                   r e t u r n   $ t h i s ; 
 
 
 
     L i n e   2 3 4   [ m a t c h :   W A V E ] : 
 
         2 3 2 :   
 
         2 3 3 :           / * * 
 
   > >   2 3 4 :             *   R e m o v e   w a v e P r o c e s s H i s t o r y . 
 
         2 3 5 :             * 
 
         2 3 6 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y 
 
 
 
     L i n e   2 3 6   [ m a t c h :   W A V E ] : 
 
         2 3 4 :             *   R e m o v e   w a v e P r o c e s s H i s t o r y . 
 
         2 3 5 :             * 
 
   > >   2 3 6 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y 
 
         2 3 7 :             * 
 
         2 3 8 :             *   @ r e t u r n   b o o l e a n   T R U E   i f   t h i s   c o l l e c t i o n   c o n t a i n e d   t h e   s p e c i f i e d   e l e m e n t ,   F A L S E   o t h e r w i s e . 
 
 
 
     L i n e   2 4 0   [ m a t c h :   W A V E ] : 
 
         2 3 8 :             *   @ r e t u r n   b o o l e a n   T R U E   i f   t h i s   c o l l e c t i o n   c o n t a i n e d   t h e   s p e c i f i e d   e l e m e n t ,   F A L S E   o t h e r w i s e . 
 
         2 3 9 :             * / 
 
   > >   2 4 0 :           p u b l i c   f u n c t i o n   r e m o v e W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
         2 4 1 :           { 
 
         2 4 2 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s H i s t o r y - > r e m o v e E l e m e n t ( $ w a v e P r o c e s s H i s t o r y ) ; 
 
 
 
     L i n e   2 4 2   [ m a t c h :   W A V E ] : 
 
         2 4 0 :           p u b l i c   f u n c t i o n   r e m o v e W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
         2 4 1 :           { 
 
   > >   2 4 2 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s H i s t o r y - > r e m o v e E l e m e n t ( $ w a v e P r o c e s s H i s t o r y ) ; 
 
         2 4 3 :           } 
 
         2 4 4 :   
 
 
 
     L i n e   2 4 6   [ m a t c h :   W A V E ] : 
 
         2 4 4 :   
 
         2 4 5 :           / * * 
 
   > >   2 4 6 :             *   G e t   w a v e P r o c e s s H i s t o r y . 
 
         2 4 7 :             * 
 
         2 4 8 :             *   @ r e t u r n   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ C o l l e c t i o n 
 
 
 
     L i n e   2 5 0   [ m a t c h :   W A V E ] : 
 
         2 4 8 :             *   @ r e t u r n   \ D o c t r i n e \ C o m m o n \ C o l l e c t i o n s \ C o l l e c t i o n 
 
         2 4 9 :             * / 
 
   > >   2 5 0 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s H i s t o r y ( ) 
 
         2 5 1 :           { 
 
         2 5 2 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s H i s t o r y ; 
 
 
 
     L i n e   2 5 2   [ m a t c h :   W A V E ] : 
 
         2 5 0 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s H i s t o r y ( ) 
 
         2 5 1 :           { 
 
   > >   2 5 2 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s H i s t o r y ; 
 
         2 5 3 :           } 
 
         2 5 4 :   
 
 
 
     L i n e   2 6 0   [ m a t c h :   W A V E ] : 
 
         2 5 8 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ E m a i l E v e n t | n u l l   $ q u e s t E m a i l E v e n t 
 
         2 5 9 :             * 
 
   > >   2 6 0 :             *   @ r e t u r n   w a v e _ P r o c e s s 
 
         2 6 1 :             * / 
 
         2 6 2 :           p u b l i c   f u n c t i o n   s e t Q u e s t E m a i l E v e n t ( \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ E m a i l E v e n t   $ q u e s t E m a i l E v e n t   =   n u l l ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ E n t i t i e s \ G e n e r a t e d \ w a v e _ P r o c e s s H i s t o r y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6   [ m a t c h :   w a v e ] : 
 
         4 :   
 
         5 :   / * * 
 
   > >   6 :     *   w a v e _ P r o c e s s H i s t o r y 
 
         7 :     *   @ M a p p e d S u p e r c l a s s 
 
         8 :     * / 
 
 
 
     L i n e   9   [ m a t c h :   w a v e ] : 
 
         7 :     *   @ M a p p e d S u p e r c l a s s 
 
         8 :     * / 
 
   > >   9 :   a b s t r a c t   c l a s s   w a v e _ P r o c e s s H i s t o r y   e x t e n d s   \ A p p \ M o d e l \ B a s e \ E n t i t y 
 
         1 0 :   { 
 
         1 1 :           / * * 
 
 
 
     L i n e   4 2   [ m a t c h :   w a v e ] : 
 
         4 0 :   
 
         4 1 :           / * * 
 
   > >   4 2 :             *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s 
 
         4 3 :             * / 
 
         4 4 :           p r o t e c t e d   $ w a v e _ P r o c e s s ; 
 
 
 
     L i n e   4 4   [ m a t c h :   w a v e ] : 
 
         4 2 :             *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s 
 
         4 3 :             * / 
 
   > >   4 4 :           p r o t e c t e d   $ w a v e _ P r o c e s s ; 
 
         4 5 :   
 
         4 6 :   	 p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( ) 
 
 
 
     L i n e   6 6   [ m a t c h :   w a v e ] : 
 
         6 4 :             *   @ p a r a m   s t r i n g | n u l l   $ r e s u l t s 
 
         6 5 :             * 
 
   > >   6 6 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         6 7 :             * / 
 
         6 8 :           p u b l i c   f u n c t i o n   s e t R e s u l t s ( $ r e s u l t s   =   n u l l ) 
 
 
 
     L i n e   9 0   [ m a t c h :   w a v e ] : 
 
         8 8 :             *   @ p a r a m   b o o l | n u l l   $ w a s S u c c e s s f u l 
 
         8 9 :             * 
 
   > >   9 0 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         9 1 :             * / 
 
         9 2 :           p u b l i c   f u n c t i o n   s e t W a s S u c c e s s f u l ( $ w a s S u c c e s s f u l   =   n u l l ) 
 
 
 
     L i n e   1 1 4   [ m a t c h :   w a v e ] : 
 
         1 1 2 :             *   @ p a r a m   b o o l | n u l l   $ w a s M a n u a l 
 
         1 1 3 :             * 
 
   > >   1 1 4 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         1 1 5 :             * / 
 
         1 1 6 :           p u b l i c   f u n c t i o n   s e t W a s M a n u a l ( $ w a s M a n u a l   =   n u l l ) 
 
 
 
     L i n e   1 3 8   [ m a t c h :   w a v e ] : 
 
         1 3 6 :             *   @ p a r a m   s t r i n g | n u l l   $ r e s u l t s F i l e P a t h 
 
         1 3 7 :             * 
 
   > >   1 3 8 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         1 3 9 :             * / 
 
         1 4 0 :           p u b l i c   f u n c t i o n   s e t R e s u l t s F i l e P a t h ( $ r e s u l t s F i l e P a t h   =   n u l l ) 
 
 
 
     L i n e   1 6 2   [ m a t c h :   w a v e ] : 
 
         1 6 0 :             *   @ p a r a m   \ D a t e T i m e | n u l l   $ r a n D T 
 
         1 6 1 :             * 
 
   > >   1 6 2 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         1 6 3 :             * / 
 
         1 6 4 :           p u b l i c   f u n c t i o n   s e t R a n D T ( $ r a n D T   =   n u l l ) 
 
 
 
     L i n e   1 8 2   [ m a t c h :   w a v e ] : 
 
         1 8 0 :   
 
         1 8 1 :           / * * 
 
   > >   1 8 2 :             *   S e t   w a v e P r o c e s s . 
 
         1 8 3 :             * 
 
         1 8 4 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   $ w a v e P r o c e s s 
 
 
 
     L i n e   1 8 4   [ m a t c h :   w a v e ] : 
 
         1 8 2 :             *   S e t   w a v e P r o c e s s . 
 
         1 8 3 :             * 
 
   > >   1 8 4 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   $ w a v e P r o c e s s 
 
         1 8 5 :             * 
 
         1 8 6 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
 
 
     L i n e   1 8 6   [ m a t c h :   w a v e ] : 
 
         1 8 4 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   $ w a v e P r o c e s s 
 
         1 8 5 :             * 
 
   > >   1 8 6 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         1 8 7 :             * / 
 
         1 8 8 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s   =   n u l l ) 
 
 
 
     L i n e   1 8 8   [ m a t c h :   w a v e ] : 
 
         1 8 6 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         1 8 7 :             * / 
 
   > >   1 8 8 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s   =   n u l l ) 
 
         1 8 9 :           { 
 
         1 9 0 :                   $ t h i s - > w a v e _ P r o c e s s   =   $ w a v e P r o c e s s ; 
 
 
 
     L i n e   1 9 0   [ m a t c h :   w a v e ] : 
 
         1 8 8 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s   =   n u l l ) 
 
         1 8 9 :           { 
 
   > >   1 9 0 :                   $ t h i s - > w a v e _ P r o c e s s   =   $ w a v e P r o c e s s ; 
 
         1 9 1 :   
 
         1 9 2 :                   r e t u r n   $ t h i s ; 
 
 
 
     L i n e   1 9 6   [ m a t c h :   w a v e ] : 
 
         1 9 4 :   
 
         1 9 5 :           / * * 
 
   > >   1 9 6 :             *   G e t   w a v e P r o c e s s . 
 
         1 9 7 :             * 
 
         1 9 8 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l 
 
 
 
     L i n e   1 9 8   [ m a t c h :   w a v e ] : 
 
         1 9 6 :             *   G e t   w a v e P r o c e s s . 
 
         1 9 7 :             * 
 
   > >   1 9 8 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l 
 
         1 9 9 :             * / 
 
         2 0 0 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
 
 
     L i n e   2 0 0   [ m a t c h :   w a v e ] : 
 
         1 9 8 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l 
 
         1 9 9 :             * / 
 
   > >   2 0 0 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
         2 0 1 :           { 
 
         2 0 2 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s ; 
 
 
 
     L i n e   2 0 2   [ m a t c h :   w a v e ] : 
 
         2 0 0 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
         2 0 1 :           { 
 
   > >   2 0 2 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s ; 
 
         2 0 3 :           } 
 
         2 0 4 :   } 
 
 
 
     L i n e   6   [ m a t c h :   W a v e ] : 
 
         4 :   
 
         5 :   / * * 
 
   > >   6 :     *   w a v e _ P r o c e s s H i s t o r y 
 
         7 :     *   @ M a p p e d S u p e r c l a s s 
 
         8 :     * / 
 
 
 
     L i n e   9   [ m a t c h :   W a v e ] : 
 
         7 :     *   @ M a p p e d S u p e r c l a s s 
 
         8 :     * / 
 
   > >   9 :   a b s t r a c t   c l a s s   w a v e _ P r o c e s s H i s t o r y   e x t e n d s   \ A p p \ M o d e l \ B a s e \ E n t i t y 
 
         1 0 :   { 
 
         1 1 :           / * * 
 
 
 
     L i n e   4 2   [ m a t c h :   W a v e ] : 
 
         4 0 :   
 
         4 1 :           / * * 
 
   > >   4 2 :             *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s 
 
         4 3 :             * / 
 
         4 4 :           p r o t e c t e d   $ w a v e _ P r o c e s s ; 
 
 
 
     L i n e   4 4   [ m a t c h :   W a v e ] : 
 
         4 2 :             *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s 
 
         4 3 :             * / 
 
   > >   4 4 :           p r o t e c t e d   $ w a v e _ P r o c e s s ; 
 
         4 5 :   
 
         4 6 :   	 p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( ) 
 
 
 
     L i n e   6 6   [ m a t c h :   W a v e ] : 
 
         6 4 :             *   @ p a r a m   s t r i n g | n u l l   $ r e s u l t s 
 
         6 5 :             * 
 
   > >   6 6 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         6 7 :             * / 
 
         6 8 :           p u b l i c   f u n c t i o n   s e t R e s u l t s ( $ r e s u l t s   =   n u l l ) 
 
 
 
     L i n e   9 0   [ m a t c h :   W a v e ] : 
 
         8 8 :             *   @ p a r a m   b o o l | n u l l   $ w a s S u c c e s s f u l 
 
         8 9 :             * 
 
   > >   9 0 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         9 1 :             * / 
 
         9 2 :           p u b l i c   f u n c t i o n   s e t W a s S u c c e s s f u l ( $ w a s S u c c e s s f u l   =   n u l l ) 
 
 
 
     L i n e   1 1 4   [ m a t c h :   W a v e ] : 
 
         1 1 2 :             *   @ p a r a m   b o o l | n u l l   $ w a s M a n u a l 
 
         1 1 3 :             * 
 
   > >   1 1 4 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         1 1 5 :             * / 
 
         1 1 6 :           p u b l i c   f u n c t i o n   s e t W a s M a n u a l ( $ w a s M a n u a l   =   n u l l ) 
 
 
 
     L i n e   1 3 8   [ m a t c h :   W a v e ] : 
 
         1 3 6 :             *   @ p a r a m   s t r i n g | n u l l   $ r e s u l t s F i l e P a t h 
 
         1 3 7 :             * 
 
   > >   1 3 8 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         1 3 9 :             * / 
 
         1 4 0 :           p u b l i c   f u n c t i o n   s e t R e s u l t s F i l e P a t h ( $ r e s u l t s F i l e P a t h   =   n u l l ) 
 
 
 
     L i n e   1 6 2   [ m a t c h :   W a v e ] : 
 
         1 6 0 :             *   @ p a r a m   \ D a t e T i m e | n u l l   $ r a n D T 
 
         1 6 1 :             * 
 
   > >   1 6 2 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         1 6 3 :             * / 
 
         1 6 4 :           p u b l i c   f u n c t i o n   s e t R a n D T ( $ r a n D T   =   n u l l ) 
 
 
 
     L i n e   1 8 2   [ m a t c h :   W a v e ] : 
 
         1 8 0 :   
 
         1 8 1 :           / * * 
 
   > >   1 8 2 :             *   S e t   w a v e P r o c e s s . 
 
         1 8 3 :             * 
 
         1 8 4 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   $ w a v e P r o c e s s 
 
 
 
     L i n e   1 8 4   [ m a t c h :   W a v e ] : 
 
         1 8 2 :             *   S e t   w a v e P r o c e s s . 
 
         1 8 3 :             * 
 
   > >   1 8 4 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   $ w a v e P r o c e s s 
 
         1 8 5 :             * 
 
         1 8 6 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
 
 
     L i n e   1 8 6   [ m a t c h :   W a v e ] : 
 
         1 8 4 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   $ w a v e P r o c e s s 
 
         1 8 5 :             * 
 
   > >   1 8 6 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         1 8 7 :             * / 
 
         1 8 8 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s   =   n u l l ) 
 
 
 
     L i n e   1 8 8   [ m a t c h :   W a v e ] : 
 
         1 8 6 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         1 8 7 :             * / 
 
   > >   1 8 8 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s   =   n u l l ) 
 
         1 8 9 :           { 
 
         1 9 0 :                   $ t h i s - > w a v e _ P r o c e s s   =   $ w a v e P r o c e s s ; 
 
 
 
     L i n e   1 9 0   [ m a t c h :   W a v e ] : 
 
         1 8 8 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s   =   n u l l ) 
 
         1 8 9 :           { 
 
   > >   1 9 0 :                   $ t h i s - > w a v e _ P r o c e s s   =   $ w a v e P r o c e s s ; 
 
         1 9 1 :   
 
         1 9 2 :                   r e t u r n   $ t h i s ; 
 
 
 
     L i n e   1 9 6   [ m a t c h :   W a v e ] : 
 
         1 9 4 :   
 
         1 9 5 :           / * * 
 
   > >   1 9 6 :             *   G e t   w a v e P r o c e s s . 
 
         1 9 7 :             * 
 
         1 9 8 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l 
 
 
 
     L i n e   1 9 8   [ m a t c h :   W a v e ] : 
 
         1 9 6 :             *   G e t   w a v e P r o c e s s . 
 
         1 9 7 :             * 
 
   > >   1 9 8 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l 
 
         1 9 9 :             * / 
 
         2 0 0 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
 
 
     L i n e   2 0 0   [ m a t c h :   W a v e ] : 
 
         1 9 8 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l 
 
         1 9 9 :             * / 
 
   > >   2 0 0 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
         2 0 1 :           { 
 
         2 0 2 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s ; 
 
 
 
     L i n e   2 0 2   [ m a t c h :   W a v e ] : 
 
         2 0 0 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
         2 0 1 :           { 
 
   > >   2 0 2 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s ; 
 
         2 0 3 :           } 
 
         2 0 4 :   } 
 
 
 
     L i n e   6   [ m a t c h :   W A V E ] : 
 
         4 :   
 
         5 :   / * * 
 
   > >   6 :     *   w a v e _ P r o c e s s H i s t o r y 
 
         7 :     *   @ M a p p e d S u p e r c l a s s 
 
         8 :     * / 
 
 
 
     L i n e   9   [ m a t c h :   W A V E ] : 
 
         7 :     *   @ M a p p e d S u p e r c l a s s 
 
         8 :     * / 
 
   > >   9 :   a b s t r a c t   c l a s s   w a v e _ P r o c e s s H i s t o r y   e x t e n d s   \ A p p \ M o d e l \ B a s e \ E n t i t y 
 
         1 0 :   { 
 
         1 1 :           / * * 
 
 
 
     L i n e   4 2   [ m a t c h :   W A V E ] : 
 
         4 0 :   
 
         4 1 :           / * * 
 
   > >   4 2 :             *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s 
 
         4 3 :             * / 
 
         4 4 :           p r o t e c t e d   $ w a v e _ P r o c e s s ; 
 
 
 
     L i n e   4 4   [ m a t c h :   W A V E ] : 
 
         4 2 :             *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s 
 
         4 3 :             * / 
 
   > >   4 4 :           p r o t e c t e d   $ w a v e _ P r o c e s s ; 
 
         4 5 :   
 
         4 6 :   	 p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( ) 
 
 
 
     L i n e   6 6   [ m a t c h :   W A V E ] : 
 
         6 4 :             *   @ p a r a m   s t r i n g | n u l l   $ r e s u l t s 
 
         6 5 :             * 
 
   > >   6 6 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         6 7 :             * / 
 
         6 8 :           p u b l i c   f u n c t i o n   s e t R e s u l t s ( $ r e s u l t s   =   n u l l ) 
 
 
 
     L i n e   9 0   [ m a t c h :   W A V E ] : 
 
         8 8 :             *   @ p a r a m   b o o l | n u l l   $ w a s S u c c e s s f u l 
 
         8 9 :             * 
 
   > >   9 0 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         9 1 :             * / 
 
         9 2 :           p u b l i c   f u n c t i o n   s e t W a s S u c c e s s f u l ( $ w a s S u c c e s s f u l   =   n u l l ) 
 
 
 
     L i n e   1 1 4   [ m a t c h :   W A V E ] : 
 
         1 1 2 :             *   @ p a r a m   b o o l | n u l l   $ w a s M a n u a l 
 
         1 1 3 :             * 
 
   > >   1 1 4 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         1 1 5 :             * / 
 
         1 1 6 :           p u b l i c   f u n c t i o n   s e t W a s M a n u a l ( $ w a s M a n u a l   =   n u l l ) 
 
 
 
     L i n e   1 3 8   [ m a t c h :   W A V E ] : 
 
         1 3 6 :             *   @ p a r a m   s t r i n g | n u l l   $ r e s u l t s F i l e P a t h 
 
         1 3 7 :             * 
 
   > >   1 3 8 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         1 3 9 :             * / 
 
         1 4 0 :           p u b l i c   f u n c t i o n   s e t R e s u l t s F i l e P a t h ( $ r e s u l t s F i l e P a t h   =   n u l l ) 
 
 
 
     L i n e   1 6 2   [ m a t c h :   W A V E ] : 
 
         1 6 0 :             *   @ p a r a m   \ D a t e T i m e | n u l l   $ r a n D T 
 
         1 6 1 :             * 
 
   > >   1 6 2 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         1 6 3 :             * / 
 
         1 6 4 :           p u b l i c   f u n c t i o n   s e t R a n D T ( $ r a n D T   =   n u l l ) 
 
 
 
     L i n e   1 8 2   [ m a t c h :   W A V E ] : 
 
         1 8 0 :   
 
         1 8 1 :           / * * 
 
   > >   1 8 2 :             *   S e t   w a v e P r o c e s s . 
 
         1 8 3 :             * 
 
         1 8 4 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   $ w a v e P r o c e s s 
 
 
 
     L i n e   1 8 4   [ m a t c h :   W A V E ] : 
 
         1 8 2 :             *   S e t   w a v e P r o c e s s . 
 
         1 8 3 :             * 
 
   > >   1 8 4 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   $ w a v e P r o c e s s 
 
         1 8 5 :             * 
 
         1 8 6 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
 
 
     L i n e   1 8 6   [ m a t c h :   W A V E ] : 
 
         1 8 4 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   $ w a v e P r o c e s s 
 
         1 8 5 :             * 
 
   > >   1 8 6 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         1 8 7 :             * / 
 
         1 8 8 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s   =   n u l l ) 
 
 
 
     L i n e   1 8 8   [ m a t c h :   W A V E ] : 
 
         1 8 6 :             *   @ r e t u r n   w a v e _ P r o c e s s H i s t o r y 
 
         1 8 7 :             * / 
 
   > >   1 8 8 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s   =   n u l l ) 
 
         1 8 9 :           { 
 
         1 9 0 :                   $ t h i s - > w a v e _ P r o c e s s   =   $ w a v e P r o c e s s ; 
 
 
 
     L i n e   1 9 0   [ m a t c h :   W A V E ] : 
 
         1 8 8 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s   =   n u l l ) 
 
         1 8 9 :           { 
 
   > >   1 9 0 :                   $ t h i s - > w a v e _ P r o c e s s   =   $ w a v e P r o c e s s ; 
 
         1 9 1 :   
 
         1 9 2 :                   r e t u r n   $ t h i s ; 
 
 
 
     L i n e   1 9 6   [ m a t c h :   W A V E ] : 
 
         1 9 4 :   
 
         1 9 5 :           / * * 
 
   > >   1 9 6 :             *   G e t   w a v e P r o c e s s . 
 
         1 9 7 :             * 
 
         1 9 8 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l 
 
 
 
     L i n e   1 9 8   [ m a t c h :   W A V E ] : 
 
         1 9 6 :             *   G e t   w a v e P r o c e s s . 
 
         1 9 7 :             * 
 
   > >   1 9 8 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l 
 
         1 9 9 :             * / 
 
         2 0 0 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
 
 
     L i n e   2 0 0   [ m a t c h :   W A V E ] : 
 
         1 9 8 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l 
 
         1 9 9 :             * / 
 
   > >   2 0 0 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
         2 0 1 :           { 
 
         2 0 2 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s ; 
 
 
 
     L i n e   2 0 2   [ m a t c h :   W A V E ] : 
 
         2 0 0 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
         2 0 1 :           { 
 
   > >   2 0 2 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s ; 
 
         2 0 3 :           } 
 
         2 0 4 :   } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 8   [ m a t c h :   e p i c o r ] : 
 
         1 6 :                   } 
 
         1 7 :   
 
   > >   1 8 :                   p u b l i c   f u n c t i o n   s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) 
 
         1 9 :                   { 
 
         2 0 :                           p a r e n t : : s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) ; 
 
 
 
     L i n e   2 0   [ m a t c h :   e p i c o r ] : 
 
         1 8 :                   p u b l i c   f u n c t i o n   s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) 
 
         1 9 :                   { 
 
   > >   2 0 :                           p a r e n t : : s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) ; 
 
         2 1 :                           $ t h i s - > u p d a t e C a l c D i s p l a y N a m e ( ) ; 
 
         2 2 :                           r e t u r n   $ t h i s ; 
 
 
 
     L i n e   3 4   [ m a t c h :   e p i c o r ] : 
 
         3 2 :                   p r o t e c t e d   f u n c t i o n   u p d a t e C a l c D i s p l a y N a m e ( ) 
 
         3 3 :                   { 
 
   > >   3 4 :                           $ t h i s - > s e t C a l c D i s p l a y N a m e ( ( i s _ n u l l ( $ t h i s - > g e t E p i N a m e ( ) )   ?   $ t h i s - > g e t E p i c o r C u s t I D ( )   :   ( $ t h i s - > g e t E p i c o r C u s t I D ( ) . '   -   ' . $ t h i s - > g e t E p i N a m e ( ) ) ) ) ; 
 
         3 5 :                   } 
 
         3 6 :           } 
 
 
 
     L i n e   1 8   [ m a t c h :   E p i c o r ] : 
 
         1 6 :                   } 
 
         1 7 :   
 
   > >   1 8 :                   p u b l i c   f u n c t i o n   s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) 
 
         1 9 :                   { 
 
         2 0 :                           p a r e n t : : s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) ; 
 
 
 
     L i n e   2 0   [ m a t c h :   E p i c o r ] : 
 
         1 8 :                   p u b l i c   f u n c t i o n   s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) 
 
         1 9 :                   { 
 
   > >   2 0 :                           p a r e n t : : s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) ; 
 
         2 1 :                           $ t h i s - > u p d a t e C a l c D i s p l a y N a m e ( ) ; 
 
         2 2 :                           r e t u r n   $ t h i s ; 
 
 
 
     L i n e   3 4   [ m a t c h :   E p i c o r ] : 
 
         3 2 :                   p r o t e c t e d   f u n c t i o n   u p d a t e C a l c D i s p l a y N a m e ( ) 
 
         3 3 :                   { 
 
   > >   3 4 :                           $ t h i s - > s e t C a l c D i s p l a y N a m e ( ( i s _ n u l l ( $ t h i s - > g e t E p i N a m e ( ) )   ?   $ t h i s - > g e t E p i c o r C u s t I D ( )   :   ( $ t h i s - > g e t E p i c o r C u s t I D ( ) . '   -   ' . $ t h i s - > g e t E p i N a m e ( ) ) ) ) ; 
 
         3 5 :                   } 
 
         3 6 :           } 
 
 
 
     L i n e   1 8   [ m a t c h :   E P I C O R ] : 
 
         1 6 :                   } 
 
         1 7 :   
 
   > >   1 8 :                   p u b l i c   f u n c t i o n   s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) 
 
         1 9 :                   { 
 
         2 0 :                           p a r e n t : : s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) ; 
 
 
 
     L i n e   2 0   [ m a t c h :   E P I C O R ] : 
 
         1 8 :                   p u b l i c   f u n c t i o n   s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) 
 
         1 9 :                   { 
 
   > >   2 0 :                           p a r e n t : : s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) ; 
 
         2 1 :                           $ t h i s - > u p d a t e C a l c D i s p l a y N a m e ( ) ; 
 
         2 2 :                           r e t u r n   $ t h i s ; 
 
 
 
     L i n e   3 4   [ m a t c h :   E P I C O R ] : 
 
         3 2 :                   p r o t e c t e d   f u n c t i o n   u p d a t e C a l c D i s p l a y N a m e ( ) 
 
         3 3 :                   { 
 
   > >   3 4 :                           $ t h i s - > s e t C a l c D i s p l a y N a m e ( ( i s _ n u l l ( $ t h i s - > g e t E p i N a m e ( ) )   ?   $ t h i s - > g e t E p i c o r C u s t I D ( )   :   ( $ t h i s - > g e t E p i c o r C u s t I D ( ) . '   -   ' . $ t h i s - > g e t E p i N a m e ( ) ) ) ) ; 
 
         3 5 :                   } 
 
         3 6 :           } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ E n t i t i e s \ q u e s t _ P l a n t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 8   [ m a t c h :   e p i c o r ] : 
 
         1 6 :                   } 
 
         1 7 :   
 
   > >   1 8 :                   p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         1 9 :                   { 
 
         2 0 :                           r e t u r n   $ t h i s - > g e t P l a n t C o d e ( ) ; 
 
 
 
     L i n e   1 8   [ m a t c h :   E p i c o r ] : 
 
         1 6 :                   } 
 
         1 7 :   
 
   > >   1 8 :                   p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         1 9 :                   { 
 
         2 0 :                           r e t u r n   $ t h i s - > g e t P l a n t C o d e ( ) ; 
 
 
 
     L i n e   1 8   [ m a t c h :   E P I C O R ] : 
 
         1 6 :                   } 
 
         1 7 :   
 
   > >   1 8 :                   p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         1 9 :                   { 
 
         2 0 :                           r e t u r n   $ t h i s - > g e t P l a n t C o d e ( ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :           n a m e s p a c e   A p p \ M o d e l \ E n t i t i e s ; 
 
   > >   3 :           u s e   A p p \ M o d e l \ E n t i t i e s \ G e n e r a t e d \ w a v e _ P r o c e s s   a s   w a v e _ P r o c e s s G e n e r a t e d ; 
 
         4 :   
 
         5 :           / * * 
 
 
 
     L i n e   6   [ m a t c h :   w a v e ] : 
 
         4 :   
 
         5 :           / * * 
 
   > >   6 :             *   w a v e _ P r o c e s s   a p p l i c a t i o n - l e v e l   e n t i t y   c l a s s 
 
         7 :             * 
 
         8 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
 
 
     L i n e   1 0   [ m a t c h :   w a v e ] : 
 
         8 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
         9 :             * / 
 
   > >   1 0 :           c l a s s   w a v e _ P r o c e s s   e x t e n d s   w a v e _ P r o c e s s G e n e r a t e d 
 
         1 1 :           { 
 
         1 2 :                   p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( ) 
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :           n a m e s p a c e   A p p \ M o d e l \ E n t i t i e s ; 
 
   > >   3 :           u s e   A p p \ M o d e l \ E n t i t i e s \ G e n e r a t e d \ w a v e _ P r o c e s s   a s   w a v e _ P r o c e s s G e n e r a t e d ; 
 
         4 :   
 
         5 :           / * * 
 
 
 
     L i n e   6   [ m a t c h :   W a v e ] : 
 
         4 :   
 
         5 :           / * * 
 
   > >   6 :             *   w a v e _ P r o c e s s   a p p l i c a t i o n - l e v e l   e n t i t y   c l a s s 
 
         7 :             * 
 
         8 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
 
 
     L i n e   1 0   [ m a t c h :   W a v e ] : 
 
         8 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
         9 :             * / 
 
   > >   1 0 :           c l a s s   w a v e _ P r o c e s s   e x t e n d s   w a v e _ P r o c e s s G e n e r a t e d 
 
         1 1 :           { 
 
         1 2 :                   p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( ) 
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :           n a m e s p a c e   A p p \ M o d e l \ E n t i t i e s ; 
 
   > >   3 :           u s e   A p p \ M o d e l \ E n t i t i e s \ G e n e r a t e d \ w a v e _ P r o c e s s   a s   w a v e _ P r o c e s s G e n e r a t e d ; 
 
         4 :   
 
         5 :           / * * 
 
 
 
     L i n e   6   [ m a t c h :   W A V E ] : 
 
         4 :   
 
         5 :           / * * 
 
   > >   6 :             *   w a v e _ P r o c e s s   a p p l i c a t i o n - l e v e l   e n t i t y   c l a s s 
 
         7 :             * 
 
         8 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
 
 
     L i n e   1 0   [ m a t c h :   W A V E ] : 
 
         8 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
         9 :             * / 
 
   > >   1 0 :           c l a s s   w a v e _ P r o c e s s   e x t e n d s   w a v e _ P r o c e s s G e n e r a t e d 
 
         1 1 :           { 
 
         1 2 :                   p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :           n a m e s p a c e   A p p \ M o d e l \ E n t i t i e s ; 
 
   > >   3 :           u s e   A p p \ M o d e l \ E n t i t i e s \ G e n e r a t e d \ w a v e _ P r o c e s s H i s t o r y   a s   w a v e _ P r o c e s s H i s t o r y G e n e r a t e d ; 
 
         4 :   
 
         5 :           / * * 
 
 
 
     L i n e   6   [ m a t c h :   w a v e ] : 
 
         4 :   
 
         5 :           / * * 
 
   > >   6 :             *   w a v e _ P r o c e s s H i s t o r y   a p p l i c a t i o n - l e v e l   e n t i t y   c l a s s 
 
         7 :             * 
 
         8 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
 
 
     L i n e   1 0   [ m a t c h :   w a v e ] : 
 
         8 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
         9 :             * / 
 
   > >   1 0 :           c l a s s   w a v e _ P r o c e s s H i s t o r y   e x t e n d s   w a v e _ P r o c e s s H i s t o r y G e n e r a t e d 
 
         1 1 :           { 
 
         1 2 :                   p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( ) 
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :           n a m e s p a c e   A p p \ M o d e l \ E n t i t i e s ; 
 
   > >   3 :           u s e   A p p \ M o d e l \ E n t i t i e s \ G e n e r a t e d \ w a v e _ P r o c e s s H i s t o r y   a s   w a v e _ P r o c e s s H i s t o r y G e n e r a t e d ; 
 
         4 :   
 
         5 :           / * * 
 
 
 
     L i n e   6   [ m a t c h :   W a v e ] : 
 
         4 :   
 
         5 :           / * * 
 
   > >   6 :             *   w a v e _ P r o c e s s H i s t o r y   a p p l i c a t i o n - l e v e l   e n t i t y   c l a s s 
 
         7 :             * 
 
         8 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
 
 
     L i n e   1 0   [ m a t c h :   W a v e ] : 
 
         8 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
         9 :             * / 
 
   > >   1 0 :           c l a s s   w a v e _ P r o c e s s H i s t o r y   e x t e n d s   w a v e _ P r o c e s s H i s t o r y G e n e r a t e d 
 
         1 1 :           { 
 
         1 2 :                   p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( ) 
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :           n a m e s p a c e   A p p \ M o d e l \ E n t i t i e s ; 
 
   > >   3 :           u s e   A p p \ M o d e l \ E n t i t i e s \ G e n e r a t e d \ w a v e _ P r o c e s s H i s t o r y   a s   w a v e _ P r o c e s s H i s t o r y G e n e r a t e d ; 
 
         4 :   
 
         5 :           / * * 
 
 
 
     L i n e   6   [ m a t c h :   W A V E ] : 
 
         4 :   
 
         5 :           / * * 
 
   > >   6 :             *   w a v e _ P r o c e s s H i s t o r y   a p p l i c a t i o n - l e v e l   e n t i t y   c l a s s 
 
         7 :             * 
 
         8 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
 
 
     L i n e   1 0   [ m a t c h :   W A V E ] : 
 
         8 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
         9 :             * / 
 
   > >   1 0 :           c l a s s   w a v e _ P r o c e s s H i s t o r y   e x t e n d s   w a v e _ P r o c e s s H i s t o r y G e n e r a t e d 
 
         1 1 :           { 
 
         1 2 :                   p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ P r o x i e s \ _ _ C G _ _ A p p M o d e l E n t i t i e s a l l o c _ R e q u e s t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 3 6   [ m a t c h :   U P D A T E   ] : 
 
         4 3 4 :             *   { @ i n h e r i t D o c } 
 
         4 3 5 :             * / 
 
   > >   4 3 6 :           p u b l i c   f u n c t i o n   s e t R e q u e s t e d P i c k u p D a t e ( $ r e q u e s t e d P i c k u p D a t e   =   N U L L ) 
 
         4 3 7 :           { 
 
         4 3 8 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ P r o x i e s \ _ _ C G _ _ A p p M o d e l E n t i t i e s a u t h _ U s e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 7 8   [ m a t c h :   U P D A T E   ] : 
 
         6 7 6 :             *   { @ i n h e r i t D o c } 
 
         6 7 7 :             * / 
 
   > >   6 7 8 :           p u b l i c   f u n c t i o n   s e t S S O L a s t F i e l d D a t a U p d a t e ( $ s S O L a s t F i e l d D a t a U p d a t e   =   N U L L ) 
 
         6 7 9 :           { 
 
         6 8 0 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ P r o x i e s \ _ _ C G _ _ A p p M o d e l E n t i t i e s p a i n t _ L i n e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 0   [ m a t c h :   e p i c o r ] : 
 
         6 8 :           { 
 
         6 9 :                   i f   ( $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   7 0 :                           r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' E p i c o r K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' p a i n t _ P l a n t L i n e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' p a i n t _ L i n e T y p e ' ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 3   [ m a t c h :   e p i c o r ] : 
 
         7 1 :                   } 
 
         7 2 :   
 
   > >   7 3 :                   r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' E p i c o r K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' p a i n t _ P l a n t L i n e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' p a i n t _ L i n e T y p e ' ] ; 
 
         7 4 :           } 
 
         7 5 :   
 
 
 
     L i n e   2 1 6   [ m a t c h :   e p i c o r ] : 
 
         2 1 4 :             *   { @ i n h e r i t D o c } 
 
         2 1 5 :             * / 
 
   > >   2 1 6 :           p u b l i c   f u n c t i o n   s e t E p i c o r K e y ( $ e p i c o r K e y ) 
 
         2 1 7 :           { 
 
         2 1 8 :   
 
 
 
     L i n e   2 1 9   [ m a t c h :   e p i c o r ] : 
 
         2 1 7 :           { 
 
         2 1 8 :   
 
   > >   2 1 9 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t E p i c o r K e y ' ,   [ $ e p i c o r K e y ] ) ; 
 
         2 2 0 :   
 
         2 2 1 :                   r e t u r n   p a r e n t : : s e t E p i c o r K e y ( $ e p i c o r K e y ) ; 
 
 
 
     L i n e   2 2 1   [ m a t c h :   e p i c o r ] : 
 
         2 1 9 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t E p i c o r K e y ' ,   [ $ e p i c o r K e y ] ) ; 
 
         2 2 0 :   
 
   > >   2 2 1 :                   r e t u r n   p a r e n t : : s e t E p i c o r K e y ( $ e p i c o r K e y ) ; 
 
         2 2 2 :           } 
 
         2 2 3 :   
 
 
 
     L i n e   2 2 7   [ m a t c h :   e p i c o r ] : 
 
         2 2 5 :             *   { @ i n h e r i t D o c } 
 
         2 2 6 :             * / 
 
   > >   2 2 7 :           p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         2 2 8 :           { 
 
         2 2 9 :   
 
 
 
     L i n e   2 3 0   [ m a t c h :   e p i c o r ] : 
 
         2 2 8 :           { 
 
         2 2 9 :   
 
   > >   2 3 0 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t E p i c o r K e y ' ,   [ ] ) ; 
 
         2 3 1 :   
 
         2 3 2 :                   r e t u r n   p a r e n t : : g e t E p i c o r K e y ( ) ; 
 
 
 
     L i n e   2 3 2   [ m a t c h :   e p i c o r ] : 
 
         2 3 0 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t E p i c o r K e y ' ,   [ ] ) ; 
 
         2 3 1 :   
 
   > >   2 3 2 :                   r e t u r n   p a r e n t : : g e t E p i c o r K e y ( ) ; 
 
         2 3 3 :           } 
 
         2 3 4 :   
 
 
 
     L i n e   7 0   [ m a t c h :   E p i c o r ] : 
 
         6 8 :           { 
 
         6 9 :                   i f   ( $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   7 0 :                           r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' E p i c o r K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' p a i n t _ P l a n t L i n e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' p a i n t _ L i n e T y p e ' ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 3   [ m a t c h :   E p i c o r ] : 
 
         7 1 :                   } 
 
         7 2 :   
 
   > >   7 3 :                   r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' E p i c o r K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' p a i n t _ P l a n t L i n e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' p a i n t _ L i n e T y p e ' ] ; 
 
         7 4 :           } 
 
         7 5 :   
 
 
 
     L i n e   2 1 6   [ m a t c h :   E p i c o r ] : 
 
         2 1 4 :             *   { @ i n h e r i t D o c } 
 
         2 1 5 :             * / 
 
   > >   2 1 6 :           p u b l i c   f u n c t i o n   s e t E p i c o r K e y ( $ e p i c o r K e y ) 
 
         2 1 7 :           { 
 
         2 1 8 :   
 
 
 
     L i n e   2 1 9   [ m a t c h :   E p i c o r ] : 
 
         2 1 7 :           { 
 
         2 1 8 :   
 
   > >   2 1 9 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t E p i c o r K e y ' ,   [ $ e p i c o r K e y ] ) ; 
 
         2 2 0 :   
 
         2 2 1 :                   r e t u r n   p a r e n t : : s e t E p i c o r K e y ( $ e p i c o r K e y ) ; 
 
 
 
     L i n e   2 2 1   [ m a t c h :   E p i c o r ] : 
 
         2 1 9 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t E p i c o r K e y ' ,   [ $ e p i c o r K e y ] ) ; 
 
         2 2 0 :   
 
   > >   2 2 1 :                   r e t u r n   p a r e n t : : s e t E p i c o r K e y ( $ e p i c o r K e y ) ; 
 
         2 2 2 :           } 
 
         2 2 3 :   
 
 
 
     L i n e   2 2 7   [ m a t c h :   E p i c o r ] : 
 
         2 2 5 :             *   { @ i n h e r i t D o c } 
 
         2 2 6 :             * / 
 
   > >   2 2 7 :           p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         2 2 8 :           { 
 
         2 2 9 :   
 
 
 
     L i n e   2 3 0   [ m a t c h :   E p i c o r ] : 
 
         2 2 8 :           { 
 
         2 2 9 :   
 
   > >   2 3 0 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t E p i c o r K e y ' ,   [ ] ) ; 
 
         2 3 1 :   
 
         2 3 2 :                   r e t u r n   p a r e n t : : g e t E p i c o r K e y ( ) ; 
 
 
 
     L i n e   2 3 2   [ m a t c h :   E p i c o r ] : 
 
         2 3 0 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t E p i c o r K e y ' ,   [ ] ) ; 
 
         2 3 1 :   
 
   > >   2 3 2 :                   r e t u r n   p a r e n t : : g e t E p i c o r K e y ( ) ; 
 
         2 3 3 :           } 
 
         2 3 4 :   
 
 
 
     L i n e   7 0   [ m a t c h :   E P I C O R ] : 
 
         6 8 :           { 
 
         6 9 :                   i f   ( $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   7 0 :                           r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' E p i c o r K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' p a i n t _ P l a n t L i n e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' p a i n t _ L i n e T y p e ' ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 3   [ m a t c h :   E P I C O R ] : 
 
         7 1 :                   } 
 
         7 2 :   
 
   > >   7 3 :                   r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' E p i c o r K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' p a i n t _ P l a n t L i n e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ L i n e '   .   " \ 0 "   .   ' p a i n t _ L i n e T y p e ' ] ; 
 
         7 4 :           } 
 
         7 5 :   
 
 
 
     L i n e   2 1 6   [ m a t c h :   E P I C O R ] : 
 
         2 1 4 :             *   { @ i n h e r i t D o c } 
 
         2 1 5 :             * / 
 
   > >   2 1 6 :           p u b l i c   f u n c t i o n   s e t E p i c o r K e y ( $ e p i c o r K e y ) 
 
         2 1 7 :           { 
 
         2 1 8 :   
 
 
 
     L i n e   2 1 9   [ m a t c h :   E P I C O R ] : 
 
         2 1 7 :           { 
 
         2 1 8 :   
 
   > >   2 1 9 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t E p i c o r K e y ' ,   [ $ e p i c o r K e y ] ) ; 
 
         2 2 0 :   
 
         2 2 1 :                   r e t u r n   p a r e n t : : s e t E p i c o r K e y ( $ e p i c o r K e y ) ; 
 
 
 
     L i n e   2 2 1   [ m a t c h :   E P I C O R ] : 
 
         2 1 9 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t E p i c o r K e y ' ,   [ $ e p i c o r K e y ] ) ; 
 
         2 2 0 :   
 
   > >   2 2 1 :                   r e t u r n   p a r e n t : : s e t E p i c o r K e y ( $ e p i c o r K e y ) ; 
 
         2 2 2 :           } 
 
         2 2 3 :   
 
 
 
     L i n e   2 2 7   [ m a t c h :   E P I C O R ] : 
 
         2 2 5 :             *   { @ i n h e r i t D o c } 
 
         2 2 6 :             * / 
 
   > >   2 2 7 :           p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         2 2 8 :           { 
 
         2 2 9 :   
 
 
 
     L i n e   2 3 0   [ m a t c h :   E P I C O R ] : 
 
         2 2 8 :           { 
 
         2 2 9 :   
 
   > >   2 3 0 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t E p i c o r K e y ' ,   [ ] ) ; 
 
         2 3 1 :   
 
         2 3 2 :                   r e t u r n   p a r e n t : : g e t E p i c o r K e y ( ) ; 
 
 
 
     L i n e   2 3 2   [ m a t c h :   E P I C O R ] : 
 
         2 3 0 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t E p i c o r K e y ' ,   [ ] ) ; 
 
         2 3 1 :   
 
   > >   2 3 2 :                   r e t u r n   p a r e n t : : g e t E p i c o r K e y ( ) ; 
 
         2 3 3 :           } 
 
         2 3 4 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ P r o x i e s \ _ _ C G _ _ A p p M o d e l E n t i t i e s p a i n t _ P l a n t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 0   [ m a t c h :   e p i c o r ] : 
 
         6 8 :           { 
 
         6 9 :                   i f   ( $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   7 0 :                           r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' E p i c o r K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' T i m e Z o n e M o d i f i e r ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' p a i n t _ P l a n t L i n e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' q u e s t _ U s e r ' ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 3   [ m a t c h :   e p i c o r ] : 
 
         7 1 :                   } 
 
         7 2 :   
 
   > >   7 3 :                   r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' E p i c o r K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' T i m e Z o n e M o d i f i e r ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' p a i n t _ P l a n t L i n e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' q u e s t _ U s e r ' ] ; 
 
         7 4 :           } 
 
         7 5 :   
 
 
 
     L i n e   2 1 6   [ m a t c h :   e p i c o r ] : 
 
         2 1 4 :             *   { @ i n h e r i t D o c } 
 
         2 1 5 :             * / 
 
   > >   2 1 6 :           p u b l i c   f u n c t i o n   s e t E p i c o r K e y ( $ e p i c o r K e y ) 
 
         2 1 7 :           { 
 
         2 1 8 :   
 
 
 
     L i n e   2 1 9   [ m a t c h :   e p i c o r ] : 
 
         2 1 7 :           { 
 
         2 1 8 :   
 
   > >   2 1 9 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t E p i c o r K e y ' ,   [ $ e p i c o r K e y ] ) ; 
 
         2 2 0 :   
 
         2 2 1 :                   r e t u r n   p a r e n t : : s e t E p i c o r K e y ( $ e p i c o r K e y ) ; 
 
 
 
     L i n e   2 2 1   [ m a t c h :   e p i c o r ] : 
 
         2 1 9 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t E p i c o r K e y ' ,   [ $ e p i c o r K e y ] ) ; 
 
         2 2 0 :   
 
   > >   2 2 1 :                   r e t u r n   p a r e n t : : s e t E p i c o r K e y ( $ e p i c o r K e y ) ; 
 
         2 2 2 :           } 
 
         2 2 3 :   
 
 
 
     L i n e   2 2 7   [ m a t c h :   e p i c o r ] : 
 
         2 2 5 :             *   { @ i n h e r i t D o c } 
 
         2 2 6 :             * / 
 
   > >   2 2 7 :           p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         2 2 8 :           { 
 
         2 2 9 :   
 
 
 
     L i n e   2 3 0   [ m a t c h :   e p i c o r ] : 
 
         2 2 8 :           { 
 
         2 2 9 :   
 
   > >   2 3 0 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t E p i c o r K e y ' ,   [ ] ) ; 
 
         2 3 1 :   
 
         2 3 2 :                   r e t u r n   p a r e n t : : g e t E p i c o r K e y ( ) ; 
 
 
 
     L i n e   2 3 2   [ m a t c h :   e p i c o r ] : 
 
         2 3 0 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t E p i c o r K e y ' ,   [ ] ) ; 
 
         2 3 1 :   
 
   > >   2 3 2 :                   r e t u r n   p a r e n t : : g e t E p i c o r K e y ( ) ; 
 
         2 3 3 :           } 
 
         2 3 4 :   
 
 
 
     L i n e   7 0   [ m a t c h :   E p i c o r ] : 
 
         6 8 :           { 
 
         6 9 :                   i f   ( $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   7 0 :                           r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' E p i c o r K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' T i m e Z o n e M o d i f i e r ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' p a i n t _ P l a n t L i n e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' q u e s t _ U s e r ' ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 3   [ m a t c h :   E p i c o r ] : 
 
         7 1 :                   } 
 
         7 2 :   
 
   > >   7 3 :                   r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' E p i c o r K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' T i m e Z o n e M o d i f i e r ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' p a i n t _ P l a n t L i n e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' q u e s t _ U s e r ' ] ; 
 
         7 4 :           } 
 
         7 5 :   
 
 
 
     L i n e   2 1 6   [ m a t c h :   E p i c o r ] : 
 
         2 1 4 :             *   { @ i n h e r i t D o c } 
 
         2 1 5 :             * / 
 
   > >   2 1 6 :           p u b l i c   f u n c t i o n   s e t E p i c o r K e y ( $ e p i c o r K e y ) 
 
         2 1 7 :           { 
 
         2 1 8 :   
 
 
 
     L i n e   2 1 9   [ m a t c h :   E p i c o r ] : 
 
         2 1 7 :           { 
 
         2 1 8 :   
 
   > >   2 1 9 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t E p i c o r K e y ' ,   [ $ e p i c o r K e y ] ) ; 
 
         2 2 0 :   
 
         2 2 1 :                   r e t u r n   p a r e n t : : s e t E p i c o r K e y ( $ e p i c o r K e y ) ; 
 
 
 
     L i n e   2 2 1   [ m a t c h :   E p i c o r ] : 
 
         2 1 9 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t E p i c o r K e y ' ,   [ $ e p i c o r K e y ] ) ; 
 
         2 2 0 :   
 
   > >   2 2 1 :                   r e t u r n   p a r e n t : : s e t E p i c o r K e y ( $ e p i c o r K e y ) ; 
 
         2 2 2 :           } 
 
         2 2 3 :   
 
 
 
     L i n e   2 2 7   [ m a t c h :   E p i c o r ] : 
 
         2 2 5 :             *   { @ i n h e r i t D o c } 
 
         2 2 6 :             * / 
 
   > >   2 2 7 :           p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         2 2 8 :           { 
 
         2 2 9 :   
 
 
 
     L i n e   2 3 0   [ m a t c h :   E p i c o r ] : 
 
         2 2 8 :           { 
 
         2 2 9 :   
 
   > >   2 3 0 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t E p i c o r K e y ' ,   [ ] ) ; 
 
         2 3 1 :   
 
         2 3 2 :                   r e t u r n   p a r e n t : : g e t E p i c o r K e y ( ) ; 
 
 
 
     L i n e   2 3 2   [ m a t c h :   E p i c o r ] : 
 
         2 3 0 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t E p i c o r K e y ' ,   [ ] ) ; 
 
         2 3 1 :   
 
   > >   2 3 2 :                   r e t u r n   p a r e n t : : g e t E p i c o r K e y ( ) ; 
 
         2 3 3 :           } 
 
         2 3 4 :   
 
 
 
     L i n e   7 0   [ m a t c h :   E P I C O R ] : 
 
         6 8 :           { 
 
         6 9 :                   i f   ( $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   7 0 :                           r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' E p i c o r K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' T i m e Z o n e M o d i f i e r ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' p a i n t _ P l a n t L i n e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' q u e s t _ U s e r ' ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 3   [ m a t c h :   E P I C O R ] : 
 
         7 1 :                   } 
 
         7 2 :   
 
   > >   7 3 :                   r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' E p i c o r K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' T i m e Z o n e M o d i f i e r ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' p a i n t _ P l a n t L i n e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ p a i n t _ P l a n t '   .   " \ 0 "   .   ' q u e s t _ U s e r ' ] ; 
 
         7 4 :           } 
 
         7 5 :   
 
 
 
     L i n e   2 1 6   [ m a t c h :   E P I C O R ] : 
 
         2 1 4 :             *   { @ i n h e r i t D o c } 
 
         2 1 5 :             * / 
 
   > >   2 1 6 :           p u b l i c   f u n c t i o n   s e t E p i c o r K e y ( $ e p i c o r K e y ) 
 
         2 1 7 :           { 
 
         2 1 8 :   
 
 
 
     L i n e   2 1 9   [ m a t c h :   E P I C O R ] : 
 
         2 1 7 :           { 
 
         2 1 8 :   
 
   > >   2 1 9 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t E p i c o r K e y ' ,   [ $ e p i c o r K e y ] ) ; 
 
         2 2 0 :   
 
         2 2 1 :                   r e t u r n   p a r e n t : : s e t E p i c o r K e y ( $ e p i c o r K e y ) ; 
 
 
 
     L i n e   2 2 1   [ m a t c h :   E P I C O R ] : 
 
         2 1 9 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t E p i c o r K e y ' ,   [ $ e p i c o r K e y ] ) ; 
 
         2 2 0 :   
 
   > >   2 2 1 :                   r e t u r n   p a r e n t : : s e t E p i c o r K e y ( $ e p i c o r K e y ) ; 
 
         2 2 2 :           } 
 
         2 2 3 :   
 
 
 
     L i n e   2 2 7   [ m a t c h :   E P I C O R ] : 
 
         2 2 5 :             *   { @ i n h e r i t D o c } 
 
         2 2 6 :             * / 
 
   > >   2 2 7 :           p u b l i c   f u n c t i o n   g e t E p i c o r K e y ( ) 
 
         2 2 8 :           { 
 
         2 2 9 :   
 
 
 
     L i n e   2 3 0   [ m a t c h :   E P I C O R ] : 
 
         2 2 8 :           { 
 
         2 2 9 :   
 
   > >   2 3 0 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t E p i c o r K e y ' ,   [ ] ) ; 
 
         2 3 1 :   
 
         2 3 2 :                   r e t u r n   p a r e n t : : g e t E p i c o r K e y ( ) ; 
 
 
 
     L i n e   2 3 2   [ m a t c h :   E P I C O R ] : 
 
         2 3 0 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t E p i c o r K e y ' ,   [ ] ) ; 
 
         2 3 1 :   
 
   > >   2 3 2 :                   r e t u r n   p a r e n t : : g e t E p i c o r K e y ( ) ; 
 
         2 3 3 :           } 
 
         2 3 4 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ P r o x i e s \ _ _ C G _ _ A p p M o d e l E n t i t i e s q u e s t _ C o m p a n y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 0   [ m a t c h :   e p i c o r ] : 
 
         6 8 :           { 
 
         6 9 :                   i f   ( $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   7 0 :                           r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' E p i c o r C u s t I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' e p i _ N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' c a l c _ D i s p l a y N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' I s D e a c t i v a t e d ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' I n v o i c i n g E m a i l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' O r d e r A c k E m a i l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' C a n A c c e s s I n v o i c e s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' R e c e i v e s S O E m a i l s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' s h i p _ R e q u e s t ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' i n v _ U p l o a d E n t r y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' a l l o c _ R e q u e s t ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' q u e s t _ U s e r ' ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 3   [ m a t c h :   e p i c o r ] : 
 
         7 1 :                   } 
 
         7 2 :   
 
   > >   7 3 :                   r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' E p i c o r C u s t I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' e p i _ N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' c a l c _ D i s p l a y N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' I s D e a c t i v a t e d ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' I n v o i c i n g E m a i l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' O r d e r A c k E m a i l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' C a n A c c e s s I n v o i c e s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' R e c e i v e s S O E m a i l s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' s h i p _ R e q u e s t ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' i n v _ U p l o a d E n t r y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' a l l o c _ R e q u e s t ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' q u e s t _ U s e r ' ] ; 
 
         7 4 :           } 
 
         7 5 :   
 
 
 
     L i n e   1 9 4   [ m a t c h :   e p i c o r ] : 
 
         1 9 2 :             *   { @ i n h e r i t D o c } 
 
         1 9 3 :             * / 
 
   > >   1 9 4 :           p u b l i c   f u n c t i o n   s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) 
 
         1 9 5 :           { 
 
         1 9 6 :   
 
 
 
     L i n e   1 9 7   [ m a t c h :   e p i c o r ] : 
 
         1 9 5 :           { 
 
         1 9 6 :   
 
   > >   1 9 7 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t E p i c o r C u s t I D ' ,   [ $ e p i c o r C u s t I D ] ) ; 
 
         1 9 8 :   
 
         1 9 9 :                   r e t u r n   p a r e n t : : s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) ; 
 
 
 
     L i n e   1 9 9   [ m a t c h :   e p i c o r ] : 
 
         1 9 7 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t E p i c o r C u s t I D ' ,   [ $ e p i c o r C u s t I D ] ) ; 
 
         1 9 8 :   
 
   > >   1 9 9 :                   r e t u r n   p a r e n t : : s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) ; 
 
         2 0 0 :           } 
 
         2 0 1 :   
 
 
 
     L i n e   2 0 5   [ m a t c h :   e p i c o r ] : 
 
         2 0 3 :             *   { @ i n h e r i t D o c } 
 
         2 0 4 :             * / 
 
   > >   2 0 5 :           p u b l i c   f u n c t i o n   g e t E p i c o r C u s t I D ( ) 
 
         2 0 6 :           { 
 
         2 0 7 :   
 
 
 
     L i n e   2 0 8   [ m a t c h :   e p i c o r ] : 
 
         2 0 6 :           { 
 
         2 0 7 :   
 
   > >   2 0 8 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t E p i c o r C u s t I D ' ,   [ ] ) ; 
 
         2 0 9 :   
 
         2 1 0 :                   r e t u r n   p a r e n t : : g e t E p i c o r C u s t I D ( ) ; 
 
 
 
     L i n e   2 1 0   [ m a t c h :   e p i c o r ] : 
 
         2 0 8 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t E p i c o r C u s t I D ' ,   [ ] ) ; 
 
         2 0 9 :   
 
   > >   2 1 0 :                   r e t u r n   p a r e n t : : g e t E p i c o r C u s t I D ( ) ; 
 
         2 1 1 :           } 
 
         2 1 2 :   
 
 
 
     L i n e   7 0   [ m a t c h :   E p i c o r ] : 
 
         6 8 :           { 
 
         6 9 :                   i f   ( $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   7 0 :                           r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' E p i c o r C u s t I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' e p i _ N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' c a l c _ D i s p l a y N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' I s D e a c t i v a t e d ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' I n v o i c i n g E m a i l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' O r d e r A c k E m a i l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' C a n A c c e s s I n v o i c e s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' R e c e i v e s S O E m a i l s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' s h i p _ R e q u e s t ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' i n v _ U p l o a d E n t r y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' a l l o c _ R e q u e s t ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' q u e s t _ U s e r ' ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 3   [ m a t c h :   E p i c o r ] : 
 
         7 1 :                   } 
 
         7 2 :   
 
   > >   7 3 :                   r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' E p i c o r C u s t I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' e p i _ N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' c a l c _ D i s p l a y N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' I s D e a c t i v a t e d ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' I n v o i c i n g E m a i l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' O r d e r A c k E m a i l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' C a n A c c e s s I n v o i c e s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' R e c e i v e s S O E m a i l s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' s h i p _ R e q u e s t ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' i n v _ U p l o a d E n t r y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' a l l o c _ R e q u e s t ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' q u e s t _ U s e r ' ] ; 
 
         7 4 :           } 
 
         7 5 :   
 
 
 
     L i n e   1 9 4   [ m a t c h :   E p i c o r ] : 
 
         1 9 2 :             *   { @ i n h e r i t D o c } 
 
         1 9 3 :             * / 
 
   > >   1 9 4 :           p u b l i c   f u n c t i o n   s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) 
 
         1 9 5 :           { 
 
         1 9 6 :   
 
 
 
     L i n e   1 9 7   [ m a t c h :   E p i c o r ] : 
 
         1 9 5 :           { 
 
         1 9 6 :   
 
   > >   1 9 7 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t E p i c o r C u s t I D ' ,   [ $ e p i c o r C u s t I D ] ) ; 
 
         1 9 8 :   
 
         1 9 9 :                   r e t u r n   p a r e n t : : s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) ; 
 
 
 
     L i n e   1 9 9   [ m a t c h :   E p i c o r ] : 
 
         1 9 7 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t E p i c o r C u s t I D ' ,   [ $ e p i c o r C u s t I D ] ) ; 
 
         1 9 8 :   
 
   > >   1 9 9 :                   r e t u r n   p a r e n t : : s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) ; 
 
         2 0 0 :           } 
 
         2 0 1 :   
 
 
 
     L i n e   2 0 5   [ m a t c h :   E p i c o r ] : 
 
         2 0 3 :             *   { @ i n h e r i t D o c } 
 
         2 0 4 :             * / 
 
   > >   2 0 5 :           p u b l i c   f u n c t i o n   g e t E p i c o r C u s t I D ( ) 
 
         2 0 6 :           { 
 
         2 0 7 :   
 
 
 
     L i n e   2 0 8   [ m a t c h :   E p i c o r ] : 
 
         2 0 6 :           { 
 
         2 0 7 :   
 
   > >   2 0 8 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t E p i c o r C u s t I D ' ,   [ ] ) ; 
 
         2 0 9 :   
 
         2 1 0 :                   r e t u r n   p a r e n t : : g e t E p i c o r C u s t I D ( ) ; 
 
 
 
     L i n e   2 1 0   [ m a t c h :   E p i c o r ] : 
 
         2 0 8 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t E p i c o r C u s t I D ' ,   [ ] ) ; 
 
         2 0 9 :   
 
   > >   2 1 0 :                   r e t u r n   p a r e n t : : g e t E p i c o r C u s t I D ( ) ; 
 
         2 1 1 :           } 
 
         2 1 2 :   
 
 
 
     L i n e   7 0   [ m a t c h :   E P I C O R ] : 
 
         6 8 :           { 
 
         6 9 :                   i f   ( $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   7 0 :                           r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' E p i c o r C u s t I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' e p i _ N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' c a l c _ D i s p l a y N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' I s D e a c t i v a t e d ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' I n v o i c i n g E m a i l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' O r d e r A c k E m a i l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' C a n A c c e s s I n v o i c e s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' R e c e i v e s S O E m a i l s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' s h i p _ R e q u e s t ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' i n v _ U p l o a d E n t r y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' a l l o c _ R e q u e s t ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' q u e s t _ U s e r ' ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 3   [ m a t c h :   E P I C O R ] : 
 
         7 1 :                   } 
 
         7 2 :   
 
   > >   7 3 :                   r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' E p i c o r C u s t I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' e p i _ N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' c a l c _ D i s p l a y N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' I s D e a c t i v a t e d ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' I n v o i c i n g E m a i l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' O r d e r A c k E m a i l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' C a n A c c e s s I n v o i c e s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' R e c e i v e s S O E m a i l s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' s h i p _ R e q u e s t ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' i n v _ U p l o a d E n t r y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' a l l o c _ R e q u e s t ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y '   .   " \ 0 "   .   ' q u e s t _ U s e r ' ] ; 
 
         7 4 :           } 
 
         7 5 :   
 
 
 
     L i n e   1 9 4   [ m a t c h :   E P I C O R ] : 
 
         1 9 2 :             *   { @ i n h e r i t D o c } 
 
         1 9 3 :             * / 
 
   > >   1 9 4 :           p u b l i c   f u n c t i o n   s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) 
 
         1 9 5 :           { 
 
         1 9 6 :   
 
 
 
     L i n e   1 9 7   [ m a t c h :   E P I C O R ] : 
 
         1 9 5 :           { 
 
         1 9 6 :   
 
   > >   1 9 7 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t E p i c o r C u s t I D ' ,   [ $ e p i c o r C u s t I D ] ) ; 
 
         1 9 8 :   
 
         1 9 9 :                   r e t u r n   p a r e n t : : s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) ; 
 
 
 
     L i n e   1 9 9   [ m a t c h :   E P I C O R ] : 
 
         1 9 7 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t E p i c o r C u s t I D ' ,   [ $ e p i c o r C u s t I D ] ) ; 
 
         1 9 8 :   
 
   > >   1 9 9 :                   r e t u r n   p a r e n t : : s e t E p i c o r C u s t I D ( $ e p i c o r C u s t I D ) ; 
 
         2 0 0 :           } 
 
         2 0 1 :   
 
 
 
     L i n e   2 0 5   [ m a t c h :   E P I C O R ] : 
 
         2 0 3 :             *   { @ i n h e r i t D o c } 
 
         2 0 4 :             * / 
 
   > >   2 0 5 :           p u b l i c   f u n c t i o n   g e t E p i c o r C u s t I D ( ) 
 
         2 0 6 :           { 
 
         2 0 7 :   
 
 
 
     L i n e   2 0 8   [ m a t c h :   E P I C O R ] : 
 
         2 0 6 :           { 
 
         2 0 7 :   
 
   > >   2 0 8 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t E p i c o r C u s t I D ' ,   [ ] ) ; 
 
         2 0 9 :   
 
         2 1 0 :                   r e t u r n   p a r e n t : : g e t E p i c o r C u s t I D ( ) ; 
 
 
 
     L i n e   2 1 0   [ m a t c h :   E P I C O R ] : 
 
         2 0 8 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t E p i c o r C u s t I D ' ,   [ ] ) ; 
 
         2 0 9 :   
 
   > >   2 1 0 :                   r e t u r n   p a r e n t : : g e t E p i c o r C u s t I D ( ) ; 
 
         2 1 1 :           } 
 
         2 1 2 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ P r o x i e s \ _ _ C G _ _ A p p M o d e l E n t i t i e s q u e s t _ E m a i l E v e n t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 0   [ m a t c h :   w a v e ] : 
 
         6 8 :           { 
 
         6 9 :                   i f   ( $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   7 0 :                           r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' E v e n t N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' C o d i n g K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' w a v e _ P r o c e s s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' q u e s t _ U s e r ' ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 3   [ m a t c h :   w a v e ] : 
 
         7 1 :                   } 
 
         7 2 :   
 
   > >   7 3 :                   r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' E v e n t N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' C o d i n g K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' w a v e _ P r o c e s s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' q u e s t _ U s e r ' ] ; 
 
         7 4 :           } 
 
         7 5 :   
 
 
 
     L i n e   2 3 8   [ m a t c h :   w a v e ] : 
 
         2 3 6 :             *   { @ i n h e r i t D o c } 
 
         2 3 7 :             * / 
 
   > >   2 3 8 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s ) 
 
         2 3 9 :           { 
 
         2 4 0 :   
 
 
 
     L i n e   2 4 1   [ m a t c h :   w a v e ] : 
 
         2 3 9 :           { 
 
         2 4 0 :   
 
   > >   2 4 1 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' a d d W a v e P r o c e s s ' ,   [ $ w a v e P r o c e s s ] ) ; 
 
         2 4 2 :   
 
         2 4 3 :                   r e t u r n   p a r e n t : : a d d W a v e P r o c e s s ( $ w a v e P r o c e s s ) ; 
 
 
 
     L i n e   2 4 3   [ m a t c h :   w a v e ] : 
 
         2 4 1 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' a d d W a v e P r o c e s s ' ,   [ $ w a v e P r o c e s s ] ) ; 
 
         2 4 2 :   
 
   > >   2 4 3 :                   r e t u r n   p a r e n t : : a d d W a v e P r o c e s s ( $ w a v e P r o c e s s ) ; 
 
         2 4 4 :           } 
 
         2 4 5 :   
 
 
 
     L i n e   2 4 9   [ m a t c h :   w a v e ] : 
 
         2 4 7 :             *   { @ i n h e r i t D o c } 
 
         2 4 8 :             * / 
 
   > >   2 4 9 :           p u b l i c   f u n c t i o n   r e m o v e W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s ) 
 
         2 5 0 :           { 
 
         2 5 1 :   
 
 
 
     L i n e   2 5 2   [ m a t c h :   w a v e ] : 
 
         2 5 0 :           { 
 
         2 5 1 :   
 
   > >   2 5 2 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' r e m o v e W a v e P r o c e s s ' ,   [ $ w a v e P r o c e s s ] ) ; 
 
         2 5 3 :   
 
         2 5 4 :                   r e t u r n   p a r e n t : : r e m o v e W a v e P r o c e s s ( $ w a v e P r o c e s s ) ; 
 
 
 
     L i n e   2 5 4   [ m a t c h :   w a v e ] : 
 
         2 5 2 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' r e m o v e W a v e P r o c e s s ' ,   [ $ w a v e P r o c e s s ] ) ; 
 
         2 5 3 :   
 
   > >   2 5 4 :                   r e t u r n   p a r e n t : : r e m o v e W a v e P r o c e s s ( $ w a v e P r o c e s s ) ; 
 
         2 5 5 :           } 
 
         2 5 6 :   
 
 
 
     L i n e   2 6 0   [ m a t c h :   w a v e ] : 
 
         2 5 8 :             *   { @ i n h e r i t D o c } 
 
         2 5 9 :             * / 
 
   > >   2 6 0 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
         2 6 1 :           { 
 
         2 6 2 :   
 
 
 
     L i n e   2 6 3   [ m a t c h :   w a v e ] : 
 
         2 6 1 :           { 
 
         2 6 2 :   
 
   > >   2 6 3 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t W a v e P r o c e s s ' ,   [ ] ) ; 
 
         2 6 4 :   
 
         2 6 5 :                   r e t u r n   p a r e n t : : g e t W a v e P r o c e s s ( ) ; 
 
 
 
     L i n e   2 6 5   [ m a t c h :   w a v e ] : 
 
         2 6 3 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t W a v e P r o c e s s ' ,   [ ] ) ; 
 
         2 6 4 :   
 
   > >   2 6 5 :                   r e t u r n   p a r e n t : : g e t W a v e P r o c e s s ( ) ; 
 
         2 6 6 :           } 
 
         2 6 7 :   
 
 
 
     L i n e   7 0   [ m a t c h :   W a v e ] : 
 
         6 8 :           { 
 
         6 9 :                   i f   ( $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   7 0 :                           r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' E v e n t N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' C o d i n g K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' w a v e _ P r o c e s s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' q u e s t _ U s e r ' ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 3   [ m a t c h :   W a v e ] : 
 
         7 1 :                   } 
 
         7 2 :   
 
   > >   7 3 :                   r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' E v e n t N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' C o d i n g K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' w a v e _ P r o c e s s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' q u e s t _ U s e r ' ] ; 
 
         7 4 :           } 
 
         7 5 :   
 
 
 
     L i n e   2 3 8   [ m a t c h :   W a v e ] : 
 
         2 3 6 :             *   { @ i n h e r i t D o c } 
 
         2 3 7 :             * / 
 
   > >   2 3 8 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s ) 
 
         2 3 9 :           { 
 
         2 4 0 :   
 
 
 
     L i n e   2 4 1   [ m a t c h :   W a v e ] : 
 
         2 3 9 :           { 
 
         2 4 0 :   
 
   > >   2 4 1 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' a d d W a v e P r o c e s s ' ,   [ $ w a v e P r o c e s s ] ) ; 
 
         2 4 2 :   
 
         2 4 3 :                   r e t u r n   p a r e n t : : a d d W a v e P r o c e s s ( $ w a v e P r o c e s s ) ; 
 
 
 
     L i n e   2 4 3   [ m a t c h :   W a v e ] : 
 
         2 4 1 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' a d d W a v e P r o c e s s ' ,   [ $ w a v e P r o c e s s ] ) ; 
 
         2 4 2 :   
 
   > >   2 4 3 :                   r e t u r n   p a r e n t : : a d d W a v e P r o c e s s ( $ w a v e P r o c e s s ) ; 
 
         2 4 4 :           } 
 
         2 4 5 :   
 
 
 
     L i n e   2 4 9   [ m a t c h :   W a v e ] : 
 
         2 4 7 :             *   { @ i n h e r i t D o c } 
 
         2 4 8 :             * / 
 
   > >   2 4 9 :           p u b l i c   f u n c t i o n   r e m o v e W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s ) 
 
         2 5 0 :           { 
 
         2 5 1 :   
 
 
 
     L i n e   2 5 2   [ m a t c h :   W a v e ] : 
 
         2 5 0 :           { 
 
         2 5 1 :   
 
   > >   2 5 2 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' r e m o v e W a v e P r o c e s s ' ,   [ $ w a v e P r o c e s s ] ) ; 
 
         2 5 3 :   
 
         2 5 4 :                   r e t u r n   p a r e n t : : r e m o v e W a v e P r o c e s s ( $ w a v e P r o c e s s ) ; 
 
 
 
     L i n e   2 5 4   [ m a t c h :   W a v e ] : 
 
         2 5 2 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' r e m o v e W a v e P r o c e s s ' ,   [ $ w a v e P r o c e s s ] ) ; 
 
         2 5 3 :   
 
   > >   2 5 4 :                   r e t u r n   p a r e n t : : r e m o v e W a v e P r o c e s s ( $ w a v e P r o c e s s ) ; 
 
         2 5 5 :           } 
 
         2 5 6 :   
 
 
 
     L i n e   2 6 0   [ m a t c h :   W a v e ] : 
 
         2 5 8 :             *   { @ i n h e r i t D o c } 
 
         2 5 9 :             * / 
 
   > >   2 6 0 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
         2 6 1 :           { 
 
         2 6 2 :   
 
 
 
     L i n e   2 6 3   [ m a t c h :   W a v e ] : 
 
         2 6 1 :           { 
 
         2 6 2 :   
 
   > >   2 6 3 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t W a v e P r o c e s s ' ,   [ ] ) ; 
 
         2 6 4 :   
 
         2 6 5 :                   r e t u r n   p a r e n t : : g e t W a v e P r o c e s s ( ) ; 
 
 
 
     L i n e   2 6 5   [ m a t c h :   W a v e ] : 
 
         2 6 3 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t W a v e P r o c e s s ' ,   [ ] ) ; 
 
         2 6 4 :   
 
   > >   2 6 5 :                   r e t u r n   p a r e n t : : g e t W a v e P r o c e s s ( ) ; 
 
         2 6 6 :           } 
 
         2 6 7 :   
 
 
 
     L i n e   7 0   [ m a t c h :   W A V E ] : 
 
         6 8 :           { 
 
         6 9 :                   i f   ( $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   7 0 :                           r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' E v e n t N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' C o d i n g K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' w a v e _ P r o c e s s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' q u e s t _ U s e r ' ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 3   [ m a t c h :   W A V E ] : 
 
         7 1 :                   } 
 
         7 2 :   
 
   > >   7 3 :                   r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' E v e n t N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' C o d i n g K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' w a v e _ P r o c e s s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ E m a i l E v e n t '   .   " \ 0 "   .   ' q u e s t _ U s e r ' ] ; 
 
         7 4 :           } 
 
         7 5 :   
 
 
 
     L i n e   2 3 8   [ m a t c h :   W A V E ] : 
 
         2 3 6 :             *   { @ i n h e r i t D o c } 
 
         2 3 7 :             * / 
 
   > >   2 3 8 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s ) 
 
         2 3 9 :           { 
 
         2 4 0 :   
 
 
 
     L i n e   2 4 1   [ m a t c h :   W A V E ] : 
 
         2 3 9 :           { 
 
         2 4 0 :   
 
   > >   2 4 1 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' a d d W a v e P r o c e s s ' ,   [ $ w a v e P r o c e s s ] ) ; 
 
         2 4 2 :   
 
         2 4 3 :                   r e t u r n   p a r e n t : : a d d W a v e P r o c e s s ( $ w a v e P r o c e s s ) ; 
 
 
 
     L i n e   2 4 3   [ m a t c h :   W A V E ] : 
 
         2 4 1 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' a d d W a v e P r o c e s s ' ,   [ $ w a v e P r o c e s s ] ) ; 
 
         2 4 2 :   
 
   > >   2 4 3 :                   r e t u r n   p a r e n t : : a d d W a v e P r o c e s s ( $ w a v e P r o c e s s ) ; 
 
         2 4 4 :           } 
 
         2 4 5 :   
 
 
 
     L i n e   2 4 9   [ m a t c h :   W A V E ] : 
 
         2 4 7 :             *   { @ i n h e r i t D o c } 
 
         2 4 8 :             * / 
 
   > >   2 4 9 :           p u b l i c   f u n c t i o n   r e m o v e W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s ) 
 
         2 5 0 :           { 
 
         2 5 1 :   
 
 
 
     L i n e   2 5 2   [ m a t c h :   W A V E ] : 
 
         2 5 0 :           { 
 
         2 5 1 :   
 
   > >   2 5 2 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' r e m o v e W a v e P r o c e s s ' ,   [ $ w a v e P r o c e s s ] ) ; 
 
         2 5 3 :   
 
         2 5 4 :                   r e t u r n   p a r e n t : : r e m o v e W a v e P r o c e s s ( $ w a v e P r o c e s s ) ; 
 
 
 
     L i n e   2 5 4   [ m a t c h :   W A V E ] : 
 
         2 5 2 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' r e m o v e W a v e P r o c e s s ' ,   [ $ w a v e P r o c e s s ] ) ; 
 
         2 5 3 :   
 
   > >   2 5 4 :                   r e t u r n   p a r e n t : : r e m o v e W a v e P r o c e s s ( $ w a v e P r o c e s s ) ; 
 
         2 5 5 :           } 
 
         2 5 6 :   
 
 
 
     L i n e   2 6 0   [ m a t c h :   W A V E ] : 
 
         2 5 8 :             *   { @ i n h e r i t D o c } 
 
         2 5 9 :             * / 
 
   > >   2 6 0 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
         2 6 1 :           { 
 
         2 6 2 :   
 
 
 
     L i n e   2 6 3   [ m a t c h :   W A V E ] : 
 
         2 6 1 :           { 
 
         2 6 2 :   
 
   > >   2 6 3 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t W a v e P r o c e s s ' ,   [ ] ) ; 
 
         2 6 4 :   
 
         2 6 5 :                   r e t u r n   p a r e n t : : g e t W a v e P r o c e s s ( ) ; 
 
 
 
     L i n e   2 6 5   [ m a t c h :   W A V E ] : 
 
         2 6 3 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t W a v e P r o c e s s ' ,   [ ] ) ; 
 
         2 6 4 :   
 
   > >   2 6 5 :                   r e t u r n   p a r e n t : : g e t W a v e P r o c e s s ( ) ; 
 
         2 6 6 :           } 
 
         2 6 7 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ P r o x i e s \ _ _ C G _ _ A p p M o d e l E n t i t i e s s h i p _ R e q u e s t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 1 2   [ m a t c h :   U P D A T E   ] : 
 
         6 1 0 :             *   { @ i n h e r i t D o c } 
 
         6 1 1 :             * / 
 
   > >   6 1 2 :           p u b l i c   f u n c t i o n   s e t R e q u e s t e d P i c k u p D a t e ( $ r e q u e s t e d P i c k u p D a t e   =   N U L L ) 
 
         6 1 3 :           { 
 
         6 1 4 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ P r o x i e s \ _ _ C G _ _ A p p M o d e l E n t i t i e s w a v e _ P r o c e s s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   w a v e ] : 
 
         7 :     *   D O   N O T   E D I T   T H I S   F I L E   -   I T   W A S   C R E A T E D   B Y   D O C T R I N E ' S   P R O X Y   G E N E R A T O R 
 
         8 :     * / 
 
   > >   9 :   c l a s s   w a v e _ P r o c e s s   e x t e n d s   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   i m p l e m e n t s   \ D o c t r i n e \ O R M \ P r o x y \ P r o x y 
 
         1 0 :   { 
 
         1 1 :           / * * 
 
 
 
     L i n e   7 0   [ m a t c h :   w a v e ] : 
 
         6 8 :           { 
 
         6 9 :                   i f   ( $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   7 0 :                           r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' C o d i n g K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' I s E n a b l e d ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' P r o c e s s O r d e r ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' P r o c e s s N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' P r o c e s s D e s c ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' L a s t R a n D T ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' w a v e _ P r o c e s s H i s t o r y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' q u e s t _ E m a i l E v e n t ' ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 3   [ m a t c h :   w a v e ] : 
 
         7 1 :                   } 
 
         7 2 :   
 
   > >   7 3 :                   r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' C o d i n g K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' I s E n a b l e d ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' P r o c e s s O r d e r ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' P r o c e s s N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' P r o c e s s D e s c ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' L a s t R a n D T ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' w a v e _ P r o c e s s H i s t o r y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' q u e s t _ E m a i l E v e n t ' ] ; 
 
         7 4 :           } 
 
         7 5 :   
 
 
 
     L i n e   8 2   [ m a t c h :   w a v e ] : 
 
         8 0 :           { 
 
         8 1 :                   i f   (   !   $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   8 2 :                           $ t h i s - > _ _ i n i t i a l i z e r _ _   =   f u n c t i o n   ( w a v e _ P r o c e s s   $ p r o x y )   { 
 
         8 3 :                                   $ p r o x y - > _ _ s e t I n i t i a l i z e r ( n u l l ) ; 
 
         8 4 :                                   $ p r o x y - > _ _ s e t C l o n e r ( n u l l ) ; 
 
 
 
     L i n e   3 2 6   [ m a t c h :   w a v e ] : 
 
         3 2 4 :             *   { @ i n h e r i t D o c } 
 
         3 2 5 :             * / 
 
   > >   3 2 6 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
         3 2 7 :           { 
 
         3 2 8 :   
 
 
 
     L i n e   3 2 9   [ m a t c h :   w a v e ] : 
 
         3 2 7 :           { 
 
         3 2 8 :   
 
   > >   3 2 9 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' a d d W a v e P r o c e s s H i s t o r y ' ,   [ $ w a v e P r o c e s s H i s t o r y ] ) ; 
 
         3 3 0 :   
 
         3 3 1 :                   r e t u r n   p a r e n t : : a d d W a v e P r o c e s s H i s t o r y ( $ w a v e P r o c e s s H i s t o r y ) ; 
 
 
 
     L i n e   3 3 1   [ m a t c h :   w a v e ] : 
 
         3 2 9 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' a d d W a v e P r o c e s s H i s t o r y ' ,   [ $ w a v e P r o c e s s H i s t o r y ] ) ; 
 
         3 3 0 :   
 
   > >   3 3 1 :                   r e t u r n   p a r e n t : : a d d W a v e P r o c e s s H i s t o r y ( $ w a v e P r o c e s s H i s t o r y ) ; 
 
         3 3 2 :           } 
 
         3 3 3 :   
 
 
 
     L i n e   3 3 7   [ m a t c h :   w a v e ] : 
 
         3 3 5 :             *   { @ i n h e r i t D o c } 
 
         3 3 6 :             * / 
 
   > >   3 3 7 :           p u b l i c   f u n c t i o n   r e m o v e W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
         3 3 8 :           { 
 
         3 3 9 :   
 
 
 
     L i n e   3 4 0   [ m a t c h :   w a v e ] : 
 
         3 3 8 :           { 
 
         3 3 9 :   
 
   > >   3 4 0 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' r e m o v e W a v e P r o c e s s H i s t o r y ' ,   [ $ w a v e P r o c e s s H i s t o r y ] ) ; 
 
         3 4 1 :   
 
         3 4 2 :                   r e t u r n   p a r e n t : : r e m o v e W a v e P r o c e s s H i s t o r y ( $ w a v e P r o c e s s H i s t o r y ) ; 
 
 
 
     L i n e   3 4 2   [ m a t c h :   w a v e ] : 
 
         3 4 0 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' r e m o v e W a v e P r o c e s s H i s t o r y ' ,   [ $ w a v e P r o c e s s H i s t o r y ] ) ; 
 
         3 4 1 :   
 
   > >   3 4 2 :                   r e t u r n   p a r e n t : : r e m o v e W a v e P r o c e s s H i s t o r y ( $ w a v e P r o c e s s H i s t o r y ) ; 
 
         3 4 3 :           } 
 
         3 4 4 :   
 
 
 
     L i n e   3 4 8   [ m a t c h :   w a v e ] : 
 
         3 4 6 :             *   { @ i n h e r i t D o c } 
 
         3 4 7 :             * / 
 
   > >   3 4 8 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s H i s t o r y ( ) 
 
         3 4 9 :           { 
 
         3 5 0 :   
 
 
 
     L i n e   3 5 1   [ m a t c h :   w a v e ] : 
 
         3 4 9 :           { 
 
         3 5 0 :   
 
   > >   3 5 1 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t W a v e P r o c e s s H i s t o r y ' ,   [ ] ) ; 
 
         3 5 2 :   
 
         3 5 3 :                   r e t u r n   p a r e n t : : g e t W a v e P r o c e s s H i s t o r y ( ) ; 
 
 
 
     L i n e   3 5 3   [ m a t c h :   w a v e ] : 
 
         3 5 1 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t W a v e P r o c e s s H i s t o r y ' ,   [ ] ) ; 
 
         3 5 2 :   
 
   > >   3 5 3 :                   r e t u r n   p a r e n t : : g e t W a v e P r o c e s s H i s t o r y ( ) ; 
 
         3 5 4 :           } 
 
         3 5 5 :   
 
 
 
     L i n e   9   [ m a t c h :   W a v e ] : 
 
         7 :     *   D O   N O T   E D I T   T H I S   F I L E   -   I T   W A S   C R E A T E D   B Y   D O C T R I N E ' S   P R O X Y   G E N E R A T O R 
 
         8 :     * / 
 
   > >   9 :   c l a s s   w a v e _ P r o c e s s   e x t e n d s   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   i m p l e m e n t s   \ D o c t r i n e \ O R M \ P r o x y \ P r o x y 
 
         1 0 :   { 
 
         1 1 :           / * * 
 
 
 
     L i n e   7 0   [ m a t c h :   W a v e ] : 
 
         6 8 :           { 
 
         6 9 :                   i f   ( $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   7 0 :                           r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' C o d i n g K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' I s E n a b l e d ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' P r o c e s s O r d e r ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' P r o c e s s N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' P r o c e s s D e s c ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' L a s t R a n D T ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' w a v e _ P r o c e s s H i s t o r y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' q u e s t _ E m a i l E v e n t ' ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 3   [ m a t c h :   W a v e ] : 
 
         7 1 :                   } 
 
         7 2 :   
 
   > >   7 3 :                   r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' C o d i n g K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' I s E n a b l e d ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' P r o c e s s O r d e r ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' P r o c e s s N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' P r o c e s s D e s c ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' L a s t R a n D T ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' w a v e _ P r o c e s s H i s t o r y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' q u e s t _ E m a i l E v e n t ' ] ; 
 
         7 4 :           } 
 
         7 5 :   
 
 
 
     L i n e   8 2   [ m a t c h :   W a v e ] : 
 
         8 0 :           { 
 
         8 1 :                   i f   (   !   $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   8 2 :                           $ t h i s - > _ _ i n i t i a l i z e r _ _   =   f u n c t i o n   ( w a v e _ P r o c e s s   $ p r o x y )   { 
 
         8 3 :                                   $ p r o x y - > _ _ s e t I n i t i a l i z e r ( n u l l ) ; 
 
         8 4 :                                   $ p r o x y - > _ _ s e t C l o n e r ( n u l l ) ; 
 
 
 
     L i n e   3 2 6   [ m a t c h :   W a v e ] : 
 
         3 2 4 :             *   { @ i n h e r i t D o c } 
 
         3 2 5 :             * / 
 
   > >   3 2 6 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
         3 2 7 :           { 
 
         3 2 8 :   
 
 
 
     L i n e   3 2 9   [ m a t c h :   W a v e ] : 
 
         3 2 7 :           { 
 
         3 2 8 :   
 
   > >   3 2 9 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' a d d W a v e P r o c e s s H i s t o r y ' ,   [ $ w a v e P r o c e s s H i s t o r y ] ) ; 
 
         3 3 0 :   
 
         3 3 1 :                   r e t u r n   p a r e n t : : a d d W a v e P r o c e s s H i s t o r y ( $ w a v e P r o c e s s H i s t o r y ) ; 
 
 
 
     L i n e   3 3 1   [ m a t c h :   W a v e ] : 
 
         3 2 9 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' a d d W a v e P r o c e s s H i s t o r y ' ,   [ $ w a v e P r o c e s s H i s t o r y ] ) ; 
 
         3 3 0 :   
 
   > >   3 3 1 :                   r e t u r n   p a r e n t : : a d d W a v e P r o c e s s H i s t o r y ( $ w a v e P r o c e s s H i s t o r y ) ; 
 
         3 3 2 :           } 
 
         3 3 3 :   
 
 
 
     L i n e   3 3 7   [ m a t c h :   W a v e ] : 
 
         3 3 5 :             *   { @ i n h e r i t D o c } 
 
         3 3 6 :             * / 
 
   > >   3 3 7 :           p u b l i c   f u n c t i o n   r e m o v e W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
         3 3 8 :           { 
 
         3 3 9 :   
 
 
 
     L i n e   3 4 0   [ m a t c h :   W a v e ] : 
 
         3 3 8 :           { 
 
         3 3 9 :   
 
   > >   3 4 0 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' r e m o v e W a v e P r o c e s s H i s t o r y ' ,   [ $ w a v e P r o c e s s H i s t o r y ] ) ; 
 
         3 4 1 :   
 
         3 4 2 :                   r e t u r n   p a r e n t : : r e m o v e W a v e P r o c e s s H i s t o r y ( $ w a v e P r o c e s s H i s t o r y ) ; 
 
 
 
     L i n e   3 4 2   [ m a t c h :   W a v e ] : 
 
         3 4 0 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' r e m o v e W a v e P r o c e s s H i s t o r y ' ,   [ $ w a v e P r o c e s s H i s t o r y ] ) ; 
 
         3 4 1 :   
 
   > >   3 4 2 :                   r e t u r n   p a r e n t : : r e m o v e W a v e P r o c e s s H i s t o r y ( $ w a v e P r o c e s s H i s t o r y ) ; 
 
         3 4 3 :           } 
 
         3 4 4 :   
 
 
 
     L i n e   3 4 8   [ m a t c h :   W a v e ] : 
 
         3 4 6 :             *   { @ i n h e r i t D o c } 
 
         3 4 7 :             * / 
 
   > >   3 4 8 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s H i s t o r y ( ) 
 
         3 4 9 :           { 
 
         3 5 0 :   
 
 
 
     L i n e   3 5 1   [ m a t c h :   W a v e ] : 
 
         3 4 9 :           { 
 
         3 5 0 :   
 
   > >   3 5 1 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t W a v e P r o c e s s H i s t o r y ' ,   [ ] ) ; 
 
         3 5 2 :   
 
         3 5 3 :                   r e t u r n   p a r e n t : : g e t W a v e P r o c e s s H i s t o r y ( ) ; 
 
 
 
     L i n e   3 5 3   [ m a t c h :   W a v e ] : 
 
         3 5 1 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t W a v e P r o c e s s H i s t o r y ' ,   [ ] ) ; 
 
         3 5 2 :   
 
   > >   3 5 3 :                   r e t u r n   p a r e n t : : g e t W a v e P r o c e s s H i s t o r y ( ) ; 
 
         3 5 4 :           } 
 
         3 5 5 :   
 
 
 
     L i n e   9   [ m a t c h :   W A V E ] : 
 
         7 :     *   D O   N O T   E D I T   T H I S   F I L E   -   I T   W A S   C R E A T E D   B Y   D O C T R I N E ' S   P R O X Y   G E N E R A T O R 
 
         8 :     * / 
 
   > >   9 :   c l a s s   w a v e _ P r o c e s s   e x t e n d s   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   i m p l e m e n t s   \ D o c t r i n e \ O R M \ P r o x y \ P r o x y 
 
         1 0 :   { 
 
         1 1 :           / * * 
 
 
 
     L i n e   7 0   [ m a t c h :   W A V E ] : 
 
         6 8 :           { 
 
         6 9 :                   i f   ( $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   7 0 :                           r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' C o d i n g K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' I s E n a b l e d ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' P r o c e s s O r d e r ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' P r o c e s s N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' P r o c e s s D e s c ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' L a s t R a n D T ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' w a v e _ P r o c e s s H i s t o r y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' q u e s t _ E m a i l E v e n t ' ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 3   [ m a t c h :   W A V E ] : 
 
         7 1 :                   } 
 
         7 2 :   
 
   > >   7 3 :                   r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' C o d i n g K e y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' I s E n a b l e d ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' P r o c e s s O r d e r ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' P r o c e s s N a m e ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' P r o c e s s D e s c ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' L a s t R a n D T ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' w a v e _ P r o c e s s H i s t o r y ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s '   .   " \ 0 "   .   ' q u e s t _ E m a i l E v e n t ' ] ; 
 
         7 4 :           } 
 
         7 5 :   
 
 
 
     L i n e   8 2   [ m a t c h :   W A V E ] : 
 
         8 0 :           { 
 
         8 1 :                   i f   (   !   $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   8 2 :                           $ t h i s - > _ _ i n i t i a l i z e r _ _   =   f u n c t i o n   ( w a v e _ P r o c e s s   $ p r o x y )   { 
 
         8 3 :                                   $ p r o x y - > _ _ s e t I n i t i a l i z e r ( n u l l ) ; 
 
         8 4 :                                   $ p r o x y - > _ _ s e t C l o n e r ( n u l l ) ; 
 
 
 
     L i n e   3 2 6   [ m a t c h :   W A V E ] : 
 
         3 2 4 :             *   { @ i n h e r i t D o c } 
 
         3 2 5 :             * / 
 
   > >   3 2 6 :           p u b l i c   f u n c t i o n   a d d W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
         3 2 7 :           { 
 
         3 2 8 :   
 
 
 
     L i n e   3 2 9   [ m a t c h :   W A V E ] : 
 
         3 2 7 :           { 
 
         3 2 8 :   
 
   > >   3 2 9 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' a d d W a v e P r o c e s s H i s t o r y ' ,   [ $ w a v e P r o c e s s H i s t o r y ] ) ; 
 
         3 3 0 :   
 
         3 3 1 :                   r e t u r n   p a r e n t : : a d d W a v e P r o c e s s H i s t o r y ( $ w a v e P r o c e s s H i s t o r y ) ; 
 
 
 
     L i n e   3 3 1   [ m a t c h :   W A V E ] : 
 
         3 2 9 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' a d d W a v e P r o c e s s H i s t o r y ' ,   [ $ w a v e P r o c e s s H i s t o r y ] ) ; 
 
         3 3 0 :   
 
   > >   3 3 1 :                   r e t u r n   p a r e n t : : a d d W a v e P r o c e s s H i s t o r y ( $ w a v e P r o c e s s H i s t o r y ) ; 
 
         3 3 2 :           } 
 
         3 3 3 :   
 
 
 
     L i n e   3 3 7   [ m a t c h :   W A V E ] : 
 
         3 3 5 :             *   { @ i n h e r i t D o c } 
 
         3 3 6 :             * / 
 
   > >   3 3 7 :           p u b l i c   f u n c t i o n   r e m o v e W a v e P r o c e s s H i s t o r y ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   $ w a v e P r o c e s s H i s t o r y ) 
 
         3 3 8 :           { 
 
         3 3 9 :   
 
 
 
     L i n e   3 4 0   [ m a t c h :   W A V E ] : 
 
         3 3 8 :           { 
 
         3 3 9 :   
 
   > >   3 4 0 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' r e m o v e W a v e P r o c e s s H i s t o r y ' ,   [ $ w a v e P r o c e s s H i s t o r y ] ) ; 
 
         3 4 1 :   
 
         3 4 2 :                   r e t u r n   p a r e n t : : r e m o v e W a v e P r o c e s s H i s t o r y ( $ w a v e P r o c e s s H i s t o r y ) ; 
 
 
 
     L i n e   3 4 2   [ m a t c h :   W A V E ] : 
 
         3 4 0 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' r e m o v e W a v e P r o c e s s H i s t o r y ' ,   [ $ w a v e P r o c e s s H i s t o r y ] ) ; 
 
         3 4 1 :   
 
   > >   3 4 2 :                   r e t u r n   p a r e n t : : r e m o v e W a v e P r o c e s s H i s t o r y ( $ w a v e P r o c e s s H i s t o r y ) ; 
 
         3 4 3 :           } 
 
         3 4 4 :   
 
 
 
     L i n e   3 4 8   [ m a t c h :   W A V E ] : 
 
         3 4 6 :             *   { @ i n h e r i t D o c } 
 
         3 4 7 :             * / 
 
   > >   3 4 8 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s H i s t o r y ( ) 
 
         3 4 9 :           { 
 
         3 5 0 :   
 
 
 
     L i n e   3 5 1   [ m a t c h :   W A V E ] : 
 
         3 4 9 :           { 
 
         3 5 0 :   
 
   > >   3 5 1 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t W a v e P r o c e s s H i s t o r y ' ,   [ ] ) ; 
 
         3 5 2 :   
 
         3 5 3 :                   r e t u r n   p a r e n t : : g e t W a v e P r o c e s s H i s t o r y ( ) ; 
 
 
 
     L i n e   3 5 3   [ m a t c h :   W A V E ] : 
 
         3 5 1 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t W a v e P r o c e s s H i s t o r y ' ,   [ ] ) ; 
 
         3 5 2 :   
 
   > >   3 5 3 :                   r e t u r n   p a r e n t : : g e t W a v e P r o c e s s H i s t o r y ( ) ; 
 
         3 5 4 :           } 
 
         3 5 5 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ P r o x i e s \ _ _ C G _ _ A p p M o d e l E n t i t i e s w a v e _ P r o c e s s H i s t o r y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   w a v e ] : 
 
         7 :     *   D O   N O T   E D I T   T H I S   F I L E   -   I T   W A S   C R E A T E D   B Y   D O C T R I N E ' S   P R O X Y   G E N E R A T O R 
 
         8 :     * / 
 
   > >   9 :   c l a s s   w a v e _ P r o c e s s H i s t o r y   e x t e n d s   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   i m p l e m e n t s   \ D o c t r i n e \ O R M \ P r o x y \ P r o x y 
 
         1 0 :   { 
 
         1 1 :           / * * 
 
 
 
     L i n e   7 0   [ m a t c h :   w a v e ] : 
 
         6 8 :           { 
 
         6 9 :                   i f   ( $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   7 0 :                           r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' R e s u l t s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' W a s S u c c e s s f u l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' W a s M a n u a l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' R e s u l t s F i l e P a t h ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' R a n D T ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' w a v e _ P r o c e s s ' ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 3   [ m a t c h :   w a v e ] : 
 
         7 1 :                   } 
 
         7 2 :   
 
   > >   7 3 :                   r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' R e s u l t s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' W a s S u c c e s s f u l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' W a s M a n u a l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' R e s u l t s F i l e P a t h ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' R a n D T ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' w a v e _ P r o c e s s ' ] ; 
 
         7 4 :           } 
 
         7 5 :   
 
 
 
     L i n e   8 2   [ m a t c h :   w a v e ] : 
 
         8 0 :           { 
 
         8 1 :                   i f   (   !   $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   8 2 :                           $ t h i s - > _ _ i n i t i a l i z e r _ _   =   f u n c t i o n   ( w a v e _ P r o c e s s H i s t o r y   $ p r o x y )   { 
 
         8 3 :                                   $ p r o x y - > _ _ s e t I n i t i a l i z e r ( n u l l ) ; 
 
         8 4 :                                   $ p r o x y - > _ _ s e t C l o n e r ( n u l l ) ; 
 
 
 
     L i n e   3 0 4   [ m a t c h :   w a v e ] : 
 
         3 0 2 :             *   { @ i n h e r i t D o c } 
 
         3 0 3 :             * / 
 
   > >   3 0 4 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s   =   N U L L ) 
 
         3 0 5 :           { 
 
         3 0 6 :   
 
 
 
     L i n e   3 0 7   [ m a t c h :   w a v e ] : 
 
         3 0 5 :           { 
 
         3 0 6 :   
 
   > >   3 0 7 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t W a v e P r o c e s s ' ,   [ $ w a v e P r o c e s s ] ) ; 
 
         3 0 8 :   
 
         3 0 9 :                   r e t u r n   p a r e n t : : s e t W a v e P r o c e s s ( $ w a v e P r o c e s s ) ; 
 
 
 
     L i n e   3 0 9   [ m a t c h :   w a v e ] : 
 
         3 0 7 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t W a v e P r o c e s s ' ,   [ $ w a v e P r o c e s s ] ) ; 
 
         3 0 8 :   
 
   > >   3 0 9 :                   r e t u r n   p a r e n t : : s e t W a v e P r o c e s s ( $ w a v e P r o c e s s ) ; 
 
         3 1 0 :           } 
 
         3 1 1 :   
 
 
 
     L i n e   3 1 5   [ m a t c h :   w a v e ] : 
 
         3 1 3 :             *   { @ i n h e r i t D o c } 
 
         3 1 4 :             * / 
 
   > >   3 1 5 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
         3 1 6 :           { 
 
         3 1 7 :   
 
 
 
     L i n e   3 1 8   [ m a t c h :   w a v e ] : 
 
         3 1 6 :           { 
 
         3 1 7 :   
 
   > >   3 1 8 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t W a v e P r o c e s s ' ,   [ ] ) ; 
 
         3 1 9 :   
 
         3 2 0 :                   r e t u r n   p a r e n t : : g e t W a v e P r o c e s s ( ) ; 
 
 
 
     L i n e   3 2 0   [ m a t c h :   w a v e ] : 
 
         3 1 8 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t W a v e P r o c e s s ' ,   [ ] ) ; 
 
         3 1 9 :   
 
   > >   3 2 0 :                   r e t u r n   p a r e n t : : g e t W a v e P r o c e s s ( ) ; 
 
         3 2 1 :           } 
 
         3 2 2 :   
 
 
 
     L i n e   9   [ m a t c h :   W a v e ] : 
 
         7 :     *   D O   N O T   E D I T   T H I S   F I L E   -   I T   W A S   C R E A T E D   B Y   D O C T R I N E ' S   P R O X Y   G E N E R A T O R 
 
         8 :     * / 
 
   > >   9 :   c l a s s   w a v e _ P r o c e s s H i s t o r y   e x t e n d s   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   i m p l e m e n t s   \ D o c t r i n e \ O R M \ P r o x y \ P r o x y 
 
         1 0 :   { 
 
         1 1 :           / * * 
 
 
 
     L i n e   7 0   [ m a t c h :   W a v e ] : 
 
         6 8 :           { 
 
         6 9 :                   i f   ( $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   7 0 :                           r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' R e s u l t s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' W a s S u c c e s s f u l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' W a s M a n u a l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' R e s u l t s F i l e P a t h ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' R a n D T ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' w a v e _ P r o c e s s ' ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 3   [ m a t c h :   W a v e ] : 
 
         7 1 :                   } 
 
         7 2 :   
 
   > >   7 3 :                   r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' R e s u l t s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' W a s S u c c e s s f u l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' W a s M a n u a l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' R e s u l t s F i l e P a t h ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' R a n D T ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' w a v e _ P r o c e s s ' ] ; 
 
         7 4 :           } 
 
         7 5 :   
 
 
 
     L i n e   8 2   [ m a t c h :   W a v e ] : 
 
         8 0 :           { 
 
         8 1 :                   i f   (   !   $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   8 2 :                           $ t h i s - > _ _ i n i t i a l i z e r _ _   =   f u n c t i o n   ( w a v e _ P r o c e s s H i s t o r y   $ p r o x y )   { 
 
         8 3 :                                   $ p r o x y - > _ _ s e t I n i t i a l i z e r ( n u l l ) ; 
 
         8 4 :                                   $ p r o x y - > _ _ s e t C l o n e r ( n u l l ) ; 
 
 
 
     L i n e   3 0 4   [ m a t c h :   W a v e ] : 
 
         3 0 2 :             *   { @ i n h e r i t D o c } 
 
         3 0 3 :             * / 
 
   > >   3 0 4 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s   =   N U L L ) 
 
         3 0 5 :           { 
 
         3 0 6 :   
 
 
 
     L i n e   3 0 7   [ m a t c h :   W a v e ] : 
 
         3 0 5 :           { 
 
         3 0 6 :   
 
   > >   3 0 7 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t W a v e P r o c e s s ' ,   [ $ w a v e P r o c e s s ] ) ; 
 
         3 0 8 :   
 
         3 0 9 :                   r e t u r n   p a r e n t : : s e t W a v e P r o c e s s ( $ w a v e P r o c e s s ) ; 
 
 
 
     L i n e   3 0 9   [ m a t c h :   W a v e ] : 
 
         3 0 7 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t W a v e P r o c e s s ' ,   [ $ w a v e P r o c e s s ] ) ; 
 
         3 0 8 :   
 
   > >   3 0 9 :                   r e t u r n   p a r e n t : : s e t W a v e P r o c e s s ( $ w a v e P r o c e s s ) ; 
 
         3 1 0 :           } 
 
         3 1 1 :   
 
 
 
     L i n e   3 1 5   [ m a t c h :   W a v e ] : 
 
         3 1 3 :             *   { @ i n h e r i t D o c } 
 
         3 1 4 :             * / 
 
   > >   3 1 5 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
         3 1 6 :           { 
 
         3 1 7 :   
 
 
 
     L i n e   3 1 8   [ m a t c h :   W a v e ] : 
 
         3 1 6 :           { 
 
         3 1 7 :   
 
   > >   3 1 8 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t W a v e P r o c e s s ' ,   [ ] ) ; 
 
         3 1 9 :   
 
         3 2 0 :                   r e t u r n   p a r e n t : : g e t W a v e P r o c e s s ( ) ; 
 
 
 
     L i n e   3 2 0   [ m a t c h :   W a v e ] : 
 
         3 1 8 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t W a v e P r o c e s s ' ,   [ ] ) ; 
 
         3 1 9 :   
 
   > >   3 2 0 :                   r e t u r n   p a r e n t : : g e t W a v e P r o c e s s ( ) ; 
 
         3 2 1 :           } 
 
         3 2 2 :   
 
 
 
     L i n e   9   [ m a t c h :   W A V E ] : 
 
         7 :     *   D O   N O T   E D I T   T H I S   F I L E   -   I T   W A S   C R E A T E D   B Y   D O C T R I N E ' S   P R O X Y   G E N E R A T O R 
 
         8 :     * / 
 
   > >   9 :   c l a s s   w a v e _ P r o c e s s H i s t o r y   e x t e n d s   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y   i m p l e m e n t s   \ D o c t r i n e \ O R M \ P r o x y \ P r o x y 
 
         1 0 :   { 
 
         1 1 :           / * * 
 
 
 
     L i n e   7 0   [ m a t c h :   W A V E ] : 
 
         6 8 :           { 
 
         6 9 :                   i f   ( $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   7 0 :                           r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' R e s u l t s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' W a s S u c c e s s f u l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' W a s M a n u a l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' R e s u l t s F i l e P a t h ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' R a n D T ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' w a v e _ P r o c e s s ' ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 3   [ m a t c h :   W A V E ] : 
 
         7 1 :                   } 
 
         7 2 :   
 
   > >   7 3 :                   r e t u r n   [ ' _ _ i s I n i t i a l i z e d _ _ ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' I D ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' R e s u l t s ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' W a s S u c c e s s f u l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' W a s M a n u a l ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' R e s u l t s F i l e P a t h ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' R a n D T ' ,   ' '   .   " \ 0 "   .   ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ w a v e _ P r o c e s s H i s t o r y '   .   " \ 0 "   .   ' w a v e _ P r o c e s s ' ] ; 
 
         7 4 :           } 
 
         7 5 :   
 
 
 
     L i n e   8 2   [ m a t c h :   W A V E ] : 
 
         8 0 :           { 
 
         8 1 :                   i f   (   !   $ t h i s - > _ _ i s I n i t i a l i z e d _ _ )   { 
 
   > >   8 2 :                           $ t h i s - > _ _ i n i t i a l i z e r _ _   =   f u n c t i o n   ( w a v e _ P r o c e s s H i s t o r y   $ p r o x y )   { 
 
         8 3 :                                   $ p r o x y - > _ _ s e t I n i t i a l i z e r ( n u l l ) ; 
 
         8 4 :                                   $ p r o x y - > _ _ s e t C l o n e r ( n u l l ) ; 
 
 
 
     L i n e   3 0 4   [ m a t c h :   W A V E ] : 
 
         3 0 2 :             *   { @ i n h e r i t D o c } 
 
         3 0 3 :             * / 
 
   > >   3 0 4 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e P r o c e s s   =   N U L L ) 
 
         3 0 5 :           { 
 
         3 0 6 :   
 
 
 
     L i n e   3 0 7   [ m a t c h :   W A V E ] : 
 
         3 0 5 :           { 
 
         3 0 6 :   
 
   > >   3 0 7 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t W a v e P r o c e s s ' ,   [ $ w a v e P r o c e s s ] ) ; 
 
         3 0 8 :   
 
         3 0 9 :                   r e t u r n   p a r e n t : : s e t W a v e P r o c e s s ( $ w a v e P r o c e s s ) ; 
 
 
 
     L i n e   3 0 9   [ m a t c h :   W A V E ] : 
 
         3 0 7 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' s e t W a v e P r o c e s s ' ,   [ $ w a v e P r o c e s s ] ) ; 
 
         3 0 8 :   
 
   > >   3 0 9 :                   r e t u r n   p a r e n t : : s e t W a v e P r o c e s s ( $ w a v e P r o c e s s ) ; 
 
         3 1 0 :           } 
 
         3 1 1 :   
 
 
 
     L i n e   3 1 5   [ m a t c h :   W A V E ] : 
 
         3 1 3 :             *   { @ i n h e r i t D o c } 
 
         3 1 4 :             * / 
 
   > >   3 1 5 :           p u b l i c   f u n c t i o n   g e t W a v e P r o c e s s ( ) 
 
         3 1 6 :           { 
 
         3 1 7 :   
 
 
 
     L i n e   3 1 8   [ m a t c h :   W A V E ] : 
 
         3 1 6 :           { 
 
         3 1 7 :   
 
   > >   3 1 8 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t W a v e P r o c e s s ' ,   [ ] ) ; 
 
         3 1 9 :   
 
         3 2 0 :                   r e t u r n   p a r e n t : : g e t W a v e P r o c e s s ( ) ; 
 
 
 
     L i n e   3 2 0   [ m a t c h :   W A V E ] : 
 
         3 1 8 :                   $ t h i s - > _ _ i n i t i a l i z e r _ _   & &   $ t h i s - > _ _ i n i t i a l i z e r _ _ - > _ _ i n v o k e ( $ t h i s ,   ' g e t W a v e P r o c e s s ' ,   [ ] ) ; 
 
         3 1 9 :   
 
   > >   3 2 0 :                   r e t u r n   p a r e n t : : g e t W a v e P r o c e s s ( ) ; 
 
         3 2 1 :           } 
 
         3 2 2 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ a l l o c _ R e q u e s t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 3   [ m a t c h :   F R O M   ] : 
 
         3 1 :   
 
         3 2 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
   > >   3 3 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         3 4 :                                                                                                                         L E F T   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
         3 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   q c 
 
 
 
     L i n e   5 4   [ m a t c h :   F R O M   ] : 
 
         5 2 :                   { 
 
         5 3 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
   > >   5 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         5 5 :                                                                                                                         L E F T   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
         5 6 :                                                                                                                         W H E R E   r . I D   =   : r e l e a s e I D 
 
 
 
     L i n e   6 9   [ m a t c h :   F R O M   ] : 
 
         6 7 :                   { 
 
         6 8 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
   > >   6 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         7 0 :                                                                                                                         L E F T   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
         7 1 :                                                                                                                         W H E R E   r . I D   =   : r e l e a s e I D " ) 
 
 
 
     L i n e   7 9   [ m a t c h :   F R O M   ] : 
 
         7 7 :                   { 
 
         7 8 :                           r e t u r n   ( $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( r ) 
 
   > >   7 9 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         8 0 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         8 1 :                                                                                                                           I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
 
 
     L i n e   1 0 5   [ m a t c h :   F R O M   ] : 
 
         1 0 3 :                   { 
 
         1 0 4 :                         $ e n t i t y   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
   > >   1 0 5 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 0 6 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 0 7 :                                                                                                                           I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
 
 
     L i n e   1 4 6   [ m a t c h :   F R O M   ] : 
 
         1 4 4 :                   { 
 
         1 4 5 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
   > >   1 4 6 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 4 7 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 4 8 :                                                                                                                           I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
 
 
     L i n e   1 7 6   [ m a t c h :   F R O M   ] : 
 
         1 7 4 :                   { 
 
         1 7 5 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R e f e r e n c e N u m 
 
   > >   1 7 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 7 7 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         1 7 8 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   1 9 9   [ m a t c h :   F R O M   ] : 
 
         1 9 7 :                           / /   t h e   i n n e r   j o i n   t o   a l l o c _ R e q u e s t D e t a i l   w i l l   e n s u r e   n o   r e q u e s t s   a r e   i n c l u d e d   h e r e   f o r   s h i p m e n t s   w i t h o u t   a n y   s e l e c t e d   i t e m s   y e t 
 
         1 9 8 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . e p i _ N a m e ,   u . E m a i l ,   C O U N T ( r d . I D )   A S   D e t a i l C o u n t 
 
   > >   1 9 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         2 0 0 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         2 0 1 :                                                                                                                         I N N E R   J O I N   q u . a u t h _ U s e r   u 
 
 
 
     L i n e   2 2 0   [ m a t c h :   F R O M   ] : 
 
         2 1 8 :                   { 
 
         2 1 9 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R e f e r e n c e N u m 
 
   > >   2 2 0 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         2 2 1 :                                                                                                                         W H E R E   r . I D   =   : i d " ) 
 
         2 2 2 :                                   - > s e t P a r a m e t e r ( ' i d ' ,   $ R e q u e s t I D ) 
 
 
 
     L i n e   2 3 4   [ m a t c h :   F R O M   ] : 
 
         2 3 2 :                   { 
 
         2 3 3 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I s C a n c e l l e d 
 
   > >   2 3 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         2 3 5 :                                                                                                                         W H E R E   r . I D   =   : r e q u e s t I D " ) 
 
         2 3 6 :                                   - > s e t P a r a m e t e r ( ' r e q u e s t I D ' ,   $ R e q u e s t I D ) 
 
 
 
     L i n e   2 4 8   [ m a t c h :   F R O M   ] : 
 
         2 4 6 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   u . F i r s t N a m e ,   u . L a s t N a m e , 
 
         2 4 7 :                                                                                                                                                                       r . P l a n t ,   r . C o m p l e t e d D T 
 
   > >   2 4 8 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
         2 4 9 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 5 0 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
 
 
     L i n e   2 6 9   [ m a t c h :   F R O M   ] : 
 
         2 6 7 :                                                                                                                                                       r . C u s t o m e r R e l e a s e N u m ,   r . R e q u e s t e d P i c k u p D a t e ,   r . S p e c i a l I n s t r u c t i o n s , 
 
         2 6 8 :                                                                                                                                                       r . C o n f i r m a t i o n E m a i l R e c i p i e n t s 
 
   > >   2 6 9 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
         2 7 0 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 7 1 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
 
 
     L i n e   2 9 0   [ m a t c h :   F R O M   ] : 
 
         2 8 8 :                                                                                                                                                       r . C u s t o m e r R e l e a s e N u m ,   r . R e q u e s t e d P i c k u p D a t e ,   r . S p e c i a l I n s t r u c t i o n s , 
 
         2 8 9 :                                                                                                                                                       r . C o n f i r m a t i o n E m a i l R e c i p i e n t s 
 
   > >   2 9 0 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
         2 9 1 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 9 2 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
 
 
     L i n e   3 2 3   [ m a t c h :   F R O M   ] : 
 
         3 2 1 :                   { 
 
         3 2 2 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I s C a n c e l l e d 
 
   > >   3 2 3 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         3 2 4 :                                                                                                                         W H E R E   r . I D   =   : r e q u e s t I D " ) 
 
         3 2 5 :                                   - > s e t P a r a m e t e r ( ' r e q u e s t I D ' ,   $ R e q u e s t I D ) 
 
 
 
     L i n e   3 3 7   [ m a t c h :   F R O M   ] : 
 
         3 3 5 :                   { 
 
         3 3 6 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   r . P l a n t ,   u . E m a i l ,   c . e p i _ N a m e 
 
   > >   3 3 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         3 3 8 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         3 3 9 :                                                                                                                         I N N E R   J O I N   q u . a u t h _ U s e r   u 
 
 
 
     L i n e   3 2   [ m a t c h :   S E L E C T   ] : 
 
         3 0 :   
 
         3 1 :   
 
   > >   3 2 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
         3 3 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         3 4 :                                                                                                                         L E F T   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
 
 
     L i n e   5 3   [ m a t c h :   S E L E C T   ] : 
 
         5 1 :                   p u b l i c   f u n c t i o n   g e t C o m p l e t e d A l l o c a t i o n W i t h A l l D e t a i l L i n e s B y I D ( $ A l l o c a t i o n R e l e a s e I D ) 
 
         5 2 :                   { 
 
   > >   5 3 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
         5 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         5 5 :                                                                                                                         L E F T   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
 
 
     L i n e   6 8   [ m a t c h :   S E L E C T   ] : 
 
         6 6 :                   p u b l i c   f u n c t i o n   g e t A l l o c a t i o n W i t h A l l D e t a i l L i n e s B y I D ( $ A l l o c a t i o n R e l e a s e I D ) 
 
         6 7 :                   { 
 
   > >   6 8 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
         6 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         7 0 :                                                                                                                         L E F T   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
 
 
     L i n e   7 8   [ m a t c h :   S E L E C T   ] : 
 
         7 6 :                   p u b l i c   f u n c t i o n   d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d J o b N u m ( $ C u s t I D ,   $ P l a n t ,   $ J o b N u m ) 
 
         7 7 :                   { 
 
   > >   7 8 :                           r e t u r n   ( $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( r ) 
 
         7 9 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         8 0 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   1 0 4   [ m a t c h :   S E L E C T   ] : 
 
         1 0 2 :                   p u b l i c   f u n c t i o n   d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) 
 
         1 0 3 :                   { 
 
   > >   1 0 4 :                         $ e n t i t y   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
         1 0 5 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 0 6 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   1 4 5   [ m a t c h :   S E L E C T   ] : 
 
         1 4 3 :                   p u b l i c   f u n c t i o n   g e t N o n C a n c e l l e d A l l o c a t i o n R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) 
 
         1 4 4 :                   { 
 
   > >   1 4 5 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
         1 4 6 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 4 7 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   1 7 5   [ m a t c h :   S E L E C T   ] : 
 
         1 7 3 :                   p u b l i c   f u n c t i o n   g e t S u b m i t t e d R e q u e s t R e f e r e n c e N u m B y Q u e s t U s e r A n d E p i c o r C u s t I D ( $ A l l o c a t i o n I d ,   $ Q u e s t U s e r I D ,   $ E p i c o r C u s t I D ) 
 
         1 7 4 :                   { 
 
   > >   1 7 5 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R e f e r e n c e N u m 
 
         1 7 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 7 7 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
 
 
     L i n e   1 9 8   [ m a t c h :   S E L E C T   ] : 
 
         1 9 6 :   
 
         1 9 7 :                           / /   t h e   i n n e r   j o i n   t o   a l l o c _ R e q u e s t D e t a i l   w i l l   e n s u r e   n o   r e q u e s t s   a r e   i n c l u d e d   h e r e   f o r   s h i p m e n t s   w i t h o u t   a n y   s e l e c t e d   i t e m s   y e t 
 
   > >   1 9 8 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . e p i _ N a m e ,   u . E m a i l ,   C O U N T ( r d . I D )   A S   D e t a i l C o u n t 
 
         1 9 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         2 0 0 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
 
 
     L i n e   2 1 9   [ m a t c h :   S E L E C T   ] : 
 
         2 1 7 :                   p u b l i c   f u n c t i o n   g e t R e f e r e n c e N u m b e r F o r R e q u e s t ( $ R e q u e s t I D ) 
 
         2 1 8 :                   { 
 
   > >   2 1 9 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R e f e r e n c e N u m 
 
         2 2 0 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         2 2 1 :                                                                                                                         W H E R E   r . I D   =   : i d " ) 
 
 
 
     L i n e   2 3 3   [ m a t c h :   S E L E C T   ] : 
 
         2 3 1 :                   p u b l i c   f u n c t i o n   i s C o i l A l l o c a t i o n C a n c e l l e d ( $ R e q u e s t I D ) 
 
         2 3 2 :                   { 
 
   > >   2 3 3 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I s C a n c e l l e d 
 
         2 3 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         2 3 5 :                                                                                                                         W H E R E   r . I D   =   : r e q u e s t I D " ) 
 
 
 
     L i n e   2 4 6   [ m a t c h :   S E L E C T   ] : 
 
         2 4 4 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D a t a ( $ e p i c o r C u s t I D ) 
 
         2 4 5 :                   { 
 
   > >   2 4 6 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   u . F i r s t N a m e ,   u . L a s t N a m e , 
 
         2 4 7 :                                                                                                                                                                       r . P l a n t ,   r . C o m p l e t e d D T 
 
         2 4 8 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
 
 
     L i n e   2 6 4   [ m a t c h :   S E L E C T   ] : 
 
         2 6 2 :                   p u b l i c   f u n c t i o n   g e t A l l o c a t i o n R e q u e s t D e t a i l s D a t a ( $ e p i c o r C u s t I D ) 
 
         2 6 3 :                   { 
 
   > >   2 6 4 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   r . S h i p T o N a m e ,   r . S h i p T o A d d r e s s 1 , 
 
         2 6 5 :                                                                                                                                                       r . S h i p T o A d d r e s s 2 ,   r . S h i p T o C i t y ,   r . S h i p T o S t a t e ,   r . S h i p T o Z i p ,   u . F i r s t N a m e , 
 
         2 6 6 :                                                                                                                                                       u . L a s t N a m e ,   r . P l a n t ,   r . C o m p l e t e d D T ,   r . C u s t o m e r O r d e r N u m ,   r . C u s t o m e r P O N u m , 
 
 
 
     L i n e   2 8 5   [ m a t c h :   S E L E C T   ] : 
 
         2 8 3 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D e t a i l s D a t a B y I D ( $ e p i c o r C u s t I D ,   $ i d ) 
 
         2 8 4 :                   { 
 
   > >   2 8 5 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   r . S h i p T o N a m e ,   r . S h i p T o A d d r e s s 1 , 
 
         2 8 6 :                                                                                                                                                       r . S h i p T o A d d r e s s 2 ,   r . S h i p T o C i t y ,   r . S h i p T o S t a t e ,   r . S h i p T o Z i p ,   u . F i r s t N a m e , 
 
         2 8 7 :                                                                                                                                                       u . L a s t N a m e ,   r . P l a n t ,   r . C o m p l e t e d D T ,   r . C u s t o m e r O r d e r N u m ,   r . C u s t o m e r P O N u m , 
 
 
 
     L i n e   3 2 2   [ m a t c h :   S E L E C T   ] : 
 
         3 2 0 :                   p u b l i c   f u n c t i o n   i s A l l o c a t i o n R e q u e s t C a n c e l l e d ( $ R e q u e s t I D ) 
 
         3 2 1 :                   { 
 
   > >   3 2 2 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I s C a n c e l l e d 
 
         3 2 3 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         3 2 4 :                                                                                                                         W H E R E   r . I D   =   : r e q u e s t I D " ) 
 
 
 
     L i n e   3 3 6   [ m a t c h :   S E L E C T   ] : 
 
         3 3 4 :                   p u b l i c   f u n c t i o n   g e t R e l e a s e I n f o F o r C a n c e l l a t i o n E m a i l s ( $ R e q u e s t I D ) 
 
         3 3 5 :                   { 
 
   > >   3 3 6 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   r . P l a n t ,   u . E m a i l ,   c . e p i _ N a m e 
 
         3 3 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         3 3 8 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
 
 
     L i n e   3 5   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 3 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         3 4 :                                                                                                                         L E F T   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
   > >   3 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   q c 
 
         3 6 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         3 7 :                                                                                                                         W H E R E   q c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
 
 
     L i n e   3 6   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 4 :                                                                                                                         L E F T   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
         3 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   q c 
 
   > >   3 6 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         3 7 :                                                                                                                         W H E R E   q c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         3 8 :                                                                                                                             A N D   q u . I D   =   : q u e s t U s e r I D 
 
 
 
     L i n e   8 0   [ m a t c h :   I N N E R   J O I N ] : 
 
         7 8 :                           r e t u r n   ( $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( r ) 
 
         7 9 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
   > >   8 0 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         8 1 :                                                                                                                           I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
         8 2 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
 
 
     L i n e   8 1   [ m a t c h :   I N N E R   J O I N ] : 
 
         7 9 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         8 0 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
   > >   8 1 :                                                                                                                           I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
         8 2 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         8 3 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
 
 
     L i n e   1 0 6   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 0 4 :                         $ e n t i t y   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
         1 0 5 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
   > >   1 0 6 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 0 7 :                                                                                                                           I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
         1 0 8 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
 
 
     L i n e   1 0 7   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 0 5 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 0 6 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
   > >   1 0 7 :                                                                                                                           I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
         1 0 8 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         1 0 9 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
 
 
     L i n e   1 4 7   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 4 5 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
         1 4 6 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
   > >   1 4 7 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 4 8 :                                                                                                                           I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
         1 4 9 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
 
 
     L i n e   1 4 8   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 4 6 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 4 7 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
   > >   1 4 8 :                                                                                                                           I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
         1 4 9 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         1 5 0 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
 
 
     L i n e   1 7 7   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 7 5 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R e f e r e n c e N u m 
 
         1 7 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
   > >   1 7 7 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         1 7 8 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 7 9 :                                                                                                                         W H E R E   r . I D   =   : a l l o c a t i o n I d 
 
 
 
     L i n e   1 7 8   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 7 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 7 7 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
   > >   1 7 8 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 7 9 :                                                                                                                         W H E R E   r . I D   =   : a l l o c a t i o n I d 
 
         1 8 0 :                                                                                                                             A N D   q u . I D   =   : q u e s t U s e r I D 
 
 
 
     L i n e   1 9 7   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 9 5 :                           $ T h r e s h o l d H o u r s A g o   =   ( n e w   \ D a t e T i m e ( ) ) - > s u b ( n e w   \ D a t e I n t e r v a l ( ' P T ' . $ N a g T h r e s h o l d H o u r s . ' H ' ) ) ; 
 
         1 9 6 :   
 
   > >   1 9 7 :                           / /   t h e   i n n e r   j o i n   t o   a l l o c _ R e q u e s t D e t a i l   w i l l   e n s u r e   n o   r e q u e s t s   a r e   i n c l u d e d   h e r e   f o r   s h i p m e n t s   w i t h o u t   a n y   s e l e c t e d   i t e m s   y e t 
 
         1 9 8 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . e p i _ N a m e ,   u . E m a i l ,   C O U N T ( r d . I D )   A S   D e t a i l C o u n t 
 
         1 9 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
 
 
     L i n e   2 0 0   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 9 8 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . e p i _ N a m e ,   u . E m a i l ,   C O U N T ( r d . I D )   A S   D e t a i l C o u n t 
 
         1 9 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
   > >   2 0 0 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         2 0 1 :                                                                                                                         I N N E R   J O I N   q u . a u t h _ U s e r   u 
 
         2 0 2 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   2 0 1   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 9 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         2 0 0 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
   > >   2 0 1 :                                                                                                                         I N N E R   J O I N   q u . a u t h _ U s e r   u 
 
         2 0 2 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 0 3 :                                                                                                                         I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
 
 
     L i n e   2 0 2   [ m a t c h :   I N N E R   J O I N ] : 
 
         2 0 0 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         2 0 1 :                                                                                                                         I N N E R   J O I N   q u . a u t h _ U s e r   u 
 
   > >   2 0 2 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 0 3 :                                                                                                                         I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
         2 0 4 :                                                                                                                         W H E R E   r . I s S u b m i t t e d   =   f a l s e 
 
 
 
     L i n e   2 0 3   [ m a t c h :   I N N E R   J O I N ] : 
 
         2 0 1 :                                                                                                                         I N N E R   J O I N   q u . a u t h _ U s e r   u 
 
         2 0 2 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
   > >   2 0 3 :                                                                                                                         I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
         2 0 4 :                                                                                                                         W H E R E   r . I s S u b m i t t e d   =   f a l s e 
 
         2 0 5 :                                                                                                                             A N D   ( ( ( r . L a s t N a g D T   I S   N U L L   O R   r . L a s t C a r t A c t i v i t y   >   r . L a s t N a g D T )   A N D   r . L a s t C a r t A c t i v i t y   < =   : t h r e s h o l d ) 
 
 
 
     L i n e   3 3 8   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 3 6 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   r . P l a n t ,   u . E m a i l ,   c . e p i _ N a m e 
 
         3 3 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
   > >   3 3 8 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         3 3 9 :                                                                                                                         I N N E R   J O I N   q u . a u t h _ U s e r   u 
 
         3 4 0 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   3 3 9   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 3 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         3 3 8 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
   > >   3 3 9 :                                                                                                                         I N N E R   J O I N   q u . a u t h _ U s e r   u 
 
         3 4 0 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         3 4 1 :                                                                                                                         W H E R E   r . I D   =   : r e q u e s t I D " ) 
 
 
 
     L i n e   3 4 0   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 3 8 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         3 3 9 :                                                                                                                         I N N E R   J O I N   q u . a u t h _ U s e r   u 
 
   > >   3 4 0 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         3 4 1 :                                                                                                                         W H E R E   r . I D   =   : r e q u e s t I D " ) 
 
         3 4 2 :                                   - > s e t P a r a m e t e r ( ' r e q u e s t I D ' ,   $ R e q u e s t I D ) 
 
 
 
     L i n e   3 4   [ m a t c h :   L E F T   J O I N ] : 
 
         3 2 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
         3 3 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
   > >   3 4 :                                                                                                                         L E F T   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
         3 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   q c 
 
         3 6 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
 
 
     L i n e   5 5   [ m a t c h :   L E F T   J O I N ] : 
 
         5 3 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
         5 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
   > >   5 5 :                                                                                                                         L E F T   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
         5 6 :                                                                                                                         W H E R E   r . I D   =   : r e l e a s e I D 
 
         5 7 :                                                                                                                             A N D   r . I s S u b m i t t e d   =   t r u e " ) 
 
 
 
     L i n e   7 0   [ m a t c h :   L E F T   J O I N ] : 
 
         6 8 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
         6 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
   > >   7 0 :                                                                                                                         L E F T   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
         7 1 :                                                                                                                         W H E R E   r . I D   =   : r e l e a s e I D " ) 
 
         7 2 :                                   - > s e t P a r a m e t e r ( ' r e l e a s e I D ' ,   $ A l l o c a t i o n R e l e a s e I D ) 
 
 
 
     L i n e   2 4 9   [ m a t c h :   L E F T   J O I N ] : 
 
         2 4 7 :                                                                                                                                                                       r . P l a n t ,   r . C o m p l e t e d D T 
 
         2 4 8 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
   > >   2 4 9 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 5 0 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 5 1 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D   A N D   r . I s S u b m i t t e d   =   t r u e   " ) 
 
 
 
     L i n e   2 5 0   [ m a t c h :   L E F T   J O I N ] : 
 
         2 4 8 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
         2 4 9 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
   > >   2 5 0 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 5 1 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D   A N D   r . I s S u b m i t t e d   =   t r u e   " ) 
 
         2 5 2 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
 
 
     L i n e   2 7 0   [ m a t c h :   L E F T   J O I N ] : 
 
         2 6 8 :                                                                                                                                                       r . C o n f i r m a t i o n E m a i l R e c i p i e n t s 
 
         2 6 9 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
   > >   2 7 0 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 7 1 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 7 2 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
 
 
     L i n e   2 7 1   [ m a t c h :   L E F T   J O I N ] : 
 
         2 6 9 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
         2 7 0 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
   > >   2 7 1 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 7 2 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
         2 7 3 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
 
 
     L i n e   2 9 1   [ m a t c h :   L E F T   J O I N ] : 
 
         2 8 9 :                                                                                                                                                       r . C o n f i r m a t i o n E m a i l R e c i p i e n t s 
 
         2 9 0 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
   > >   2 9 1 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 9 2 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 9 3 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
 
 
     L i n e   2 9 2   [ m a t c h :   L E F T   J O I N ] : 
 
         2 9 0 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
         2 9 1 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
   > >   2 9 2 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 9 3 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         2 9 4 :                                                                                                                                           A N D   r . I D   =   : i d " ) 
 
 
 
     L i n e   2 2   [ m a t c h :   e p i c o r ] : 
 
         2 0 :   
 
         2 1 :                   / * * 
 
   > >   2 2 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         2 3 :                     *   @ p a r a m   i n t   $ Q u e s t U s e r I D 
 
         2 4 :                     *   @ t h r o w s   N o n U n i q u e R e s u l t E x c e p t i o n 
 
 
 
     L i n e   2 7   [ m a t c h :   e p i c o r ] : 
 
         2 5 :                     *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ a l l o c _ R e q u e s t | n u l l 
 
         2 6 :                     * / 
 
   > >   2 7 :                   p u b l i c   f u n c t i o n   g e t O p e n A l l o c a t i o n W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t U s e r I D ) 
 
         2 8 :                   { 
 
         2 9 :   
 
 
 
     L i n e   3 7   [ m a t c h :   e p i c o r ] : 
 
         3 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   q c 
 
         3 6 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
   > >   3 7 :                                                                                                                         W H E R E   q c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         3 8 :                                                                                                                             A N D   q u . I D   =   : q u e s t U s e r I D 
 
         3 9 :                                                                                                                             A N D   r . I s S u b m i t t e d   =   f a l s e 
 
 
 
     L i n e   4 2   [ m a t c h :   e p i c o r ] : 
 
         4 0 :                                                                                                                             A N D   r . I s C a n c e l l e d   < >   t r u e 
 
         4 1 :                                                                                                                             " ) 
 
   > >   4 2 :                                   - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         4 3 :                                   - > s e t P a r a m e t e r ( ' q u e s t U s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
         4 4 :                                   - > g e t O n e O r N u l l R e s u l t ( ) ; 
 
 
 
     L i n e   8 2   [ m a t c h :   e p i c o r ] : 
 
         8 0 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         8 1 :                                                                                                                           I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
   > >   8 2 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         8 3 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
         8 4 :                                                                                                                               A N D   r . J o b N u m   =   : j o b 
 
 
 
     L i n e   8 6   [ m a t c h :   e p i c o r ] : 
 
         8 4 :                                                                                                                               A N D   r . J o b N u m   =   : j o b 
 
         8 5 :                                                                                                                               A N D   r . I s C a n c e l l e d   =   f a l s e " ) 
 
   > >   8 6 :                                   - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ C u s t I D ) 
 
         8 7 :                                   - > s e t P a r a m e t e r ( ' p l a n t ' ,   $ P l a n t ) 
 
         8 8 :                                   - > s e t P a r a m e t e r ( ' j o b ' ,   $ J o b N u m ) 
 
 
 
     L i n e   9 4   [ m a t c h :   e p i c o r ] : 
 
         9 2 :   
 
         9 3 :                   / * * 
 
   > >   9 4 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         9 5 :                     *   @ p a r a m   s t r i n g   $ P l a n t 
 
         9 6 :                     *   @ p a r a m   s t r i n g   $ P a r t N u m 
 
 
 
     L i n e   1 0 2   [ m a t c h :   e p i c o r ] : 
 
         1 0 0 :                     *   @ r e t u r n   b o o l 
 
         1 0 1 :                     * / 
 
   > >   1 0 2 :                   p u b l i c   f u n c t i o n   d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) 
 
         1 0 3 :                   { 
 
         1 0 4 :                         $ e n t i t y   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
 
 
     L i n e   1 0 8   [ m a t c h :   e p i c o r ] : 
 
         1 0 6 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 0 7 :                                                                                                                           I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
   > >   1 0 8 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         1 0 9 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
         1 1 0 :                                                                                                                               A N D   r d . P a r t   =   : p a r t 
 
 
 
     L i n e   1 1 5   [ m a t c h :   e p i c o r ] : 
 
         1 1 3 :                                                                                                                               A N D   r d . O n H a n d Q u a n t i t y   =   : o n H a n d Q t y 
 
         1 1 4 :                                                                                                                               A N D   r . I s C a n c e l l e d   =   f a l s e " ) 
 
   > >   1 1 5 :                                 - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         1 1 6 :                                 - > s e t P a r a m e t e r ( ' p l a n t ' ,   $ P l a n t ) 
 
         1 1 7 :                                 - > s e t P a r a m e t e r ( ' p a r t ' ,   $ P a r t N u m ) 
 
 
 
     L i n e   1 3 5   [ m a t c h :   e p i c o r ] : 
 
         1 3 3 :   
 
         1 3 4 :                   / * * 
 
   > >   1 3 5 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         1 3 6 :                     *   @ p a r a m   s t r i n g   $ P l a n t 
 
         1 3 7 :                     *   @ p a r a m   s t r i n g   $ P a r t N u m 
 
 
 
     L i n e   1 4 3   [ m a t c h :   e p i c o r ] : 
 
         1 4 1 :                     *   @ r e t u r n   i n t 
 
         1 4 2 :                     * / 
 
   > >   1 4 3 :                   p u b l i c   f u n c t i o n   g e t N o n C a n c e l l e d A l l o c a t i o n R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) 
 
         1 4 4 :                   { 
 
         1 4 5 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
 
 
     L i n e   1 4 9   [ m a t c h :   e p i c o r ] : 
 
         1 4 7 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 4 8 :                                                                                                                           I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
   > >   1 4 9 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         1 5 0 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
         1 5 1 :                                                                                                                               A N D   r d . P a r t   =   : p a r t 
 
 
 
     L i n e   1 5 6   [ m a t c h :   e p i c o r ] : 
 
         1 5 4 :                                                                                                                               A N D   r d . O n H a n d Q u a n t i t y   =   : o n H a n d Q t y 
 
         1 5 5 :                                                                                                                               A N D   r . I s C a n c e l l e d   =   f a l s e " ) 
 
   > >   1 5 6 :                                   - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         1 5 7 :                                   - > s e t P a r a m e t e r ( ' p l a n t ' ,   $ P l a n t ) 
 
         1 5 8 :                                   - > s e t P a r a m e t e r ( ' p a r t ' ,   $ P a r t N u m ) 
 
 
 
     L i n e   1 6 9   [ m a t c h :   e p i c o r ] : 
 
         1 6 7 :                     *   @ p a r a m   $ A l l o c a t i o n I d 
 
         1 6 8 :                     *   @ p a r a m   $ Q u e s t U s e r I D 
 
   > >   1 6 9 :                     *   @ p a r a m   $ E p i c o r C u s t I D 
 
         1 7 0 :                     *   @ r e t u r n   i n t | m i x e d | s t r i n g | n u l l 
 
         1 7 1 :                     *   @ t h r o w s   N o n U n i q u e R e s u l t E x c e p t i o n 
 
 
 
     L i n e   1 7 3   [ m a t c h :   e p i c o r ] : 
 
         1 7 1 :                     *   @ t h r o w s   N o n U n i q u e R e s u l t E x c e p t i o n 
 
         1 7 2 :                     * / 
 
   > >   1 7 3 :                   p u b l i c   f u n c t i o n   g e t S u b m i t t e d R e q u e s t R e f e r e n c e N u m B y Q u e s t U s e r A n d E p i c o r C u s t I D ( $ A l l o c a t i o n I d ,   $ Q u e s t U s e r I D ,   $ E p i c o r C u s t I D ) 
 
         1 7 4 :                   { 
 
         1 7 5 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R e f e r e n c e N u m 
 
 
 
     L i n e   1 8 2   [ m a t c h :   e p i c o r ] : 
 
         1 8 0 :                                                                                                                             A N D   q u . I D   =   : q u e s t U s e r I D 
 
         1 8 1 :                                                                                                                             A N D   r . I s S u b m i t t e d   =   t r u e 
 
   > >   1 8 2 :                                                                                                                             A N D   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
         1 8 3 :                                   - > s e t P a r a m e t e r ( ' a l l o c a t i o n I d ' ,   $ A l l o c a t i o n I d ) 
 
         1 8 4 :                                   - > s e t P a r a m e t e r ( ' q u e s t U s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
 
 
     L i n e   1 8 5   [ m a t c h :   e p i c o r ] : 
 
         1 8 3 :                                   - > s e t P a r a m e t e r ( ' a l l o c a t i o n I d ' ,   $ A l l o c a t i o n I d ) 
 
         1 8 4 :                                   - > s e t P a r a m e t e r ( ' q u e s t U s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
   > >   1 8 5 :                                   - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         1 8 6 :                                   - > g e t O n e O r N u l l R e s u l t ( Q u e r y : : H Y D R A T E _ S I N G L E _ S C A L A R ) ; 
 
         1 8 7 :                   } 
 
 
 
     L i n e   2 4 1   [ m a t c h :   e p i c o r ] : 
 
         2 3 9 :   
 
         2 4 0 :                   / * * 
 
   > >   2 4 1 :                     *   @ p a r a m   $ e p i c o r C u s t I D 
 
         2 4 2 :                     *   @ r e t u r n   a r r a y 
 
         2 4 3 :                     * / 
 
 
 
     L i n e   2 4 4   [ m a t c h :   e p i c o r ] : 
 
         2 4 2 :                     *   @ r e t u r n   a r r a y 
 
         2 4 3 :                     * / 
 
   > >   2 4 4 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D a t a ( $ e p i c o r C u s t I D ) 
 
         2 4 5 :                   { 
 
         2 4 6 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   u . F i r s t N a m e ,   u . L a s t N a m e , 
 
 
 
     L i n e   2 5 1   [ m a t c h :   e p i c o r ] : 
 
         2 4 9 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 5 0 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
   > >   2 5 1 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D   A N D   r . I s S u b m i t t e d   =   t r u e   " ) 
 
         2 5 2 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 5 3 :                                   - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   2 5 2   [ m a t c h :   e p i c o r ] : 
 
         2 5 0 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 5 1 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D   A N D   r . I s S u b m i t t e d   =   t r u e   " ) 
 
   > >   2 5 2 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 5 3 :                                   - > g e t A r r a y R e s u l t ( ) ; 
 
         2 5 4 :   
 
 
 
     L i n e   2 5 9   [ m a t c h :   e p i c o r ] : 
 
         2 5 7 :   
 
         2 5 8 :                   / * * 
 
   > >   2 5 9 :                     *   @ p a r a m   $ e p i c o r C u s t I D 
 
         2 6 0 :                     *   @ r e t u r n   a r r a y 
 
         2 6 1 :                     * / 
 
 
 
     L i n e   2 6 2   [ m a t c h :   e p i c o r ] : 
 
         2 6 0 :                     *   @ r e t u r n   a r r a y 
 
         2 6 1 :                     * / 
 
   > >   2 6 2 :                   p u b l i c   f u n c t i o n   g e t A l l o c a t i o n R e q u e s t D e t a i l s D a t a ( $ e p i c o r C u s t I D ) 
 
         2 6 3 :                   { 
 
         2 6 4 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   r . S h i p T o N a m e ,   r . S h i p T o A d d r e s s 1 , 
 
 
 
     L i n e   2 7 2   [ m a t c h :   e p i c o r ] : 
 
         2 7 0 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 7 1 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
   > >   2 7 2 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
         2 7 3 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 7 4 :                                   - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   2 7 3   [ m a t c h :   e p i c o r ] : 
 
         2 7 1 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 7 2 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
   > >   2 7 3 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 7 4 :                                   - > g e t A r r a y R e s u l t ( ) ; 
 
         2 7 5 :   
 
 
 
     L i n e   2 8 0   [ m a t c h :   e p i c o r ] : 
 
         2 7 8 :   
 
         2 7 9 :                   / * * 
 
   > >   2 8 0 :                     *   @ p a r a m   $ e p i c o r C u s t I D 
 
         2 8 1 :                     *   @ r e t u r n   a r r a y 
 
         2 8 2 :                     * / 
 
 
 
     L i n e   2 8 3   [ m a t c h :   e p i c o r ] : 
 
         2 8 1 :                     *   @ r e t u r n   a r r a y 
 
         2 8 2 :                     * / 
 
   > >   2 8 3 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D e t a i l s D a t a B y I D ( $ e p i c o r C u s t I D ,   $ i d ) 
 
         2 8 4 :                   { 
 
         2 8 5 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   r . S h i p T o N a m e ,   r . S h i p T o A d d r e s s 1 , 
 
 
 
     L i n e   2 9 3   [ m a t c h :   e p i c o r ] : 
 
         2 9 1 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 9 2 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
   > >   2 9 3 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         2 9 4 :                                                                                                                                           A N D   r . I D   =   : i d " ) 
 
         2 9 5 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
 
 
     L i n e   2 9 5   [ m a t c h :   e p i c o r ] : 
 
         2 9 3 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         2 9 4 :                                                                                                                                           A N D   r . I D   =   : i d " ) 
 
   > >   2 9 5 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 9 6 :                                   - > s e t P a r a m e t e r ( " : i d " ,   $ i d ) 
 
         2 9 7 :                                   - > g e t O n e O r N u l l R e s u l t ( ) ; 
 
 
 
     L i n e   2 2   [ m a t c h :   E p i c o r ] : 
 
         2 0 :   
 
         2 1 :                   / * * 
 
   > >   2 2 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         2 3 :                     *   @ p a r a m   i n t   $ Q u e s t U s e r I D 
 
         2 4 :                     *   @ t h r o w s   N o n U n i q u e R e s u l t E x c e p t i o n 
 
 
 
     L i n e   2 7   [ m a t c h :   E p i c o r ] : 
 
         2 5 :                     *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ a l l o c _ R e q u e s t | n u l l 
 
         2 6 :                     * / 
 
   > >   2 7 :                   p u b l i c   f u n c t i o n   g e t O p e n A l l o c a t i o n W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t U s e r I D ) 
 
         2 8 :                   { 
 
         2 9 :   
 
 
 
     L i n e   3 7   [ m a t c h :   E p i c o r ] : 
 
         3 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   q c 
 
         3 6 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
   > >   3 7 :                                                                                                                         W H E R E   q c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         3 8 :                                                                                                                             A N D   q u . I D   =   : q u e s t U s e r I D 
 
         3 9 :                                                                                                                             A N D   r . I s S u b m i t t e d   =   f a l s e 
 
 
 
     L i n e   4 2   [ m a t c h :   E p i c o r ] : 
 
         4 0 :                                                                                                                             A N D   r . I s C a n c e l l e d   < >   t r u e 
 
         4 1 :                                                                                                                             " ) 
 
   > >   4 2 :                                   - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         4 3 :                                   - > s e t P a r a m e t e r ( ' q u e s t U s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
         4 4 :                                   - > g e t O n e O r N u l l R e s u l t ( ) ; 
 
 
 
     L i n e   8 2   [ m a t c h :   E p i c o r ] : 
 
         8 0 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         8 1 :                                                                                                                           I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
   > >   8 2 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         8 3 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
         8 4 :                                                                                                                               A N D   r . J o b N u m   =   : j o b 
 
 
 
     L i n e   8 6   [ m a t c h :   E p i c o r ] : 
 
         8 4 :                                                                                                                               A N D   r . J o b N u m   =   : j o b 
 
         8 5 :                                                                                                                               A N D   r . I s C a n c e l l e d   =   f a l s e " ) 
 
   > >   8 6 :                                   - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ C u s t I D ) 
 
         8 7 :                                   - > s e t P a r a m e t e r ( ' p l a n t ' ,   $ P l a n t ) 
 
         8 8 :                                   - > s e t P a r a m e t e r ( ' j o b ' ,   $ J o b N u m ) 
 
 
 
     L i n e   9 4   [ m a t c h :   E p i c o r ] : 
 
         9 2 :   
 
         9 3 :                   / * * 
 
   > >   9 4 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         9 5 :                     *   @ p a r a m   s t r i n g   $ P l a n t 
 
         9 6 :                     *   @ p a r a m   s t r i n g   $ P a r t N u m 
 
 
 
     L i n e   1 0 2   [ m a t c h :   E p i c o r ] : 
 
         1 0 0 :                     *   @ r e t u r n   b o o l 
 
         1 0 1 :                     * / 
 
   > >   1 0 2 :                   p u b l i c   f u n c t i o n   d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) 
 
         1 0 3 :                   { 
 
         1 0 4 :                         $ e n t i t y   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
 
 
     L i n e   1 0 8   [ m a t c h :   E p i c o r ] : 
 
         1 0 6 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 0 7 :                                                                                                                           I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
   > >   1 0 8 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         1 0 9 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
         1 1 0 :                                                                                                                               A N D   r d . P a r t   =   : p a r t 
 
 
 
     L i n e   1 1 5   [ m a t c h :   E p i c o r ] : 
 
         1 1 3 :                                                                                                                               A N D   r d . O n H a n d Q u a n t i t y   =   : o n H a n d Q t y 
 
         1 1 4 :                                                                                                                               A N D   r . I s C a n c e l l e d   =   f a l s e " ) 
 
   > >   1 1 5 :                                 - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         1 1 6 :                                 - > s e t P a r a m e t e r ( ' p l a n t ' ,   $ P l a n t ) 
 
         1 1 7 :                                 - > s e t P a r a m e t e r ( ' p a r t ' ,   $ P a r t N u m ) 
 
 
 
     L i n e   1 3 5   [ m a t c h :   E p i c o r ] : 
 
         1 3 3 :   
 
         1 3 4 :                   / * * 
 
   > >   1 3 5 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         1 3 6 :                     *   @ p a r a m   s t r i n g   $ P l a n t 
 
         1 3 7 :                     *   @ p a r a m   s t r i n g   $ P a r t N u m 
 
 
 
     L i n e   1 4 3   [ m a t c h :   E p i c o r ] : 
 
         1 4 1 :                     *   @ r e t u r n   i n t 
 
         1 4 2 :                     * / 
 
   > >   1 4 3 :                   p u b l i c   f u n c t i o n   g e t N o n C a n c e l l e d A l l o c a t i o n R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) 
 
         1 4 4 :                   { 
 
         1 4 5 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
 
 
     L i n e   1 4 9   [ m a t c h :   E p i c o r ] : 
 
         1 4 7 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 4 8 :                                                                                                                           I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
   > >   1 4 9 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         1 5 0 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
         1 5 1 :                                                                                                                               A N D   r d . P a r t   =   : p a r t 
 
 
 
     L i n e   1 5 6   [ m a t c h :   E p i c o r ] : 
 
         1 5 4 :                                                                                                                               A N D   r d . O n H a n d Q u a n t i t y   =   : o n H a n d Q t y 
 
         1 5 5 :                                                                                                                               A N D   r . I s C a n c e l l e d   =   f a l s e " ) 
 
   > >   1 5 6 :                                   - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         1 5 7 :                                   - > s e t P a r a m e t e r ( ' p l a n t ' ,   $ P l a n t ) 
 
         1 5 8 :                                   - > s e t P a r a m e t e r ( ' p a r t ' ,   $ P a r t N u m ) 
 
 
 
     L i n e   1 6 9   [ m a t c h :   E p i c o r ] : 
 
         1 6 7 :                     *   @ p a r a m   $ A l l o c a t i o n I d 
 
         1 6 8 :                     *   @ p a r a m   $ Q u e s t U s e r I D 
 
   > >   1 6 9 :                     *   @ p a r a m   $ E p i c o r C u s t I D 
 
         1 7 0 :                     *   @ r e t u r n   i n t | m i x e d | s t r i n g | n u l l 
 
         1 7 1 :                     *   @ t h r o w s   N o n U n i q u e R e s u l t E x c e p t i o n 
 
 
 
     L i n e   1 7 3   [ m a t c h :   E p i c o r ] : 
 
         1 7 1 :                     *   @ t h r o w s   N o n U n i q u e R e s u l t E x c e p t i o n 
 
         1 7 2 :                     * / 
 
   > >   1 7 3 :                   p u b l i c   f u n c t i o n   g e t S u b m i t t e d R e q u e s t R e f e r e n c e N u m B y Q u e s t U s e r A n d E p i c o r C u s t I D ( $ A l l o c a t i o n I d ,   $ Q u e s t U s e r I D ,   $ E p i c o r C u s t I D ) 
 
         1 7 4 :                   { 
 
         1 7 5 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R e f e r e n c e N u m 
 
 
 
     L i n e   1 8 2   [ m a t c h :   E p i c o r ] : 
 
         1 8 0 :                                                                                                                             A N D   q u . I D   =   : q u e s t U s e r I D 
 
         1 8 1 :                                                                                                                             A N D   r . I s S u b m i t t e d   =   t r u e 
 
   > >   1 8 2 :                                                                                                                             A N D   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
         1 8 3 :                                   - > s e t P a r a m e t e r ( ' a l l o c a t i o n I d ' ,   $ A l l o c a t i o n I d ) 
 
         1 8 4 :                                   - > s e t P a r a m e t e r ( ' q u e s t U s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
 
 
     L i n e   1 8 5   [ m a t c h :   E p i c o r ] : 
 
         1 8 3 :                                   - > s e t P a r a m e t e r ( ' a l l o c a t i o n I d ' ,   $ A l l o c a t i o n I d ) 
 
         1 8 4 :                                   - > s e t P a r a m e t e r ( ' q u e s t U s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
   > >   1 8 5 :                                   - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         1 8 6 :                                   - > g e t O n e O r N u l l R e s u l t ( Q u e r y : : H Y D R A T E _ S I N G L E _ S C A L A R ) ; 
 
         1 8 7 :                   } 
 
 
 
     L i n e   2 4 1   [ m a t c h :   E p i c o r ] : 
 
         2 3 9 :   
 
         2 4 0 :                   / * * 
 
   > >   2 4 1 :                     *   @ p a r a m   $ e p i c o r C u s t I D 
 
         2 4 2 :                     *   @ r e t u r n   a r r a y 
 
         2 4 3 :                     * / 
 
 
 
     L i n e   2 4 4   [ m a t c h :   E p i c o r ] : 
 
         2 4 2 :                     *   @ r e t u r n   a r r a y 
 
         2 4 3 :                     * / 
 
   > >   2 4 4 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D a t a ( $ e p i c o r C u s t I D ) 
 
         2 4 5 :                   { 
 
         2 4 6 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   u . F i r s t N a m e ,   u . L a s t N a m e , 
 
 
 
     L i n e   2 5 1   [ m a t c h :   E p i c o r ] : 
 
         2 4 9 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 5 0 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
   > >   2 5 1 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D   A N D   r . I s S u b m i t t e d   =   t r u e   " ) 
 
         2 5 2 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 5 3 :                                   - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   2 5 2   [ m a t c h :   E p i c o r ] : 
 
         2 5 0 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 5 1 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D   A N D   r . I s S u b m i t t e d   =   t r u e   " ) 
 
   > >   2 5 2 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 5 3 :                                   - > g e t A r r a y R e s u l t ( ) ; 
 
         2 5 4 :   
 
 
 
     L i n e   2 5 9   [ m a t c h :   E p i c o r ] : 
 
         2 5 7 :   
 
         2 5 8 :                   / * * 
 
   > >   2 5 9 :                     *   @ p a r a m   $ e p i c o r C u s t I D 
 
         2 6 0 :                     *   @ r e t u r n   a r r a y 
 
         2 6 1 :                     * / 
 
 
 
     L i n e   2 6 2   [ m a t c h :   E p i c o r ] : 
 
         2 6 0 :                     *   @ r e t u r n   a r r a y 
 
         2 6 1 :                     * / 
 
   > >   2 6 2 :                   p u b l i c   f u n c t i o n   g e t A l l o c a t i o n R e q u e s t D e t a i l s D a t a ( $ e p i c o r C u s t I D ) 
 
         2 6 3 :                   { 
 
         2 6 4 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   r . S h i p T o N a m e ,   r . S h i p T o A d d r e s s 1 , 
 
 
 
     L i n e   2 7 2   [ m a t c h :   E p i c o r ] : 
 
         2 7 0 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 7 1 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
   > >   2 7 2 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
         2 7 3 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 7 4 :                                   - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   2 7 3   [ m a t c h :   E p i c o r ] : 
 
         2 7 1 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 7 2 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
   > >   2 7 3 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 7 4 :                                   - > g e t A r r a y R e s u l t ( ) ; 
 
         2 7 5 :   
 
 
 
     L i n e   2 8 0   [ m a t c h :   E p i c o r ] : 
 
         2 7 8 :   
 
         2 7 9 :                   / * * 
 
   > >   2 8 0 :                     *   @ p a r a m   $ e p i c o r C u s t I D 
 
         2 8 1 :                     *   @ r e t u r n   a r r a y 
 
         2 8 2 :                     * / 
 
 
 
     L i n e   2 8 3   [ m a t c h :   E p i c o r ] : 
 
         2 8 1 :                     *   @ r e t u r n   a r r a y 
 
         2 8 2 :                     * / 
 
   > >   2 8 3 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D e t a i l s D a t a B y I D ( $ e p i c o r C u s t I D ,   $ i d ) 
 
         2 8 4 :                   { 
 
         2 8 5 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   r . S h i p T o N a m e ,   r . S h i p T o A d d r e s s 1 , 
 
 
 
     L i n e   2 9 3   [ m a t c h :   E p i c o r ] : 
 
         2 9 1 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 9 2 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
   > >   2 9 3 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         2 9 4 :                                                                                                                                           A N D   r . I D   =   : i d " ) 
 
         2 9 5 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
 
 
     L i n e   2 9 5   [ m a t c h :   E p i c o r ] : 
 
         2 9 3 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         2 9 4 :                                                                                                                                           A N D   r . I D   =   : i d " ) 
 
   > >   2 9 5 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 9 6 :                                   - > s e t P a r a m e t e r ( " : i d " ,   $ i d ) 
 
         2 9 7 :                                   - > g e t O n e O r N u l l R e s u l t ( ) ; 
 
 
 
     L i n e   2 2   [ m a t c h :   E P I C O R ] : 
 
         2 0 :   
 
         2 1 :                   / * * 
 
   > >   2 2 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         2 3 :                     *   @ p a r a m   i n t   $ Q u e s t U s e r I D 
 
         2 4 :                     *   @ t h r o w s   N o n U n i q u e R e s u l t E x c e p t i o n 
 
 
 
     L i n e   2 7   [ m a t c h :   E P I C O R ] : 
 
         2 5 :                     *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ a l l o c _ R e q u e s t | n u l l 
 
         2 6 :                     * / 
 
   > >   2 7 :                   p u b l i c   f u n c t i o n   g e t O p e n A l l o c a t i o n W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t U s e r I D ) 
 
         2 8 :                   { 
 
         2 9 :   
 
 
 
     L i n e   3 7   [ m a t c h :   E P I C O R ] : 
 
         3 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   q c 
 
         3 6 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
   > >   3 7 :                                                                                                                         W H E R E   q c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         3 8 :                                                                                                                             A N D   q u . I D   =   : q u e s t U s e r I D 
 
         3 9 :                                                                                                                             A N D   r . I s S u b m i t t e d   =   f a l s e 
 
 
 
     L i n e   4 2   [ m a t c h :   E P I C O R ] : 
 
         4 0 :                                                                                                                             A N D   r . I s C a n c e l l e d   < >   t r u e 
 
         4 1 :                                                                                                                             " ) 
 
   > >   4 2 :                                   - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         4 3 :                                   - > s e t P a r a m e t e r ( ' q u e s t U s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
         4 4 :                                   - > g e t O n e O r N u l l R e s u l t ( ) ; 
 
 
 
     L i n e   8 2   [ m a t c h :   E P I C O R ] : 
 
         8 0 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         8 1 :                                                                                                                           I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
   > >   8 2 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         8 3 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
         8 4 :                                                                                                                               A N D   r . J o b N u m   =   : j o b 
 
 
 
     L i n e   8 6   [ m a t c h :   E P I C O R ] : 
 
         8 4 :                                                                                                                               A N D   r . J o b N u m   =   : j o b 
 
         8 5 :                                                                                                                               A N D   r . I s C a n c e l l e d   =   f a l s e " ) 
 
   > >   8 6 :                                   - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ C u s t I D ) 
 
         8 7 :                                   - > s e t P a r a m e t e r ( ' p l a n t ' ,   $ P l a n t ) 
 
         8 8 :                                   - > s e t P a r a m e t e r ( ' j o b ' ,   $ J o b N u m ) 
 
 
 
     L i n e   9 4   [ m a t c h :   E P I C O R ] : 
 
         9 2 :   
 
         9 3 :                   / * * 
 
   > >   9 4 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         9 5 :                     *   @ p a r a m   s t r i n g   $ P l a n t 
 
         9 6 :                     *   @ p a r a m   s t r i n g   $ P a r t N u m 
 
 
 
     L i n e   1 0 2   [ m a t c h :   E P I C O R ] : 
 
         1 0 0 :                     *   @ r e t u r n   b o o l 
 
         1 0 1 :                     * / 
 
   > >   1 0 2 :                   p u b l i c   f u n c t i o n   d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) 
 
         1 0 3 :                   { 
 
         1 0 4 :                         $ e n t i t y   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
 
 
     L i n e   1 0 8   [ m a t c h :   E P I C O R ] : 
 
         1 0 6 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 0 7 :                                                                                                                           I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
   > >   1 0 8 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         1 0 9 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
         1 1 0 :                                                                                                                               A N D   r d . P a r t   =   : p a r t 
 
 
 
     L i n e   1 1 5   [ m a t c h :   E P I C O R ] : 
 
         1 1 3 :                                                                                                                               A N D   r d . O n H a n d Q u a n t i t y   =   : o n H a n d Q t y 
 
         1 1 4 :                                                                                                                               A N D   r . I s C a n c e l l e d   =   f a l s e " ) 
 
   > >   1 1 5 :                                 - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         1 1 6 :                                 - > s e t P a r a m e t e r ( ' p l a n t ' ,   $ P l a n t ) 
 
         1 1 7 :                                 - > s e t P a r a m e t e r ( ' p a r t ' ,   $ P a r t N u m ) 
 
 
 
     L i n e   1 3 5   [ m a t c h :   E P I C O R ] : 
 
         1 3 3 :   
 
         1 3 4 :                   / * * 
 
   > >   1 3 5 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         1 3 6 :                     *   @ p a r a m   s t r i n g   $ P l a n t 
 
         1 3 7 :                     *   @ p a r a m   s t r i n g   $ P a r t N u m 
 
 
 
     L i n e   1 4 3   [ m a t c h :   E P I C O R ] : 
 
         1 4 1 :                     *   @ r e t u r n   i n t 
 
         1 4 2 :                     * / 
 
   > >   1 4 3 :                   p u b l i c   f u n c t i o n   g e t N o n C a n c e l l e d A l l o c a t i o n R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) 
 
         1 4 4 :                   { 
 
         1 4 5 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
 
 
     L i n e   1 4 9   [ m a t c h :   E P I C O R ] : 
 
         1 4 7 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 4 8 :                                                                                                                           I N N E R   J O I N   r . a l l o c _ R e q u e s t D e t a i l   r d 
 
   > >   1 4 9 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         1 5 0 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
         1 5 1 :                                                                                                                               A N D   r d . P a r t   =   : p a r t 
 
 
 
     L i n e   1 5 6   [ m a t c h :   E P I C O R ] : 
 
         1 5 4 :                                                                                                                               A N D   r d . O n H a n d Q u a n t i t y   =   : o n H a n d Q t y 
 
         1 5 5 :                                                                                                                               A N D   r . I s C a n c e l l e d   =   f a l s e " ) 
 
   > >   1 5 6 :                                   - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         1 5 7 :                                   - > s e t P a r a m e t e r ( ' p l a n t ' ,   $ P l a n t ) 
 
         1 5 8 :                                   - > s e t P a r a m e t e r ( ' p a r t ' ,   $ P a r t N u m ) 
 
 
 
     L i n e   1 6 9   [ m a t c h :   E P I C O R ] : 
 
         1 6 7 :                     *   @ p a r a m   $ A l l o c a t i o n I d 
 
         1 6 8 :                     *   @ p a r a m   $ Q u e s t U s e r I D 
 
   > >   1 6 9 :                     *   @ p a r a m   $ E p i c o r C u s t I D 
 
         1 7 0 :                     *   @ r e t u r n   i n t | m i x e d | s t r i n g | n u l l 
 
         1 7 1 :                     *   @ t h r o w s   N o n U n i q u e R e s u l t E x c e p t i o n 
 
 
 
     L i n e   1 7 3   [ m a t c h :   E P I C O R ] : 
 
         1 7 1 :                     *   @ t h r o w s   N o n U n i q u e R e s u l t E x c e p t i o n 
 
         1 7 2 :                     * / 
 
   > >   1 7 3 :                   p u b l i c   f u n c t i o n   g e t S u b m i t t e d R e q u e s t R e f e r e n c e N u m B y Q u e s t U s e r A n d E p i c o r C u s t I D ( $ A l l o c a t i o n I d ,   $ Q u e s t U s e r I D ,   $ E p i c o r C u s t I D ) 
 
         1 7 4 :                   { 
 
         1 7 5 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R e f e r e n c e N u m 
 
 
 
     L i n e   1 8 2   [ m a t c h :   E P I C O R ] : 
 
         1 8 0 :                                                                                                                             A N D   q u . I D   =   : q u e s t U s e r I D 
 
         1 8 1 :                                                                                                                             A N D   r . I s S u b m i t t e d   =   t r u e 
 
   > >   1 8 2 :                                                                                                                             A N D   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
         1 8 3 :                                   - > s e t P a r a m e t e r ( ' a l l o c a t i o n I d ' ,   $ A l l o c a t i o n I d ) 
 
         1 8 4 :                                   - > s e t P a r a m e t e r ( ' q u e s t U s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
 
 
     L i n e   1 8 5   [ m a t c h :   E P I C O R ] : 
 
         1 8 3 :                                   - > s e t P a r a m e t e r ( ' a l l o c a t i o n I d ' ,   $ A l l o c a t i o n I d ) 
 
         1 8 4 :                                   - > s e t P a r a m e t e r ( ' q u e s t U s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
   > >   1 8 5 :                                   - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         1 8 6 :                                   - > g e t O n e O r N u l l R e s u l t ( Q u e r y : : H Y D R A T E _ S I N G L E _ S C A L A R ) ; 
 
         1 8 7 :                   } 
 
 
 
     L i n e   2 4 1   [ m a t c h :   E P I C O R ] : 
 
         2 3 9 :   
 
         2 4 0 :                   / * * 
 
   > >   2 4 1 :                     *   @ p a r a m   $ e p i c o r C u s t I D 
 
         2 4 2 :                     *   @ r e t u r n   a r r a y 
 
         2 4 3 :                     * / 
 
 
 
     L i n e   2 4 4   [ m a t c h :   E P I C O R ] : 
 
         2 4 2 :                     *   @ r e t u r n   a r r a y 
 
         2 4 3 :                     * / 
 
   > >   2 4 4 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D a t a ( $ e p i c o r C u s t I D ) 
 
         2 4 5 :                   { 
 
         2 4 6 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   u . F i r s t N a m e ,   u . L a s t N a m e , 
 
 
 
     L i n e   2 5 1   [ m a t c h :   E P I C O R ] : 
 
         2 4 9 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 5 0 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
   > >   2 5 1 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D   A N D   r . I s S u b m i t t e d   =   t r u e   " ) 
 
         2 5 2 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 5 3 :                                   - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   2 5 2   [ m a t c h :   E P I C O R ] : 
 
         2 5 0 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 5 1 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D   A N D   r . I s S u b m i t t e d   =   t r u e   " ) 
 
   > >   2 5 2 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 5 3 :                                   - > g e t A r r a y R e s u l t ( ) ; 
 
         2 5 4 :   
 
 
 
     L i n e   2 5 9   [ m a t c h :   E P I C O R ] : 
 
         2 5 7 :   
 
         2 5 8 :                   / * * 
 
   > >   2 5 9 :                     *   @ p a r a m   $ e p i c o r C u s t I D 
 
         2 6 0 :                     *   @ r e t u r n   a r r a y 
 
         2 6 1 :                     * / 
 
 
 
     L i n e   2 6 2   [ m a t c h :   E P I C O R ] : 
 
         2 6 0 :                     *   @ r e t u r n   a r r a y 
 
         2 6 1 :                     * / 
 
   > >   2 6 2 :                   p u b l i c   f u n c t i o n   g e t A l l o c a t i o n R e q u e s t D e t a i l s D a t a ( $ e p i c o r C u s t I D ) 
 
         2 6 3 :                   { 
 
         2 6 4 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   r . S h i p T o N a m e ,   r . S h i p T o A d d r e s s 1 , 
 
 
 
     L i n e   2 7 2   [ m a t c h :   E P I C O R ] : 
 
         2 7 0 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 7 1 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
   > >   2 7 2 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
         2 7 3 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 7 4 :                                   - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   2 7 3   [ m a t c h :   E P I C O R ] : 
 
         2 7 1 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 7 2 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
   > >   2 7 3 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 7 4 :                                   - > g e t A r r a y R e s u l t ( ) ; 
 
         2 7 5 :   
 
 
 
     L i n e   2 8 0   [ m a t c h :   E P I C O R ] : 
 
         2 7 8 :   
 
         2 7 9 :                   / * * 
 
   > >   2 8 0 :                     *   @ p a r a m   $ e p i c o r C u s t I D 
 
         2 8 1 :                     *   @ r e t u r n   a r r a y 
 
         2 8 2 :                     * / 
 
 
 
     L i n e   2 8 3   [ m a t c h :   E P I C O R ] : 
 
         2 8 1 :                     *   @ r e t u r n   a r r a y 
 
         2 8 2 :                     * / 
 
   > >   2 8 3 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D e t a i l s D a t a B y I D ( $ e p i c o r C u s t I D ,   $ i d ) 
 
         2 8 4 :                   { 
 
         2 8 5 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   r . S h i p T o N a m e ,   r . S h i p T o A d d r e s s 1 , 
 
 
 
     L i n e   2 9 3   [ m a t c h :   E P I C O R ] : 
 
         2 9 1 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 9 2 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
   > >   2 9 3 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         2 9 4 :                                                                                                                                           A N D   r . I D   =   : i d " ) 
 
         2 9 5 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
 
 
     L i n e   2 9 5   [ m a t c h :   E P I C O R ] : 
 
         2 9 3 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         2 9 4 :                                                                                                                                           A N D   r . I D   =   : i d " ) 
 
   > >   2 9 5 :                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 9 6 :                                   - > s e t P a r a m e t e r ( " : i d " ,   $ i d ) 
 
         2 9 7 :                                   - > g e t O n e O r N u l l R e s u l t ( ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ d o c _ A r t i c l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 5   [ m a t c h :   - > s e l e c t ( ] : 
 
         2 3 :                           $ a u t h U s e r I d   =   a u t h ( ) - > u s e r ( ) - > g e t I d ( ) ; 
 
         2 4 :   
 
   > >   2 5 :                           $ r e s u l t s   =   $ q b - > s e l e c t ( ' d o c _ A r t i c l e ' ) 
 
         2 6 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' d o c _ A r t i c l e ' ) 
 
         2 7 :                                   - > j o i n ( ' d o c _ A r t i c l e . d o c _ C a t e g o r y ' ,   ' d o c _ C a t e g o r y ' ) 
 
 
 
     L i n e   3 7   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         3 5 :                                   - > a d d O r d e r B y ( ' d o c _ C a t e g o r y . I D ' ,   ' a s c ' ) 
 
         3 6 :                                   - > a d d O r d e r B y ( ' d o c _ A r t i c l e . D i s p l a y O r d e r ' ,   ' a s c ' ) 
 
   > >   3 7 :                                   - > g e t Q u e r y ( ) 
 
         3 8 :                                   - > e x e c u t e ( [ ] ) ; 
 
         3 9 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ d o c _ C a t e g o r y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 2   [ m a t c h :   - > s e l e c t ( ] : 
 
         2 0 :                           $ q b   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
         2 1 :   
 
   > >   2 2 :                           $ r e s u l t s   =   $ q b - > s e l e c t ( ' d o c _ C a t e g o r y ' ) 
 
         2 3 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' d o c _ C a t e g o r y ' ) 
 
         2 4 :                                   - > o r d e r B y ( ' d o c _ C a t e g o r y . C a t e g o r y N a m e ' ,   ' a s c ' ) 
 
 
 
     L i n e   2 5   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         2 3 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' d o c _ C a t e g o r y ' ) 
 
         2 4 :                                   - > o r d e r B y ( ' d o c _ C a t e g o r y . C a t e g o r y N a m e ' ,   ' a s c ' ) 
 
   > >   2 5 :                                   - > g e t Q u e r y ( ) 
 
         2 6 :                                   - > e x e c u t e ( [ ] ) ; 
 
         2 7 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ e p i _ I n v c H e a d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 9   [ m a t c h :   F R O M   ] : 
 
         2 7 :   
 
         2 8 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   i n v o i c e . I n v o i c e N u m 
 
   > >   2 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   i n v o i c e 
 
         3 0 :                                                                                                                         W H E R E   i n v o i c e . I n v o i c e N u m   I N   ( : i n v o i c e N u m b e r s ) " ) 
 
         3 1 :                                                                                           - > s e t P a r a m e t e r ( ' i n v o i c e N u m b e r s ' ,   $ I n v o i c e N u m b e r s ) 
 
 
 
     L i n e   2 8   [ m a t c h :   S E L E C T   ] : 
 
         2 6 :                                   r e t u r n   $ I n v o i c e N u m b e r s ; 
 
         2 7 :   
 
   > >   2 8 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   i n v o i c e . I n v o i c e N u m 
 
         2 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   i n v o i c e 
 
         3 0 :                                                                                                                         W H E R E   i n v o i c e . I n v o i c e N u m   I N   ( : i n v o i c e N u m b e r s ) " ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ i n v _ U p l o a d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 0   [ m a t c h :   F R O M   ] : 
 
         2 8 :   
 
         2 9 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   u p l o a d ,   u p l o a d S t a t u s ,   u p l o a d E n t r y ,   c o m p a n y ,   i n v o i c e 
 
   > >   3 0 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u p l o a d 
 
         3 1 :                                                                                                                         L E F T   J O I N   u p l o a d . i n v _ U p l o a d S t a t u s   u p l o a d S t a t u s 
 
         3 2 :                                                                                                                         L E F T   J O I N   u p l o a d . i n v _ U p l o a d E n t r y   u p l o a d E n t r y 
 
 
 
     L i n e   2 9   [ m a t c h :   S E L E C T   ] : 
 
         2 7 :                                   r e t u r n   n u l l ; 
 
         2 8 :   
 
   > >   2 9 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   u p l o a d ,   u p l o a d S t a t u s ,   u p l o a d E n t r y ,   c o m p a n y ,   i n v o i c e 
 
         3 0 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u p l o a d 
 
         3 1 :                                                                                                                         L E F T   J O I N   u p l o a d . i n v _ U p l o a d S t a t u s   u p l o a d S t a t u s 
 
 
 
     L i n e   3 1   [ m a t c h :   L E F T   J O I N ] : 
 
         2 9 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   u p l o a d ,   u p l o a d S t a t u s ,   u p l o a d E n t r y ,   c o m p a n y ,   i n v o i c e 
 
         3 0 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u p l o a d 
 
   > >   3 1 :                                                                                                                         L E F T   J O I N   u p l o a d . i n v _ U p l o a d S t a t u s   u p l o a d S t a t u s 
 
         3 2 :                                                                                                                         L E F T   J O I N   u p l o a d . i n v _ U p l o a d E n t r y   u p l o a d E n t r y 
 
         3 3 :                                                                                                                         L E F T   J O I N   u p l o a d E n t r y . q u e s t _ C o m p a n y   c o m p a n y 
 
 
 
     L i n e   3 2   [ m a t c h :   L E F T   J O I N ] : 
 
         3 0 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u p l o a d 
 
         3 1 :                                                                                                                         L E F T   J O I N   u p l o a d . i n v _ U p l o a d S t a t u s   u p l o a d S t a t u s 
 
   > >   3 2 :                                                                                                                         L E F T   J O I N   u p l o a d . i n v _ U p l o a d E n t r y   u p l o a d E n t r y 
 
         3 3 :                                                                                                                         L E F T   J O I N   u p l o a d E n t r y . q u e s t _ C o m p a n y   c o m p a n y 
 
         3 4 :                                                                                                                         L E F T   J O I N   u p l o a d E n t r y . e p i _ I n v c H e a d   i n v o i c e 
 
 
 
     L i n e   3 3   [ m a t c h :   L E F T   J O I N ] : 
 
         3 1 :                                                                                                                         L E F T   J O I N   u p l o a d . i n v _ U p l o a d S t a t u s   u p l o a d S t a t u s 
 
         3 2 :                                                                                                                         L E F T   J O I N   u p l o a d . i n v _ U p l o a d E n t r y   u p l o a d E n t r y 
 
   > >   3 3 :                                                                                                                         L E F T   J O I N   u p l o a d E n t r y . q u e s t _ C o m p a n y   c o m p a n y 
 
         3 4 :                                                                                                                         L E F T   J O I N   u p l o a d E n t r y . e p i _ I n v c H e a d   i n v o i c e 
 
         3 5 :                                                                                                                         W H E R E   u p l o a d . I D   =   : u p l o a d I D 
 
 
 
     L i n e   3 4   [ m a t c h :   L E F T   J O I N ] : 
 
         3 2 :                                                                                                                         L E F T   J O I N   u p l o a d . i n v _ U p l o a d E n t r y   u p l o a d E n t r y 
 
         3 3 :                                                                                                                         L E F T   J O I N   u p l o a d E n t r y . q u e s t _ C o m p a n y   c o m p a n y 
 
   > >   3 4 :                                                                                                                         L E F T   J O I N   u p l o a d E n t r y . e p i _ I n v c H e a d   i n v o i c e 
 
         3 5 :                                                                                                                         W H E R E   u p l o a d . I D   =   : u p l o a d I D 
 
         3 6 :                                                                                                                         O R D E R   B Y   u p l o a d E n t r y . C u s t I D ,   u p l o a d E n t r y . I n v o i c e N u m b e r " ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ i n v _ U p l o a d E n t r y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 8   [ m a t c h :   - > s e l e c t ( ] : 
 
         7 6 :                           $ q b   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
         7 7 :   
 
   > >   7 8 :                           $ r e s u l t s   =   $ q b - > s e l e c t ( ' i n v _ U p l o a d E n t r y ,   i n v _ U p l o a d ' ) 
 
         7 9 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' i n v _ U p l o a d E n t r y ' ) 
 
         8 0 :                                   - > j o i n ( ' i n v _ U p l o a d E n t r y . q u e s t _ C o m p a n y ' ,   ' q u e s t _ C o m p a n y ' ) 
 
 
 
     L i n e   2 8   [ m a t c h :   F R O M   ] : 
 
         2 6 :                   { 
 
         2 7 :                           $ q r y   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   e n t r y ,   u p l o a d ,   u p l o a d S t a t u s ,   i n v o i c e 
 
   > >   2 8 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   e n t r y 
 
         2 9 :                                                                                                                         I N N E R   J O I N   e n t r y . i n v _ U p l o a d   u p l o a d 
 
         3 0 :                                                                                                                         I N N E R   J O I N   u p l o a d . i n v _ U p l o a d S t a t u s   u p l o a d S t a t u s 
 
 
 
     L i n e   4 7   [ m a t c h :   F R O M   ] : 
 
         4 5 :                   { 
 
         4 6 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c o m p a n y . I D 
 
   > >   4 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   e n t r y 
 
         4 8 :                                                                                                                         L E F T   J O I N   e n t r y . q u e s t _ C o m p a n y   c o m p a n y 
 
         4 9 :                                                                                                                         W H E R E   e n t r y . I D   =   : e n t r y I D 
 
 
 
     L i n e   6 6   [ m a t c h :   F R O M   ] : 
 
         6 4 :   
 
         6 5 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   e n t r y . I n v o i c e N u m b e r 
 
   > >   6 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   e n t r y 
 
         6 7 :                                                                                                                         W H E R E   e n t r y . I n v o i c e N u m b e r   I N   ( : i n v o i c e N u m b e r ) 
 
         6 8 :                                                                                                                             A N D   e n t r y . I s S e n t   =   t r u e " ) 
 
 
 
     L i n e   2 7   [ m a t c h :   S E L E C T   ] : 
 
         2 5 :                   p u b l i c   f u n c t i o n   g e t I n v o i c e U p l o a d E n t r y I n f o I f E x i s t s ( $ U p l o a d E n t r y I D ,   $ M u s t B e S e n t F o r C o m p a n y I D   =   n u l l ) 
 
         2 6 :                   { 
 
   > >   2 7 :                           $ q r y   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   e n t r y ,   u p l o a d ,   u p l o a d S t a t u s ,   i n v o i c e 
 
         2 8 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   e n t r y 
 
         2 9 :                                                                                                                         I N N E R   J O I N   e n t r y . i n v _ U p l o a d   u p l o a d 
 
 
 
     L i n e   4 6   [ m a t c h :   S E L E C T   ] : 
 
         4 4 :                   p u b l i c   f u n c t i o n   g e t C o m p a n y I D F o r S e n t I n v o i c e U p l o a d E n t r y I f E x i s t s ( $ U p l o a d E n t r y I D ) 
 
         4 5 :                   { 
 
   > >   4 6 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c o m p a n y . I D 
 
         4 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   e n t r y 
 
         4 8 :                                                                                                                         L E F T   J O I N   e n t r y . q u e s t _ C o m p a n y   c o m p a n y 
 
 
 
     L i n e   6 5   [ m a t c h :   S E L E C T   ] : 
 
         6 3 :                                   r e t u r n   [ ] ; 
 
         6 4 :   
 
   > >   6 5 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   e n t r y . I n v o i c e N u m b e r 
 
         6 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   e n t r y 
 
         6 7 :                                                                                                                         W H E R E   e n t r y . I n v o i c e N u m b e r   I N   ( : i n v o i c e N u m b e r ) 
 
 
 
     L i n e   2 9   [ m a t c h :   I N N E R   J O I N ] : 
 
         2 7 :                           $ q r y   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   e n t r y ,   u p l o a d ,   u p l o a d S t a t u s ,   i n v o i c e 
 
         2 8 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   e n t r y 
 
   > >   2 9 :                                                                                                                         I N N E R   J O I N   e n t r y . i n v _ U p l o a d   u p l o a d 
 
         3 0 :                                                                                                                         I N N E R   J O I N   u p l o a d . i n v _ U p l o a d S t a t u s   u p l o a d S t a t u s 
 
         3 1 :                                                                                                                         L E F T   J O I N   e n t r y . e p i _ I n v c H e a d   i n v o i c e 
 
 
 
     L i n e   3 0   [ m a t c h :   I N N E R   J O I N ] : 
 
         2 8 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   e n t r y 
 
         2 9 :                                                                                                                         I N N E R   J O I N   e n t r y . i n v _ U p l o a d   u p l o a d 
 
   > >   3 0 :                                                                                                                         I N N E R   J O I N   u p l o a d . i n v _ U p l o a d S t a t u s   u p l o a d S t a t u s 
 
         3 1 :                                                                                                                         L E F T   J O I N   e n t r y . e p i _ I n v c H e a d   i n v o i c e 
 
         3 2 :                                                                                                                         L E F T   J O I N   e n t r y . q u e s t _ C o m p a n y   c o m p a n y 
 
 
 
     L i n e   3 1   [ m a t c h :   L E F T   J O I N ] : 
 
         2 9 :                                                                                                                         I N N E R   J O I N   e n t r y . i n v _ U p l o a d   u p l o a d 
 
         3 0 :                                                                                                                         I N N E R   J O I N   u p l o a d . i n v _ U p l o a d S t a t u s   u p l o a d S t a t u s 
 
   > >   3 1 :                                                                                                                         L E F T   J O I N   e n t r y . e p i _ I n v c H e a d   i n v o i c e 
 
         3 2 :                                                                                                                         L E F T   J O I N   e n t r y . q u e s t _ C o m p a n y   c o m p a n y 
 
         3 3 :                                                                                                                         W H E R E   e n t r y . I D   =   : e n t r y I D " . ( ! i s _ n u l l ( $ M u s t B e S e n t F o r C o m p a n y I D )   ?   '   A N D   e n t r y . I s S e n t   =   t r u e   A N D   c o m p a n y . I D   =   : c o m p a n y I D '   :   ' ' ) ) ; 
 
 
 
     L i n e   3 2   [ m a t c h :   L E F T   J O I N ] : 
 
         3 0 :                                                                                                                         I N N E R   J O I N   u p l o a d . i n v _ U p l o a d S t a t u s   u p l o a d S t a t u s 
 
         3 1 :                                                                                                                         L E F T   J O I N   e n t r y . e p i _ I n v c H e a d   i n v o i c e 
 
   > >   3 2 :                                                                                                                         L E F T   J O I N   e n t r y . q u e s t _ C o m p a n y   c o m p a n y 
 
         3 3 :                                                                                                                         W H E R E   e n t r y . I D   =   : e n t r y I D " . ( ! i s _ n u l l ( $ M u s t B e S e n t F o r C o m p a n y I D )   ?   '   A N D   e n t r y . I s S e n t   =   t r u e   A N D   c o m p a n y . I D   =   : c o m p a n y I D '   :   ' ' ) ) ; 
 
         3 4 :                           $ q r y - > s e t P a r a m e t e r ( ' e n t r y I D ' ,   $ U p l o a d E n t r y I D ) ; 
 
 
 
     L i n e   4 8   [ m a t c h :   L E F T   J O I N ] : 
 
         4 6 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c o m p a n y . I D 
 
         4 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   e n t r y 
 
   > >   4 8 :                                                                                                                         L E F T   J O I N   e n t r y . q u e s t _ C o m p a n y   c o m p a n y 
 
         4 9 :                                                                                                                         W H E R E   e n t r y . I D   =   : e n t r y I D 
 
         5 0 :                                                                                                                             A N D   e n t r y . I s S e n t   =   t r u e " ) 
 
 
 
     L i n e   8 2   [ m a t c h :   e p i c o r ] : 
 
         8 0 :                                   - > j o i n ( ' i n v _ U p l o a d E n t r y . q u e s t _ C o m p a n y ' ,   ' q u e s t _ C o m p a n y ' ) 
 
         8 1 :                                   - > j o i n ( ' i n v _ U p l o a d E n t r y . i n v _ U p l o a d ' ,   ' i n v _ U p l o a d ' ) 
 
   > >   8 2 :                                   - > w h e r e ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D   =   : C u s t I D ' ) 
 
         8 3 :                                   - > s e t P a r a m e t e r ( ' : C u s t I D ' ,   $ C u s t I D ) 
 
         8 4 :                                   - > g e t Q u e r y ( ) 
 
 
 
     L i n e   8 2   [ m a t c h :   E p i c o r ] : 
 
         8 0 :                                   - > j o i n ( ' i n v _ U p l o a d E n t r y . q u e s t _ C o m p a n y ' ,   ' q u e s t _ C o m p a n y ' ) 
 
         8 1 :                                   - > j o i n ( ' i n v _ U p l o a d E n t r y . i n v _ U p l o a d ' ,   ' i n v _ U p l o a d ' ) 
 
   > >   8 2 :                                   - > w h e r e ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D   =   : C u s t I D ' ) 
 
         8 3 :                                   - > s e t P a r a m e t e r ( ' : C u s t I D ' ,   $ C u s t I D ) 
 
         8 4 :                                   - > g e t Q u e r y ( ) 
 
 
 
     L i n e   8 2   [ m a t c h :   E P I C O R ] : 
 
         8 0 :                                   - > j o i n ( ' i n v _ U p l o a d E n t r y . q u e s t _ C o m p a n y ' ,   ' q u e s t _ C o m p a n y ' ) 
 
         8 1 :                                   - > j o i n ( ' i n v _ U p l o a d E n t r y . i n v _ U p l o a d ' ,   ' i n v _ U p l o a d ' ) 
 
   > >   8 2 :                                   - > w h e r e ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D   =   : C u s t I D ' ) 
 
         8 3 :                                   - > s e t P a r a m e t e r ( ' : C u s t I D ' ,   $ C u s t I D ) 
 
         8 4 :                                   - > g e t Q u e r y ( ) 
 
 
 
     L i n e   8 4   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         8 2 :                                   - > w h e r e ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D   =   : C u s t I D ' ) 
 
         8 3 :                                   - > s e t P a r a m e t e r ( ' : C u s t I D ' ,   $ C u s t I D ) 
 
   > >   8 4 :                                   - > g e t Q u e r y ( ) 
 
         8 5 :                                   - > e x e c u t e ( [ ] ) ; 
 
         8 6 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ l t s _ T a s k S c h e d u l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 2   [ m a t c h :   F R O M   ] : 
 
         2 0 :                   { 
 
         2 1 :                           $ r e s u l t   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   t 
 
   > >   2 2 :                                                                                                                                         F R O M   '   .   $ t h i s - > g e t E n t i t y N a m e ( )   .   '   t 
 
         2 3 :                                                                                                                                         W H E R E   t . l t s _ T a s k   =   : t a s k   A N D   t . D a y O f W e e k   =   : d o w   A N D   t . T i m e O f D a y   =   : t i m e O f D a y   A N D   t . I s M o n t h l y   =   : i s M o n t h l y 
 
         2 4 :                                                                                                                                         A N D   t . O w n e r I D   =   : o w n e r I D ' ) 
 
 
 
     L i n e   2 1   [ m a t c h :   S E L E C T   ] : 
 
         1 9 :                   p u b l i c   f u n c t i o n   c h e c k I f T a s k E x i s t s ( $ t a s k ,   $ d o w ,   $ t i m e ,   $ O w n e r ,   $ O w n e r I D ,   $ i s M o n t h l y   =   0 ) 
 
         2 0 :                   { 
 
   > >   2 1 :                           $ r e s u l t   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   t 
 
         2 2 :                                                                                                                                         F R O M   '   .   $ t h i s - > g e t E n t i t y N a m e ( )   .   '   t 
 
         2 3 :                                                                                                                                         W H E R E   t . l t s _ T a s k   =   : t a s k   A N D   t . D a y O f W e e k   =   : d o w   A N D   t . T i m e O f D a y   =   : t i m e O f D a y   A N D   t . I s M o n t h l y   =   : i s M o n t h l y 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ p a i n t _ P l a n t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 3   [ m a t c h :   - > s e l e c t ( ] : 
 
         2 1 :                           $ q b   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
         2 2 :   
 
   > >   2 3 :                           $ r e s u l t s   =   $ q b - > s e l e c t ( ' p a i n t _ P l a n t ' ) 
 
         2 4 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' p a i n t _ P l a n t ' ) 
 
         2 5 :                                   - > w h e r e ( ' p a i n t _ P l a n t . N a m e   =   : n a m e ' ) 
 
 
 
     L i n e   2 7   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         2 5 :                                   - > w h e r e ( ' p a i n t _ P l a n t . N a m e   =   : n a m e ' ) 
 
         2 6 :                                   - > s e t P a r a m e t e r ( ' n a m e ' ,   $ P l a n t N a m e ) 
 
   > >   2 7 :                                   - > g e t Q u e r y ( ) 
 
         2 8 :                                   - > e x e c u t e ( [ ] ,   Q u e r y : : H Y D R A T E _ O B J E C T ) ; 
 
         2 9 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ p a i n t _ S c h e d u l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 6   [ m a t c h :   F R O M   ] : 
 
         2 4 :                   { 
 
         2 5 :                           $ P l a n t L i n e   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s . P l a n t L i n e 
 
   > >   2 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         2 7 :                                                                                                                         W H E R E   s . J o b I D   =   : J o b I D " ) 
 
         2 8 :                                   - > s e t P a r a m e t e r ( ' J o b I D ' ,   $ S t a r t J o b ) 
 
 
 
     L i n e   3 2   [ m a t c h :   F R O M   ] : 
 
         3 0 :   
 
         3 1 :                           $ S t a r t T i m e   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s . S t a r t T i m e 
 
   > >   3 2 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         3 3 :                                                                                                                         W H E R E   s . J o b I D   =   : J o b I D " ) 
 
         3 4 :                                   - > s e t P a r a m e t e r ( ' J o b I D ' ,   $ S t a r t J o b ) 
 
 
 
     L i n e   3 8   [ m a t c h :   F R O M   ] : 
 
         3 6 :   
 
         3 7 :                           $ E n d T i m e   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s . S t a r t T i m e 
 
   > >   3 8 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         3 9 :                                                                                                                         W H E R E   s . J o b I D   =   : J o b I D " ) 
 
         4 0 :                                   - > s e t P a r a m e t e r ( ' J o b I D ' ,   $ E n d J o b ) 
 
 
 
     L i n e   4 5   [ m a t c h :   F R O M   ] : 
 
         4 3 :   
 
         4 4 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s 
 
   > >   4 5 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         4 6 :                                                                                                                         W H E R E   s . P l a n t L i n e   =   : P l a n t L i n e   A N D   s . S t a r t T i m e   > =   : S t a r t T i m e   A N D   s . S t a r t T i m e   < =   : E n d T i m e 
 
         4 7 :                                                                                                                         O R D E R   B Y   s . S t a r t T i m e   A S C " ) 
 
 
 
     L i n e   6 2   [ m a t c h :   F R O M   ] : 
 
         6 0 :                   { 
 
         6 1 :                           $ P l a n t L i n e   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s . P l a n t L i n e 
 
   > >   6 2 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         6 3 :                                                                                                                         W H E R E   s . J o b I D   =   : J o b I D " ) 
 
         6 4 :                                   - > s e t P a r a m e t e r ( ' J o b I D ' ,   $ S t a r t J o b ) 
 
 
 
     L i n e   6 8   [ m a t c h :   F R O M   ] : 
 
         6 6 :   
 
         6 7 :                           $ S t a r t T i m e   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s . S t a r t T i m e 
 
   > >   6 8 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         6 9 :                                                                                                                         W H E R E   s . J o b I D   =   : J o b I D " ) 
 
         7 0 :                                   - > s e t P a r a m e t e r ( ' J o b I D ' ,   $ S t a r t J o b ) 
 
 
 
     L i n e   7 4   [ m a t c h :   F R O M   ] : 
 
         7 2 :   
 
         7 3 :                           $ E n d T i m e   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s . S t a r t T i m e 
 
   > >   7 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         7 5 :                                                                                                                         W H E R E   s . J o b I D   =   : J o b I D " ) 
 
         7 6 :                                   - > s e t P a r a m e t e r ( ' J o b I D ' ,   $ E n d J o b ) 
 
 
 
     L i n e   8 1   [ m a t c h :   F R O M   ] : 
 
         7 9 :   
 
         8 0 :                           r e t u r n   a r r a y _ c o l u m n ( $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s . J o b I D 
 
   > >   8 1 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         8 2 :                                                                                                                         W H E R E   s . P l a n t L i n e   =   : P l a n t L i n e   A N D   s . S t a r t T i m e   > =   : S t a r t T i m e   A N D   s . S t a r t T i m e   < =   : E n d T i m e   A N D   s . J o b I D   I S   N O T   N U L L 
 
         8 3 :                                                                                                                         O R D E R   B Y   s . S t a r t T i m e   A S C " ) 
 
 
 
     L i n e   1 0 4   [ m a t c h :   F R O M   ] : 
 
         1 0 2 :   
 
         1 0 3 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s 
 
   > >   1 0 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         1 0 5 :                                                                                                                         W H E R E   s . P l a n t L i n e   =   : P l a n t L i n e   A N D   s . S t a r t T i m e   > =   : S t a r t T i m e 
 
         1 0 6 :                                                                                                                         O R D E R   B Y   s . S t a r t T i m e ,   s . E s t i m a t e d R u n T i m e   A S C " ) 
 
 
 
     L i n e   1 7 8   [ m a t c h :   F R O M   ] : 
 
         1 7 6 :                   { 
 
         1 7 7 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s 
 
   > >   1 7 8 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         1 7 9 :                                                                                                                         W H E R E   s . P l a n t L i n e   =   : P l a n t L i n e   A N D   s . C o m p l e t e   =   0   
 
         1 8 0 :                                                                                                                         O R D E R   B Y   s . S t a r t T i m e   A S C " ) 
 
 
 
     L i n e   2 2 1   [ m a t c h :   F R O M   ] : 
 
         2 1 9 :                   { 
 
         2 2 0 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s 
 
   > >   2 2 1 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         2 2 2 :                                                                                                                         W H E R E   s . P l a n t L i n e   =   : P l a n t L i n e   A N D   s . S t a r t T i m e   <   : S t a r t T i m e 
 
         2 2 3 :                                                                                                                         O R D E R   B Y   s . S t a r t T i m e   D E S C " ) 
 
 
 
     L i n e   2 5   [ m a t c h :   S E L E C T   ] : 
 
         2 3 :                   p u b l i c   f u n c t i o n   g e t J o b s F o r C o v e r P a g e ( $ S t a r t J o b ,   $ E n d J o b ) 
 
         2 4 :                   { 
 
   > >   2 5 :                           $ P l a n t L i n e   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s . P l a n t L i n e 
 
         2 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         2 7 :                                                                                                                         W H E R E   s . J o b I D   =   : J o b I D " ) 
 
 
 
     L i n e   3 1   [ m a t c h :   S E L E C T   ] : 
 
         2 9 :                                   - > g e t S i n g l e S c a l a r R e s u l t ( ) ; 
 
         3 0 :   
 
   > >   3 1 :                           $ S t a r t T i m e   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s . S t a r t T i m e 
 
         3 2 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         3 3 :                                                                                                                         W H E R E   s . J o b I D   =   : J o b I D " ) 
 
 
 
     L i n e   3 7   [ m a t c h :   S E L E C T   ] : 
 
         3 5 :                                   - > g e t S i n g l e S c a l a r R e s u l t ( ) ; 
 
         3 6 :   
 
   > >   3 7 :                           $ E n d T i m e   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s . S t a r t T i m e 
 
         3 8 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         3 9 :                                                                                                                         W H E R E   s . J o b I D   =   : J o b I D " ) 
 
 
 
     L i n e   4 4   [ m a t c h :   S E L E C T   ] : 
 
         4 2 :   
 
         4 3 :   
 
   > >   4 4 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s 
 
         4 5 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         4 6 :                                                                                                                         W H E R E   s . P l a n t L i n e   =   : P l a n t L i n e   A N D   s . S t a r t T i m e   > =   : S t a r t T i m e   A N D   s . S t a r t T i m e   < =   : E n d T i m e 
 
 
 
     L i n e   6 1   [ m a t c h :   S E L E C T   ] : 
 
         5 9 :                   p u b l i c   f u n c t i o n   g e t J o b T r a v e l e r J o b I D s F r o m S t a r t A n d E n d J o b ( $ S t a r t J o b ,   $ E n d J o b ) 
 
         6 0 :                   { 
 
   > >   6 1 :                           $ P l a n t L i n e   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s . P l a n t L i n e 
 
         6 2 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         6 3 :                                                                                                                         W H E R E   s . J o b I D   =   : J o b I D " ) 
 
 
 
     L i n e   6 7   [ m a t c h :   S E L E C T   ] : 
 
         6 5 :                                   - > g e t S i n g l e S c a l a r R e s u l t ( ) ; 
 
         6 6 :   
 
   > >   6 7 :                           $ S t a r t T i m e   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s . S t a r t T i m e 
 
         6 8 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         6 9 :                                                                                                                         W H E R E   s . J o b I D   =   : J o b I D " ) 
 
 
 
     L i n e   7 3   [ m a t c h :   S E L E C T   ] : 
 
         7 1 :                                   - > g e t S i n g l e S c a l a r R e s u l t ( ) ; 
 
         7 2 :   
 
   > >   7 3 :                           $ E n d T i m e   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s . S t a r t T i m e 
 
         7 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         7 5 :                                                                                                                         W H E R E   s . J o b I D   =   : J o b I D " ) 
 
 
 
     L i n e   8 0   [ m a t c h :   S E L E C T   ] : 
 
         7 8 :   
 
         7 9 :   
 
   > >   8 0 :                           r e t u r n   a r r a y _ c o l u m n ( $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s . J o b I D 
 
         8 1 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         8 2 :                                                                                                                         W H E R E   s . P l a n t L i n e   =   : P l a n t L i n e   A N D   s . S t a r t T i m e   > =   : S t a r t T i m e   A N D   s . S t a r t T i m e   < =   : E n d T i m e   A N D   s . J o b I D   I S   N O T   N U L L 
 
 
 
     L i n e   1 0 3   [ m a t c h :   S E L E C T   ] : 
 
         1 0 1 :                           } 
 
         1 0 2 :   
 
   > >   1 0 3 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s 
 
         1 0 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         1 0 5 :                                                                                                                         W H E R E   s . P l a n t L i n e   =   : P l a n t L i n e   A N D   s . S t a r t T i m e   > =   : S t a r t T i m e 
 
 
 
     L i n e   1 7 7   [ m a t c h :   S E L E C T   ] : 
 
         1 7 5 :                   p u b l i c   f u n c t i o n   g e t I n c o m p l e t e P a i n t S c h e d u l e ( $ I D s T o E x c l u d e ,   $ P l a n t L i n e ) 
 
         1 7 6 :                   { 
 
   > >   1 7 7 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s 
 
         1 7 8 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         1 7 9 :                                                                                                                         W H E R E   s . P l a n t L i n e   =   : P l a n t L i n e   A N D   s . C o m p l e t e   =   0   
 
 
 
     L i n e   2 2 0   [ m a t c h :   S E L E C T   ] : 
 
         2 1 8 :                   p u b l i c   f u n c t i o n   g e t P r e v i o u s S t a r t D a t e ( $ H o u r s A g o ,   $ P l a n t L i n e ) 
 
         2 1 9 :                   { 
 
   > >   2 2 0 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   s 
 
         2 2 1 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   s 
 
         2 2 2 :                                                                                                                         W H E R E   s . P l a n t L i n e   =   : P l a n t L i n e   A N D   s . S t a r t T i m e   <   : S t a r t T i m e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ q u e s t _ A c c o u n t R e q u e s t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 6   [ m a t c h :   F R O M   ] : 
 
         2 4 :                   { 
 
         2 5 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R e q u e s t P r o c e s s e d 
 
   > >   2 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         2 7 :                                                                                                                         W H E R E   r . I D   =   : r I D " ) 
 
         2 8 :                                                                                             - > s e t P a r a m e t e r ( ' r I D ' ,   $ i d ) 
 
 
 
     L i n e   2 5   [ m a t c h :   S E L E C T   ] : 
 
         2 3 :                   p u b l i c   f u n c t i o n   h a s R e q u e s t B e e n P r o c e s s e d ( $ i d ) 
 
         2 4 :                   { 
 
   > >   2 5 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R e q u e s t P r o c e s s e d 
 
         2 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         2 7 :                                                                                                                         W H E R E   r . I D   =   : r I D " ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ q u e s t _ C o m p a n y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 1   [ m a t c h :   - > s e l e c t ( ] : 
 
         3 9 :                           $ q b   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
         4 0 :   
 
   > >   4 1 :                           $ R e s u l t s   =   $ q b - > s e l e c t ( ' c . I D   a s   i d ,   c . E p i c o r C u s t I D   A S   v a l u e ,   c . c a l c _ D i s p l a y N a m e   A S   l a b e l ' ) 
 
         4 2 :                                   - > f r o m ( ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ U s e r ' ,   ' u ' ) 
 
         4 3 :                                   - > j o i n ( ' u . q u e s t _ C o m p a n y ' ,   ' c ' ) 
 
 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :                   { 
 
         2 6 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   c . I D   a s   i d ,   c . E p i c o r C u s t I D   A S   v a l u e ,   c . c a l c _ D i s p l a y N a m e   A S   l a b e l 
 
   > >   2 7 :                                                                                                                                         F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y   c ' ) 
 
         2 8 :                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
         2 9 :   
 
 
 
     L i n e   5 9   [ m a t c h :   F R O M   ] : 
 
         5 7 :                   { 
 
         5 8 :                           t r y   { 
 
   > >   5 9 :                                   / /   g e t   e p i c o r   c u s t   I D   f r o m   t h e   c o m p a n y   t a b l e   b a s e d   o n   t h e   p a s s e d   i n   c o m p a n y   I D 
 
         6 0 :                                   $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   c . I D   A S   i d ,   c . E p i c o r C u s t I D   A S   e p i c o r C u s t I D 
 
         6 1 :                                                                                                                                                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   6 1   [ m a t c h :   F R O M   ] : 
 
         5 9 :                                   / /   g e t   e p i c o r   c u s t   I D   f r o m   t h e   c o m p a n y   t a b l e   b a s e d   o n   t h e   p a s s e d   i n   c o m p a n y   I D 
 
         6 0 :                                   $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   c . I D   A S   i d ,   c . E p i c o r C u s t I D   A S   e p i c o r C u s t I D 
 
   > >   6 1 :                                                                                                                                                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y   c 
 
         6 2 :                                                                                                                                                                   W H E R E   c . I D   =   : c o m p a n y I D ' ) 
 
         6 3 :                                           - > s e t P a r a m e t e r ( ' : c o m p a n y I D ' ,   $ c o m p a n y I D ) 
 
 
 
     L i n e   7 9   [ m a t c h :   F R O M   ] : 
 
         7 7 :                   { 
 
         7 8 :                           $ q u e r y   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c 
 
   > >   7 9 :                                                                                                                             F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c 
 
         8 0 :                                                                                                                             W H E R E   c . I s D e a c t i v a t e d   =   f a l s e " ) ; 
 
         8 1 :                           $ r e s   =   $ q u e r y - > g e t R e s u l t ( ) ; 
 
 
 
     L i n e   1 0 1   [ m a t c h :   F R O M   ] : 
 
         9 9 :   
 
         1 0 0 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c . I D ,   C O U N T ( u . I D )   a s   U s e r C o u n t 
 
   > >   1 0 1 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c 
 
         1 0 2 :                                                                                                                         I N N E R   J O I N   c . q u e s t _ U s e r   u 
 
         1 0 3 :                                                                                                                         W H E R E   c . I D   I N   ( : i d s ) 
 
 
 
     L i n e   1 2 5   [ m a t c h :   F R O M   ] : 
 
         1 2 3 :   
 
         1 2 4 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c . I D ,   C O U N T ( s . I D )   a s   S h i p m e n t C o u n t 
 
   > >   1 2 5 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c 
 
         1 2 6 :                                                                                                                         I N N E R   J O I N   c . s h i p _ R e q u e s t   s 
 
         1 2 7 :                                                                                                                         W H E R E   c . I D   I N   ( : i d s ) 
 
 
 
     L i n e   1 4 9   [ m a t c h :   F R O M   ] : 
 
         1 4 7 :   
 
         1 4 8 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c . I D ,   c . E p i c o r C u s t I D 
 
   > >   1 4 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c 
 
         1 5 0 :                                                                                                                         W H E R E   c . I D   I N   ( : i d s ) " ) 
 
         1 5 1 :                                                                                           - > s e t P a r a m e t e r ( ' i d s ' ,   $ R e c o r d I D s ) 
 
 
 
     L i n e   1 5 8   [ m a t c h :   F R O M   ] : 
 
         1 5 6 :   
 
         1 5 7 :                           $ r e s 2   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   t s p . P a r a m e t e r V a l u e ,   C O U N T ( t s p . P a r a m e t e r V a l u e )   a s   P a r a m e t e r C o u n t 
 
   > >   1 5 8 :                                                                                                                           F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k S c h e d u l e P a r a m e t e r   t s p 
 
         1 5 9 :                                                                                                                           W H E R E   t s p . P a r a m e t e r V a l u e   I N   ( : k e y s ) 
 
         1 6 0 :                                                                                                                               A N D   t s p . P a r a m e t e r K e y   =   ' C O M P A N Y ' 
 
 
 
     L i n e   1 6 8   [ m a t c h :   F R O M   ] : 
 
         1 6 6 :   
 
         1 6 7 :                           $ r e s 3   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   t s h p . P a r a m e t e r V a l u e ,   C O U N T ( t s h p . P a r a m e t e r V a l u e )   a s   P a r a m e t e r C o u n t 
 
   > >   1 6 8 :                                                                                                                           F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k S c h e d u l e H i s t o r y P a r a m e t e r   t s h p 
 
         1 6 9 :                                                                                                                           W H E R E   t s h p . P a r a m e t e r V a l u e   I N   ( : k e y s ) 
 
         1 7 0 :                                                                                                                               A N D   t s h p . P a r a m e t e r K e y   =   ' C O M P A N Y ' 
 
 
 
     L i n e   1 9 2   [ m a t c h :   F R O M   ] : 
 
         1 9 0 :   
 
         1 9 1 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c o m p a n y . I D ,   c o m p a n y . E p i c o r C u s t I D 
 
   > >   1 9 2 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c o m p a n y 
 
         1 9 3 :                                                                                                                         W H E R E   c o m p a n y . E p i c o r C u s t I D   I N   ( : c u s t I D s ) " ) 
 
         1 9 4 :                                                                                           - > s e t P a r a m e t e r ( ' c u s t I D s ' ,   a r r a y _ v a l u e s ( $ C u s t o m e r I D s ) ) 
 
 
 
     L i n e   2 1 0   [ m a t c h :   F R O M   ] : 
 
         2 0 8 :   
 
         2 0 9 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c o m p a n y . I D ,   c o m p a n y . c a l c _ D i s p l a y N a m e ,   c o m p a n y . " . $ E m a i l F i e l d . " 
 
   > >   2 1 0 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c o m p a n y 
 
         2 1 1 :                                                                                                                         O R D E R   B Y   c o m p a n y . c a l c _ D i s p l a y N a m e " ) 
 
         2 1 2 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   2 2 6   [ m a t c h :   F R O M   ] : 
 
         2 2 4 :   
 
         2 2 5 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c o m p a n y . E p i c o r C u s t I D ,   c o m p a n y . " . $ E m a i l F i e l d . " 
 
   > >   2 2 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c o m p a n y " ) 
 
         2 2 7 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
         2 2 8 :                           r e t u r n   a r r a y _ c o m b i n e ( a r r a y _ c o l u m n ( $ r e s , ' E p i c o r C u s t I D ' ) ,   a r r a y _ c o l u m n ( $ r e s , $ E m a i l F i e l d ) ) ; 
 
 
 
     L i n e   2 6   [ m a t c h :   S E L E C T   ] : 
 
         2 4 :                   p u b l i c   f u n c t i o n   g e t A l l C o m p a n i e s ( ) 
 
         2 5 :                   { 
 
   > >   2 6 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   c . I D   a s   i d ,   c . E p i c o r C u s t I D   A S   v a l u e ,   c . c a l c _ D i s p l a y N a m e   A S   l a b e l 
 
         2 7 :                                                                                                                                         F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y   c ' ) 
 
         2 8 :                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   6 0   [ m a t c h :   S E L E C T   ] : 
 
         5 8 :                           t r y   { 
 
         5 9 :                                   / /   g e t   e p i c o r   c u s t   I D   f r o m   t h e   c o m p a n y   t a b l e   b a s e d   o n   t h e   p a s s e d   i n   c o m p a n y   I D 
 
   > >   6 0 :                                   $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   c . I D   A S   i d ,   c . E p i c o r C u s t I D   A S   e p i c o r C u s t I D 
 
         6 1 :                                                                                                                                                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y   c 
 
         6 2 :                                                                                                                                                                   W H E R E   c . I D   =   : c o m p a n y I D ' ) 
 
 
 
     L i n e   7 8   [ m a t c h :   S E L E C T   ] : 
 
         7 6 :                   p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) 
 
         7 7 :                   { 
 
   > >   7 8 :                           $ q u e r y   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c 
 
         7 9 :                                                                                                                             F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c 
 
         8 0 :                                                                                                                             W H E R E   c . I s D e a c t i v a t e d   =   f a l s e " ) ; 
 
 
 
     L i n e   1 0 0   [ m a t c h :   S E L E C T   ] : 
 
         9 8 :                           $ C o u n t s   =   a r r a y _ c o m b i n e ( $ R e c o r d I D s ,   a r r a y _ f i l l ( 0 ,   s i z e o f ( $ R e c o r d I D s ) ,   0 ) ) ; 
 
         9 9 :   
 
   > >   1 0 0 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c . I D ,   C O U N T ( u . I D )   a s   U s e r C o u n t 
 
         1 0 1 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c 
 
         1 0 2 :                                                                                                                         I N N E R   J O I N   c . q u e s t _ U s e r   u 
 
 
 
     L i n e   1 2 4   [ m a t c h :   S E L E C T   ] : 
 
         1 2 2 :                           $ C o u n t s   =   a r r a y _ c o m b i n e ( $ R e c o r d I D s ,   a r r a y _ f i l l ( 0 ,   s i z e o f ( $ R e c o r d I D s ) ,   0 ) ) ; 
 
         1 2 3 :   
 
   > >   1 2 4 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c . I D ,   C O U N T ( s . I D )   a s   S h i p m e n t C o u n t 
 
         1 2 5 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c 
 
         1 2 6 :                                                                                                                         I N N E R   J O I N   c . s h i p _ R e q u e s t   s 
 
 
 
     L i n e   1 4 8   [ m a t c h :   S E L E C T   ] : 
 
         1 4 6 :                           $ C o u n t s   =   a r r a y _ c o m b i n e ( $ R e c o r d I D s ,   a r r a y _ f i l l ( 0 ,   s i z e o f ( $ R e c o r d I D s ) ,   0 ) ) ; 
 
         1 4 7 :   
 
   > >   1 4 8 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c . I D ,   c . E p i c o r C u s t I D 
 
         1 4 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c 
 
         1 5 0 :                                                                                                                         W H E R E   c . I D   I N   ( : i d s ) " ) 
 
 
 
     L i n e   1 5 7   [ m a t c h :   S E L E C T   ] : 
 
         1 5 5 :                                   $ E p i c o r C u s t I D s T o I D [ $ r o w [ ' E p i c o r C u s t I D ' ] ]   =   $ r o w [ ' I D ' ] ; 
 
         1 5 6 :   
 
   > >   1 5 7 :                           $ r e s 2   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   t s p . P a r a m e t e r V a l u e ,   C O U N T ( t s p . P a r a m e t e r V a l u e )   a s   P a r a m e t e r C o u n t 
 
         1 5 8 :                                                                                                                           F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k S c h e d u l e P a r a m e t e r   t s p 
 
         1 5 9 :                                                                                                                           W H E R E   t s p . P a r a m e t e r V a l u e   I N   ( : k e y s ) 
 
 
 
     L i n e   1 6 7   [ m a t c h :   S E L E C T   ] : 
 
         1 6 5 :                                   $ C o u n t s [ $ E p i c o r C u s t I D s T o I D [ $ r o w 2 [ ' P a r a m e t e r V a l u e ' ] ] ]   + =   $ r o w 2 [ ' P a r a m e t e r C o u n t ' ] ; 
 
         1 6 6 :   
 
   > >   1 6 7 :                           $ r e s 3   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   t s h p . P a r a m e t e r V a l u e ,   C O U N T ( t s h p . P a r a m e t e r V a l u e )   a s   P a r a m e t e r C o u n t 
 
         1 6 8 :                                                                                                                           F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k S c h e d u l e H i s t o r y P a r a m e t e r   t s h p 
 
         1 6 9 :                                                                                                                           W H E R E   t s h p . P a r a m e t e r V a l u e   I N   ( : k e y s ) 
 
 
 
     L i n e   1 9 1   [ m a t c h :   S E L E C T   ] : 
 
         1 8 9 :                           $ C u s t o m e r I D s   =   a r r a y _ u n i q u e ( $ C u s t o m e r I D s ) ; 
 
         1 9 0 :   
 
   > >   1 9 1 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c o m p a n y . I D ,   c o m p a n y . E p i c o r C u s t I D 
 
         1 9 2 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c o m p a n y 
 
         1 9 3 :                                                                                                                         W H E R E   c o m p a n y . E p i c o r C u s t I D   I N   ( : c u s t I D s ) " ) 
 
 
 
     L i n e   2 0 9   [ m a t c h :   S E L E C T   ] : 
 
         2 0 7 :                                   r e t u r n   [ ] ; 
 
         2 0 8 :   
 
   > >   2 0 9 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c o m p a n y . I D ,   c o m p a n y . c a l c _ D i s p l a y N a m e ,   c o m p a n y . " . $ E m a i l F i e l d . " 
 
         2 1 0 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c o m p a n y 
 
         2 1 1 :                                                                                                                         O R D E R   B Y   c o m p a n y . c a l c _ D i s p l a y N a m e " ) 
 
 
 
     L i n e   2 2 5   [ m a t c h :   S E L E C T   ] : 
 
         2 2 3 :                                   r e t u r n   [ ] ; 
 
         2 2 4 :   
 
   > >   2 2 5 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c o m p a n y . E p i c o r C u s t I D ,   c o m p a n y . " . $ E m a i l F i e l d . " 
 
         2 2 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c o m p a n y " ) 
 
         2 2 7 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   1 0 2   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 0 0 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c . I D ,   C O U N T ( u . I D )   a s   U s e r C o u n t 
 
         1 0 1 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c 
 
   > >   1 0 2 :                                                                                                                         I N N E R   J O I N   c . q u e s t _ U s e r   u 
 
         1 0 3 :                                                                                                                         W H E R E   c . I D   I N   ( : i d s ) 
 
         1 0 4 :                                                                                                                         G R O U P   B Y   c . I D " ) 
 
 
 
     L i n e   1 2 6   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 2 4 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c . I D ,   C O U N T ( s . I D )   a s   S h i p m e n t C o u n t 
 
         1 2 5 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c 
 
   > >   1 2 6 :                                                                                                                         I N N E R   J O I N   c . s h i p _ R e q u e s t   s 
 
         1 2 7 :                                                                                                                         W H E R E   c . I D   I N   ( : i d s ) 
 
         1 2 8 :                                                                                                                         G R O U P   B Y   c . I D " ) 
 
 
 
     L i n e   2 6   [ m a t c h :   e p i c o r ] : 
 
         2 4 :                   p u b l i c   f u n c t i o n   g e t A l l C o m p a n i e s ( ) 
 
         2 5 :                   { 
 
   > >   2 6 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   c . I D   a s   i d ,   c . E p i c o r C u s t I D   A S   v a l u e ,   c . c a l c _ D i s p l a y N a m e   A S   l a b e l 
 
         2 7 :                                                                                                                                         F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y   c ' ) 
 
         2 8 :                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   4 1   [ m a t c h :   e p i c o r ] : 
 
         3 9 :                           $ q b   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
         4 0 :   
 
   > >   4 1 :                           $ R e s u l t s   =   $ q b - > s e l e c t ( ' c . I D   a s   i d ,   c . E p i c o r C u s t I D   A S   v a l u e ,   c . c a l c _ D i s p l a y N a m e   A S   l a b e l ' ) 
 
         4 2 :                                   - > f r o m ( ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ U s e r ' ,   ' u ' ) 
 
         4 3 :                                   - > j o i n ( ' u . q u e s t _ C o m p a n y ' ,   ' c ' ) 
 
 
 
     L i n e   5 6   [ m a t c h :   e p i c o r ] : 
 
         5 4 :                     *   @ r e t u r n   m i x e d | n u l l 
 
         5 5 :                     * / 
 
   > >   5 6 :                   p u b l i c   f u n c t i o n   g e t E p i c o r C u s t I D B y C o m p a n y I D ( $ c o m p a n y I D ) 
 
         5 7 :                   { 
 
         5 8 :                           t r y   { 
 
 
 
     L i n e   5 9   [ m a t c h :   e p i c o r ] : 
 
         5 7 :                   { 
 
         5 8 :                           t r y   { 
 
   > >   5 9 :                                   / /   g e t   e p i c o r   c u s t   I D   f r o m   t h e   c o m p a n y   t a b l e   b a s e d   o n   t h e   p a s s e d   i n   c o m p a n y   I D 
 
         6 0 :                                   $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   c . I D   A S   i d ,   c . E p i c o r C u s t I D   A S   e p i c o r C u s t I D 
 
         6 1 :                                                                                                                                                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   6 0   [ m a t c h :   e p i c o r ] : 
 
         5 8 :                           t r y   { 
 
         5 9 :                                   / /   g e t   e p i c o r   c u s t   I D   f r o m   t h e   c o m p a n y   t a b l e   b a s e d   o n   t h e   p a s s e d   i n   c o m p a n y   I D 
 
   > >   6 0 :                                   $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   c . I D   A S   i d ,   c . E p i c o r C u s t I D   A S   e p i c o r C u s t I D 
 
         6 1 :                                                                                                                                                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y   c 
 
         6 2 :                                                                                                                                                                   W H E R E   c . I D   =   : c o m p a n y I D ' ) 
 
 
 
     L i n e   7 0   [ m a t c h :   e p i c o r ] : 
 
         6 8 :                           } 
 
         6 9 :   
 
   > >   7 0 :                           r e t u r n   $ r e s u l t s [ " e p i c o r C u s t I D " ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 6   [ m a t c h :   e p i c o r ] : 
 
         7 4 :                     *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y [ ] 
 
         7 5 :                     * / 
 
   > >   7 6 :                   p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) 
 
         7 7 :                   { 
 
         7 8 :                           $ q u e r y   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c 
 
 
 
     L i n e   8 5   [ m a t c h :   e p i c o r ] : 
 
         8 3 :                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y   $ o b j   * / 
 
         8 4 :                           f o r e a c h ( $ r e s   a s   $ o b j ) 
 
   > >   8 5 :                                   $ r e t [ $ o b j - > g e t E p i c o r C u s t I D ( ) ]   =   $ o b j ; 
 
         8 6 :                           r e t u r n   $ r e t ; 
 
         8 7 :                   } 
 
 
 
     L i n e   1 4 8   [ m a t c h :   e p i c o r ] : 
 
         1 4 6 :                           $ C o u n t s   =   a r r a y _ c o m b i n e ( $ R e c o r d I D s ,   a r r a y _ f i l l ( 0 ,   s i z e o f ( $ R e c o r d I D s ) ,   0 ) ) ; 
 
         1 4 7 :   
 
   > >   1 4 8 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c . I D ,   c . E p i c o r C u s t I D 
 
         1 4 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c 
 
         1 5 0 :                                                                                                                         W H E R E   c . I D   I N   ( : i d s ) " ) 
 
 
 
     L i n e   1 5 3   [ m a t c h :   e p i c o r ] : 
 
         1 5 1 :                                                                                           - > s e t P a r a m e t e r ( ' i d s ' ,   $ R e c o r d I D s ) 
 
         1 5 2 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
   > >   1 5 3 :                           $ E p i c o r C u s t I D s T o I D   =   [ ] ; 
 
         1 5 4 :                           f o r e a c h ( $ r e s   a s   $ r o w ) 
 
         1 5 5 :                                   $ E p i c o r C u s t I D s T o I D [ $ r o w [ ' E p i c o r C u s t I D ' ] ]   =   $ r o w [ ' I D ' ] ; 
 
 
 
     L i n e   1 5 5   [ m a t c h :   e p i c o r ] : 
 
         1 5 3 :                           $ E p i c o r C u s t I D s T o I D   =   [ ] ; 
 
         1 5 4 :                           f o r e a c h ( $ r e s   a s   $ r o w ) 
 
   > >   1 5 5 :                                   $ E p i c o r C u s t I D s T o I D [ $ r o w [ ' E p i c o r C u s t I D ' ] ]   =   $ r o w [ ' I D ' ] ; 
 
         1 5 6 :   
 
         1 5 7 :                           $ r e s 2   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   t s p . P a r a m e t e r V a l u e ,   C O U N T ( t s p . P a r a m e t e r V a l u e )   a s   P a r a m e t e r C o u n t 
 
 
 
     L i n e   1 6 2   [ m a t c h :   e p i c o r ] : 
 
         1 6 0 :                                                                                                                               A N D   t s p . P a r a m e t e r K e y   =   ' C O M P A N Y ' 
 
         1 6 1 :                                                                                                                           G R O U P   B Y   t s p . P a r a m e t e r V a l u e " ) 
 
   > >   1 6 2 :                                                                                             - > s e t P a r a m e t e r ( ' : k e y s ' ,   a r r a y _ k e y s ( $ E p i c o r C u s t I D s T o I D ) ) 
 
         1 6 3 :                                                                                             - > g e t A r r a y R e s u l t ( ) ; 
 
         1 6 4 :                           f o r e a c h ( $ r e s 2   a s   $ r o w 2 ) 
 
 
 
     L i n e   1 6 5   [ m a t c h :   e p i c o r ] : 
 
         1 6 3 :                                                                                             - > g e t A r r a y R e s u l t ( ) ; 
 
         1 6 4 :                           f o r e a c h ( $ r e s 2   a s   $ r o w 2 ) 
 
   > >   1 6 5 :                                   $ C o u n t s [ $ E p i c o r C u s t I D s T o I D [ $ r o w 2 [ ' P a r a m e t e r V a l u e ' ] ] ]   + =   $ r o w 2 [ ' P a r a m e t e r C o u n t ' ] ; 
 
         1 6 6 :   
 
         1 6 7 :                           $ r e s 3   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   t s h p . P a r a m e t e r V a l u e ,   C O U N T ( t s h p . P a r a m e t e r V a l u e )   a s   P a r a m e t e r C o u n t 
 
 
 
     L i n e   1 7 2   [ m a t c h :   e p i c o r ] : 
 
         1 7 0 :                                                                                                                               A N D   t s h p . P a r a m e t e r K e y   =   ' C O M P A N Y ' 
 
         1 7 1 :                                                                                                                           G R O U P   B Y   t s h p . P a r a m e t e r V a l u e " ) 
 
   > >   1 7 2 :                                                                                             - > s e t P a r a m e t e r ( ' : k e y s ' ,   a r r a y _ k e y s ( $ E p i c o r C u s t I D s T o I D ) ) 
 
         1 7 3 :                                                                                             - > g e t A r r a y R e s u l t ( ) ; 
 
         1 7 4 :                           f o r e a c h ( $ r e s 3   a s   $ r o w 3 ) 
 
 
 
     L i n e   1 7 5   [ m a t c h :   e p i c o r ] : 
 
         1 7 3 :                                                                                             - > g e t A r r a y R e s u l t ( ) ; 
 
         1 7 4 :                           f o r e a c h ( $ r e s 3   a s   $ r o w 3 ) 
 
   > >   1 7 5 :                                   $ C o u n t s [ $ E p i c o r C u s t I D s T o I D [ $ r o w 3 [ ' P a r a m e t e r V a l u e ' ] ] ]   + =   $ r o w 3 [ ' P a r a m e t e r C o u n t ' ] ; 
 
         1 7 6 :   
 
         1 7 7 :                           r e t u r n   $ C o u n t s ; 
 
 
 
     L i n e   1 9 1   [ m a t c h :   e p i c o r ] : 
 
         1 8 9 :                           $ C u s t o m e r I D s   =   a r r a y _ u n i q u e ( $ C u s t o m e r I D s ) ; 
 
         1 9 0 :   
 
   > >   1 9 1 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c o m p a n y . I D ,   c o m p a n y . E p i c o r C u s t I D 
 
         1 9 2 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c o m p a n y 
 
         1 9 3 :                                                                                                                         W H E R E   c o m p a n y . E p i c o r C u s t I D   I N   ( : c u s t I D s ) " ) 
 
 
 
     L i n e   1 9 3   [ m a t c h :   e p i c o r ] : 
 
         1 9 1 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c o m p a n y . I D ,   c o m p a n y . E p i c o r C u s t I D 
 
         1 9 2 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c o m p a n y 
 
   > >   1 9 3 :                                                                                                                         W H E R E   c o m p a n y . E p i c o r C u s t I D   I N   ( : c u s t I D s ) " ) 
 
         1 9 4 :                                                                                           - > s e t P a r a m e t e r ( ' c u s t I D s ' ,   a r r a y _ v a l u e s ( $ C u s t o m e r I D s ) ) 
 
         1 9 5 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   1 9 7   [ m a t c h :   e p i c o r ] : 
 
         1 9 5 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
         1 9 6 :                           $ r e t   =   a r r a y _ c o m b i n e ( $ C u s t o m e r I D s ,   a r r a y _ f i l l ( 0 , s i z e o f ( $ C u s t o m e r I D s ) , n u l l ) ) ; 
 
   > >   1 9 7 :                           r e t u r n   a r r a y _ r e p l a c e ( $ r e t ,   a r r a y _ c o m b i n e ( a r r a y _ c o l u m n ( $ r e s , ' E p i c o r C u s t I D ' ) , a r r a y _ c o l u m n ( $ r e s , ' I D ' ) ) ) ; 
 
         1 9 8 :                   } 
 
         1 9 9 :   
 
 
 
     L i n e   2 2 5   [ m a t c h :   e p i c o r ] : 
 
         2 2 3 :                                   r e t u r n   [ ] ; 
 
         2 2 4 :   
 
   > >   2 2 5 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c o m p a n y . E p i c o r C u s t I D ,   c o m p a n y . " . $ E m a i l F i e l d . " 
 
         2 2 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c o m p a n y " ) 
 
         2 2 7 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   2 2 8   [ m a t c h :   e p i c o r ] : 
 
         2 2 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c o m p a n y " ) 
 
         2 2 7 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
   > >   2 2 8 :                           r e t u r n   a r r a y _ c o m b i n e ( a r r a y _ c o l u m n ( $ r e s , ' E p i c o r C u s t I D ' ) ,   a r r a y _ c o l u m n ( $ r e s , $ E m a i l F i e l d ) ) ; 
 
         2 2 9 :                   } 
 
         2 3 0 :           } 
 
 
 
     L i n e   2 6   [ m a t c h :   E p i c o r ] : 
 
         2 4 :                   p u b l i c   f u n c t i o n   g e t A l l C o m p a n i e s ( ) 
 
         2 5 :                   { 
 
   > >   2 6 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   c . I D   a s   i d ,   c . E p i c o r C u s t I D   A S   v a l u e ,   c . c a l c _ D i s p l a y N a m e   A S   l a b e l 
 
         2 7 :                                                                                                                                         F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y   c ' ) 
 
         2 8 :                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   4 1   [ m a t c h :   E p i c o r ] : 
 
         3 9 :                           $ q b   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
         4 0 :   
 
   > >   4 1 :                           $ R e s u l t s   =   $ q b - > s e l e c t ( ' c . I D   a s   i d ,   c . E p i c o r C u s t I D   A S   v a l u e ,   c . c a l c _ D i s p l a y N a m e   A S   l a b e l ' ) 
 
         4 2 :                                   - > f r o m ( ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ U s e r ' ,   ' u ' ) 
 
         4 3 :                                   - > j o i n ( ' u . q u e s t _ C o m p a n y ' ,   ' c ' ) 
 
 
 
     L i n e   5 6   [ m a t c h :   E p i c o r ] : 
 
         5 4 :                     *   @ r e t u r n   m i x e d | n u l l 
 
         5 5 :                     * / 
 
   > >   5 6 :                   p u b l i c   f u n c t i o n   g e t E p i c o r C u s t I D B y C o m p a n y I D ( $ c o m p a n y I D ) 
 
         5 7 :                   { 
 
         5 8 :                           t r y   { 
 
 
 
     L i n e   5 9   [ m a t c h :   E p i c o r ] : 
 
         5 7 :                   { 
 
         5 8 :                           t r y   { 
 
   > >   5 9 :                                   / /   g e t   e p i c o r   c u s t   I D   f r o m   t h e   c o m p a n y   t a b l e   b a s e d   o n   t h e   p a s s e d   i n   c o m p a n y   I D 
 
         6 0 :                                   $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   c . I D   A S   i d ,   c . E p i c o r C u s t I D   A S   e p i c o r C u s t I D 
 
         6 1 :                                                                                                                                                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   6 0   [ m a t c h :   E p i c o r ] : 
 
         5 8 :                           t r y   { 
 
         5 9 :                                   / /   g e t   e p i c o r   c u s t   I D   f r o m   t h e   c o m p a n y   t a b l e   b a s e d   o n   t h e   p a s s e d   i n   c o m p a n y   I D 
 
   > >   6 0 :                                   $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   c . I D   A S   i d ,   c . E p i c o r C u s t I D   A S   e p i c o r C u s t I D 
 
         6 1 :                                                                                                                                                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y   c 
 
         6 2 :                                                                                                                                                                   W H E R E   c . I D   =   : c o m p a n y I D ' ) 
 
 
 
     L i n e   7 0   [ m a t c h :   E p i c o r ] : 
 
         6 8 :                           } 
 
         6 9 :   
 
   > >   7 0 :                           r e t u r n   $ r e s u l t s [ " e p i c o r C u s t I D " ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 6   [ m a t c h :   E p i c o r ] : 
 
         7 4 :                     *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y [ ] 
 
         7 5 :                     * / 
 
   > >   7 6 :                   p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) 
 
         7 7 :                   { 
 
         7 8 :                           $ q u e r y   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c 
 
 
 
     L i n e   8 5   [ m a t c h :   E p i c o r ] : 
 
         8 3 :                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y   $ o b j   * / 
 
         8 4 :                           f o r e a c h ( $ r e s   a s   $ o b j ) 
 
   > >   8 5 :                                   $ r e t [ $ o b j - > g e t E p i c o r C u s t I D ( ) ]   =   $ o b j ; 
 
         8 6 :                           r e t u r n   $ r e t ; 
 
         8 7 :                   } 
 
 
 
     L i n e   1 4 8   [ m a t c h :   E p i c o r ] : 
 
         1 4 6 :                           $ C o u n t s   =   a r r a y _ c o m b i n e ( $ R e c o r d I D s ,   a r r a y _ f i l l ( 0 ,   s i z e o f ( $ R e c o r d I D s ) ,   0 ) ) ; 
 
         1 4 7 :   
 
   > >   1 4 8 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c . I D ,   c . E p i c o r C u s t I D 
 
         1 4 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c 
 
         1 5 0 :                                                                                                                         W H E R E   c . I D   I N   ( : i d s ) " ) 
 
 
 
     L i n e   1 5 3   [ m a t c h :   E p i c o r ] : 
 
         1 5 1 :                                                                                           - > s e t P a r a m e t e r ( ' i d s ' ,   $ R e c o r d I D s ) 
 
         1 5 2 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
   > >   1 5 3 :                           $ E p i c o r C u s t I D s T o I D   =   [ ] ; 
 
         1 5 4 :                           f o r e a c h ( $ r e s   a s   $ r o w ) 
 
         1 5 5 :                                   $ E p i c o r C u s t I D s T o I D [ $ r o w [ ' E p i c o r C u s t I D ' ] ]   =   $ r o w [ ' I D ' ] ; 
 
 
 
     L i n e   1 5 5   [ m a t c h :   E p i c o r ] : 
 
         1 5 3 :                           $ E p i c o r C u s t I D s T o I D   =   [ ] ; 
 
         1 5 4 :                           f o r e a c h ( $ r e s   a s   $ r o w ) 
 
   > >   1 5 5 :                                   $ E p i c o r C u s t I D s T o I D [ $ r o w [ ' E p i c o r C u s t I D ' ] ]   =   $ r o w [ ' I D ' ] ; 
 
         1 5 6 :   
 
         1 5 7 :                           $ r e s 2   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   t s p . P a r a m e t e r V a l u e ,   C O U N T ( t s p . P a r a m e t e r V a l u e )   a s   P a r a m e t e r C o u n t 
 
 
 
     L i n e   1 6 2   [ m a t c h :   E p i c o r ] : 
 
         1 6 0 :                                                                                                                               A N D   t s p . P a r a m e t e r K e y   =   ' C O M P A N Y ' 
 
         1 6 1 :                                                                                                                           G R O U P   B Y   t s p . P a r a m e t e r V a l u e " ) 
 
   > >   1 6 2 :                                                                                             - > s e t P a r a m e t e r ( ' : k e y s ' ,   a r r a y _ k e y s ( $ E p i c o r C u s t I D s T o I D ) ) 
 
         1 6 3 :                                                                                             - > g e t A r r a y R e s u l t ( ) ; 
 
         1 6 4 :                           f o r e a c h ( $ r e s 2   a s   $ r o w 2 ) 
 
 
 
     L i n e   1 6 5   [ m a t c h :   E p i c o r ] : 
 
         1 6 3 :                                                                                             - > g e t A r r a y R e s u l t ( ) ; 
 
         1 6 4 :                           f o r e a c h ( $ r e s 2   a s   $ r o w 2 ) 
 
   > >   1 6 5 :                                   $ C o u n t s [ $ E p i c o r C u s t I D s T o I D [ $ r o w 2 [ ' P a r a m e t e r V a l u e ' ] ] ]   + =   $ r o w 2 [ ' P a r a m e t e r C o u n t ' ] ; 
 
         1 6 6 :   
 
         1 6 7 :                           $ r e s 3   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   t s h p . P a r a m e t e r V a l u e ,   C O U N T ( t s h p . P a r a m e t e r V a l u e )   a s   P a r a m e t e r C o u n t 
 
 
 
     L i n e   1 7 2   [ m a t c h :   E p i c o r ] : 
 
         1 7 0 :                                                                                                                               A N D   t s h p . P a r a m e t e r K e y   =   ' C O M P A N Y ' 
 
         1 7 1 :                                                                                                                           G R O U P   B Y   t s h p . P a r a m e t e r V a l u e " ) 
 
   > >   1 7 2 :                                                                                             - > s e t P a r a m e t e r ( ' : k e y s ' ,   a r r a y _ k e y s ( $ E p i c o r C u s t I D s T o I D ) ) 
 
         1 7 3 :                                                                                             - > g e t A r r a y R e s u l t ( ) ; 
 
         1 7 4 :                           f o r e a c h ( $ r e s 3   a s   $ r o w 3 ) 
 
 
 
     L i n e   1 7 5   [ m a t c h :   E p i c o r ] : 
 
         1 7 3 :                                                                                             - > g e t A r r a y R e s u l t ( ) ; 
 
         1 7 4 :                           f o r e a c h ( $ r e s 3   a s   $ r o w 3 ) 
 
   > >   1 7 5 :                                   $ C o u n t s [ $ E p i c o r C u s t I D s T o I D [ $ r o w 3 [ ' P a r a m e t e r V a l u e ' ] ] ]   + =   $ r o w 3 [ ' P a r a m e t e r C o u n t ' ] ; 
 
         1 7 6 :   
 
         1 7 7 :                           r e t u r n   $ C o u n t s ; 
 
 
 
     L i n e   1 9 1   [ m a t c h :   E p i c o r ] : 
 
         1 8 9 :                           $ C u s t o m e r I D s   =   a r r a y _ u n i q u e ( $ C u s t o m e r I D s ) ; 
 
         1 9 0 :   
 
   > >   1 9 1 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c o m p a n y . I D ,   c o m p a n y . E p i c o r C u s t I D 
 
         1 9 2 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c o m p a n y 
 
         1 9 3 :                                                                                                                         W H E R E   c o m p a n y . E p i c o r C u s t I D   I N   ( : c u s t I D s ) " ) 
 
 
 
     L i n e   1 9 3   [ m a t c h :   E p i c o r ] : 
 
         1 9 1 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c o m p a n y . I D ,   c o m p a n y . E p i c o r C u s t I D 
 
         1 9 2 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c o m p a n y 
 
   > >   1 9 3 :                                                                                                                         W H E R E   c o m p a n y . E p i c o r C u s t I D   I N   ( : c u s t I D s ) " ) 
 
         1 9 4 :                                                                                           - > s e t P a r a m e t e r ( ' c u s t I D s ' ,   a r r a y _ v a l u e s ( $ C u s t o m e r I D s ) ) 
 
         1 9 5 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   1 9 7   [ m a t c h :   E p i c o r ] : 
 
         1 9 5 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
         1 9 6 :                           $ r e t   =   a r r a y _ c o m b i n e ( $ C u s t o m e r I D s ,   a r r a y _ f i l l ( 0 , s i z e o f ( $ C u s t o m e r I D s ) , n u l l ) ) ; 
 
   > >   1 9 7 :                           r e t u r n   a r r a y _ r e p l a c e ( $ r e t ,   a r r a y _ c o m b i n e ( a r r a y _ c o l u m n ( $ r e s , ' E p i c o r C u s t I D ' ) , a r r a y _ c o l u m n ( $ r e s , ' I D ' ) ) ) ; 
 
         1 9 8 :                   } 
 
         1 9 9 :   
 
 
 
     L i n e   2 2 5   [ m a t c h :   E p i c o r ] : 
 
         2 2 3 :                                   r e t u r n   [ ] ; 
 
         2 2 4 :   
 
   > >   2 2 5 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c o m p a n y . E p i c o r C u s t I D ,   c o m p a n y . " . $ E m a i l F i e l d . " 
 
         2 2 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c o m p a n y " ) 
 
         2 2 7 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   2 2 8   [ m a t c h :   E p i c o r ] : 
 
         2 2 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c o m p a n y " ) 
 
         2 2 7 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
   > >   2 2 8 :                           r e t u r n   a r r a y _ c o m b i n e ( a r r a y _ c o l u m n ( $ r e s , ' E p i c o r C u s t I D ' ) ,   a r r a y _ c o l u m n ( $ r e s , $ E m a i l F i e l d ) ) ; 
 
         2 2 9 :                   } 
 
         2 3 0 :           } 
 
 
 
     L i n e   2 6   [ m a t c h :   E P I C O R ] : 
 
         2 4 :                   p u b l i c   f u n c t i o n   g e t A l l C o m p a n i e s ( ) 
 
         2 5 :                   { 
 
   > >   2 6 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   c . I D   a s   i d ,   c . E p i c o r C u s t I D   A S   v a l u e ,   c . c a l c _ D i s p l a y N a m e   A S   l a b e l 
 
         2 7 :                                                                                                                                         F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y   c ' ) 
 
         2 8 :                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   4 1   [ m a t c h :   E P I C O R ] : 
 
         3 9 :                           $ q b   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
         4 0 :   
 
   > >   4 1 :                           $ R e s u l t s   =   $ q b - > s e l e c t ( ' c . I D   a s   i d ,   c . E p i c o r C u s t I D   A S   v a l u e ,   c . c a l c _ D i s p l a y N a m e   A S   l a b e l ' ) 
 
         4 2 :                                   - > f r o m ( ' A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ U s e r ' ,   ' u ' ) 
 
         4 3 :                                   - > j o i n ( ' u . q u e s t _ C o m p a n y ' ,   ' c ' ) 
 
 
 
     L i n e   5 6   [ m a t c h :   E P I C O R ] : 
 
         5 4 :                     *   @ r e t u r n   m i x e d | n u l l 
 
         5 5 :                     * / 
 
   > >   5 6 :                   p u b l i c   f u n c t i o n   g e t E p i c o r C u s t I D B y C o m p a n y I D ( $ c o m p a n y I D ) 
 
         5 7 :                   { 
 
         5 8 :                           t r y   { 
 
 
 
     L i n e   5 9   [ m a t c h :   E P I C O R ] : 
 
         5 7 :                   { 
 
         5 8 :                           t r y   { 
 
   > >   5 9 :                                   / /   g e t   e p i c o r   c u s t   I D   f r o m   t h e   c o m p a n y   t a b l e   b a s e d   o n   t h e   p a s s e d   i n   c o m p a n y   I D 
 
         6 0 :                                   $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   c . I D   A S   i d ,   c . E p i c o r C u s t I D   A S   e p i c o r C u s t I D 
 
         6 1 :                                                                                                                                                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   6 0   [ m a t c h :   E P I C O R ] : 
 
         5 8 :                           t r y   { 
 
         5 9 :                                   / /   g e t   e p i c o r   c u s t   I D   f r o m   t h e   c o m p a n y   t a b l e   b a s e d   o n   t h e   p a s s e d   i n   c o m p a n y   I D 
 
   > >   6 0 :                                   $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   c . I D   A S   i d ,   c . E p i c o r C u s t I D   A S   e p i c o r C u s t I D 
 
         6 1 :                                                                                                                                                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ C o m p a n y   c 
 
         6 2 :                                                                                                                                                                   W H E R E   c . I D   =   : c o m p a n y I D ' ) 
 
 
 
     L i n e   7 0   [ m a t c h :   E P I C O R ] : 
 
         6 8 :                           } 
 
         6 9 :   
 
   > >   7 0 :                           r e t u r n   $ r e s u l t s [ " e p i c o r C u s t I D " ] ; 
 
         7 1 :                   } 
 
         7 2 :   
 
 
 
     L i n e   7 6   [ m a t c h :   E P I C O R ] : 
 
         7 4 :                     *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y [ ] 
 
         7 5 :                     * / 
 
   > >   7 6 :                   p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) 
 
         7 7 :                   { 
 
         7 8 :                           $ q u e r y   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c 
 
 
 
     L i n e   8 5   [ m a t c h :   E P I C O R ] : 
 
         8 3 :                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y   $ o b j   * / 
 
         8 4 :                           f o r e a c h ( $ r e s   a s   $ o b j ) 
 
   > >   8 5 :                                   $ r e t [ $ o b j - > g e t E p i c o r C u s t I D ( ) ]   =   $ o b j ; 
 
         8 6 :                           r e t u r n   $ r e t ; 
 
         8 7 :                   } 
 
 
 
     L i n e   1 4 8   [ m a t c h :   E P I C O R ] : 
 
         1 4 6 :                           $ C o u n t s   =   a r r a y _ c o m b i n e ( $ R e c o r d I D s ,   a r r a y _ f i l l ( 0 ,   s i z e o f ( $ R e c o r d I D s ) ,   0 ) ) ; 
 
         1 4 7 :   
 
   > >   1 4 8 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c . I D ,   c . E p i c o r C u s t I D 
 
         1 4 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c 
 
         1 5 0 :                                                                                                                         W H E R E   c . I D   I N   ( : i d s ) " ) 
 
 
 
     L i n e   1 5 3   [ m a t c h :   E P I C O R ] : 
 
         1 5 1 :                                                                                           - > s e t P a r a m e t e r ( ' i d s ' ,   $ R e c o r d I D s ) 
 
         1 5 2 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
   > >   1 5 3 :                           $ E p i c o r C u s t I D s T o I D   =   [ ] ; 
 
         1 5 4 :                           f o r e a c h ( $ r e s   a s   $ r o w ) 
 
         1 5 5 :                                   $ E p i c o r C u s t I D s T o I D [ $ r o w [ ' E p i c o r C u s t I D ' ] ]   =   $ r o w [ ' I D ' ] ; 
 
 
 
     L i n e   1 5 5   [ m a t c h :   E P I C O R ] : 
 
         1 5 3 :                           $ E p i c o r C u s t I D s T o I D   =   [ ] ; 
 
         1 5 4 :                           f o r e a c h ( $ r e s   a s   $ r o w ) 
 
   > >   1 5 5 :                                   $ E p i c o r C u s t I D s T o I D [ $ r o w [ ' E p i c o r C u s t I D ' ] ]   =   $ r o w [ ' I D ' ] ; 
 
         1 5 6 :   
 
         1 5 7 :                           $ r e s 2   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   t s p . P a r a m e t e r V a l u e ,   C O U N T ( t s p . P a r a m e t e r V a l u e )   a s   P a r a m e t e r C o u n t 
 
 
 
     L i n e   1 6 2   [ m a t c h :   E P I C O R ] : 
 
         1 6 0 :                                                                                                                               A N D   t s p . P a r a m e t e r K e y   =   ' C O M P A N Y ' 
 
         1 6 1 :                                                                                                                           G R O U P   B Y   t s p . P a r a m e t e r V a l u e " ) 
 
   > >   1 6 2 :                                                                                             - > s e t P a r a m e t e r ( ' : k e y s ' ,   a r r a y _ k e y s ( $ E p i c o r C u s t I D s T o I D ) ) 
 
         1 6 3 :                                                                                             - > g e t A r r a y R e s u l t ( ) ; 
 
         1 6 4 :                           f o r e a c h ( $ r e s 2   a s   $ r o w 2 ) 
 
 
 
     L i n e   1 6 5   [ m a t c h :   E P I C O R ] : 
 
         1 6 3 :                                                                                             - > g e t A r r a y R e s u l t ( ) ; 
 
         1 6 4 :                           f o r e a c h ( $ r e s 2   a s   $ r o w 2 ) 
 
   > >   1 6 5 :                                   $ C o u n t s [ $ E p i c o r C u s t I D s T o I D [ $ r o w 2 [ ' P a r a m e t e r V a l u e ' ] ] ]   + =   $ r o w 2 [ ' P a r a m e t e r C o u n t ' ] ; 
 
         1 6 6 :   
 
         1 6 7 :                           $ r e s 3   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   t s h p . P a r a m e t e r V a l u e ,   C O U N T ( t s h p . P a r a m e t e r V a l u e )   a s   P a r a m e t e r C o u n t 
 
 
 
     L i n e   1 7 2   [ m a t c h :   E P I C O R ] : 
 
         1 7 0 :                                                                                                                               A N D   t s h p . P a r a m e t e r K e y   =   ' C O M P A N Y ' 
 
         1 7 1 :                                                                                                                           G R O U P   B Y   t s h p . P a r a m e t e r V a l u e " ) 
 
   > >   1 7 2 :                                                                                             - > s e t P a r a m e t e r ( ' : k e y s ' ,   a r r a y _ k e y s ( $ E p i c o r C u s t I D s T o I D ) ) 
 
         1 7 3 :                                                                                             - > g e t A r r a y R e s u l t ( ) ; 
 
         1 7 4 :                           f o r e a c h ( $ r e s 3   a s   $ r o w 3 ) 
 
 
 
     L i n e   1 7 5   [ m a t c h :   E P I C O R ] : 
 
         1 7 3 :                                                                                             - > g e t A r r a y R e s u l t ( ) ; 
 
         1 7 4 :                           f o r e a c h ( $ r e s 3   a s   $ r o w 3 ) 
 
   > >   1 7 5 :                                   $ C o u n t s [ $ E p i c o r C u s t I D s T o I D [ $ r o w 3 [ ' P a r a m e t e r V a l u e ' ] ] ]   + =   $ r o w 3 [ ' P a r a m e t e r C o u n t ' ] ; 
 
         1 7 6 :   
 
         1 7 7 :                           r e t u r n   $ C o u n t s ; 
 
 
 
     L i n e   1 9 1   [ m a t c h :   E P I C O R ] : 
 
         1 8 9 :                           $ C u s t o m e r I D s   =   a r r a y _ u n i q u e ( $ C u s t o m e r I D s ) ; 
 
         1 9 0 :   
 
   > >   1 9 1 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c o m p a n y . I D ,   c o m p a n y . E p i c o r C u s t I D 
 
         1 9 2 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c o m p a n y 
 
         1 9 3 :                                                                                                                         W H E R E   c o m p a n y . E p i c o r C u s t I D   I N   ( : c u s t I D s ) " ) 
 
 
 
     L i n e   1 9 3   [ m a t c h :   E P I C O R ] : 
 
         1 9 1 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c o m p a n y . I D ,   c o m p a n y . E p i c o r C u s t I D 
 
         1 9 2 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c o m p a n y 
 
   > >   1 9 3 :                                                                                                                         W H E R E   c o m p a n y . E p i c o r C u s t I D   I N   ( : c u s t I D s ) " ) 
 
         1 9 4 :                                                                                           - > s e t P a r a m e t e r ( ' c u s t I D s ' ,   a r r a y _ v a l u e s ( $ C u s t o m e r I D s ) ) 
 
         1 9 5 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   1 9 7   [ m a t c h :   E P I C O R ] : 
 
         1 9 5 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
         1 9 6 :                           $ r e t   =   a r r a y _ c o m b i n e ( $ C u s t o m e r I D s ,   a r r a y _ f i l l ( 0 , s i z e o f ( $ C u s t o m e r I D s ) , n u l l ) ) ; 
 
   > >   1 9 7 :                           r e t u r n   a r r a y _ r e p l a c e ( $ r e t ,   a r r a y _ c o m b i n e ( a r r a y _ c o l u m n ( $ r e s , ' E p i c o r C u s t I D ' ) , a r r a y _ c o l u m n ( $ r e s , ' I D ' ) ) ) ; 
 
         1 9 8 :                   } 
 
         1 9 9 :   
 
 
 
     L i n e   2 2 5   [ m a t c h :   E P I C O R ] : 
 
         2 2 3 :                                   r e t u r n   [ ] ; 
 
         2 2 4 :   
 
   > >   2 2 5 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c o m p a n y . E p i c o r C u s t I D ,   c o m p a n y . " . $ E m a i l F i e l d . " 
 
         2 2 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c o m p a n y " ) 
 
         2 2 7 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   2 2 8   [ m a t c h :   E P I C O R ] : 
 
         2 2 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   c o m p a n y " ) 
 
         2 2 7 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
   > >   2 2 8 :                           r e t u r n   a r r a y _ c o m b i n e ( a r r a y _ c o l u m n ( $ r e s , ' E p i c o r C u s t I D ' ) ,   a r r a y _ c o l u m n ( $ r e s , $ E m a i l F i e l d ) ) ; 
 
         2 2 9 :                   } 
 
         2 3 0 :           } 
 
 
 
     L i n e   4 6   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         4 4 :                                   - > w h e r e ( ' u . I D   =   : i d ' ) 
 
         4 5 :                                   - > s e t P a r a m e t e r ( ' i d ' ,   $ U s e r I D ) 
 
   > >   4 6 :                                   - > g e t Q u e r y ( ) 
 
         4 7 :                                   - > g e t A r r a y R e s u l t ( ) ; 
 
         4 8 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ q u e s t _ E m a i l E v e n t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 8   [ m a t c h :   - > s e l e c t ( ] : 
 
         2 6 :                           $ q b   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
         2 7 :   
 
   > >   2 8 :                           $ r e s u l t s   =   $ q b - > s e l e c t ( ' a u t h _ U s e r . E m a i l ' ) 
 
         2 9 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' q u e s t _ E m a i l E v e n t ' ) 
 
         3 0 :                                   - > j o i n ( ' q u e s t _ E m a i l E v e n t . q u e s t _ U s e r ' ,   ' q u e s t _ U s e r ' ) 
 
 
 
     L i n e   5 9   [ m a t c h :   - > s e l e c t ( ] : 
 
         5 7 :                           $ q b   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
         5 8 :   
 
   > >   5 9 :                           $ r e s u l t s   =   $ q b - > s e l e c t ( ' a u t h _ U s e r . E m a i l ' ) 
 
         6 0 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' q u e s t _ E m a i l E v e n t ' ) 
 
         6 1 :                                   - > j o i n ( ' q u e s t _ E m a i l E v e n t . q u e s t _ U s e r ' ,   ' q u e s t _ U s e r ' ) 
 
 
 
     L i n e   1 4 6   [ m a t c h :   - > s e l e c t ( ] : 
 
         1 4 4 :                           $ q b   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
         1 4 5 :   
 
   > >   1 4 6 :                           $ R e s u l t s   =   $ q b - > s e l e c t ( ' a u . E m a i l ' ) 
 
         1 4 7 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' e e ' ) 
 
         1 4 8 :                                   - > j o i n ( ' e e . q u e s t _ U s e r ' ,   ' q u ' ) 
 
 
 
     L i n e   1 0 1   [ m a t c h :   F R O M   ] : 
 
         9 9 :                                   e c h o   $ t h i s 
 
         1 0 0 :                                           - > g e t E n t i t y M a n a g e r ( ) 
 
   > >   1 0 1 :                                           - > c r e a t e N a t i v e Q u e r y ( " D E L E T E   q u e s t _ U s e r E m a i l E v e n t   F R O M   q u e s t _ U s e r E m a i l E v e n t   I N N E R   J O I N   q u e s t _ E m a i l E v e n t   O N   q u e s t _ E m a i l E v e n t . I D   =   q u e s t _ U s e r E m a i l E v e n t . q u e s t _ E m a i l E v e n t _ I D   W H E R E   q u e s t _ E m a i l E v e n t . C o d i n g K e y   I N   ( ' C O I L _ A L L O C A T I O N _ R E Q U E S T _ C O P Y _ C U S T O M E R ' ,   ' C O I L _ A L L O C A T I O N _ R E Q U E S T _ C A N C E L L A T I O N _ C U S T O M E R ' )   A N D   q u e s t _ U s e r _ I D   I N   ( S E L E C T   q u e s t _ U s e r _ I D   F R O M   q u e s t _ U s e r C o m p a n y   W H E R E   q u e s t _ C o m p a n y _ I D   I N   ( S E L E C T   I D   f r o m   q u e s t _ C o m p a n y   W H E R E   E p i c o r C u s t I D   =   ' "   .   $ C o m p a n y I D   .   " ' ) ) " ,   $ r s m ) 
 
         1 0 2 :                                           - > e x e c u t e ( ) ; 
 
         1 0 3 :                           } 
 
 
 
     L i n e   1 1 6   [ m a t c h :   F R O M   ] : 
 
         1 1 4 :                                   $ t h i s 
 
         1 1 5 :                                           - > g e t E n t i t y M a n a g e r ( ) 
 
   > >   1 1 6 :                                           - > c r e a t e N a t i v e Q u e r y ( " D E L E T E   q u e s t _ U s e r E m a i l E v e n t   F R O M   q u e s t _ U s e r E m a i l E v e n t   I N N E R   J O I N   q u e s t _ E m a i l E v e n t   O N   q u e s t _ E m a i l E v e n t . I D   =   q u e s t _ U s e r E m a i l E v e n t . q u e s t _ E m a i l E v e n t _ I D   W H E R E   q u e s t _ E m a i l E v e n t . C o d i n g K e y   I N   ( ' S H I P M E N T _ R E Q U E S T _ C O P Y _ C U S T O M E R ' ,   ' S H I P M E N T _ R E Q U E S T _ C A N C E L L A T I O N _ C U S T O M E R ' )   A N D   q u e s t _ U s e r _ I D   I N   ( S E L E C T   q u e s t _ U s e r _ I D   F R O M   q u e s t _ U s e r C o m p a n y   W H E R E   q u e s t _ C o m p a n y _ I D   I N   ( S E L E C T   I D   f r o m   q u e s t _ C o m p a n y   W H E R E   E p i c o r C u s t I D   =   ' "   .   $ C o m p a n y I D   .   " ' ) ) " ,   $ r s m ) 
 
         1 1 7 :                                           - > e x e c u t e ( ) ; 
 
         1 1 8 :                           } 
 
 
 
     L i n e   1 0 1   [ m a t c h :   S E L E C T   ] : 
 
         9 9 :                                   e c h o   $ t h i s 
 
         1 0 0 :                                           - > g e t E n t i t y M a n a g e r ( ) 
 
   > >   1 0 1 :                                           - > c r e a t e N a t i v e Q u e r y ( " D E L E T E   q u e s t _ U s e r E m a i l E v e n t   F R O M   q u e s t _ U s e r E m a i l E v e n t   I N N E R   J O I N   q u e s t _ E m a i l E v e n t   O N   q u e s t _ E m a i l E v e n t . I D   =   q u e s t _ U s e r E m a i l E v e n t . q u e s t _ E m a i l E v e n t _ I D   W H E R E   q u e s t _ E m a i l E v e n t . C o d i n g K e y   I N   ( ' C O I L _ A L L O C A T I O N _ R E Q U E S T _ C O P Y _ C U S T O M E R ' ,   ' C O I L _ A L L O C A T I O N _ R E Q U E S T _ C A N C E L L A T I O N _ C U S T O M E R ' )   A N D   q u e s t _ U s e r _ I D   I N   ( S E L E C T   q u e s t _ U s e r _ I D   F R O M   q u e s t _ U s e r C o m p a n y   W H E R E   q u e s t _ C o m p a n y _ I D   I N   ( S E L E C T   I D   f r o m   q u e s t _ C o m p a n y   W H E R E   E p i c o r C u s t I D   =   ' "   .   $ C o m p a n y I D   .   " ' ) ) " ,   $ r s m ) 
 
         1 0 2 :                                           - > e x e c u t e ( ) ; 
 
         1 0 3 :                           } 
 
 
 
     L i n e   1 1 6   [ m a t c h :   S E L E C T   ] : 
 
         1 1 4 :                                   $ t h i s 
 
         1 1 5 :                                           - > g e t E n t i t y M a n a g e r ( ) 
 
   > >   1 1 6 :                                           - > c r e a t e N a t i v e Q u e r y ( " D E L E T E   q u e s t _ U s e r E m a i l E v e n t   F R O M   q u e s t _ U s e r E m a i l E v e n t   I N N E R   J O I N   q u e s t _ E m a i l E v e n t   O N   q u e s t _ E m a i l E v e n t . I D   =   q u e s t _ U s e r E m a i l E v e n t . q u e s t _ E m a i l E v e n t _ I D   W H E R E   q u e s t _ E m a i l E v e n t . C o d i n g K e y   I N   ( ' S H I P M E N T _ R E Q U E S T _ C O P Y _ C U S T O M E R ' ,   ' S H I P M E N T _ R E Q U E S T _ C A N C E L L A T I O N _ C U S T O M E R ' )   A N D   q u e s t _ U s e r _ I D   I N   ( S E L E C T   q u e s t _ U s e r _ I D   F R O M   q u e s t _ U s e r C o m p a n y   W H E R E   q u e s t _ C o m p a n y _ I D   I N   ( S E L E C T   I D   f r o m   q u e s t _ C o m p a n y   W H E R E   E p i c o r C u s t I D   =   ' "   .   $ C o m p a n y I D   .   " ' ) ) " ,   $ r s m ) 
 
         1 1 7 :                                           - > e x e c u t e ( ) ; 
 
         1 1 8 :                           } 
 
 
 
     L i n e   1 3 1   [ m a t c h :   I N S E R T   I N T O ] : 
 
         1 2 9 :                                   $ t h i s 
 
         1 3 0 :                                           - > g e t E n t i t y M a n a g e r ( ) 
 
   > >   1 3 1 :                                           - > c r e a t e N a t i v e Q u e r y ( " I N S E R T   I N T O   q u e s t _ U s e r E m a i l E v e n t   ( q u e s t _ U s e r _ I D ,   q u e s t _ E m a i l E v e n t _ I D )   V A L U E S   ( : U s e r I d ,   : E v e n t I d ) " ,   $ r s m ) 
 
         1 3 2 :                                           - > s e t P a r a m e t e r ( ' U s e r I d ' ,   $ U s e r I d ) 
 
         1 3 3 :                                           - > s e t P a r a m e t e r ( ' E v e n t I d ' ,   $ E m a i l E v e n t ) 
 
 
 
     L i n e   1 0 1   [ m a t c h :   I N N E R   J O I N ] : 
 
         9 9 :                                   e c h o   $ t h i s 
 
         1 0 0 :                                           - > g e t E n t i t y M a n a g e r ( ) 
 
   > >   1 0 1 :                                           - > c r e a t e N a t i v e Q u e r y ( " D E L E T E   q u e s t _ U s e r E m a i l E v e n t   F R O M   q u e s t _ U s e r E m a i l E v e n t   I N N E R   J O I N   q u e s t _ E m a i l E v e n t   O N   q u e s t _ E m a i l E v e n t . I D   =   q u e s t _ U s e r E m a i l E v e n t . q u e s t _ E m a i l E v e n t _ I D   W H E R E   q u e s t _ E m a i l E v e n t . C o d i n g K e y   I N   ( ' C O I L _ A L L O C A T I O N _ R E Q U E S T _ C O P Y _ C U S T O M E R ' ,   ' C O I L _ A L L O C A T I O N _ R E Q U E S T _ C A N C E L L A T I O N _ C U S T O M E R ' )   A N D   q u e s t _ U s e r _ I D   I N   ( S E L E C T   q u e s t _ U s e r _ I D   F R O M   q u e s t _ U s e r C o m p a n y   W H E R E   q u e s t _ C o m p a n y _ I D   I N   ( S E L E C T   I D   f r o m   q u e s t _ C o m p a n y   W H E R E   E p i c o r C u s t I D   =   ' "   .   $ C o m p a n y I D   .   " ' ) ) " ,   $ r s m ) 
 
         1 0 2 :                                           - > e x e c u t e ( ) ; 
 
         1 0 3 :                           } 
 
 
 
     L i n e   1 1 6   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 1 4 :                                   $ t h i s 
 
         1 1 5 :                                           - > g e t E n t i t y M a n a g e r ( ) 
 
   > >   1 1 6 :                                           - > c r e a t e N a t i v e Q u e r y ( " D E L E T E   q u e s t _ U s e r E m a i l E v e n t   F R O M   q u e s t _ U s e r E m a i l E v e n t   I N N E R   J O I N   q u e s t _ E m a i l E v e n t   O N   q u e s t _ E m a i l E v e n t . I D   =   q u e s t _ U s e r E m a i l E v e n t . q u e s t _ E m a i l E v e n t _ I D   W H E R E   q u e s t _ E m a i l E v e n t . C o d i n g K e y   I N   ( ' S H I P M E N T _ R E Q U E S T _ C O P Y _ C U S T O M E R ' ,   ' S H I P M E N T _ R E Q U E S T _ C A N C E L L A T I O N _ C U S T O M E R ' )   A N D   q u e s t _ U s e r _ I D   I N   ( S E L E C T   q u e s t _ U s e r _ I D   F R O M   q u e s t _ U s e r C o m p a n y   W H E R E   q u e s t _ C o m p a n y _ I D   I N   ( S E L E C T   I D   f r o m   q u e s t _ C o m p a n y   W H E R E   E p i c o r C u s t I D   =   ' "   .   $ C o m p a n y I D   .   " ' ) ) " ,   $ r s m ) 
 
         1 1 7 :                                           - > e x e c u t e ( ) ; 
 
         1 1 8 :                           } 
 
 
 
     L i n e   1 0 1   [ m a t c h :   e p i c o r ] : 
 
         9 9 :                                   e c h o   $ t h i s 
 
         1 0 0 :                                           - > g e t E n t i t y M a n a g e r ( ) 
 
   > >   1 0 1 :                                           - > c r e a t e N a t i v e Q u e r y ( " D E L E T E   q u e s t _ U s e r E m a i l E v e n t   F R O M   q u e s t _ U s e r E m a i l E v e n t   I N N E R   J O I N   q u e s t _ E m a i l E v e n t   O N   q u e s t _ E m a i l E v e n t . I D   =   q u e s t _ U s e r E m a i l E v e n t . q u e s t _ E m a i l E v e n t _ I D   W H E R E   q u e s t _ E m a i l E v e n t . C o d i n g K e y   I N   ( ' C O I L _ A L L O C A T I O N _ R E Q U E S T _ C O P Y _ C U S T O M E R ' ,   ' C O I L _ A L L O C A T I O N _ R E Q U E S T _ C A N C E L L A T I O N _ C U S T O M E R ' )   A N D   q u e s t _ U s e r _ I D   I N   ( S E L E C T   q u e s t _ U s e r _ I D   F R O M   q u e s t _ U s e r C o m p a n y   W H E R E   q u e s t _ C o m p a n y _ I D   I N   ( S E L E C T   I D   f r o m   q u e s t _ C o m p a n y   W H E R E   E p i c o r C u s t I D   =   ' "   .   $ C o m p a n y I D   .   " ' ) ) " ,   $ r s m ) 
 
         1 0 2 :                                           - > e x e c u t e ( ) ; 
 
         1 0 3 :                           } 
 
 
 
     L i n e   1 1 6   [ m a t c h :   e p i c o r ] : 
 
         1 1 4 :                                   $ t h i s 
 
         1 1 5 :                                           - > g e t E n t i t y M a n a g e r ( ) 
 
   > >   1 1 6 :                                           - > c r e a t e N a t i v e Q u e r y ( " D E L E T E   q u e s t _ U s e r E m a i l E v e n t   F R O M   q u e s t _ U s e r E m a i l E v e n t   I N N E R   J O I N   q u e s t _ E m a i l E v e n t   O N   q u e s t _ E m a i l E v e n t . I D   =   q u e s t _ U s e r E m a i l E v e n t . q u e s t _ E m a i l E v e n t _ I D   W H E R E   q u e s t _ E m a i l E v e n t . C o d i n g K e y   I N   ( ' S H I P M E N T _ R E Q U E S T _ C O P Y _ C U S T O M E R ' ,   ' S H I P M E N T _ R E Q U E S T _ C A N C E L L A T I O N _ C U S T O M E R ' )   A N D   q u e s t _ U s e r _ I D   I N   ( S E L E C T   q u e s t _ U s e r _ I D   F R O M   q u e s t _ U s e r C o m p a n y   W H E R E   q u e s t _ C o m p a n y _ I D   I N   ( S E L E C T   I D   f r o m   q u e s t _ C o m p a n y   W H E R E   E p i c o r C u s t I D   =   ' "   .   $ C o m p a n y I D   .   " ' ) ) " ,   $ r s m ) 
 
         1 1 7 :                                           - > e x e c u t e ( ) ; 
 
         1 1 8 :                           } 
 
 
 
     L i n e   1 0 1   [ m a t c h :   E p i c o r ] : 
 
         9 9 :                                   e c h o   $ t h i s 
 
         1 0 0 :                                           - > g e t E n t i t y M a n a g e r ( ) 
 
   > >   1 0 1 :                                           - > c r e a t e N a t i v e Q u e r y ( " D E L E T E   q u e s t _ U s e r E m a i l E v e n t   F R O M   q u e s t _ U s e r E m a i l E v e n t   I N N E R   J O I N   q u e s t _ E m a i l E v e n t   O N   q u e s t _ E m a i l E v e n t . I D   =   q u e s t _ U s e r E m a i l E v e n t . q u e s t _ E m a i l E v e n t _ I D   W H E R E   q u e s t _ E m a i l E v e n t . C o d i n g K e y   I N   ( ' C O I L _ A L L O C A T I O N _ R E Q U E S T _ C O P Y _ C U S T O M E R ' ,   ' C O I L _ A L L O C A T I O N _ R E Q U E S T _ C A N C E L L A T I O N _ C U S T O M E R ' )   A N D   q u e s t _ U s e r _ I D   I N   ( S E L E C T   q u e s t _ U s e r _ I D   F R O M   q u e s t _ U s e r C o m p a n y   W H E R E   q u e s t _ C o m p a n y _ I D   I N   ( S E L E C T   I D   f r o m   q u e s t _ C o m p a n y   W H E R E   E p i c o r C u s t I D   =   ' "   .   $ C o m p a n y I D   .   " ' ) ) " ,   $ r s m ) 
 
         1 0 2 :                                           - > e x e c u t e ( ) ; 
 
         1 0 3 :                           } 
 
 
 
     L i n e   1 1 6   [ m a t c h :   E p i c o r ] : 
 
         1 1 4 :                                   $ t h i s 
 
         1 1 5 :                                           - > g e t E n t i t y M a n a g e r ( ) 
 
   > >   1 1 6 :                                           - > c r e a t e N a t i v e Q u e r y ( " D E L E T E   q u e s t _ U s e r E m a i l E v e n t   F R O M   q u e s t _ U s e r E m a i l E v e n t   I N N E R   J O I N   q u e s t _ E m a i l E v e n t   O N   q u e s t _ E m a i l E v e n t . I D   =   q u e s t _ U s e r E m a i l E v e n t . q u e s t _ E m a i l E v e n t _ I D   W H E R E   q u e s t _ E m a i l E v e n t . C o d i n g K e y   I N   ( ' S H I P M E N T _ R E Q U E S T _ C O P Y _ C U S T O M E R ' ,   ' S H I P M E N T _ R E Q U E S T _ C A N C E L L A T I O N _ C U S T O M E R ' )   A N D   q u e s t _ U s e r _ I D   I N   ( S E L E C T   q u e s t _ U s e r _ I D   F R O M   q u e s t _ U s e r C o m p a n y   W H E R E   q u e s t _ C o m p a n y _ I D   I N   ( S E L E C T   I D   f r o m   q u e s t _ C o m p a n y   W H E R E   E p i c o r C u s t I D   =   ' "   .   $ C o m p a n y I D   .   " ' ) ) " ,   $ r s m ) 
 
         1 1 7 :                                           - > e x e c u t e ( ) ; 
 
         1 1 8 :                           } 
 
 
 
     L i n e   1 0 1   [ m a t c h :   E P I C O R ] : 
 
         9 9 :                                   e c h o   $ t h i s 
 
         1 0 0 :                                           - > g e t E n t i t y M a n a g e r ( ) 
 
   > >   1 0 1 :                                           - > c r e a t e N a t i v e Q u e r y ( " D E L E T E   q u e s t _ U s e r E m a i l E v e n t   F R O M   q u e s t _ U s e r E m a i l E v e n t   I N N E R   J O I N   q u e s t _ E m a i l E v e n t   O N   q u e s t _ E m a i l E v e n t . I D   =   q u e s t _ U s e r E m a i l E v e n t . q u e s t _ E m a i l E v e n t _ I D   W H E R E   q u e s t _ E m a i l E v e n t . C o d i n g K e y   I N   ( ' C O I L _ A L L O C A T I O N _ R E Q U E S T _ C O P Y _ C U S T O M E R ' ,   ' C O I L _ A L L O C A T I O N _ R E Q U E S T _ C A N C E L L A T I O N _ C U S T O M E R ' )   A N D   q u e s t _ U s e r _ I D   I N   ( S E L E C T   q u e s t _ U s e r _ I D   F R O M   q u e s t _ U s e r C o m p a n y   W H E R E   q u e s t _ C o m p a n y _ I D   I N   ( S E L E C T   I D   f r o m   q u e s t _ C o m p a n y   W H E R E   E p i c o r C u s t I D   =   ' "   .   $ C o m p a n y I D   .   " ' ) ) " ,   $ r s m ) 
 
         1 0 2 :                                           - > e x e c u t e ( ) ; 
 
         1 0 3 :                           } 
 
 
 
     L i n e   1 1 6   [ m a t c h :   E P I C O R ] : 
 
         1 1 4 :                                   $ t h i s 
 
         1 1 5 :                                           - > g e t E n t i t y M a n a g e r ( ) 
 
   > >   1 1 6 :                                           - > c r e a t e N a t i v e Q u e r y ( " D E L E T E   q u e s t _ U s e r E m a i l E v e n t   F R O M   q u e s t _ U s e r E m a i l E v e n t   I N N E R   J O I N   q u e s t _ E m a i l E v e n t   O N   q u e s t _ E m a i l E v e n t . I D   =   q u e s t _ U s e r E m a i l E v e n t . q u e s t _ E m a i l E v e n t _ I D   W H E R E   q u e s t _ E m a i l E v e n t . C o d i n g K e y   I N   ( ' S H I P M E N T _ R E Q U E S T _ C O P Y _ C U S T O M E R ' ,   ' S H I P M E N T _ R E Q U E S T _ C A N C E L L A T I O N _ C U S T O M E R ' )   A N D   q u e s t _ U s e r _ I D   I N   ( S E L E C T   q u e s t _ U s e r _ I D   F R O M   q u e s t _ U s e r C o m p a n y   W H E R E   q u e s t _ C o m p a n y _ I D   I N   ( S E L E C T   I D   f r o m   q u e s t _ C o m p a n y   W H E R E   E p i c o r C u s t I D   =   ' "   .   $ C o m p a n y I D   .   " ' ) ) " ,   $ r s m ) 
 
         1 1 7 :                                           - > e x e c u t e ( ) ; 
 
         1 1 8 :                           } 
 
 
 
     L i n e   4 0   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         3 8 :                                   - > s e t P a r a m e t e r ( ' p l a n t I D s ' ,   $ P l a n t I D s ) ; 
 
         3 9 :   
 
   > >   4 0 :                           $ s q l   =   $ r e s u l t s - > g e t Q u e r y ( ) - > g e t S Q L ( ) ; 
 
         4 1 :   
 
         4 2 :                           $ r e s u l t s   =   $ r e s u l t s - > g e t Q u e r y ( ) 
 
 
 
     L i n e   4 2   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         4 0 :                           $ s q l   =   $ r e s u l t s - > g e t Q u e r y ( ) - > g e t S Q L ( ) ; 
 
         4 1 :   
 
   > >   4 2 :                           $ r e s u l t s   =   $ r e s u l t s - > g e t Q u e r y ( ) 
 
         4 3 :                                   - > g e t A r r a y R e s u l t ( ) ; 
 
         4 4 :   
 
 
 
     L i n e   8 7   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         8 5 :                           } 
 
         8 6 :   
 
   > >   8 7 :                           $ s q l   =   $ r e s u l t s - > g e t Q u e r y ( ) - > g e t S Q L ( ) ; 
 
         8 8 :   
 
         8 9 :                           $ r e s u l t s   =   $ r e s u l t s - > g e t Q u e r y ( ) 
 
 
 
     L i n e   8 9   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         8 7 :                           $ s q l   =   $ r e s u l t s - > g e t Q u e r y ( ) - > g e t S Q L ( ) ; 
 
         8 8 :   
 
   > >   8 9 :                           $ r e s u l t s   =   $ r e s u l t s - > g e t Q u e r y ( ) 
 
         9 0 :                                   - > g e t A r r a y R e s u l t ( ) ; 
 
         9 1 :   
 
 
 
     L i n e   1 5 6   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         1 5 4 :                                   - > s e t P a r a m e t e r ( ' e e ' ,   $ E v e n t I D ) 
 
         1 5 5 :                                   - > s e t P a r a m e t e r ( ' q c ' ,   $ C o m p a n y I D ) 
 
   > >   1 5 6 :                                   - > g e t Q u e r y ( ) 
 
         1 5 7 :                                   - > g e t A r r a y R e s u l t ( ) ; 
 
         1 5 8 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ q u e s t _ N o t i f i c a t i o n . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 6   [ m a t c h :   F R O M   ] : 
 
         2 4 :                   { 
 
         2 5 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   n 
 
   > >   2 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   n 
 
         2 7 :                                                                                                                         W H E R E   n . N o t i f i c a t i o n D a t e   < =   : n o w 
 
         2 8 :                                                                                                                             A N D   ( n . N o t i f i c a t i o n D a t e   <   : n o w   O R   n . N o t i f i c a t i o n T i m e   I S   N U L L   O R   n . N o t i f i c a t i o n T i m e   < =   : n o w ) 
 
 
 
     L i n e   4 1   [ m a t c h :   F R O M   ] : 
 
         3 9 :                   { 
 
         4 0 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   n 
 
   > >   4 1 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   n 
 
         4 2 :                                                                                                                         L E F T   J O I N   n . q u e s t _ U s e r N o t i f i c a t i o n A l e r t R e a d   u n r   W I T H   u n r . q u e s t _ U s e r   =   : q u e s t U s e r I D 
 
         4 3 :                                                                                                                         W H E R E   u n r . I D   I S   N U L L 
 
 
 
     L i n e   2 5   [ m a t c h :   S E L E C T   ] : 
 
         2 3 :                   p u b l i c   f u n c t i o n   g e t M o s t R e c e n t 5 A c t i v e N o t i f i c a t i o n s ( ) 
 
         2 4 :                   { 
 
   > >   2 5 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   n 
 
         2 6 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   n 
 
         2 7 :                                                                                                                         W H E R E   n . N o t i f i c a t i o n D a t e   < =   : n o w 
 
 
 
     L i n e   4 0   [ m a t c h :   S E L E C T   ] : 
 
         3 8 :                   p u b l i c   f u n c t i o n   g e t A l l A c t i v e N o t i f i c a t i o n s F o r Q u e s t U s e r T h a t A r e A l e r t s T h a t H a v e n t B e e n S e n t ( $ Q u e s t U s e r I D ) 
 
         3 9 :                   { 
 
   > >   4 0 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   n 
 
         4 1 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   n 
 
         4 2 :                                                                                                                         L E F T   J O I N   n . q u e s t _ U s e r N o t i f i c a t i o n A l e r t R e a d   u n r   W I T H   u n r . q u e s t _ U s e r   =   : q u e s t U s e r I D 
 
 
 
     L i n e   4 2   [ m a t c h :   L E F T   J O I N ] : 
 
         4 0 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   n 
 
         4 1 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   n 
 
   > >   4 2 :                                                                                                                         L E F T   J O I N   n . q u e s t _ U s e r N o t i f i c a t i o n A l e r t R e a d   u n r   W I T H   u n r . q u e s t _ U s e r   =   : q u e s t U s e r I D 
 
         4 3 :                                                                                                                         W H E R E   u n r . I D   I S   N U L L 
 
         4 4 :                                                                                                                             A N D   n . I s A l e r t   =   t r u e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 8   [ m a t c h :   - > s e l e c t ( ] : 
 
         2 6 :                           $ q b   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
         2 7 :   
 
   > >   2 8 :                           $ m o s t R e c e n t O r d e r D a t e   =   $ q b - > s e l e c t ( $ q b - > e x p r ( ) - > m a x ( ' q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l . O r d e r D a t e ' ) ) 
 
         2 9 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l ' ) 
 
         3 0 :                                   - > w h e r e ( ' q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l . C u s t o m e r I D   =   : C u s t o m e r I D ' ) 
 
 
 
     L i n e   4 7   [ m a t c h :   - > s e l e c t ( ] : 
 
         4 5 :                           $ q b   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
         4 6 :   
 
   > >   4 7 :                           r e t u r n   a r r a y _ c o l u m n ( $ q b - > s e l e c t ( ' q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l . O r d e r N u m b e r ' ) 
 
         4 8 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l ' ) 
 
         4 9 :                                   - > w h e r e ( ' q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l . C u s t o m e r I D   =   : C u s t o m e r I D ' ) 
 
 
 
     L i n e   3 2   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         3 0 :                                   - > w h e r e ( ' q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l . C u s t o m e r I D   =   : C u s t o m e r I D ' ) 
 
         3 1 :                                   - > s e t P a r a m e t e r ( ' C u s t o m e r I D ' ,   $ c u s t o m e r I D ) 
 
   > >   3 2 :                                   - > g e t Q u e r y ( ) 
 
         3 3 :                                   - > g e t S i n g l e S c a l a r R e s u l t ( ) ; 
 
         3 4 :   
 
 
 
     L i n e   5 3   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         5 1 :                                   - > s e t P a r a m e t e r ( ' C u s t o m e r I D ' ,   $ c u s t o m e r I D ) 
 
         5 2 :                                   - > s e t P a r a m e t e r ( ' O r d e r D a t e ' ,   $ d a t e ) 
 
   > >   5 3 :                                   - > g e t Q u e r y ( ) 
 
         5 4 :                                   - > g e t A r r a y R e s u l t ( ) ,   ' O r d e r N u m b e r ' ) ; 
 
         5 5 :                   } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ q u e s t _ U s e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :                   { 
 
         2 6 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   u ,   c 
 
   > >   2 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u 
 
         2 8 :                                                                                                                         L E F T   J O I N   u . q u e s t _ C o m p a n y   c 
 
         2 9 :                                                                                                                         I N N E R   J O I N   u . a u t h _ U s e r   a 
 
 
 
     L i n e   4 2   [ m a t c h :   F R O M   ] : 
 
         4 0 :                   { 
 
         4 1 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   u ,   c 
 
   > >   4 2 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u 
 
         4 3 :                                                                                                                         L E F T   J O I N   u . q u e s t _ C o m p a n y   c 
 
         4 4 :                                                                                                                         W H E R E   u . I D   =   : u s e r I D " ) 
 
 
 
     L i n e   5 9   [ m a t c h :   F R O M   ] : 
 
         5 7 :   
 
         5 8 :                           r e t u r n   ( $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( u ) 
 
   > >   5 9 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u 
 
         6 0 :                                                                                                                           I N N E R   J O I N   u . a u t h _ U s e r   a 
 
         6 1 :                                                                                                                           W H E R E   a . H a s B e e n D e a c t i v a t e d   =   f a l s e 
 
 
 
     L i n e   7 4   [ m a t c h :   F R O M   ] : 
 
         7 2 :                   { 
 
         7 3 :                           r e t u r n   a r r a y _ c o l u m n ( $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c . I D 
 
   > >   7 4 :                                                                                                                                                   F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u 
 
         7 5 :                                                                                                                                                   I N N E R   J O I N   u . q u e s t _ C o m p a n y   c 
 
         7 6 :                                                                                                                                                   W H E R E   u . I D   =   : u s e r I D " ) 
 
 
 
     L i n e   8 7   [ m a t c h :   F R O M   ] : 
 
         8 5 :                   { 
 
         8 6 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   u . I D ,   u . F i r s t N a m e ,   u . L a s t N a m e 
 
   > >   8 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u 
 
         8 8 :                                                                                                                         I N N E R   J O I N   u . a u t h _ U s e r   a 
 
         8 9 :                                                                                                                         W H E R E   a . H a s B e e n D e a c t i v a t e d   =   f a l s e " ) 
 
 
 
     L i n e   1 0 5   [ m a t c h :   F R O M   ] : 
 
         1 0 3 :                   { 
 
         1 0 4 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   q ,   a 
 
   > >   1 0 5 :                                                                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ U s e r   q 
 
         1 0 6 :                                                                                                                                 I N N E R   J O I N   q . a u t h _ U s e r   a 
 
         1 0 7 :                                                                                                                                 W H E R E   a . E m a i l   =   : e m a i l ' ) 
 
 
 
     L i n e   1 2 2   [ m a t c h :   F R O M   ] : 
 
         1 2 0 :                   { 
 
         1 2 1 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   q ,   a 
 
   > >   1 2 2 :                                                                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ U s e r   q 
 
         1 2 3 :                                                                                                                                 I N N E R   J O I N   q . a u t h _ U s e r   a 
 
         1 2 4 :                                                                                                                                 W H E R E   q . A P I A u t h T o k e n   =   : t o k e n 
 
 
 
     L i n e   2 6   [ m a t c h :   S E L E C T   ] : 
 
         2 4 :                   p u b l i c   f u n c t i o n   g e t Q u e s t U s e r F o r A u t h U s e r W i t h D i r e c t A s s i g n e d C o m p a n i e s ( $ A u t h U s e r I D ) 
 
         2 5 :                   { 
 
   > >   2 6 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   u ,   c 
 
         2 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u 
 
         2 8 :                                                                                                                         L E F T   J O I N   u . q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   4 1   [ m a t c h :   S E L E C T   ] : 
 
         3 9 :                   p u b l i c   f u n c t i o n   g e t Q u e s t U s e r W i t h A l l C o m p a n y I n f o r m a t i o n ( $ Q u e s t U s e r I D ) 
 
         4 0 :                   { 
 
   > >   4 1 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   u ,   c 
 
         4 2 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u 
 
         4 3 :                                                                                                                         L E F T   J O I N   u . q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   5 8   [ m a t c h :   S E L E C T   ] : 
 
         5 6 :                                   r e t u r n   f a l s e ; 
 
         5 7 :   
 
   > >   5 8 :                           r e t u r n   ( $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( u ) 
 
         5 9 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u 
 
         6 0 :                                                                                                                           I N N E R   J O I N   u . a u t h _ U s e r   a 
 
 
 
     L i n e   7 3   [ m a t c h :   S E L E C T   ] : 
 
         7 1 :                   p u b l i c   f u n c t i o n   g e t C o m p a n y I D s Q u e s t U s e r I s A s s o c i a t e d W i t h ( $ Q u e s t U s e r I D ) 
 
         7 2 :                   { 
 
   > >   7 3 :                           r e t u r n   a r r a y _ c o l u m n ( $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c . I D 
 
         7 4 :                                                                                                                                                   F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u 
 
         7 5 :                                                                                                                                                   I N N E R   J O I N   u . q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   8 6   [ m a t c h :   S E L E C T   ] : 
 
         8 4 :                   p u b l i c   f u n c t i o n   g e t A l l A c t i v e Q u e s t U s e r I n f o B y I D ( ) 
 
         8 5 :                   { 
 
   > >   8 6 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   u . I D ,   u . F i r s t N a m e ,   u . L a s t N a m e 
 
         8 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u 
 
         8 8 :                                                                                                                         I N N E R   J O I N   u . a u t h _ U s e r   a 
 
 
 
     L i n e   1 0 4   [ m a t c h :   S E L E C T   ] : 
 
         1 0 2 :                   p u b l i c   f u n c t i o n   g e t Q u e s t U s e r B y E m a i l A d d r e s s ( $ e m a i l ) 
 
         1 0 3 :                   { 
 
   > >   1 0 4 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   q ,   a 
 
         1 0 5 :                                                                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ U s e r   q 
 
         1 0 6 :                                                                                                                                 I N N E R   J O I N   q . a u t h _ U s e r   a 
 
 
 
     L i n e   1 2 1   [ m a t c h :   S E L E C T   ] : 
 
         1 1 9 :                   p u b l i c   f u n c t i o n   g e t Q u e s t U s e r B y N o n E x p i r e d B e a r e r T o k e n ( $ t o k e n ) 
 
         1 2 0 :                   { 
 
   > >   1 2 1 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   q ,   a 
 
         1 2 2 :                                                                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ U s e r   q 
 
         1 2 3 :                                                                                                                                 I N N E R   J O I N   q . a u t h _ U s e r   a 
 
 
 
     L i n e   2 9   [ m a t c h :   I N N E R   J O I N ] : 
 
         2 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u 
 
         2 8 :                                                                                                                         L E F T   J O I N   u . q u e s t _ C o m p a n y   c 
 
   > >   2 9 :                                                                                                                         I N N E R   J O I N   u . a u t h _ U s e r   a 
 
         3 0 :                                                                                                                         W H E R E   a . I D   =   : u s e r I D " ) 
 
         3 1 :                                                                                           - > s e t P a r a m e t e r ( ' u s e r I D ' ,   $ A u t h U s e r I D ) 
 
 
 
     L i n e   6 0   [ m a t c h :   I N N E R   J O I N ] : 
 
         5 8 :                           r e t u r n   ( $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( u ) 
 
         5 9 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u 
 
   > >   6 0 :                                                                                                                           I N N E R   J O I N   u . a u t h _ U s e r   a 
 
         6 1 :                                                                                                                           W H E R E   a . H a s B e e n D e a c t i v a t e d   =   f a l s e 
 
         6 2 :                                                                                                                               A N D   u . I D   =   : i d " ) 
 
 
 
     L i n e   7 5   [ m a t c h :   I N N E R   J O I N ] : 
 
         7 3 :                           r e t u r n   a r r a y _ c o l u m n ( $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c . I D 
 
         7 4 :                                                                                                                                                   F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u 
 
   > >   7 5 :                                                                                                                                                   I N N E R   J O I N   u . q u e s t _ C o m p a n y   c 
 
         7 6 :                                                                                                                                                   W H E R E   u . I D   =   : u s e r I D " ) 
 
         7 7 :                                                                                                                     - > s e t P a r a m e t e r ( ' u s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
 
 
     L i n e   8 8   [ m a t c h :   I N N E R   J O I N ] : 
 
         8 6 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   u . I D ,   u . F i r s t N a m e ,   u . L a s t N a m e 
 
         8 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u 
 
   > >   8 8 :                                                                                                                         I N N E R   J O I N   u . a u t h _ U s e r   a 
 
         8 9 :                                                                                                                         W H E R E   a . H a s B e e n D e a c t i v a t e d   =   f a l s e " ) 
 
         9 0 :                                                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   1 0 6   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 0 4 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   q ,   a 
 
         1 0 5 :                                                                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ U s e r   q 
 
   > >   1 0 6 :                                                                                                                                 I N N E R   J O I N   q . a u t h _ U s e r   a 
 
         1 0 7 :                                                                                                                                 W H E R E   a . E m a i l   =   : e m a i l ' ) 
 
         1 0 8 :                                                           - > s e t P a r a m e t e r ( ' : e m a i l ' ,   $ e m a i l ) 
 
 
 
     L i n e   1 2 3   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 2 1 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( ' S E L E C T   q ,   a 
 
         1 2 2 :                                                                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ q u e s t _ U s e r   q 
 
   > >   1 2 3 :                                                                                                                                 I N N E R   J O I N   q . a u t h _ U s e r   a 
 
         1 2 4 :                                                                                                                                 W H E R E   q . A P I A u t h T o k e n   =   : t o k e n 
 
         1 2 5 :                                                                                                                                     A N D   C U R R E N T _ T I M E S T A M P ( )   <   q . A P I A u t h T o k e n E x p i r a t i o n ' ) 
 
 
 
     L i n e   2 8   [ m a t c h :   L E F T   J O I N ] : 
 
         2 6 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   u ,   c 
 
         2 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u 
 
   > >   2 8 :                                                                                                                         L E F T   J O I N   u . q u e s t _ C o m p a n y   c 
 
         2 9 :                                                                                                                         I N N E R   J O I N   u . a u t h _ U s e r   a 
 
         3 0 :                                                                                                                         W H E R E   a . I D   =   : u s e r I D " ) 
 
 
 
     L i n e   4 3   [ m a t c h :   L E F T   J O I N ] : 
 
         4 1 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   u ,   c 
 
         4 2 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   u 
 
   > >   4 3 :                                                                                                                         L E F T   J O I N   u . q u e s t _ C o m p a n y   c 
 
         4 4 :                                                                                                                         W H E R E   u . I D   =   : u s e r I D " ) 
 
         4 5 :                                                                                           - > s e t P a r a m e t e r ( ' u s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ s h i p _ R e q u e s t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 0   [ m a t c h :   F R O M   ] : 
 
         2 8 :                   { 
 
         2 9 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
   > >   3 0 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         3 1 :                                                                                                                         L E F T   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
         3 2 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   q c 
 
 
 
     L i n e   4 9   [ m a t c h :   F R O M   ] : 
 
         4 7 :                   { 
 
         4 8 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
   > >   4 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         5 0 :                                                                                                                         L E F T   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
         5 1 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   q c 
 
 
 
     L i n e   6 9   [ m a t c h :   F R O M   ] : 
 
         6 7 :                   { 
 
         6 8 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
   > >   6 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         7 0 :                                                                                                                         L E F T   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
         7 1 :                                                                                                                         W H E R E   r . I D   =   : r e l e a s e I D 
 
 
 
     L i n e   8 4   [ m a t c h :   F R O M   ] : 
 
         8 2 :                   { 
 
         8 3 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
   > >   8 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         8 5 :                                                                                                                         L E F T   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
         8 6 :                                                                                                                         W H E R E   r . I D   =   : r e l e a s e I D " ) 
 
 
 
     L i n e   1 0 4   [ m a t c h :   F R O M   ] : 
 
         1 0 2 :                   { 
 
         1 0 3 :                           r e t u r n   ( $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( r ) 
 
   > >   1 0 4 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 0 5 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 0 6 :                                                                                                                           I N N E R   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
 
 
     L i n e   1 3 5   [ m a t c h :   F R O M   ] : 
 
         1 3 3 :                   { 
 
         1 3 4 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
   > >   1 3 5 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 3 6 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 3 7 :                                                                                                                           I N N E R   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
 
 
     L i n e   1 6 4   [ m a t c h :   F R O M   ] : 
 
         1 6 2 :                   { 
 
         1 6 3 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R e f e r e n c e N u m 
 
   > >   1 6 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 6 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         1 6 6 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   1 8 7   [ m a t c h :   F R O M   ] : 
 
         1 8 5 :                           / /   t h e   i n n e r   j o i n   t o   s h i p _ R e q u e s t D e t a i l   w i l l   e n s u r e   n o   r e q u e s t s   a r e   i n c l u d e d   h e r e   f o r   s h i p m e n t s   w i t h o u t   a n y   s e l e c t e d   i t e m s   y e t 
 
         1 8 6 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . e p i _ N a m e ,   u . E m a i l ,   C O U N T ( r d . I D )   A S   D e t a i l C o u n t 
 
   > >   1 8 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 8 8 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         1 8 9 :                                                                                                                         I N N E R   J O I N   q u . a u t h _ U s e r   u 
 
 
 
     L i n e   2 0 7   [ m a t c h :   F R O M   ] : 
 
         2 0 5 :                   { 
 
         2 0 6 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . S h i p T o C u s t o m e r ,   r . S h i p T o N u m ,   r . S h i p T o N a m e ,   r . S h i p T o A d d r e s s 1 ,   r . S h i p T o A d d r e s s 2 ,   r . S h i p T o C i t y ,   r . S h i p T o S t a t e ,   r . S h i p T o Z i p 
 
   > >   2 0 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         2 0 8 :                                                                                                                         W H E R E   r . I D   =   : i d " ) 
 
         2 0 9 :                                                                                           - > s e t P a r a m e t e r ( ' i d ' ,   $ R e q u e s t I D ) 
 
 
 
     L i n e   2 2 1   [ m a t c h :   F R O M   ] : 
 
         2 1 9 :                   { 
 
         2 2 0 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R e f e r e n c e N u m 
 
   > >   2 2 1 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         2 2 2 :                                                                                                                         W H E R E   r . I D   =   : i d " ) 
 
         2 2 3 :                                                                                           - > s e t P a r a m e t e r ( ' i d ' ,   $ R e q u e s t I D ) 
 
 
 
     L i n e   2 3 5   [ m a t c h :   F R O M   ] : 
 
         2 3 3 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   u . F i r s t N a m e ,   u . L a s t N a m e , 
 
         2 3 4 :                                                                                                                                                                       r . P l a n t ,   r . C o m p l e t e d D T 
 
   > >   2 3 5 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
         2 3 6 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 3 7 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
 
 
     L i n e   2 5 6   [ m a t c h :   F R O M   ] : 
 
         2 5 4 :                                                                                                                                                       r . C u s t o m e r R e l e a s e N u m ,   r . R e q u e s t e d P i c k u p D a t e ,   r . S p e c i a l I n s t r u c t i o n s , 
 
         2 5 5 :                                                                                                                                                       r . C o n f i r m a t i o n E m a i l R e c i p i e n t s 
 
   > >   2 5 6 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
         2 5 7 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 5 8 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
 
 
     L i n e   2 7 7   [ m a t c h :   F R O M   ] : 
 
         2 7 5 :                                                                                                                                                       r . C u s t o m e r R e l e a s e N u m ,   r . R e q u e s t e d P i c k u p D a t e ,   r . S p e c i a l I n s t r u c t i o n s , 
 
         2 7 6 :                                                                                                                                                       r . C o n f i r m a t i o n E m a i l R e c i p i e n t s 
 
   > >   2 7 7 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
         2 7 8 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 7 9 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
 
 
     L i n e   3 1 0   [ m a t c h :   F R O M   ] : 
 
         3 0 8 :                   { 
 
         3 0 9 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I s C a n c e l l e d 
 
   > >   3 1 0 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         3 1 1 :                                                                                                                         W H E R E   r . I D   =   : r e q u e s t I D " ) 
 
         3 1 2 :                                                                                           - > s e t P a r a m e t e r ( ' r e q u e s t I D ' ,   $ R e q u e s t I D ) 
 
 
 
     L i n e   3 2 4   [ m a t c h :   F R O M   ] : 
 
         3 2 2 :                   { 
 
         3 2 3 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   r . P l a n t ,   u . E m a i l ,   c . e p i _ N a m e 
 
   > >   3 2 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         3 2 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         3 2 6 :                                                                                                                         I N N E R   J O I N   q u . a u t h _ U s e r   u 
 
 
 
     L i n e   2 9   [ m a t c h :   S E L E C T   ] : 
 
         2 7 :                   p u b l i c   f u n c t i o n   g e t O p e n S h i p m e n t W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t U s e r I D ) 
 
         2 8 :                   { 
 
   > >   2 9 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
         3 0 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         3 1 :                                                                                                                         L E F T   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
 
 
     L i n e   4 8   [ m a t c h :   S E L E C T   ] : 
 
         4 6 :                   p u b l i c   f u n c t i o n   g e t S p e c i f i c R e q u e s t ( $ r e q u e s t i d ) 
 
         4 7 :                   { 
 
   > >   4 8 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
         4 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         5 0 :                                                                                                                         L E F T   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
 
 
     L i n e   6 8   [ m a t c h :   S E L E C T   ] : 
 
         6 6 :                   p u b l i c   f u n c t i o n   g e t C o m p l e t e d S h i p m e n t W i t h A l l D e t a i l L i n e s B y I D ( $ S h i p m e n t R e l e a s e I D ) 
 
         6 7 :                   { 
 
   > >   6 8 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
         6 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         7 0 :                                                                                                                         L E F T   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
 
 
     L i n e   8 3   [ m a t c h :   S E L E C T   ] : 
 
         8 1 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t W i t h A l l D e t a i l L i n e s B y I D ( $ S h i p m e n t R e l e a s e I D ) 
 
         8 2 :                   { 
 
   > >   8 3 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
         8 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         8 5 :                                                                                                                         L E F T   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
 
 
     L i n e   1 0 3   [ m a t c h :   S E L E C T   ] : 
 
         1 0 1 :                   p u b l i c   f u n c t i o n   d o e s N o n C a n c e l l e d S h i p m e n t E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) 
 
         1 0 2 :                   { 
 
   > >   1 0 3 :                           r e t u r n   ( $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( r ) 
 
         1 0 4 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 0 5 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   1 3 4   [ m a t c h :   S E L E C T   ] : 
 
         1 3 2 :                   p u b l i c   f u n c t i o n   g e t N o n C a n c e l l e d S h i p m e n t R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) 
 
         1 3 3 :                   { 
 
   > >   1 3 4 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
         1 3 5 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 3 6 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   1 6 3   [ m a t c h :   S E L E C T   ] : 
 
         1 6 1 :                   p u b l i c   f u n c t i o n   g e t S u b m i t t e d R e q u e s t R e f e r e n c e N u m B y Q u e s t U s e r A n d E p i c o r C u s t I D ( $ S h i p m e n t I D ,   $ Q u e s t U s e r I D ,   $ E p i c o r C u s t I D ) 
 
         1 6 2 :                   { 
 
   > >   1 6 3 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R e f e r e n c e N u m 
 
         1 6 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 6 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
 
 
     L i n e   1 8 6   [ m a t c h :   S E L E C T   ] : 
 
         1 8 4 :   
 
         1 8 5 :                           / /   t h e   i n n e r   j o i n   t o   s h i p _ R e q u e s t D e t a i l   w i l l   e n s u r e   n o   r e q u e s t s   a r e   i n c l u d e d   h e r e   f o r   s h i p m e n t s   w i t h o u t   a n y   s e l e c t e d   i t e m s   y e t 
 
   > >   1 8 6 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . e p i _ N a m e ,   u . E m a i l ,   C O U N T ( r d . I D )   A S   D e t a i l C o u n t 
 
         1 8 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 8 8 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
 
 
     L i n e   2 0 6   [ m a t c h :   S E L E C T   ] : 
 
         2 0 4 :                   p u b l i c   f u n c t i o n   g e t S h i p T o A d d r e s s I n f o F o r R e q u e s t ( $ R e q u e s t I D ) 
 
         2 0 5 :                   { 
 
   > >   2 0 6 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . S h i p T o C u s t o m e r ,   r . S h i p T o N u m ,   r . S h i p T o N a m e ,   r . S h i p T o A d d r e s s 1 ,   r . S h i p T o A d d r e s s 2 ,   r . S h i p T o C i t y ,   r . S h i p T o S t a t e ,   r . S h i p T o Z i p 
 
         2 0 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         2 0 8 :                                                                                                                         W H E R E   r . I D   =   : i d " ) 
 
 
 
     L i n e   2 2 0   [ m a t c h :   S E L E C T   ] : 
 
         2 1 8 :                   p u b l i c   f u n c t i o n   g e t R e f e r e n c e N u m b e r F o r R e q u e s t ( $ R e q u e s t I D ) 
 
         2 1 9 :                   { 
 
   > >   2 2 0 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R e f e r e n c e N u m 
 
         2 2 1 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         2 2 2 :                                                                                                                         W H E R E   r . I D   =   : i d " ) 
 
 
 
     L i n e   2 3 3   [ m a t c h :   S E L E C T   ] : 
 
         2 3 1 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D a t a ( $ e p i c o r C u s t I D ) 
 
         2 3 2 :                   { 
 
   > >   2 3 3 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   u . F i r s t N a m e ,   u . L a s t N a m e , 
 
         2 3 4 :                                                                                                                                                                       r . P l a n t ,   r . C o m p l e t e d D T 
 
         2 3 5 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
 
 
     L i n e   2 5 1   [ m a t c h :   S E L E C T   ] : 
 
         2 4 9 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D e t a i l s D a t a ( $ e p i c o r C u s t I D ) 
 
         2 5 0 :                   { 
 
   > >   2 5 1 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   r . S h i p T o N a m e ,   r . S h i p T o A d d r e s s 1 , 
 
         2 5 2 :                                                                                                                                                       r . S h i p T o A d d r e s s 2 ,   r . S h i p T o C i t y ,   r . S h i p T o S t a t e ,   r . S h i p T o Z i p ,   u . F i r s t N a m e , 
 
         2 5 3 :                                                                                                                                                       u . L a s t N a m e ,   r . P l a n t ,   r . C o m p l e t e d D T ,   r . C u s t o m e r O r d e r N u m ,   r . C u s t o m e r P O N u m , 
 
 
 
     L i n e   2 7 2   [ m a t c h :   S E L E C T   ] : 
 
         2 7 0 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D e t a i l s D a t a B y I D ( $ e p i c o r C u s t I D ,   $ i d ) 
 
         2 7 1 :                   { 
 
   > >   2 7 2 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   r . S h i p T o N a m e ,   r . S h i p T o A d d r e s s 1 , 
 
         2 7 3 :                                                                                                                                                       r . S h i p T o A d d r e s s 2 ,   r . S h i p T o C i t y ,   r . S h i p T o S t a t e ,   r . S h i p T o Z i p ,   u . F i r s t N a m e , 
 
         2 7 4 :                                                                                                                                                       u . L a s t N a m e ,   r . P l a n t ,   r . C o m p l e t e d D T ,   r . C u s t o m e r O r d e r N u m ,   r . C u s t o m e r P O N u m , 
 
 
 
     L i n e   3 0 9   [ m a t c h :   S E L E C T   ] : 
 
         3 0 7 :                   p u b l i c   f u n c t i o n   i s S h i p m e n t R e l e a s e C a n c e l l e d ( $ R e q u e s t I D ) 
 
         3 0 8 :                   { 
 
   > >   3 0 9 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I s C a n c e l l e d 
 
         3 1 0 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         3 1 1 :                                                                                                                         W H E R E   r . I D   =   : r e q u e s t I D " ) 
 
 
 
     L i n e   3 2 3   [ m a t c h :   S E L E C T   ] : 
 
         3 2 1 :                   p u b l i c   f u n c t i o n   g e t R e l e a s e I n f o F o r C a n c e l l a t i o n E m a i l s ( $ R e q u e s t I D ) 
 
         3 2 2 :                   { 
 
   > >   3 2 3 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   r . P l a n t ,   u . E m a i l ,   c . e p i _ N a m e 
 
         3 2 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         3 2 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
 
 
     L i n e   3 2   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 0 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         3 1 :                                                                                                                         L E F T   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
   > >   3 2 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   q c 
 
         3 3 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         3 4 :                                                                                                                         W H E R E   q c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
 
 
     L i n e   3 3   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 1 :                                                                                                                         L E F T   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
         3 2 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   q c 
 
   > >   3 3 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         3 4 :                                                                                                                         W H E R E   q c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         3 5 :                                                                                                                             A N D   q u . I D   =   : q u e s t U s e r I D 
 
 
 
     L i n e   5 1   [ m a t c h :   I N N E R   J O I N ] : 
 
         4 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         5 0 :                                                                                                                         L E F T   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
   > >   5 1 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   q c 
 
         5 2 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         5 3 :                                                                                                                         W H E R E   r . I D   =   : I D 
 
 
 
     L i n e   5 2   [ m a t c h :   I N N E R   J O I N ] : 
 
         5 0 :                                                                                                                         L E F T   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
         5 1 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   q c 
 
   > >   5 2 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         5 3 :                                                                                                                         W H E R E   r . I D   =   : I D 
 
         5 4 :                                                                                                                             " ) 
 
 
 
     L i n e   1 0 5   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 0 3 :                           r e t u r n   ( $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( r ) 
 
         1 0 4 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
   > >   1 0 5 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 0 6 :                                                                                                                           I N N E R   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
         1 0 7 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
 
 
     L i n e   1 0 6   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 0 4 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 0 5 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
   > >   1 0 6 :                                                                                                                           I N N E R   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
         1 0 7 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         1 0 8 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
 
 
     L i n e   1 3 6   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 3 4 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
         1 3 5 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
   > >   1 3 6 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 3 7 :                                                                                                                           I N N E R   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
         1 3 8 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
 
 
     L i n e   1 3 7   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 3 5 :                                                                                                                           F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 3 6 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
   > >   1 3 7 :                                                                                                                           I N N E R   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
         1 3 8 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         1 3 9 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
 
 
     L i n e   1 6 5   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 6 3 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R e f e r e n c e N u m 
 
         1 6 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
   > >   1 6 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         1 6 6 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 6 7 :                                                                                                                         W H E R E   r . I D   =   : s h i p m e n t I D 
 
 
 
     L i n e   1 6 6   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 6 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 6 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
   > >   1 6 6 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 6 7 :                                                                                                                         W H E R E   r . I D   =   : s h i p m e n t I D 
 
         1 6 8 :                                                                                                                             A N D   q u . I D   =   : q u e s t U s e r I D 
 
 
 
     L i n e   1 8 5   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 8 3 :                           $ T h r e s h o l d H o u r s A g o   =   ( n e w   \ D a t e T i m e ( ) ) - > s u b ( n e w   \ D a t e I n t e r v a l ( ' P T ' . $ N a g T h r e s h o l d H o u r s . ' H ' ) ) ; 
 
         1 8 4 :   
 
   > >   1 8 5 :                           / /   t h e   i n n e r   j o i n   t o   s h i p _ R e q u e s t D e t a i l   w i l l   e n s u r e   n o   r e q u e s t s   a r e   i n c l u d e d   h e r e   f o r   s h i p m e n t s   w i t h o u t   a n y   s e l e c t e d   i t e m s   y e t 
 
         1 8 6 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . e p i _ N a m e ,   u . E m a i l ,   C O U N T ( r d . I D )   A S   D e t a i l C o u n t 
 
         1 8 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
 
 
     L i n e   1 8 8   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 8 6 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . e p i _ N a m e ,   u . E m a i l ,   C O U N T ( r d . I D )   A S   D e t a i l C o u n t 
 
         1 8 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
   > >   1 8 8 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         1 8 9 :                                                                                                                         I N N E R   J O I N   q u . a u t h _ U s e r   u 
 
         1 9 0 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   1 8 9   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 8 7 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         1 8 8 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
   > >   1 8 9 :                                                                                                                         I N N E R   J O I N   q u . a u t h _ U s e r   u 
 
         1 9 0 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 9 1 :                                                                                                                         I N N E R   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
 
 
     L i n e   1 9 0   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 8 8 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         1 8 9 :                                                                                                                         I N N E R   J O I N   q u . a u t h _ U s e r   u 
 
   > >   1 9 0 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 9 1 :                                                                                                                         I N N E R   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
         1 9 2 :                                                                                                                         W H E R E   r . I s S u b m i t t e d   =   f a l s e 
 
 
 
     L i n e   1 9 1   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 8 9 :                                                                                                                         I N N E R   J O I N   q u . a u t h _ U s e r   u 
 
         1 9 0 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
   > >   1 9 1 :                                                                                                                         I N N E R   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
         1 9 2 :                                                                                                                         W H E R E   r . I s S u b m i t t e d   =   f a l s e 
 
         1 9 3 :                                                                                                                             A N D   ( ( ( r . L a s t N a g D T   I S   N U L L   O R   r . L a s t C a r t A c t i v i t y   >   r . L a s t N a g D T )   A N D   r . L a s t C a r t A c t i v i t y   < =   : t h r e s h o l d ) 
 
 
 
     L i n e   3 2 5   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 2 3 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   r . P l a n t ,   u . E m a i l ,   c . e p i _ N a m e 
 
         3 2 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
   > >   3 2 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         3 2 6 :                                                                                                                         I N N E R   J O I N   q u . a u t h _ U s e r   u 
 
         3 2 7 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   3 2 6   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 2 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
         3 2 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
   > >   3 2 6 :                                                                                                                         I N N E R   J O I N   q u . a u t h _ U s e r   u 
 
         3 2 7 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         3 2 8 :                                                                                                                         W H E R E   r . I D   =   : r e q u e s t I D " ) 
 
 
 
     L i n e   3 2 7   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 2 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
         3 2 6 :                                                                                                                         I N N E R   J O I N   q u . a u t h _ U s e r   u 
 
   > >   3 2 7 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         3 2 8 :                                                                                                                         W H E R E   r . I D   =   : r e q u e s t I D " ) 
 
         3 2 9 :                                                                                           - > s e t P a r a m e t e r ( ' r e q u e s t I D ' ,   $ R e q u e s t I D ) 
 
 
 
     L i n e   3 1   [ m a t c h :   L E F T   J O I N ] : 
 
         2 9 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
         3 0 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
   > >   3 1 :                                                                                                                         L E F T   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
         3 2 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   q c 
 
         3 3 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
 
 
     L i n e   5 0   [ m a t c h :   L E F T   J O I N ] : 
 
         4 8 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
         4 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
   > >   5 0 :                                                                                                                         L E F T   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
         5 1 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   q c 
 
         5 2 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
 
 
     L i n e   7 0   [ m a t c h :   L E F T   J O I N ] : 
 
         6 8 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
         6 9 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
   > >   7 0 :                                                                                                                         L E F T   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
         7 1 :                                                                                                                         W H E R E   r . I D   =   : r e l e a s e I D 
 
         7 2 :                                                                                                                             A N D   r . I s S u b m i t t e d   =   t r u e " ) 
 
 
 
     L i n e   8 5   [ m a t c h :   L E F T   J O I N ] : 
 
         8 3 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
         8 4 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r 
 
   > >   8 5 :                                                                                                                         L E F T   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
         8 6 :                                                                                                                         W H E R E   r . I D   =   : r e l e a s e I D " ) 
 
         8 7 :                                   - > s e t P a r a m e t e r ( ' r e l e a s e I D ' ,   $ S h i p m e n t R e l e a s e I D ) 
 
 
 
     L i n e   2 3 6   [ m a t c h :   L E F T   J O I N ] : 
 
         2 3 4 :                                                                                                                                                                       r . P l a n t ,   r . C o m p l e t e d D T 
 
         2 3 5 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
   > >   2 3 6 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 3 7 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 3 8 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D   A N D   r . I s S u b m i t t e d   =   t r u e   " ) 
 
 
 
     L i n e   2 3 7   [ m a t c h :   L E F T   J O I N ] : 
 
         2 3 5 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
         2 3 6 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
   > >   2 3 7 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 3 8 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D   A N D   r . I s S u b m i t t e d   =   t r u e   " ) 
 
         2 3 9 :                                                           - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
 
 
     L i n e   2 5 7   [ m a t c h :   L E F T   J O I N ] : 
 
         2 5 5 :                                                                                                                                                       r . C o n f i r m a t i o n E m a i l R e c i p i e n t s 
 
         2 5 6 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
   > >   2 5 7 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 5 8 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 5 9 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
 
 
     L i n e   2 5 8   [ m a t c h :   L E F T   J O I N ] : 
 
         2 5 6 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
         2 5 7 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
   > >   2 5 8 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 5 9 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
         2 6 0 :                                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
 
 
     L i n e   2 7 8   [ m a t c h :   L E F T   J O I N ] : 
 
         2 7 6 :                                                                                                                                                       r . C o n f i r m a t i o n E m a i l R e c i p i e n t s 
 
         2 7 7 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
   > >   2 7 8 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 7 9 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 8 0 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
 
 
     L i n e   2 7 9   [ m a t c h :   L E F T   J O I N ] : 
 
         2 7 7 :                                                                                                                                           F R O M   "   .   $ t h i s - > g e t E n t i t y N a m e ( )   . "   r 
 
         2 7 8 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
   > >   2 7 9 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 8 0 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         2 8 1 :                                                                                                                                           A N D   r . I D   =   : i d " ) 
 
 
 
     L i n e   2 2   [ m a t c h :   e p i c o r ] : 
 
         2 0 :   
 
         2 1 :                   / * * 
 
   > >   2 2 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         2 3 :                     *   @ p a r a m   i n t   $ Q u e s t U s e r I D 
 
         2 4 :                     *   @ t h r o w s   N o n U n i q u e R e s u l t E x c e p t i o n 
 
 
 
     L i n e   2 7   [ m a t c h :   e p i c o r ] : 
 
         2 5 :                     *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ s h i p _ R e q u e s t | n u l l 
 
         2 6 :                     * / 
 
   > >   2 7 :                   p u b l i c   f u n c t i o n   g e t O p e n S h i p m e n t W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t U s e r I D ) 
 
         2 8 :                   { 
 
         2 9 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
 
 
     L i n e   3 4   [ m a t c h :   e p i c o r ] : 
 
         3 2 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   q c 
 
         3 3 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
   > >   3 4 :                                                                                                                         W H E R E   q c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         3 5 :                                                                                                                             A N D   q u . I D   =   : q u e s t U s e r I D 
 
         3 6 :                                                                                                                             A N D   r . I s S u b m i t t e d   =   f a l s e 
 
 
 
     L i n e   3 9   [ m a t c h :   e p i c o r ] : 
 
         3 7 :                                                                                                                             A N D   r . I s C a n c e l l e d   < >   t r u e 
 
         3 8 :                                                                                                                             " ) 
 
   > >   3 9 :                                                                                         - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         4 0 :                                                                                         - > s e t P a r a m e t e r ( ' q u e s t U s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
         4 1 :                                                                                         - > g e t O n e O r N u l l R e s u l t ( ) ; 
 
 
 
     L i n e   9 3   [ m a t c h :   e p i c o r ] : 
 
         9 1 :   
 
         9 2 :                   / * * 
 
   > >   9 3 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         9 4 :                     *   @ p a r a m   s t r i n g   $ P l a n t 
 
         9 5 :                     *   @ p a r a m   s t r i n g   $ P a r t N u m 
 
 
 
     L i n e   1 0 1   [ m a t c h :   e p i c o r ] : 
 
         9 9 :                     *   @ r e t u r n   b o o l 
 
         1 0 0 :                     * / 
 
   > >   1 0 1 :                   p u b l i c   f u n c t i o n   d o e s N o n C a n c e l l e d S h i p m e n t E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) 
 
         1 0 2 :                   { 
 
         1 0 3 :                           r e t u r n   ( $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( r ) 
 
 
 
     L i n e   1 0 7   [ m a t c h :   e p i c o r ] : 
 
         1 0 5 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 0 6 :                                                                                                                           I N N E R   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
   > >   1 0 7 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         1 0 8 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
         1 0 9 :                                                                                                                               A N D   r d . P a r t   =   : p a r t 
 
 
 
     L i n e   1 1 4   [ m a t c h :   e p i c o r ] : 
 
         1 1 2 :                                                                                                                               A N D   r d . O n H a n d Q u a n t i t y   =   : o n H a n d Q t y 
 
         1 1 3 :                                                                                                                               A N D   r . I s C a n c e l l e d   =   f a l s e " ) 
 
   > >   1 1 4 :                                                                                             - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         1 1 5 :                                                                                             - > s e t P a r a m e t e r ( ' p l a n t ' ,   $ P l a n t ) 
 
         1 1 6 :                                                                                             - > s e t P a r a m e t e r ( ' p a r t ' ,   $ P a r t N u m ) 
 
 
 
     L i n e   1 2 4   [ m a t c h :   e p i c o r ] : 
 
         1 2 2 :   
 
         1 2 3 :                   / * * 
 
   > >   1 2 4 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         1 2 5 :                     *   @ p a r a m   s t r i n g   $ P l a n t 
 
         1 2 6 :                     *   @ p a r a m   s t r i n g   $ P a r t N u m 
 
 
 
     L i n e   1 3 2   [ m a t c h :   e p i c o r ] : 
 
         1 3 0 :                     *   @ r e t u r n   i n t 
 
         1 3 1 :                     * / 
 
   > >   1 3 2 :                   p u b l i c   f u n c t i o n   g e t N o n C a n c e l l e d S h i p m e n t R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) 
 
         1 3 3 :                   { 
 
         1 3 4 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
 
 
     L i n e   1 3 8   [ m a t c h :   e p i c o r ] : 
 
         1 3 6 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 3 7 :                                                                                                                           I N N E R   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
   > >   1 3 8 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         1 3 9 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
         1 4 0 :                                                                                                                               A N D   r d . P a r t   =   : p a r t 
 
 
 
     L i n e   1 4 5   [ m a t c h :   e p i c o r ] : 
 
         1 4 3 :                                                                                                                               A N D   r d . O n H a n d Q u a n t i t y   =   : o n H a n d Q t y 
 
         1 4 4 :                                                                                                                               A N D   r . I s C a n c e l l e d   =   f a l s e " ) 
 
   > >   1 4 5 :                                   - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         1 4 6 :                                   - > s e t P a r a m e t e r ( ' p l a n t ' ,   $ P l a n t ) 
 
         1 4 7 :                                   - > s e t P a r a m e t e r ( ' p a r t ' ,   $ P a r t N u m ) 
 
 
 
     L i n e   1 5 8   [ m a t c h :   e p i c o r ] : 
 
         1 5 6 :                     *   @ p a r a m   i n t   $ S h i p m e n t I D 
 
         1 5 7 :                     *   @ p a r a m   i n t   $ Q u e s t U s e r I D 
 
   > >   1 5 8 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         1 5 9 :                     *   @ r e t u r n   i n t | n u l l 
 
         1 6 0 :                     * / 
 
 
 
     L i n e   1 6 1   [ m a t c h :   e p i c o r ] : 
 
         1 5 9 :                     *   @ r e t u r n   i n t | n u l l 
 
         1 6 0 :                     * / 
 
   > >   1 6 1 :                   p u b l i c   f u n c t i o n   g e t S u b m i t t e d R e q u e s t R e f e r e n c e N u m B y Q u e s t U s e r A n d E p i c o r C u s t I D ( $ S h i p m e n t I D ,   $ Q u e s t U s e r I D ,   $ E p i c o r C u s t I D ) 
 
         1 6 2 :                   { 
 
         1 6 3 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R e f e r e n c e N u m 
 
 
 
     L i n e   1 7 0   [ m a t c h :   e p i c o r ] : 
 
         1 6 8 :                                                                                                                             A N D   q u . I D   =   : q u e s t U s e r I D 
 
         1 6 9 :                                                                                                                             A N D   r . I s S u b m i t t e d   =   t r u e 
 
   > >   1 7 0 :                                                                                                                             A N D   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
         1 7 1 :                                                                                           - > s e t P a r a m e t e r ( ' s h i p m e n t I D ' ,   $ S h i p m e n t I D ) 
 
         1 7 2 :                                                                                           - > s e t P a r a m e t e r ( ' q u e s t U s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
 
 
     L i n e   1 7 3   [ m a t c h :   e p i c o r ] : 
 
         1 7 1 :                                                                                           - > s e t P a r a m e t e r ( ' s h i p m e n t I D ' ,   $ S h i p m e n t I D ) 
 
         1 7 2 :                                                                                           - > s e t P a r a m e t e r ( ' q u e s t U s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
   > >   1 7 3 :                                                                                           - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         1 7 4 :                                                                                           - > g e t O n e O r N u l l R e s u l t ( Q u e r y : : H Y D R A T E _ S I N G L E _ S C A L A R ) ; 
 
         1 7 5 :                   } 
 
 
 
     L i n e   2 2 8   [ m a t c h :   e p i c o r ] : 
 
         2 2 6 :   
 
         2 2 7 :                   / * * 
 
   > >   2 2 8 :                     *   @ p a r a m   $ e p i c o r C u s t I D 
 
         2 2 9 :                     *   @ r e t u r n   a r r a y 
 
         2 3 0 :                     * / 
 
 
 
     L i n e   2 3 1   [ m a t c h :   e p i c o r ] : 
 
         2 2 9 :                     *   @ r e t u r n   a r r a y 
 
         2 3 0 :                     * / 
 
   > >   2 3 1 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D a t a ( $ e p i c o r C u s t I D ) 
 
         2 3 2 :                   { 
 
         2 3 3 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   u . F i r s t N a m e ,   u . L a s t N a m e , 
 
 
 
     L i n e   2 3 8   [ m a t c h :   e p i c o r ] : 
 
         2 3 6 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 3 7 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
   > >   2 3 8 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D   A N D   r . I s S u b m i t t e d   =   t r u e   " ) 
 
         2 3 9 :                                                           - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 4 0 :                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   2 3 9   [ m a t c h :   e p i c o r ] : 
 
         2 3 7 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 3 8 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D   A N D   r . I s S u b m i t t e d   =   t r u e   " ) 
 
   > >   2 3 9 :                                                           - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 4 0 :                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
         2 4 1 :   
 
 
 
     L i n e   2 4 6   [ m a t c h :   e p i c o r ] : 
 
         2 4 4 :   
 
         2 4 5 :                   / * * 
 
   > >   2 4 6 :                     *   @ p a r a m   $ e p i c o r C u s t I D 
 
         2 4 7 :                     *   @ r e t u r n   a r r a y 
 
         2 4 8 :                     * / 
 
 
 
     L i n e   2 4 9   [ m a t c h :   e p i c o r ] : 
 
         2 4 7 :                     *   @ r e t u r n   a r r a y 
 
         2 4 8 :                     * / 
 
   > >   2 4 9 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D e t a i l s D a t a ( $ e p i c o r C u s t I D ) 
 
         2 5 0 :                   { 
 
         2 5 1 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   r . S h i p T o N a m e ,   r . S h i p T o A d d r e s s 1 , 
 
 
 
     L i n e   2 5 9   [ m a t c h :   e p i c o r ] : 
 
         2 5 7 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 5 8 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
   > >   2 5 9 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
         2 6 0 :                                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 6 1 :                                                   - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   2 6 0   [ m a t c h :   e p i c o r ] : 
 
         2 5 8 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 5 9 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
   > >   2 6 0 :                                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 6 1 :                                                   - > g e t A r r a y R e s u l t ( ) ; 
 
         2 6 2 :   
 
 
 
     L i n e   2 6 7   [ m a t c h :   e p i c o r ] : 
 
         2 6 5 :   
 
         2 6 6 :                   / * * 
 
   > >   2 6 7 :                     *   @ p a r a m   $ e p i c o r C u s t I D 
 
         2 6 8 :                     *   @ r e t u r n   a r r a y 
 
         2 6 9 :                     * / 
 
 
 
     L i n e   2 7 0   [ m a t c h :   e p i c o r ] : 
 
         2 6 8 :                     *   @ r e t u r n   a r r a y 
 
         2 6 9 :                     * / 
 
   > >   2 7 0 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D e t a i l s D a t a B y I D ( $ e p i c o r C u s t I D ,   $ i d ) 
 
         2 7 1 :                   { 
 
         2 7 2 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   r . S h i p T o N a m e ,   r . S h i p T o A d d r e s s 1 , 
 
 
 
     L i n e   2 8 0   [ m a t c h :   e p i c o r ] : 
 
         2 7 8 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 7 9 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
   > >   2 8 0 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         2 8 1 :                                                                                                                                           A N D   r . I D   =   : i d " ) 
 
         2 8 2 :                                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
 
 
     L i n e   2 8 2   [ m a t c h :   e p i c o r ] : 
 
         2 8 0 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         2 8 1 :                                                                                                                                           A N D   r . I D   =   : i d " ) 
 
   > >   2 8 2 :                                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 8 3 :                                                   - > s e t P a r a m e t e r ( " : i d " ,   $ i d ) 
 
         2 8 4 :                                                   - > g e t O n e O r N u l l R e s u l t ( ) ; 
 
 
 
     L i n e   2 2   [ m a t c h :   E p i c o r ] : 
 
         2 0 :   
 
         2 1 :                   / * * 
 
   > >   2 2 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         2 3 :                     *   @ p a r a m   i n t   $ Q u e s t U s e r I D 
 
         2 4 :                     *   @ t h r o w s   N o n U n i q u e R e s u l t E x c e p t i o n 
 
 
 
     L i n e   2 7   [ m a t c h :   E p i c o r ] : 
 
         2 5 :                     *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ s h i p _ R e q u e s t | n u l l 
 
         2 6 :                     * / 
 
   > >   2 7 :                   p u b l i c   f u n c t i o n   g e t O p e n S h i p m e n t W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t U s e r I D ) 
 
         2 8 :                   { 
 
         2 9 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
 
 
     L i n e   3 4   [ m a t c h :   E p i c o r ] : 
 
         3 2 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   q c 
 
         3 3 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
   > >   3 4 :                                                                                                                         W H E R E   q c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         3 5 :                                                                                                                             A N D   q u . I D   =   : q u e s t U s e r I D 
 
         3 6 :                                                                                                                             A N D   r . I s S u b m i t t e d   =   f a l s e 
 
 
 
     L i n e   3 9   [ m a t c h :   E p i c o r ] : 
 
         3 7 :                                                                                                                             A N D   r . I s C a n c e l l e d   < >   t r u e 
 
         3 8 :                                                                                                                             " ) 
 
   > >   3 9 :                                                                                         - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         4 0 :                                                                                         - > s e t P a r a m e t e r ( ' q u e s t U s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
         4 1 :                                                                                         - > g e t O n e O r N u l l R e s u l t ( ) ; 
 
 
 
     L i n e   9 3   [ m a t c h :   E p i c o r ] : 
 
         9 1 :   
 
         9 2 :                   / * * 
 
   > >   9 3 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         9 4 :                     *   @ p a r a m   s t r i n g   $ P l a n t 
 
         9 5 :                     *   @ p a r a m   s t r i n g   $ P a r t N u m 
 
 
 
     L i n e   1 0 1   [ m a t c h :   E p i c o r ] : 
 
         9 9 :                     *   @ r e t u r n   b o o l 
 
         1 0 0 :                     * / 
 
   > >   1 0 1 :                   p u b l i c   f u n c t i o n   d o e s N o n C a n c e l l e d S h i p m e n t E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) 
 
         1 0 2 :                   { 
 
         1 0 3 :                           r e t u r n   ( $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( r ) 
 
 
 
     L i n e   1 0 7   [ m a t c h :   E p i c o r ] : 
 
         1 0 5 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 0 6 :                                                                                                                           I N N E R   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
   > >   1 0 7 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         1 0 8 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
         1 0 9 :                                                                                                                               A N D   r d . P a r t   =   : p a r t 
 
 
 
     L i n e   1 1 4   [ m a t c h :   E p i c o r ] : 
 
         1 1 2 :                                                                                                                               A N D   r d . O n H a n d Q u a n t i t y   =   : o n H a n d Q t y 
 
         1 1 3 :                                                                                                                               A N D   r . I s C a n c e l l e d   =   f a l s e " ) 
 
   > >   1 1 4 :                                                                                             - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         1 1 5 :                                                                                             - > s e t P a r a m e t e r ( ' p l a n t ' ,   $ P l a n t ) 
 
         1 1 6 :                                                                                             - > s e t P a r a m e t e r ( ' p a r t ' ,   $ P a r t N u m ) 
 
 
 
     L i n e   1 2 4   [ m a t c h :   E p i c o r ] : 
 
         1 2 2 :   
 
         1 2 3 :                   / * * 
 
   > >   1 2 4 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         1 2 5 :                     *   @ p a r a m   s t r i n g   $ P l a n t 
 
         1 2 6 :                     *   @ p a r a m   s t r i n g   $ P a r t N u m 
 
 
 
     L i n e   1 3 2   [ m a t c h :   E p i c o r ] : 
 
         1 3 0 :                     *   @ r e t u r n   i n t 
 
         1 3 1 :                     * / 
 
   > >   1 3 2 :                   p u b l i c   f u n c t i o n   g e t N o n C a n c e l l e d S h i p m e n t R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) 
 
         1 3 3 :                   { 
 
         1 3 4 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
 
 
     L i n e   1 3 8   [ m a t c h :   E p i c o r ] : 
 
         1 3 6 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 3 7 :                                                                                                                           I N N E R   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
   > >   1 3 8 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         1 3 9 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
         1 4 0 :                                                                                                                               A N D   r d . P a r t   =   : p a r t 
 
 
 
     L i n e   1 4 5   [ m a t c h :   E p i c o r ] : 
 
         1 4 3 :                                                                                                                               A N D   r d . O n H a n d Q u a n t i t y   =   : o n H a n d Q t y 
 
         1 4 4 :                                                                                                                               A N D   r . I s C a n c e l l e d   =   f a l s e " ) 
 
   > >   1 4 5 :                                   - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         1 4 6 :                                   - > s e t P a r a m e t e r ( ' p l a n t ' ,   $ P l a n t ) 
 
         1 4 7 :                                   - > s e t P a r a m e t e r ( ' p a r t ' ,   $ P a r t N u m ) 
 
 
 
     L i n e   1 5 8   [ m a t c h :   E p i c o r ] : 
 
         1 5 6 :                     *   @ p a r a m   i n t   $ S h i p m e n t I D 
 
         1 5 7 :                     *   @ p a r a m   i n t   $ Q u e s t U s e r I D 
 
   > >   1 5 8 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         1 5 9 :                     *   @ r e t u r n   i n t | n u l l 
 
         1 6 0 :                     * / 
 
 
 
     L i n e   1 6 1   [ m a t c h :   E p i c o r ] : 
 
         1 5 9 :                     *   @ r e t u r n   i n t | n u l l 
 
         1 6 0 :                     * / 
 
   > >   1 6 1 :                   p u b l i c   f u n c t i o n   g e t S u b m i t t e d R e q u e s t R e f e r e n c e N u m B y Q u e s t U s e r A n d E p i c o r C u s t I D ( $ S h i p m e n t I D ,   $ Q u e s t U s e r I D ,   $ E p i c o r C u s t I D ) 
 
         1 6 2 :                   { 
 
         1 6 3 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R e f e r e n c e N u m 
 
 
 
     L i n e   1 7 0   [ m a t c h :   E p i c o r ] : 
 
         1 6 8 :                                                                                                                             A N D   q u . I D   =   : q u e s t U s e r I D 
 
         1 6 9 :                                                                                                                             A N D   r . I s S u b m i t t e d   =   t r u e 
 
   > >   1 7 0 :                                                                                                                             A N D   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
         1 7 1 :                                                                                           - > s e t P a r a m e t e r ( ' s h i p m e n t I D ' ,   $ S h i p m e n t I D ) 
 
         1 7 2 :                                                                                           - > s e t P a r a m e t e r ( ' q u e s t U s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
 
 
     L i n e   1 7 3   [ m a t c h :   E p i c o r ] : 
 
         1 7 1 :                                                                                           - > s e t P a r a m e t e r ( ' s h i p m e n t I D ' ,   $ S h i p m e n t I D ) 
 
         1 7 2 :                                                                                           - > s e t P a r a m e t e r ( ' q u e s t U s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
   > >   1 7 3 :                                                                                           - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         1 7 4 :                                                                                           - > g e t O n e O r N u l l R e s u l t ( Q u e r y : : H Y D R A T E _ S I N G L E _ S C A L A R ) ; 
 
         1 7 5 :                   } 
 
 
 
     L i n e   2 2 8   [ m a t c h :   E p i c o r ] : 
 
         2 2 6 :   
 
         2 2 7 :                   / * * 
 
   > >   2 2 8 :                     *   @ p a r a m   $ e p i c o r C u s t I D 
 
         2 2 9 :                     *   @ r e t u r n   a r r a y 
 
         2 3 0 :                     * / 
 
 
 
     L i n e   2 3 1   [ m a t c h :   E p i c o r ] : 
 
         2 2 9 :                     *   @ r e t u r n   a r r a y 
 
         2 3 0 :                     * / 
 
   > >   2 3 1 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D a t a ( $ e p i c o r C u s t I D ) 
 
         2 3 2 :                   { 
 
         2 3 3 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   u . F i r s t N a m e ,   u . L a s t N a m e , 
 
 
 
     L i n e   2 3 8   [ m a t c h :   E p i c o r ] : 
 
         2 3 6 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 3 7 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
   > >   2 3 8 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D   A N D   r . I s S u b m i t t e d   =   t r u e   " ) 
 
         2 3 9 :                                                           - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 4 0 :                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   2 3 9   [ m a t c h :   E p i c o r ] : 
 
         2 3 7 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 3 8 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D   A N D   r . I s S u b m i t t e d   =   t r u e   " ) 
 
   > >   2 3 9 :                                                           - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 4 0 :                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
         2 4 1 :   
 
 
 
     L i n e   2 4 6   [ m a t c h :   E p i c o r ] : 
 
         2 4 4 :   
 
         2 4 5 :                   / * * 
 
   > >   2 4 6 :                     *   @ p a r a m   $ e p i c o r C u s t I D 
 
         2 4 7 :                     *   @ r e t u r n   a r r a y 
 
         2 4 8 :                     * / 
 
 
 
     L i n e   2 4 9   [ m a t c h :   E p i c o r ] : 
 
         2 4 7 :                     *   @ r e t u r n   a r r a y 
 
         2 4 8 :                     * / 
 
   > >   2 4 9 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D e t a i l s D a t a ( $ e p i c o r C u s t I D ) 
 
         2 5 0 :                   { 
 
         2 5 1 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   r . S h i p T o N a m e ,   r . S h i p T o A d d r e s s 1 , 
 
 
 
     L i n e   2 5 9   [ m a t c h :   E p i c o r ] : 
 
         2 5 7 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 5 8 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
   > >   2 5 9 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
         2 6 0 :                                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 6 1 :                                                   - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   2 6 0   [ m a t c h :   E p i c o r ] : 
 
         2 5 8 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 5 9 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
   > >   2 6 0 :                                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 6 1 :                                                   - > g e t A r r a y R e s u l t ( ) ; 
 
         2 6 2 :   
 
 
 
     L i n e   2 6 7   [ m a t c h :   E p i c o r ] : 
 
         2 6 5 :   
 
         2 6 6 :                   / * * 
 
   > >   2 6 7 :                     *   @ p a r a m   $ e p i c o r C u s t I D 
 
         2 6 8 :                     *   @ r e t u r n   a r r a y 
 
         2 6 9 :                     * / 
 
 
 
     L i n e   2 7 0   [ m a t c h :   E p i c o r ] : 
 
         2 6 8 :                     *   @ r e t u r n   a r r a y 
 
         2 6 9 :                     * / 
 
   > >   2 7 0 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D e t a i l s D a t a B y I D ( $ e p i c o r C u s t I D ,   $ i d ) 
 
         2 7 1 :                   { 
 
         2 7 2 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   r . S h i p T o N a m e ,   r . S h i p T o A d d r e s s 1 , 
 
 
 
     L i n e   2 8 0   [ m a t c h :   E p i c o r ] : 
 
         2 7 8 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 7 9 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
   > >   2 8 0 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         2 8 1 :                                                                                                                                           A N D   r . I D   =   : i d " ) 
 
         2 8 2 :                                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
 
 
     L i n e   2 8 2   [ m a t c h :   E p i c o r ] : 
 
         2 8 0 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         2 8 1 :                                                                                                                                           A N D   r . I D   =   : i d " ) 
 
   > >   2 8 2 :                                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 8 3 :                                                   - > s e t P a r a m e t e r ( " : i d " ,   $ i d ) 
 
         2 8 4 :                                                   - > g e t O n e O r N u l l R e s u l t ( ) ; 
 
 
 
     L i n e   2 2   [ m a t c h :   E P I C O R ] : 
 
         2 0 :   
 
         2 1 :                   / * * 
 
   > >   2 2 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         2 3 :                     *   @ p a r a m   i n t   $ Q u e s t U s e r I D 
 
         2 4 :                     *   @ t h r o w s   N o n U n i q u e R e s u l t E x c e p t i o n 
 
 
 
     L i n e   2 7   [ m a t c h :   E P I C O R ] : 
 
         2 5 :                     *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ s h i p _ R e q u e s t | n u l l 
 
         2 6 :                     * / 
 
   > >   2 7 :                   p u b l i c   f u n c t i o n   g e t O p e n S h i p m e n t W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t U s e r I D ) 
 
         2 8 :                   { 
 
         2 9 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r ,   r d 
 
 
 
     L i n e   3 4   [ m a t c h :   E P I C O R ] : 
 
         3 2 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   q c 
 
         3 3 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ U s e r   q u 
 
   > >   3 4 :                                                                                                                         W H E R E   q c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         3 5 :                                                                                                                             A N D   q u . I D   =   : q u e s t U s e r I D 
 
         3 6 :                                                                                                                             A N D   r . I s S u b m i t t e d   =   f a l s e 
 
 
 
     L i n e   3 9   [ m a t c h :   E P I C O R ] : 
 
         3 7 :                                                                                                                             A N D   r . I s C a n c e l l e d   < >   t r u e 
 
         3 8 :                                                                                                                             " ) 
 
   > >   3 9 :                                                                                         - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         4 0 :                                                                                         - > s e t P a r a m e t e r ( ' q u e s t U s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
         4 1 :                                                                                         - > g e t O n e O r N u l l R e s u l t ( ) ; 
 
 
 
     L i n e   9 3   [ m a t c h :   E P I C O R ] : 
 
         9 1 :   
 
         9 2 :                   / * * 
 
   > >   9 3 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         9 4 :                     *   @ p a r a m   s t r i n g   $ P l a n t 
 
         9 5 :                     *   @ p a r a m   s t r i n g   $ P a r t N u m 
 
 
 
     L i n e   1 0 1   [ m a t c h :   E P I C O R ] : 
 
         9 9 :                     *   @ r e t u r n   b o o l 
 
         1 0 0 :                     * / 
 
   > >   1 0 1 :                   p u b l i c   f u n c t i o n   d o e s N o n C a n c e l l e d S h i p m e n t E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) 
 
         1 0 2 :                   { 
 
         1 0 3 :                           r e t u r n   ( $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( r ) 
 
 
 
     L i n e   1 0 7   [ m a t c h :   E P I C O R ] : 
 
         1 0 5 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 0 6 :                                                                                                                           I N N E R   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
   > >   1 0 7 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         1 0 8 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
         1 0 9 :                                                                                                                               A N D   r d . P a r t   =   : p a r t 
 
 
 
     L i n e   1 1 4   [ m a t c h :   E P I C O R ] : 
 
         1 1 2 :                                                                                                                               A N D   r d . O n H a n d Q u a n t i t y   =   : o n H a n d Q t y 
 
         1 1 3 :                                                                                                                               A N D   r . I s C a n c e l l e d   =   f a l s e " ) 
 
   > >   1 1 4 :                                                                                             - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         1 1 5 :                                                                                             - > s e t P a r a m e t e r ( ' p l a n t ' ,   $ P l a n t ) 
 
         1 1 6 :                                                                                             - > s e t P a r a m e t e r ( ' p a r t ' ,   $ P a r t N u m ) 
 
 
 
     L i n e   1 2 4   [ m a t c h :   E P I C O R ] : 
 
         1 2 2 :   
 
         1 2 3 :                   / * * 
 
   > >   1 2 4 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         1 2 5 :                     *   @ p a r a m   s t r i n g   $ P l a n t 
 
         1 2 6 :                     *   @ p a r a m   s t r i n g   $ P a r t N u m 
 
 
 
     L i n e   1 3 2   [ m a t c h :   E P I C O R ] : 
 
         1 3 0 :                     *   @ r e t u r n   i n t 
 
         1 3 1 :                     * / 
 
   > >   1 3 2 :                   p u b l i c   f u n c t i o n   g e t N o n C a n c e l l e d S h i p m e n t R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   $ L o t N u m ,   $ O n H a n d Q u a n t i t y ) 
 
         1 3 3 :                   { 
 
         1 3 4 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
 
 
     L i n e   1 3 8   [ m a t c h :   E P I C O R ] : 
 
         1 3 6 :                                                                                                                           I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         1 3 7 :                                                                                                                           I N N E R   J O I N   r . s h i p _ R e q u e s t D e t a i l   r d 
 
   > >   1 3 8 :                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         1 3 9 :                                                                                                                               A N D   r . P l a n t   =   : p l a n t 
 
         1 4 0 :                                                                                                                               A N D   r d . P a r t   =   : p a r t 
 
 
 
     L i n e   1 4 5   [ m a t c h :   E P I C O R ] : 
 
         1 4 3 :                                                                                                                               A N D   r d . O n H a n d Q u a n t i t y   =   : o n H a n d Q t y 
 
         1 4 4 :                                                                                                                               A N D   r . I s C a n c e l l e d   =   f a l s e " ) 
 
   > >   1 4 5 :                                   - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         1 4 6 :                                   - > s e t P a r a m e t e r ( ' p l a n t ' ,   $ P l a n t ) 
 
         1 4 7 :                                   - > s e t P a r a m e t e r ( ' p a r t ' ,   $ P a r t N u m ) 
 
 
 
     L i n e   1 5 8   [ m a t c h :   E P I C O R ] : 
 
         1 5 6 :                     *   @ p a r a m   i n t   $ S h i p m e n t I D 
 
         1 5 7 :                     *   @ p a r a m   i n t   $ Q u e s t U s e r I D 
 
   > >   1 5 8 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         1 5 9 :                     *   @ r e t u r n   i n t | n u l l 
 
         1 6 0 :                     * / 
 
 
 
     L i n e   1 6 1   [ m a t c h :   E P I C O R ] : 
 
         1 5 9 :                     *   @ r e t u r n   i n t | n u l l 
 
         1 6 0 :                     * / 
 
   > >   1 6 1 :                   p u b l i c   f u n c t i o n   g e t S u b m i t t e d R e q u e s t R e f e r e n c e N u m B y Q u e s t U s e r A n d E p i c o r C u s t I D ( $ S h i p m e n t I D ,   $ Q u e s t U s e r I D ,   $ E p i c o r C u s t I D ) 
 
         1 6 2 :                   { 
 
         1 6 3 :                           r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R e f e r e n c e N u m 
 
 
 
     L i n e   1 7 0   [ m a t c h :   E P I C O R ] : 
 
         1 6 8 :                                                                                                                             A N D   q u . I D   =   : q u e s t U s e r I D 
 
         1 6 9 :                                                                                                                             A N D   r . I s S u b m i t t e d   =   t r u e 
 
   > >   1 7 0 :                                                                                                                             A N D   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
         1 7 1 :                                                                                           - > s e t P a r a m e t e r ( ' s h i p m e n t I D ' ,   $ S h i p m e n t I D ) 
 
         1 7 2 :                                                                                           - > s e t P a r a m e t e r ( ' q u e s t U s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
 
 
     L i n e   1 7 3   [ m a t c h :   E P I C O R ] : 
 
         1 7 1 :                                                                                           - > s e t P a r a m e t e r ( ' s h i p m e n t I D ' ,   $ S h i p m e n t I D ) 
 
         1 7 2 :                                                                                           - > s e t P a r a m e t e r ( ' q u e s t U s e r I D ' ,   $ Q u e s t U s e r I D ) 
 
   > >   1 7 3 :                                                                                           - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         1 7 4 :                                                                                           - > g e t O n e O r N u l l R e s u l t ( Q u e r y : : H Y D R A T E _ S I N G L E _ S C A L A R ) ; 
 
         1 7 5 :                   } 
 
 
 
     L i n e   2 2 8   [ m a t c h :   E P I C O R ] : 
 
         2 2 6 :   
 
         2 2 7 :                   / * * 
 
   > >   2 2 8 :                     *   @ p a r a m   $ e p i c o r C u s t I D 
 
         2 2 9 :                     *   @ r e t u r n   a r r a y 
 
         2 3 0 :                     * / 
 
 
 
     L i n e   2 3 1   [ m a t c h :   E P I C O R ] : 
 
         2 2 9 :                     *   @ r e t u r n   a r r a y 
 
         2 3 0 :                     * / 
 
   > >   2 3 1 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D a t a ( $ e p i c o r C u s t I D ) 
 
         2 3 2 :                   { 
 
         2 3 3 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   u . F i r s t N a m e ,   u . L a s t N a m e , 
 
 
 
     L i n e   2 3 8   [ m a t c h :   E P I C O R ] : 
 
         2 3 6 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 3 7 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
   > >   2 3 8 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D   A N D   r . I s S u b m i t t e d   =   t r u e   " ) 
 
         2 3 9 :                                                           - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 4 0 :                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   2 3 9   [ m a t c h :   E P I C O R ] : 
 
         2 3 7 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 3 8 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D   A N D   r . I s S u b m i t t e d   =   t r u e   " ) 
 
   > >   2 3 9 :                                                           - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 4 0 :                                                           - > g e t A r r a y R e s u l t ( ) ; 
 
         2 4 1 :   
 
 
 
     L i n e   2 4 6   [ m a t c h :   E P I C O R ] : 
 
         2 4 4 :   
 
         2 4 5 :                   / * * 
 
   > >   2 4 6 :                     *   @ p a r a m   $ e p i c o r C u s t I D 
 
         2 4 7 :                     *   @ r e t u r n   a r r a y 
 
         2 4 8 :                     * / 
 
 
 
     L i n e   2 4 9   [ m a t c h :   E P I C O R ] : 
 
         2 4 7 :                     *   @ r e t u r n   a r r a y 
 
         2 4 8 :                     * / 
 
   > >   2 4 9 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D e t a i l s D a t a ( $ e p i c o r C u s t I D ) 
 
         2 5 0 :                   { 
 
         2 5 1 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   r . S h i p T o N a m e ,   r . S h i p T o A d d r e s s 1 , 
 
 
 
     L i n e   2 5 9   [ m a t c h :   E P I C O R ] : 
 
         2 5 7 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 5 8 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
   > >   2 5 9 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
         2 6 0 :                                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 6 1 :                                                   - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   2 6 0   [ m a t c h :   E P I C O R ] : 
 
         2 5 8 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
         2 5 9 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D " ) 
 
   > >   2 6 0 :                                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 6 1 :                                                   - > g e t A r r a y R e s u l t ( ) ; 
 
         2 6 2 :   
 
 
 
     L i n e   2 6 7   [ m a t c h :   E P I C O R ] : 
 
         2 6 5 :   
 
         2 6 6 :                   / * * 
 
   > >   2 6 7 :                     *   @ p a r a m   $ e p i c o r C u s t I D 
 
         2 6 8 :                     *   @ r e t u r n   a r r a y 
 
         2 6 9 :                     * / 
 
 
 
     L i n e   2 7 0   [ m a t c h :   E P I C O R ] : 
 
         2 6 8 :                     *   @ r e t u r n   a r r a y 
 
         2 6 9 :                     * / 
 
   > >   2 7 0 :                   p u b l i c   f u n c t i o n   g e t S h i p m e n t R e l e a s e D e t a i l s D a t a B y I D ( $ e p i c o r C u s t I D ,   $ i d ) 
 
         2 7 1 :                   { 
 
         2 7 2 :                           $ r e s u l t s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R e f e r e n c e N u m ,   c . c a l c _ D i s p l a y N a m e ,   r . S h i p T o N a m e ,   r . S h i p T o A d d r e s s 1 , 
 
 
 
     L i n e   2 8 0   [ m a t c h :   E P I C O R ] : 
 
         2 7 8 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ C o m p a n y   c 
 
         2 7 9 :                                                                                                                                           L E F T   J O I N   r . q u e s t _ U s e r   u 
 
   > >   2 8 0 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         2 8 1 :                                                                                                                                           A N D   r . I D   =   : i d " ) 
 
         2 8 2 :                                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
 
 
     L i n e   2 8 2   [ m a t c h :   E P I C O R ] : 
 
         2 8 0 :                                                                                                                                           W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         2 8 1 :                                                                                                                                           A N D   r . I D   =   : i d " ) 
 
   > >   2 8 2 :                                                   - > s e t P a r a m e t e r ( " : e p i c o r C u s t I D " ,   $ e p i c o r C u s t I D ) 
 
         2 8 3 :                                                   - > s e t P a r a m e t e r ( " : i d " ,   $ i d ) 
 
         2 8 4 :                                                   - > g e t O n e O r N u l l R e s u l t ( ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ s h i p _ R e q u e s t D e t a i l . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 3   [ m a t c h :   F R O M   ] : 
 
         3 1 :   
 
         3 2 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r d . L o t N u m ,   r d . O n H a n d Q u a n t i t y 
 
   > >   3 3 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r d 
 
         3 4 :                                                                                                                         I N N E R   J O I N   r d . s h i p _ R e q u e s t   r 
 
         3 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
 
 
     L i n e   3 2   [ m a t c h :   S E L E C T   ] : 
 
         3 0 :                                   r e t u r n   [ ] ; 
 
         3 1 :   
 
   > >   3 2 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r d . L o t N u m ,   r d . O n H a n d Q u a n t i t y 
 
         3 3 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r d 
 
         3 4 :                                                                                                                         I N N E R   J O I N   r d . s h i p _ R e q u e s t   r 
 
 
 
     L i n e   3 4   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 2 :                           $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r d . L o t N u m ,   r d . O n H a n d Q u a n t i t y 
 
         3 3 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r d 
 
   > >   3 4 :                                                                                                                         I N N E R   J O I N   r d . s h i p _ R e q u e s t   r 
 
         3 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         3 6 :                                                                                                                         W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
 
 
     L i n e   3 5   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 3 :                                                                                                                         F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   r d 
 
         3 4 :                                                                                                                         I N N E R   J O I N   r d . s h i p _ R e q u e s t   r 
 
   > >   3 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
         3 6 :                                                                                                                         W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         3 7 :                                                                                                                             A N D   r . P l a n t   =   : p l a n t 
 
 
 
     L i n e   2 0   [ m a t c h :   e p i c o r ] : 
 
         1 8 :   
 
         1 9 :                   / * * 
 
   > >   2 0 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         2 1 :                     *   @ p a r a m   s t r i n g   $ P l a n t 
 
         2 2 :                     *   @ p a r a m   s t r i n g   $ P a r t N u m 
 
 
 
     L i n e   2 7   [ m a t c h :   e p i c o r ] : 
 
         2 5 :                     *   @ r e t u r n   a r r a y 
 
         2 6 :                     * / 
 
   > >   2 7 :                   p u b l i c   f u n c t i o n   g e t D e t a i l L i n e s T h a t E x i s t F o r N o n C a n c e l l e d S h i p m e n t s ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   a r r a y   $ L o t N u m s A n d O n H a n d Q t y s ) 
 
         2 8 :                   { 
 
         2 9 :                           i f ( ! s i z e o f ( $ L o t N u m s A n d O n H a n d Q t y s ) ) 
 
 
 
     L i n e   3 6   [ m a t c h :   e p i c o r ] : 
 
         3 4 :                                                                                                                         I N N E R   J O I N   r d . s h i p _ R e q u e s t   r 
 
         3 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
   > >   3 6 :                                                                                                                         W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         3 7 :                                                                                                                             A N D   r . P l a n t   =   : p l a n t 
 
         3 8 :                                                                                                                             A N D   r d . P a r t   =   : p a r t 
 
 
 
     L i n e   4 3   [ m a t c h :   e p i c o r ] : 
 
         4 1 :                                                                                                                             A N D   r d . O n H a n d Q u a n t i t y   I N   ( : o n H a n d Q t y ) 
 
         4 2 :                                                                                                                             A N D   r . I s C a n c e l l e d   =   f a l s e " ) 
 
   > >   4 3 :                                                                                           - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         4 4 :                                                                                           - > s e t P a r a m e t e r ( ' p l a n t ' ,   $ P l a n t ) 
 
         4 5 :                                                                                           - > s e t P a r a m e t e r ( ' p a r t ' ,   $ P a r t N u m ) 
 
 
 
     L i n e   2 0   [ m a t c h :   E p i c o r ] : 
 
         1 8 :   
 
         1 9 :                   / * * 
 
   > >   2 0 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         2 1 :                     *   @ p a r a m   s t r i n g   $ P l a n t 
 
         2 2 :                     *   @ p a r a m   s t r i n g   $ P a r t N u m 
 
 
 
     L i n e   2 7   [ m a t c h :   E p i c o r ] : 
 
         2 5 :                     *   @ r e t u r n   a r r a y 
 
         2 6 :                     * / 
 
   > >   2 7 :                   p u b l i c   f u n c t i o n   g e t D e t a i l L i n e s T h a t E x i s t F o r N o n C a n c e l l e d S h i p m e n t s ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   a r r a y   $ L o t N u m s A n d O n H a n d Q t y s ) 
 
         2 8 :                   { 
 
         2 9 :                           i f ( ! s i z e o f ( $ L o t N u m s A n d O n H a n d Q t y s ) ) 
 
 
 
     L i n e   3 6   [ m a t c h :   E p i c o r ] : 
 
         3 4 :                                                                                                                         I N N E R   J O I N   r d . s h i p _ R e q u e s t   r 
 
         3 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
   > >   3 6 :                                                                                                                         W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         3 7 :                                                                                                                             A N D   r . P l a n t   =   : p l a n t 
 
         3 8 :                                                                                                                             A N D   r d . P a r t   =   : p a r t 
 
 
 
     L i n e   4 3   [ m a t c h :   E p i c o r ] : 
 
         4 1 :                                                                                                                             A N D   r d . O n H a n d Q u a n t i t y   I N   ( : o n H a n d Q t y ) 
 
         4 2 :                                                                                                                             A N D   r . I s C a n c e l l e d   =   f a l s e " ) 
 
   > >   4 3 :                                                                                           - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         4 4 :                                                                                           - > s e t P a r a m e t e r ( ' p l a n t ' ,   $ P l a n t ) 
 
         4 5 :                                                                                           - > s e t P a r a m e t e r ( ' p a r t ' ,   $ P a r t N u m ) 
 
 
 
     L i n e   2 0   [ m a t c h :   E P I C O R ] : 
 
         1 8 :   
 
         1 9 :                   / * * 
 
   > >   2 0 :                     *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         2 1 :                     *   @ p a r a m   s t r i n g   $ P l a n t 
 
         2 2 :                     *   @ p a r a m   s t r i n g   $ P a r t N u m 
 
 
 
     L i n e   2 7   [ m a t c h :   E P I C O R ] : 
 
         2 5 :                     *   @ r e t u r n   a r r a y 
 
         2 6 :                     * / 
 
   > >   2 7 :                   p u b l i c   f u n c t i o n   g e t D e t a i l L i n e s T h a t E x i s t F o r N o n C a n c e l l e d S h i p m e n t s ( $ E p i c o r C u s t I D ,   $ P l a n t ,   $ P a r t N u m ,   $ W a r e h o u s e ,   a r r a y   $ L o t N u m s A n d O n H a n d Q t y s ) 
 
         2 8 :                   { 
 
         2 9 :                           i f ( ! s i z e o f ( $ L o t N u m s A n d O n H a n d Q t y s ) ) 
 
 
 
     L i n e   3 6   [ m a t c h :   E P I C O R ] : 
 
         3 4 :                                                                                                                         I N N E R   J O I N   r d . s h i p _ R e q u e s t   r 
 
         3 5 :                                                                                                                         I N N E R   J O I N   r . q u e s t _ C o m p a n y   c 
 
   > >   3 6 :                                                                                                                         W H E R E   c . E p i c o r C u s t I D   =   : e p i c o r C u s t I D 
 
         3 7 :                                                                                                                             A N D   r . P l a n t   =   : p l a n t 
 
         3 8 :                                                                                                                             A N D   r d . P a r t   =   : p a r t 
 
 
 
     L i n e   4 3   [ m a t c h :   E P I C O R ] : 
 
         4 1 :                                                                                                                             A N D   r d . O n H a n d Q u a n t i t y   I N   ( : o n H a n d Q t y ) 
 
         4 2 :                                                                                                                             A N D   r . I s C a n c e l l e d   =   f a l s e " ) 
 
   > >   4 3 :                                                                                           - > s e t P a r a m e t e r ( ' e p i c o r C u s t I D ' ,   $ E p i c o r C u s t I D ) 
 
         4 4 :                                                                                           - > s e t P a r a m e t e r ( ' p l a n t ' ,   $ P l a n t ) 
 
         4 5 :                                                                                           - > s e t P a r a m e t e r ( ' p a r t ' ,   $ P a r t N u m ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 5   [ m a t c h :   - > s e l e c t ( ] : 
 
         2 3 :                           $ q b   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
         2 4 :   
 
   > >   2 5 :                           $ r e s u l t s   =   $ q b - > s e l e c t ( ' w a v e _ P r o c e s s ' ) 
 
         2 6 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' w a v e _ P r o c e s s ' ) 
 
         2 7 :                                   - > w h e r e ( ' w a v e _ P r o c e s s . I s E n a b l e d   =   t r u e ' ) 
 
 
 
     L i n e   7   [ m a t c h :   w a v e ] : 
 
         5 :   
 
         6 :           / * * 
 
   > >   7 :             *   w a v e _ P r o c e s s   r e p o s i t o r y   c l a s s 
 
         8 :             * 
 
         9 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
 
 
     L i n e   1 1   [ m a t c h :   w a v e ] : 
 
         9 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
         1 0 :             * / 
 
   > >   1 1 :           c l a s s   w a v e _ P r o c e s s   e x t e n d s   R e p o 
 
         1 2 :           { 
 
         1 3 :                   p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( $ e m ,   C l a s s M e t a d a t a   $ c l a s s ) 
 
 
 
     L i n e   2 5   [ m a t c h :   w a v e ] : 
 
         2 3 :                           $ q b   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
         2 4 :   
 
   > >   2 5 :                           $ r e s u l t s   =   $ q b - > s e l e c t ( ' w a v e _ P r o c e s s ' ) 
 
         2 6 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' w a v e _ P r o c e s s ' ) 
 
         2 7 :                                   - > w h e r e ( ' w a v e _ P r o c e s s . I s E n a b l e d   =   t r u e ' ) 
 
 
 
     L i n e   2 6   [ m a t c h :   w a v e ] : 
 
         2 4 :   
 
         2 5 :                           $ r e s u l t s   =   $ q b - > s e l e c t ( ' w a v e _ P r o c e s s ' ) 
 
   > >   2 6 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' w a v e _ P r o c e s s ' ) 
 
         2 7 :                                   - > w h e r e ( ' w a v e _ P r o c e s s . I s E n a b l e d   =   t r u e ' ) 
 
         2 8 :                                   - > o r d e r B y ( ' w a v e _ P r o c e s s . P r o c e s s O r d e r ' ,   ' a s c ' ) 
 
 
 
     L i n e   2 7   [ m a t c h :   w a v e ] : 
 
         2 5 :                           $ r e s u l t s   =   $ q b - > s e l e c t ( ' w a v e _ P r o c e s s ' ) 
 
         2 6 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' w a v e _ P r o c e s s ' ) 
 
   > >   2 7 :                                   - > w h e r e ( ' w a v e _ P r o c e s s . I s E n a b l e d   =   t r u e ' ) 
 
         2 8 :                                   - > o r d e r B y ( ' w a v e _ P r o c e s s . P r o c e s s O r d e r ' ,   ' a s c ' ) 
 
         2 9 :                                   - > g e t Q u e r y ( ) 
 
 
 
     L i n e   2 8   [ m a t c h :   w a v e ] : 
 
         2 6 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' w a v e _ P r o c e s s ' ) 
 
         2 7 :                                   - > w h e r e ( ' w a v e _ P r o c e s s . I s E n a b l e d   =   t r u e ' ) 
 
   > >   2 8 :                                   - > o r d e r B y ( ' w a v e _ P r o c e s s . P r o c e s s O r d e r ' ,   ' a s c ' ) 
 
         2 9 :                                   - > g e t Q u e r y ( ) 
 
         3 0 :                                   - > e x e c u t e ( [ ] ) ; 
 
 
 
     L i n e   7   [ m a t c h :   W a v e ] : 
 
         5 :   
 
         6 :           / * * 
 
   > >   7 :             *   w a v e _ P r o c e s s   r e p o s i t o r y   c l a s s 
 
         8 :             * 
 
         9 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
 
 
     L i n e   1 1   [ m a t c h :   W a v e ] : 
 
         9 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
         1 0 :             * / 
 
   > >   1 1 :           c l a s s   w a v e _ P r o c e s s   e x t e n d s   R e p o 
 
         1 2 :           { 
 
         1 3 :                   p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( $ e m ,   C l a s s M e t a d a t a   $ c l a s s ) 
 
 
 
     L i n e   2 5   [ m a t c h :   W a v e ] : 
 
         2 3 :                           $ q b   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
         2 4 :   
 
   > >   2 5 :                           $ r e s u l t s   =   $ q b - > s e l e c t ( ' w a v e _ P r o c e s s ' ) 
 
         2 6 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' w a v e _ P r o c e s s ' ) 
 
         2 7 :                                   - > w h e r e ( ' w a v e _ P r o c e s s . I s E n a b l e d   =   t r u e ' ) 
 
 
 
     L i n e   2 6   [ m a t c h :   W a v e ] : 
 
         2 4 :   
 
         2 5 :                           $ r e s u l t s   =   $ q b - > s e l e c t ( ' w a v e _ P r o c e s s ' ) 
 
   > >   2 6 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' w a v e _ P r o c e s s ' ) 
 
         2 7 :                                   - > w h e r e ( ' w a v e _ P r o c e s s . I s E n a b l e d   =   t r u e ' ) 
 
         2 8 :                                   - > o r d e r B y ( ' w a v e _ P r o c e s s . P r o c e s s O r d e r ' ,   ' a s c ' ) 
 
 
 
     L i n e   2 7   [ m a t c h :   W a v e ] : 
 
         2 5 :                           $ r e s u l t s   =   $ q b - > s e l e c t ( ' w a v e _ P r o c e s s ' ) 
 
         2 6 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' w a v e _ P r o c e s s ' ) 
 
   > >   2 7 :                                   - > w h e r e ( ' w a v e _ P r o c e s s . I s E n a b l e d   =   t r u e ' ) 
 
         2 8 :                                   - > o r d e r B y ( ' w a v e _ P r o c e s s . P r o c e s s O r d e r ' ,   ' a s c ' ) 
 
         2 9 :                                   - > g e t Q u e r y ( ) 
 
 
 
     L i n e   2 8   [ m a t c h :   W a v e ] : 
 
         2 6 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' w a v e _ P r o c e s s ' ) 
 
         2 7 :                                   - > w h e r e ( ' w a v e _ P r o c e s s . I s E n a b l e d   =   t r u e ' ) 
 
   > >   2 8 :                                   - > o r d e r B y ( ' w a v e _ P r o c e s s . P r o c e s s O r d e r ' ,   ' a s c ' ) 
 
         2 9 :                                   - > g e t Q u e r y ( ) 
 
         3 0 :                                   - > e x e c u t e ( [ ] ) ; 
 
 
 
     L i n e   7   [ m a t c h :   W A V E ] : 
 
         5 :   
 
         6 :           / * * 
 
   > >   7 :             *   w a v e _ P r o c e s s   r e p o s i t o r y   c l a s s 
 
         8 :             * 
 
         9 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
 
 
     L i n e   1 1   [ m a t c h :   W A V E ] : 
 
         9 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
         1 0 :             * / 
 
   > >   1 1 :           c l a s s   w a v e _ P r o c e s s   e x t e n d s   R e p o 
 
         1 2 :           { 
 
         1 3 :                   p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( $ e m ,   C l a s s M e t a d a t a   $ c l a s s ) 
 
 
 
     L i n e   2 5   [ m a t c h :   W A V E ] : 
 
         2 3 :                           $ q b   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
         2 4 :   
 
   > >   2 5 :                           $ r e s u l t s   =   $ q b - > s e l e c t ( ' w a v e _ P r o c e s s ' ) 
 
         2 6 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' w a v e _ P r o c e s s ' ) 
 
         2 7 :                                   - > w h e r e ( ' w a v e _ P r o c e s s . I s E n a b l e d   =   t r u e ' ) 
 
 
 
     L i n e   2 6   [ m a t c h :   W A V E ] : 
 
         2 4 :   
 
         2 5 :                           $ r e s u l t s   =   $ q b - > s e l e c t ( ' w a v e _ P r o c e s s ' ) 
 
   > >   2 6 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' w a v e _ P r o c e s s ' ) 
 
         2 7 :                                   - > w h e r e ( ' w a v e _ P r o c e s s . I s E n a b l e d   =   t r u e ' ) 
 
         2 8 :                                   - > o r d e r B y ( ' w a v e _ P r o c e s s . P r o c e s s O r d e r ' ,   ' a s c ' ) 
 
 
 
     L i n e   2 7   [ m a t c h :   W A V E ] : 
 
         2 5 :                           $ r e s u l t s   =   $ q b - > s e l e c t ( ' w a v e _ P r o c e s s ' ) 
 
         2 6 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' w a v e _ P r o c e s s ' ) 
 
   > >   2 7 :                                   - > w h e r e ( ' w a v e _ P r o c e s s . I s E n a b l e d   =   t r u e ' ) 
 
         2 8 :                                   - > o r d e r B y ( ' w a v e _ P r o c e s s . P r o c e s s O r d e r ' ,   ' a s c ' ) 
 
         2 9 :                                   - > g e t Q u e r y ( ) 
 
 
 
     L i n e   2 8   [ m a t c h :   W A V E ] : 
 
         2 6 :                                   - > f r o m ( $ t h i s - > g e t E n t i t y N a m e ( ) ,   ' w a v e _ P r o c e s s ' ) 
 
         2 7 :                                   - > w h e r e ( ' w a v e _ P r o c e s s . I s E n a b l e d   =   t r u e ' ) 
 
   > >   2 8 :                                   - > o r d e r B y ( ' w a v e _ P r o c e s s . P r o c e s s O r d e r ' ,   ' a s c ' ) 
 
         2 9 :                                   - > g e t Q u e r y ( ) 
 
         3 0 :                                   - > e x e c u t e ( [ ] ) ; 
 
 
 
     L i n e   2 9   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         2 7 :                                   - > w h e r e ( ' w a v e _ P r o c e s s . I s E n a b l e d   =   t r u e ' ) 
 
         2 8 :                                   - > o r d e r B y ( ' w a v e _ P r o c e s s . P r o c e s s O r d e r ' ,   ' a s c ' ) 
 
   > >   2 9 :                                   - > g e t Q u e r y ( ) 
 
         3 0 :                                   - > e x e c u t e ( [ ] ) ; 
 
         3 1 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7   [ m a t c h :   w a v e ] : 
 
         5 :   
 
         6 :           / * * 
 
   > >   7 :             *   w a v e _ P r o c e s s H i s t o r y   r e p o s i t o r y   c l a s s 
 
         8 :             * 
 
         9 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
 
 
     L i n e   1 1   [ m a t c h :   w a v e ] : 
 
         9 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
         1 0 :             * / 
 
   > >   1 1 :           c l a s s   w a v e _ P r o c e s s H i s t o r y   e x t e n d s   R e p o 
 
         1 2 :           { 
 
         1 3 :                   p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( $ e m ,   C l a s s M e t a d a t a   $ c l a s s ) 
 
 
 
     L i n e   7   [ m a t c h :   W a v e ] : 
 
         5 :   
 
         6 :           / * * 
 
   > >   7 :             *   w a v e _ P r o c e s s H i s t o r y   r e p o s i t o r y   c l a s s 
 
         8 :             * 
 
         9 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
 
 
     L i n e   1 1   [ m a t c h :   W a v e ] : 
 
         9 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
         1 0 :             * / 
 
   > >   1 1 :           c l a s s   w a v e _ P r o c e s s H i s t o r y   e x t e n d s   R e p o 
 
         1 2 :           { 
 
         1 3 :                   p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( $ e m ,   C l a s s M e t a d a t a   $ c l a s s ) 
 
 
 
     L i n e   7   [ m a t c h :   W A V E ] : 
 
         5 :   
 
         6 :           / * * 
 
   > >   7 :             *   w a v e _ P r o c e s s H i s t o r y   r e p o s i t o r y   c l a s s 
 
         8 :             * 
 
         9 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
 
 
     L i n e   1 1   [ m a t c h :   W A V E ] : 
 
         9 :             *   T h i s   c l a s s   h a s   b e e n   a u t o - g e n e r a t e d   b y   S a v v i o r   D o c t r i n e   m o d e l   g e n e r a t i o n   p r o c e s s 
 
         1 0 :             * / 
 
   > >   1 1 :           c l a s s   w a v e _ P r o c e s s H i s t o r y   e x t e n d s   R e p o 
 
         1 2 :           { 
 
         1 3 :                   p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( $ e m ,   C l a s s M e t a d a t a   $ c l a s s ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   w a v e ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e F i l e s E x p o r t e d A n d U p l o a d e d   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   4 9   [ m a t c h :   w a v e ] : 
 
         4 7 :           { 
 
         4 8 :                   r e t u r n   ( n e w   M a i l M e s s a g e ) 
 
   > >   4 9 :                                           - > s u b j e c t ( ' W a v e   P r o d u c t i o n   F i l e s   H a v e   B e e n   E x p o r t e d   a n d   U p l o a d e d   t o   t h e   F T P   S i t e ' ) 
 
         5 0 :                                           - > l i n e ( " T h e   e x p o r t   f i l e s   a r e   i n   t h e   W A V E   f o l d e r   < b r > " ) ; 
 
         5 1 :   
 
 
 
     L i n e   5 0   [ m a t c h :   w a v e ] : 
 
         4 8 :                   r e t u r n   ( n e w   M a i l M e s s a g e ) 
 
         4 9 :                                           - > s u b j e c t ( ' W a v e   P r o d u c t i o n   F i l e s   H a v e   B e e n   E x p o r t e d   a n d   U p l o a d e d   t o   t h e   F T P   S i t e ' ) 
 
   > >   5 0 :                                           - > l i n e ( " T h e   e x p o r t   f i l e s   a r e   i n   t h e   W A V E   f o l d e r   < b r > " ) ; 
 
         5 1 :   
 
         5 2 :                   / / < a   h r e f = "   .   $ t h i s - > e x p o r t D i r e c t o r y   .   " > "   .   $ t h i s - > e x p o r t D i r e c t o r y   .   " < / a > 
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W a v e ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e F i l e s E x p o r t e d A n d U p l o a d e d   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   4 9   [ m a t c h :   W a v e ] : 
 
         4 7 :           { 
 
         4 8 :                   r e t u r n   ( n e w   M a i l M e s s a g e ) 
 
   > >   4 9 :                                           - > s u b j e c t ( ' W a v e   P r o d u c t i o n   F i l e s   H a v e   B e e n   E x p o r t e d   a n d   U p l o a d e d   t o   t h e   F T P   S i t e ' ) 
 
         5 0 :                                           - > l i n e ( " T h e   e x p o r t   f i l e s   a r e   i n   t h e   W A V E   f o l d e r   < b r > " ) ; 
 
         5 1 :   
 
 
 
     L i n e   5 0   [ m a t c h :   W a v e ] : 
 
         4 8 :                   r e t u r n   ( n e w   M a i l M e s s a g e ) 
 
         4 9 :                                           - > s u b j e c t ( ' W a v e   P r o d u c t i o n   F i l e s   H a v e   B e e n   E x p o r t e d   a n d   U p l o a d e d   t o   t h e   F T P   S i t e ' ) 
 
   > >   5 0 :                                           - > l i n e ( " T h e   e x p o r t   f i l e s   a r e   i n   t h e   W A V E   f o l d e r   < b r > " ) ; 
 
         5 1 :   
 
         5 2 :                   / / < a   h r e f = "   .   $ t h i s - > e x p o r t D i r e c t o r y   .   " > "   .   $ t h i s - > e x p o r t D i r e c t o r y   .   " < / a > 
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W A V E ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e F i l e s E x p o r t e d A n d U p l o a d e d   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   4 9   [ m a t c h :   W A V E ] : 
 
         4 7 :           { 
 
         4 8 :                   r e t u r n   ( n e w   M a i l M e s s a g e ) 
 
   > >   4 9 :                                           - > s u b j e c t ( ' W a v e   P r o d u c t i o n   F i l e s   H a v e   B e e n   E x p o r t e d   a n d   U p l o a d e d   t o   t h e   F T P   S i t e ' ) 
 
         5 0 :                                           - > l i n e ( " T h e   e x p o r t   f i l e s   a r e   i n   t h e   W A V E   f o l d e r   < b r > " ) ; 
 
         5 1 :   
 
 
 
     L i n e   5 0   [ m a t c h :   W A V E ] : 
 
         4 8 :                   r e t u r n   ( n e w   M a i l M e s s a g e ) 
 
         4 9 :                                           - > s u b j e c t ( ' W a v e   P r o d u c t i o n   F i l e s   H a v e   B e e n   E x p o r t e d   a n d   U p l o a d e d   t o   t h e   F T P   S i t e ' ) 
 
   > >   5 0 :                                           - > l i n e ( " T h e   e x p o r t   f i l e s   a r e   i n   t h e   W A V E   f o l d e r   < b r > " ) ; 
 
         5 1 :   
 
         5 2 :                   / / < a   h r e f = "   .   $ t h i s - > e x p o r t D i r e c t o r y   .   " > "   .   $ t h i s - > e x p o r t D i r e c t o r y   .   " < / a > 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   w a v e ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e M i s s i n g R a w M e t a l R e c e i p t P o   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   5 5   [ m a t c h :   w a v e ] : 
 
         5 3 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
         5 4 :                           - > s u b j e c t ( ' R a w   M e t a l   R e c e i p t s   f o r   '   .   $ t h i s - > p r o c e s s D a t e   .   '   M i s s i n g   P O   N u m b e r   o r   P O   L i n e ' ) 
 
   > >   5 5 :                           - > l i n e ( " P l e a s e   r e v i e w   t h e   a t t a c h e d   r e p o r t .     T h e s e   i t e m s   a r e   m i s s i n g   R a w   M e t a l   P O   o r   P O   L i n e   f o r   y e s t e r d a y ' s   r e c e i p t s .   O n c e   c o r r e c t e d ,   y o u   w i l l   n e e d   t o   r e p r o c e s s   t h e   W A V E   f i l e s . " ) ; 
 
         5 6 :           } 
 
         5 7 :   
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W a v e ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e M i s s i n g R a w M e t a l R e c e i p t P o   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   5 5   [ m a t c h :   W a v e ] : 
 
         5 3 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
         5 4 :                           - > s u b j e c t ( ' R a w   M e t a l   R e c e i p t s   f o r   '   .   $ t h i s - > p r o c e s s D a t e   .   '   M i s s i n g   P O   N u m b e r   o r   P O   L i n e ' ) 
 
   > >   5 5 :                           - > l i n e ( " P l e a s e   r e v i e w   t h e   a t t a c h e d   r e p o r t .     T h e s e   i t e m s   a r e   m i s s i n g   R a w   M e t a l   P O   o r   P O   L i n e   f o r   y e s t e r d a y ' s   r e c e i p t s .   O n c e   c o r r e c t e d ,   y o u   w i l l   n e e d   t o   r e p r o c e s s   t h e   W A V E   f i l e s . " ) ; 
 
         5 6 :           } 
 
         5 7 :   
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W A V E ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e M i s s i n g R a w M e t a l R e c e i p t P o   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   5 5   [ m a t c h :   W A V E ] : 
 
         5 3 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
         5 4 :                           - > s u b j e c t ( ' R a w   M e t a l   R e c e i p t s   f o r   '   .   $ t h i s - > p r o c e s s D a t e   .   '   M i s s i n g   P O   N u m b e r   o r   P O   L i n e ' ) 
 
   > >   5 5 :                           - > l i n e ( " P l e a s e   r e v i e w   t h e   a t t a c h e d   r e p o r t .     T h e s e   i t e m s   a r e   m i s s i n g   R a w   M e t a l   P O   o r   P O   L i n e   f o r   y e s t e r d a y ' s   r e c e i p t s .   O n c e   c o r r e c t e d ,   y o u   w i l l   n e e d   t o   r e p r o c e s s   t h e   W A V E   f i l e s . " ) ; 
 
         5 6 :           } 
 
         5 7 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   w a v e ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e M o n t h E n d I n v e n t o r y   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   5 6   [ m a t c h :   w a v e ] : 
 
         5 4 :                   r e t u r n   ( n e w   M a i l M e s s a g e ) 
 
         5 5 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
   > >   5 6 :                           - > s u b j e c t ( ' M o n t h   E n d   I n v e n t o r y   W a v e   F i l e   H a s   B e e n   E x p o r t e d   a n d   U p l o a d e d   t o   t h e   F T P   S i t e ' ) 
 
         5 7 :                           - > l i n e ( " F i l e s   a r e   i n   X : \ w a v e   f o l d e r " ) ; 
 
         5 8 :           } 
 
 
 
     L i n e   5 7   [ m a t c h :   w a v e ] : 
 
         5 5 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
         5 6 :                           - > s u b j e c t ( ' M o n t h   E n d   I n v e n t o r y   W a v e   F i l e   H a s   B e e n   E x p o r t e d   a n d   U p l o a d e d   t o   t h e   F T P   S i t e ' ) 
 
   > >   5 7 :                           - > l i n e ( " F i l e s   a r e   i n   X : \ w a v e   f o l d e r " ) ; 
 
         5 8 :           } 
 
         5 9 :   
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W a v e ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e M o n t h E n d I n v e n t o r y   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   5 6   [ m a t c h :   W a v e ] : 
 
         5 4 :                   r e t u r n   ( n e w   M a i l M e s s a g e ) 
 
         5 5 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
   > >   5 6 :                           - > s u b j e c t ( ' M o n t h   E n d   I n v e n t o r y   W a v e   F i l e   H a s   B e e n   E x p o r t e d   a n d   U p l o a d e d   t o   t h e   F T P   S i t e ' ) 
 
         5 7 :                           - > l i n e ( " F i l e s   a r e   i n   X : \ w a v e   f o l d e r " ) ; 
 
         5 8 :           } 
 
 
 
     L i n e   5 7   [ m a t c h :   W a v e ] : 
 
         5 5 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
         5 6 :                           - > s u b j e c t ( ' M o n t h   E n d   I n v e n t o r y   W a v e   F i l e   H a s   B e e n   E x p o r t e d   a n d   U p l o a d e d   t o   t h e   F T P   S i t e ' ) 
 
   > >   5 7 :                           - > l i n e ( " F i l e s   a r e   i n   X : \ w a v e   f o l d e r " ) ; 
 
         5 8 :           } 
 
         5 9 :   
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W A V E ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e M o n t h E n d I n v e n t o r y   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   5 6   [ m a t c h :   W A V E ] : 
 
         5 4 :                   r e t u r n   ( n e w   M a i l M e s s a g e ) 
 
         5 5 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
   > >   5 6 :                           - > s u b j e c t ( ' M o n t h   E n d   I n v e n t o r y   W a v e   F i l e   H a s   B e e n   E x p o r t e d   a n d   U p l o a d e d   t o   t h e   F T P   S i t e ' ) 
 
         5 7 :                           - > l i n e ( " F i l e s   a r e   i n   X : \ w a v e   f o l d e r " ) ; 
 
         5 8 :           } 
 
 
 
     L i n e   5 7   [ m a t c h :   W A V E ] : 
 
         5 5 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
         5 6 :                           - > s u b j e c t ( ' M o n t h   E n d   I n v e n t o r y   W a v e   F i l e   H a s   B e e n   E x p o r t e d   a n d   U p l o a d e d   t o   t h e   F T P   S i t e ' ) 
 
   > >   5 7 :                           - > l i n e ( " F i l e s   a r e   i n   X : \ w a v e   f o l d e r " ) ; 
 
         5 8 :           } 
 
         5 9 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   w a v e ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e M o v e d I n t o W a r e h o u s e 0 5   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W a v e ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e M o v e d I n t o W a r e h o u s e 0 5   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W A V E ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e M o v e d I n t o W a r e h o u s e 0 5   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   w a v e ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e M o v e d O u t O f W a r e h o u s e 0 5   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W a v e ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e M o v e d O u t O f W a r e h o u s e 0 5   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W A V E ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e M o v e d O u t O f W a r e h o u s e 0 5   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   w a v e ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e P a r t s W o C u s t o m e r P a r t N u m b e r   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   5 4   [ m a t c h :   w a v e ] : 
 
         5 2 :                   r e t u r n   ( n e w   M a i l M e s s a g e ) 
 
         5 3 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
   > >   5 4 :                           - > s u b j e c t ( ' W A V E   P a r t s   W i t h o u t   C u s t o m e r   P a r t   N u m b e r ' ) 
 
         5 5 :                           - > l i n e ( ' P l e a s e   r e v i e w   t h e   a t t a c h e d   r e p o r t .     T h e s e   i t e m s   a r e   m i s s i n g   t h e   c u s t o m e r   p a r t   c r o s s   r e f e r e n c e   p a r t   n u m b e r ' ) ; 
 
         5 6 :           } 
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W a v e ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e P a r t s W o C u s t o m e r P a r t N u m b e r   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   5 4   [ m a t c h :   W a v e ] : 
 
         5 2 :                   r e t u r n   ( n e w   M a i l M e s s a g e ) 
 
         5 3 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
   > >   5 4 :                           - > s u b j e c t ( ' W A V E   P a r t s   W i t h o u t   C u s t o m e r   P a r t   N u m b e r ' ) 
 
         5 5 :                           - > l i n e ( ' P l e a s e   r e v i e w   t h e   a t t a c h e d   r e p o r t .     T h e s e   i t e m s   a r e   m i s s i n g   t h e   c u s t o m e r   p a r t   c r o s s   r e f e r e n c e   p a r t   n u m b e r ' ) ; 
 
         5 6 :           } 
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W A V E ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e P a r t s W o C u s t o m e r P a r t N u m b e r   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   5 4   [ m a t c h :   W A V E ] : 
 
         5 2 :                   r e t u r n   ( n e w   M a i l M e s s a g e ) 
 
         5 3 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
   > >   5 4 :                           - > s u b j e c t ( ' W A V E   P a r t s   W i t h o u t   C u s t o m e r   P a r t   N u m b e r ' ) 
 
         5 5 :                           - > l i n e ( ' P l e a s e   r e v i e w   t h e   a t t a c h e d   r e p o r t .     T h e s e   i t e m s   a r e   m i s s i n g   t h e   c u s t o m e r   p a r t   c r o s s   r e f e r e n c e   p a r t   n u m b e r ' ) ; 
 
         5 6 :           } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 5   [ m a t c h :   F R O M   ] : 
 
         5 3 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
         5 4 :                           - > s u b j e c t ( ' P a i n t   L i n e   P r o d u c t i o n   f o r   '   .   $ t h i s - > p r o c e s s D a t e   .   '   M i s s i n g   C u s t o m e r   P a r t   N u m b e r ' ) 
 
   > >   5 5 :                           - > l i n e ( " P l e a s e   r e v i e w   t h e   a t t a c h e d   r e p o r t .     T h e s e   i t e m s   a r e   m i s s i n g   C u s t o m e r   P a r t   N u m b e r s   f r o m   y e s t e r d a y ' s   P a i n t   P r o d u c t i o n .   O n c e   c o r r e c t e d ,   y o u   w i l l   n e e d   t o   r e p r o c e s s   t h e   W A V E   f i l e s . " ) ; 
 
         5 6 :           } 
 
         5 7 :   
 
 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   w a v e ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   5 5   [ m a t c h :   w a v e ] : 
 
         5 3 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
         5 4 :                           - > s u b j e c t ( ' P a i n t   L i n e   P r o d u c t i o n   f o r   '   .   $ t h i s - > p r o c e s s D a t e   .   '   M i s s i n g   C u s t o m e r   P a r t   N u m b e r ' ) 
 
   > >   5 5 :                           - > l i n e ( " P l e a s e   r e v i e w   t h e   a t t a c h e d   r e p o r t .     T h e s e   i t e m s   a r e   m i s s i n g   C u s t o m e r   P a r t   N u m b e r s   f r o m   y e s t e r d a y ' s   P a i n t   P r o d u c t i o n .   O n c e   c o r r e c t e d ,   y o u   w i l l   n e e d   t o   r e p r o c e s s   t h e   W A V E   f i l e s . " ) ; 
 
         5 6 :           } 
 
         5 7 :   
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W a v e ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   5 5   [ m a t c h :   W a v e ] : 
 
         5 3 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
         5 4 :                           - > s u b j e c t ( ' P a i n t   L i n e   P r o d u c t i o n   f o r   '   .   $ t h i s - > p r o c e s s D a t e   .   '   M i s s i n g   C u s t o m e r   P a r t   N u m b e r ' ) 
 
   > >   5 5 :                           - > l i n e ( " P l e a s e   r e v i e w   t h e   a t t a c h e d   r e p o r t .     T h e s e   i t e m s   a r e   m i s s i n g   C u s t o m e r   P a r t   N u m b e r s   f r o m   y e s t e r d a y ' s   P a i n t   P r o d u c t i o n .   O n c e   c o r r e c t e d ,   y o u   w i l l   n e e d   t o   r e p r o c e s s   t h e   W A V E   f i l e s . " ) ; 
 
         5 6 :           } 
 
         5 7 :   
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W A V E ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   5 5   [ m a t c h :   W A V E ] : 
 
         5 3 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
         5 4 :                           - > s u b j e c t ( ' P a i n t   L i n e   P r o d u c t i o n   f o r   '   .   $ t h i s - > p r o c e s s D a t e   .   '   M i s s i n g   C u s t o m e r   P a r t   N u m b e r ' ) 
 
   > >   5 5 :                           - > l i n e ( " P l e a s e   r e v i e w   t h e   a t t a c h e d   r e p o r t .     T h e s e   i t e m s   a r e   m i s s i n g   C u s t o m e r   P a r t   N u m b e r s   f r o m   y e s t e r d a y ' s   P a i n t   P r o d u c t i o n .   O n c e   c o r r e c t e d ,   y o u   w i l l   n e e d   t o   r e p r o c e s s   t h e   W A V E   f i l e s . " ) ; 
 
         5 6 :           } 
 
         5 7 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   w a v e ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e P r e c h e c k   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   4 4   [ m a t c h :   w a v e ] : 
 
         4 2 :           { 
 
         4 3 :                   r e t u r n   ( n e w   M a i l M e s s a g e ) 
 
   > >   4 4 :                           - > s u b j e c t ( ' W A V E   P r e - c h e c k   i s   c o m p l e t e . ' ) 
 
         4 5 :                           - > l i n e ( " W A V E   F i l e   p r e c h e c k   i s   c o m p l e t e .   I f   y o u   r e c e i v e d   a n y   e r r o r   m e s s a g e s ,   y o u   m u s t   f i x   t h e   e r r o r s   b e f o r e   t h e   a c t u a l   b a t c h   i s   r u n . " ) ; 
 
         4 6 :           } 
 
 
 
     L i n e   4 5   [ m a t c h :   w a v e ] : 
 
         4 3 :                   r e t u r n   ( n e w   M a i l M e s s a g e ) 
 
         4 4 :                           - > s u b j e c t ( ' W A V E   P r e - c h e c k   i s   c o m p l e t e . ' ) 
 
   > >   4 5 :                           - > l i n e ( " W A V E   F i l e   p r e c h e c k   i s   c o m p l e t e .   I f   y o u   r e c e i v e d   a n y   e r r o r   m e s s a g e s ,   y o u   m u s t   f i x   t h e   e r r o r s   b e f o r e   t h e   a c t u a l   b a t c h   i s   r u n . " ) ; 
 
         4 6 :           } 
 
         4 7 :   
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W a v e ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e P r e c h e c k   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   4 4   [ m a t c h :   W a v e ] : 
 
         4 2 :           { 
 
         4 3 :                   r e t u r n   ( n e w   M a i l M e s s a g e ) 
 
   > >   4 4 :                           - > s u b j e c t ( ' W A V E   P r e - c h e c k   i s   c o m p l e t e . ' ) 
 
         4 5 :                           - > l i n e ( " W A V E   F i l e   p r e c h e c k   i s   c o m p l e t e .   I f   y o u   r e c e i v e d   a n y   e r r o r   m e s s a g e s ,   y o u   m u s t   f i x   t h e   e r r o r s   b e f o r e   t h e   a c t u a l   b a t c h   i s   r u n . " ) ; 
 
         4 6 :           } 
 
 
 
     L i n e   4 5   [ m a t c h :   W a v e ] : 
 
         4 3 :                   r e t u r n   ( n e w   M a i l M e s s a g e ) 
 
         4 4 :                           - > s u b j e c t ( ' W A V E   P r e - c h e c k   i s   c o m p l e t e . ' ) 
 
   > >   4 5 :                           - > l i n e ( " W A V E   F i l e   p r e c h e c k   i s   c o m p l e t e .   I f   y o u   r e c e i v e d   a n y   e r r o r   m e s s a g e s ,   y o u   m u s t   f i x   t h e   e r r o r s   b e f o r e   t h e   a c t u a l   b a t c h   i s   r u n . " ) ; 
 
         4 6 :           } 
 
         4 7 :   
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W A V E ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e P r e c h e c k   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   4 4   [ m a t c h :   W A V E ] : 
 
         4 2 :           { 
 
         4 3 :                   r e t u r n   ( n e w   M a i l M e s s a g e ) 
 
   > >   4 4 :                           - > s u b j e c t ( ' W A V E   P r e - c h e c k   i s   c o m p l e t e . ' ) 
 
         4 5 :                           - > l i n e ( " W A V E   F i l e   p r e c h e c k   i s   c o m p l e t e .   I f   y o u   r e c e i v e d   a n y   e r r o r   m e s s a g e s ,   y o u   m u s t   f i x   t h e   e r r o r s   b e f o r e   t h e   a c t u a l   b a t c h   i s   r u n . " ) ; 
 
         4 6 :           } 
 
 
 
     L i n e   4 5   [ m a t c h :   W A V E ] : 
 
         4 3 :                   r e t u r n   ( n e w   M a i l M e s s a g e ) 
 
         4 4 :                           - > s u b j e c t ( ' W A V E   P r e - c h e c k   i s   c o m p l e t e . ' ) 
 
   > >   4 5 :                           - > l i n e ( " W A V E   F i l e   p r e c h e c k   i s   c o m p l e t e .   I f   y o u   r e c e i v e d   a n y   e r r o r   m e s s a g e s ,   y o u   m u s t   f i x   t h e   e r r o r s   b e f o r e   t h e   a c t u a l   b a t c h   i s   r u n . " ) ; 
 
         4 6 :           } 
 
         4 7 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e S L P r o d u c t i o n M i s s i n g P a r t N u m b e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 5   [ m a t c h :   F R O M   ] : 
 
         5 3 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
         5 4 :                           - > s u b j e c t ( ' S l i t t e r   P r o d u c t i o n   f o r   '   .   $ t h i s - > p r o c e s s D a t e   .   '   M i s s i n g   C u s t o m e r   P a r t   N u m b e r ' ) 
 
   > >   5 5 :                           - > l i n e ( " P l e a s e   r e v i e w   t h e   a t t a c h e d   r e p o r t .     T h e s e   i t e m s   a r e   m i s s i n g   C u s t o m e r   P a r t   N u m b e r s   f r o m   y e s t e r d a y ' s   S l i t t e r   P r o d u c t i o n     O n c e   c o r r e c t e d ,   y o u   w i l l   n e e d   t o   r e p r o c e s s   t h e   W A V E   f i l e s . " ) ; 
 
         5 6 :           } 
 
         5 7 :   
 
 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   w a v e ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e S L P r o d u c t i o n M i s s i n g P a r t N u m b e r   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   5 5   [ m a t c h :   w a v e ] : 
 
         5 3 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
         5 4 :                           - > s u b j e c t ( ' S l i t t e r   P r o d u c t i o n   f o r   '   .   $ t h i s - > p r o c e s s D a t e   .   '   M i s s i n g   C u s t o m e r   P a r t   N u m b e r ' ) 
 
   > >   5 5 :                           - > l i n e ( " P l e a s e   r e v i e w   t h e   a t t a c h e d   r e p o r t .     T h e s e   i t e m s   a r e   m i s s i n g   C u s t o m e r   P a r t   N u m b e r s   f r o m   y e s t e r d a y ' s   S l i t t e r   P r o d u c t i o n     O n c e   c o r r e c t e d ,   y o u   w i l l   n e e d   t o   r e p r o c e s s   t h e   W A V E   f i l e s . " ) ; 
 
         5 6 :           } 
 
         5 7 :   
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W a v e ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e S L P r o d u c t i o n M i s s i n g P a r t N u m b e r   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   5 5   [ m a t c h :   W a v e ] : 
 
         5 3 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
         5 4 :                           - > s u b j e c t ( ' S l i t t e r   P r o d u c t i o n   f o r   '   .   $ t h i s - > p r o c e s s D a t e   .   '   M i s s i n g   C u s t o m e r   P a r t   N u m b e r ' ) 
 
   > >   5 5 :                           - > l i n e ( " P l e a s e   r e v i e w   t h e   a t t a c h e d   r e p o r t .     T h e s e   i t e m s   a r e   m i s s i n g   C u s t o m e r   P a r t   N u m b e r s   f r o m   y e s t e r d a y ' s   S l i t t e r   P r o d u c t i o n     O n c e   c o r r e c t e d ,   y o u   w i l l   n e e d   t o   r e p r o c e s s   t h e   W A V E   f i l e s . " ) ; 
 
         5 6 :           } 
 
         5 7 :   
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ N o t i f i c a t i o n s \ W a v e E D I ; 
 
         4 :   
 
         5 :   u s e   I l l u m i n a t e \ B u s \ Q u e u e a b l e ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W A V E ] : 
 
         8 :   u s e   I l l u m i n a t e \ N o t i f i c a t i o n s \ M e s s a g e s \ M a i l M e s s a g e ; 
 
         9 :   
 
   > >   1 0 :   c l a s s   W a v e S L P r o d u c t i o n M i s s i n g P a r t N u m b e r   e x t e n d s   N o t i f i c a t i o n 
 
         1 1 :   { 
 
         1 2 :           u s e   Q u e u e a b l e ; 
 
 
 
     L i n e   5 5   [ m a t c h :   W A V E ] : 
 
         5 3 :                           - > a t t a c h ( s t o r a g e _ p a t h ( ' a p p / '   .   $ t h i s - > a t t a c h m e n t P a t h ) ) 
 
         5 4 :                           - > s u b j e c t ( ' S l i t t e r   P r o d u c t i o n   f o r   '   .   $ t h i s - > p r o c e s s D a t e   .   '   M i s s i n g   C u s t o m e r   P a r t   N u m b e r ' ) 
 
   > >   5 5 :                           - > l i n e ( " P l e a s e   r e v i e w   t h e   a t t a c h e d   r e p o r t .     T h e s e   i t e m s   a r e   m i s s i n g   C u s t o m e r   P a r t   N u m b e r s   f r o m   y e s t e r d a y ' s   S l i t t e r   P r o d u c t i o n     O n c e   c o r r e c t e d ,   y o u   w i l l   n e e d   t o   r e p r o c e s s   t h e   W A V E   f i l e s . " ) ; 
 
         5 6 :           } 
 
         5 7 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ N o t i f i c a t i o n s \ I n v o i c e P D F s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 5   [ m a t c h :   F R O M   ] : 
 
         2 3 :           { 
 
         2 4 :                   $ M a i l M e s s a g e   =   n e w   M a i l M e s s a g e ; 
 
   > >   2 5 :                   $ M a i l M e s s a g e - > s u b j e c t ( " N e w   i n v o i c e s   f r o m   V o r t e q   C o i l   F i n i s h e r s   r e a d y   f o r   " . $ t h i s - > c o m p a n y N a m e ) ; 
 
         2 6 :                   $ M a i l M e s s a g e - > l i n e ( ' N e w   i n v o i c e s   a r e   r e a d y   f o r   y o u r   r e v i e w ' ) ; 
 
         2 7 :                   $ M a i l M e s s a g e - > l i n e ( ' T h e   f o l l o w i n g   l i n k s   w i l l   d o w n l o a d   t h e   l a t e s t   v e r s i o n   o f   t h e s e   d o c u m e n t s   f r o m   t h e   Q u e s t   c l i e n t   p o r t a l .   I f   y o u   n e e d   t o   s e t u p   y o u r   Q u e s t   a c c o u n t   p l e a s e   c l i c k   < a   h r e f = " ' . a c t i o n ( ' A u t h \ A c c o u n t R e q u e s t C o n t r o l l e r @ g e t R e q u e s t F o r m ' ) . ' " > h e r e < / a > .   F o r   y o u r   c o n v e n i e n c e   t h e   i n v o i c e s   a r e   a l s o   a t t a c h e d   t o   t h i s   e m a i l . ' ) ; 
 
 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :                   $ M a i l M e s s a g e - > s u b j e c t ( " N e w   i n v o i c e s   f r o m   V o r t e q   C o i l   F i n i s h e r s   r e a d y   f o r   " . $ t h i s - > c o m p a n y N a m e ) ; 
 
         2 6 :                   $ M a i l M e s s a g e - > l i n e ( ' N e w   i n v o i c e s   a r e   r e a d y   f o r   y o u r   r e v i e w ' ) ; 
 
   > >   2 7 :                   $ M a i l M e s s a g e - > l i n e ( ' T h e   f o l l o w i n g   l i n k s   w i l l   d o w n l o a d   t h e   l a t e s t   v e r s i o n   o f   t h e s e   d o c u m e n t s   f r o m   t h e   Q u e s t   c l i e n t   p o r t a l .   I f   y o u   n e e d   t o   s e t u p   y o u r   Q u e s t   a c c o u n t   p l e a s e   c l i c k   < a   h r e f = " ' . a c t i o n ( ' A u t h \ A c c o u n t R e q u e s t C o n t r o l l e r @ g e t R e q u e s t F o r m ' ) . ' " > h e r e < / a > .   F o r   y o u r   c o n v e n i e n c e   t h e   i n v o i c e s   a r e   a l s o   a t t a c h e d   t o   t h i s   e m a i l . ' ) ; 
 
         2 8 :                   / / $ M a i l M e s s a g e - > l i n e ( $ t h i s - > c o m p a n y N a m e ) ; 
 
         2 9 :                   f o r e a c h ( $ t h i s - > i n v o i c e I n f o   a s   $ i n v o i c e I n f o S i n g l e ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ N o t i f i c a t i o n s \ O r d e r A c k n o w l e d g e m e n t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 3   [ m a t c h :   F R O M   ] : 
 
         3 1 :           { 
 
         3 2 :                   $ M a i l M e s s a g e   =   n e w   M a i l M e s s a g e ; 
 
   > >   3 3 :                   $ M a i l M e s s a g e - > s u b j e c t ( " N e w   o r d e r   a c k n o w l e d g e m e n t s   f r o m   V o r t e q   C o i l   F i n i s h e r s   r e a d y   f o r   " . $ t h i s - > _ c o m p a n y N a m e ) ; 
 
         3 4 :                   / / $ M a i l M e s s a g e - > s u b j e c t ( " V o r t e q   C o i l   F i n i s h e r s   -   N e w   S a l e s   O r d e r   A c k n o w l e d g e m e n t ( s )   " . $ t h i s - > _ c u s t o m e r I D . '   ( ' . i m p l o d e ( ' ,   ' , a r r a y _ m a p ( f u n c t i o n ( $ v a l ) { r e t u r n   $ v a l [ ' O r d e r N u m ' ] ; } , $ t h i s - > _ o r d e r s ) ) . ' ) ' ) ; 
 
         3 5 :                   $ M a i l M e s s a g e - > l i n e ( ' N e w   s a l e s   o r d e r   a c k n o w l e d g e m e n t s   a r e   r e a d y   f o r   y o u r   r e v i e w . ' ) ; 
 
 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :                   / / $ M a i l M e s s a g e - > s u b j e c t ( " V o r t e q   C o i l   F i n i s h e r s   -   N e w   S a l e s   O r d e r   A c k n o w l e d g e m e n t ( s )   " . $ t h i s - > _ c u s t o m e r I D . '   ( ' . i m p l o d e ( ' ,   ' , a r r a y _ m a p ( f u n c t i o n ( $ v a l ) { r e t u r n   $ v a l [ ' O r d e r N u m ' ] ; } , $ t h i s - > _ o r d e r s ) ) . ' ) ' ) ; 
 
         3 5 :                   $ M a i l M e s s a g e - > l i n e ( ' N e w   s a l e s   o r d e r   a c k n o w l e d g e m e n t s   a r e   r e a d y   f o r   y o u r   r e v i e w . ' ) ; 
 
   > >   3 6 :                   $ M a i l M e s s a g e - > l i n e ( ' T h e   f o l l o w i n g   l i n k s   w i l l   d o w n l o a d   t h e   l a t e s t   v e r s i o n   o f   t h e s e   d o c u m e n t s   f r o m   t h e   Q u e s t   c l i e n t   p o r t a l .   I f   y o u   n e e d   t o   s e t u p   y o u r   Q u e s t   a c c o u n t   p l e a s e   c l i c k   < a   h r e f = " ' . a c t i o n ( ' A u t h \ A c c o u n t R e q u e s t C o n t r o l l e r @ g e t R e q u e s t F o r m ' ) . ' " > h e r e < / a > .   F o r   y o u r   c o n v e n i e n c e   t h e   s a l e s   o r d e r   a c k n o w l e d g e m e n t s   a r e   a l s o   a t t a c h e d   t o   t h i s   e m a i l . ' ) ; 
 
         3 7 :                   / / $ M a i l M e s s a g e - > l i n e ( $ t h i s - > _ c o m p a n y N a m e ) ; 
 
         3 8 :                   f o r e a c h ( $ t h i s - > _ o r d e r s   a s   $ o r d e r I n f o S i n g l e ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ P r o v i d e r s \ A p p S e r v i c e P r o v i d e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 0   [ m a t c h :   e p i c o r ] : 
 
         1 8 :   
 
         1 9 :                   $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ S e r v i c e s \ Q u e s t P a g e V a l u e s ' ) ; 
 
   > >   2 0 :                   $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ' ) ; 
 
         2 1 :                   $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ S e r v i c e s \ I n v e n t o r y H e l p e r ' ) ; 
 
         2 2 :                   $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ S e r v i c e s \ S e l e c t e d C o m p a n y P r o v i d e r ' ) ; 
 
 
 
     L i n e   2 0   [ m a t c h :   E p i c o r ] : 
 
         1 8 :   
 
         1 9 :                   $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ S e r v i c e s \ Q u e s t P a g e V a l u e s ' ) ; 
 
   > >   2 0 :                   $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ' ) ; 
 
         2 1 :                   $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ S e r v i c e s \ I n v e n t o r y H e l p e r ' ) ; 
 
         2 2 :                   $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ S e r v i c e s \ S e l e c t e d C o m p a n y P r o v i d e r ' ) ; 
 
 
 
     L i n e   2 0   [ m a t c h :   E P I C O R ] : 
 
         1 8 :   
 
         1 9 :                   $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ S e r v i c e s \ Q u e s t P a g e V a l u e s ' ) ; 
 
   > >   2 0 :                   $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ' ) ; 
 
         2 1 :                   $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ S e r v i c e s \ I n v e n t o r y H e l p e r ' ) ; 
 
         2 2 :                   $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ S e r v i c e s \ S e l e c t e d C o m p a n y P r o v i d e r ' ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ P r o v i d e r s \ M o d e l S e r v i c e P r o v i d e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 2 0   [ m a t c h :   w a v e ] : 
 
         6 1 8 :   	 	 } ) ; 
 
         6 1 9 :   
 
   > >   6 2 0 :   	 	 / /   r e g i s t e r   w a v e _ P r o c e s s   r e p o s i t o r y 
 
         6 2 1 :   	 	 $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ' ,   f u n c t i o n ( A p p l i c a t i o n   $ a p p ) { 
 
         6 2 2 :   	 	 	 / * *   @ v a r   \ S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r   $ E M C o n t a i n e r   * / 
 
 
 
     L i n e   6 2 1   [ m a t c h :   w a v e ] : 
 
         6 1 9 :   
 
         6 2 0 :   	 	 / /   r e g i s t e r   w a v e _ P r o c e s s   r e p o s i t o r y 
 
   > >   6 2 1 :   	 	 $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ' ,   f u n c t i o n ( A p p l i c a t i o n   $ a p p ) { 
 
         6 2 2 :   	 	 	 / * *   @ v a r   \ S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r   $ E M C o n t a i n e r   * / 
 
         6 2 3 :   	 	 	 $ E M C o n t a i n e r   =   $ a p p - > m a k e ( ' S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ' ) ; 
 
 
 
     L i n e   6 2 6   [ m a t c h :   w a v e ] : 
 
         6 2 4 :   	 	 	 / * *   @ v a r   \ I l l u m i n a t e \ C o n t r a c t s \ C o n f i g \ R e p o s i t o r y   $ A p p C o n f i g   * / 
 
         6 2 5 :   	 	 	 $ A p p C o n f i g   =   $ a p p - > m a k e ( ' c o n f i g ' ) ; 
 
   > >   6 2 6 :   	 	 	 r e t u r n   $ E M C o n t a i n e r - > g e t E M ( $ A p p C o n f i g - > g e t ( ' d a t a b a s e . d e f a u l t ' ) ) - > g e t R e p o s i t o r y ( ' A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s ' ) ; 
 
         6 2 7 :   	 	 } ) ; 
 
         6 2 8 :   
 
 
 
     L i n e   6 2 9   [ m a t c h :   w a v e ] : 
 
         6 2 7 :   	 	 } ) ; 
 
         6 2 8 :   
 
   > >   6 2 9 :   	 	 / /   r e g i s t e r   w a v e _ P r o c e s s H i s t o r y   r e p o s i t o r y 
 
         6 3 0 :   	 	 $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y ' ,   f u n c t i o n ( A p p l i c a t i o n   $ a p p ) { 
 
         6 3 1 :   	 	 	 / * *   @ v a r   \ S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r   $ E M C o n t a i n e r   * / 
 
 
 
     L i n e   6 3 0   [ m a t c h :   w a v e ] : 
 
         6 2 8 :   
 
         6 2 9 :   	 	 / /   r e g i s t e r   w a v e _ P r o c e s s H i s t o r y   r e p o s i t o r y 
 
   > >   6 3 0 :   	 	 $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y ' ,   f u n c t i o n ( A p p l i c a t i o n   $ a p p ) { 
 
         6 3 1 :   	 	 	 / * *   @ v a r   \ S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r   $ E M C o n t a i n e r   * / 
 
         6 3 2 :   	 	 	 $ E M C o n t a i n e r   =   $ a p p - > m a k e ( ' S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ' ) ; 
 
 
 
     L i n e   6 3 5   [ m a t c h :   w a v e ] : 
 
         6 3 3 :   	 	 	 / * *   @ v a r   \ I l l u m i n a t e \ C o n t r a c t s \ C o n f i g \ R e p o s i t o r y   $ A p p C o n f i g   * / 
 
         6 3 4 :   	 	 	 $ A p p C o n f i g   =   $ a p p - > m a k e ( ' c o n f i g ' ) ; 
 
   > >   6 3 5 :   	 	 	 r e t u r n   $ E M C o n t a i n e r - > g e t E M ( $ A p p C o n f i g - > g e t ( ' d a t a b a s e . d e f a u l t ' ) ) - > g e t R e p o s i t o r y ( ' A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y ' ) ; 
 
         6 3 6 :   	 	 } ) ; 
 
         6 3 7 :   
 
 
 
     L i n e   6 2 0   [ m a t c h :   W a v e ] : 
 
         6 1 8 :   	 	 } ) ; 
 
         6 1 9 :   
 
   > >   6 2 0 :   	 	 / /   r e g i s t e r   w a v e _ P r o c e s s   r e p o s i t o r y 
 
         6 2 1 :   	 	 $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ' ,   f u n c t i o n ( A p p l i c a t i o n   $ a p p ) { 
 
         6 2 2 :   	 	 	 / * *   @ v a r   \ S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r   $ E M C o n t a i n e r   * / 
 
 
 
     L i n e   6 2 1   [ m a t c h :   W a v e ] : 
 
         6 1 9 :   
 
         6 2 0 :   	 	 / /   r e g i s t e r   w a v e _ P r o c e s s   r e p o s i t o r y 
 
   > >   6 2 1 :   	 	 $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ' ,   f u n c t i o n ( A p p l i c a t i o n   $ a p p ) { 
 
         6 2 2 :   	 	 	 / * *   @ v a r   \ S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r   $ E M C o n t a i n e r   * / 
 
         6 2 3 :   	 	 	 $ E M C o n t a i n e r   =   $ a p p - > m a k e ( ' S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ' ) ; 
 
 
 
     L i n e   6 2 6   [ m a t c h :   W a v e ] : 
 
         6 2 4 :   	 	 	 / * *   @ v a r   \ I l l u m i n a t e \ C o n t r a c t s \ C o n f i g \ R e p o s i t o r y   $ A p p C o n f i g   * / 
 
         6 2 5 :   	 	 	 $ A p p C o n f i g   =   $ a p p - > m a k e ( ' c o n f i g ' ) ; 
 
   > >   6 2 6 :   	 	 	 r e t u r n   $ E M C o n t a i n e r - > g e t E M ( $ A p p C o n f i g - > g e t ( ' d a t a b a s e . d e f a u l t ' ) ) - > g e t R e p o s i t o r y ( ' A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s ' ) ; 
 
         6 2 7 :   	 	 } ) ; 
 
         6 2 8 :   
 
 
 
     L i n e   6 2 9   [ m a t c h :   W a v e ] : 
 
         6 2 7 :   	 	 } ) ; 
 
         6 2 8 :   
 
   > >   6 2 9 :   	 	 / /   r e g i s t e r   w a v e _ P r o c e s s H i s t o r y   r e p o s i t o r y 
 
         6 3 0 :   	 	 $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y ' ,   f u n c t i o n ( A p p l i c a t i o n   $ a p p ) { 
 
         6 3 1 :   	 	 	 / * *   @ v a r   \ S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r   $ E M C o n t a i n e r   * / 
 
 
 
     L i n e   6 3 0   [ m a t c h :   W a v e ] : 
 
         6 2 8 :   
 
         6 2 9 :   	 	 / /   r e g i s t e r   w a v e _ P r o c e s s H i s t o r y   r e p o s i t o r y 
 
   > >   6 3 0 :   	 	 $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y ' ,   f u n c t i o n ( A p p l i c a t i o n   $ a p p ) { 
 
         6 3 1 :   	 	 	 / * *   @ v a r   \ S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r   $ E M C o n t a i n e r   * / 
 
         6 3 2 :   	 	 	 $ E M C o n t a i n e r   =   $ a p p - > m a k e ( ' S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ' ) ; 
 
 
 
     L i n e   6 3 5   [ m a t c h :   W a v e ] : 
 
         6 3 3 :   	 	 	 / * *   @ v a r   \ I l l u m i n a t e \ C o n t r a c t s \ C o n f i g \ R e p o s i t o r y   $ A p p C o n f i g   * / 
 
         6 3 4 :   	 	 	 $ A p p C o n f i g   =   $ a p p - > m a k e ( ' c o n f i g ' ) ; 
 
   > >   6 3 5 :   	 	 	 r e t u r n   $ E M C o n t a i n e r - > g e t E M ( $ A p p C o n f i g - > g e t ( ' d a t a b a s e . d e f a u l t ' ) ) - > g e t R e p o s i t o r y ( ' A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y ' ) ; 
 
         6 3 6 :   	 	 } ) ; 
 
         6 3 7 :   
 
 
 
     L i n e   6 2 0   [ m a t c h :   W A V E ] : 
 
         6 1 8 :   	 	 } ) ; 
 
         6 1 9 :   
 
   > >   6 2 0 :   	 	 / /   r e g i s t e r   w a v e _ P r o c e s s   r e p o s i t o r y 
 
         6 2 1 :   	 	 $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ' ,   f u n c t i o n ( A p p l i c a t i o n   $ a p p ) { 
 
         6 2 2 :   	 	 	 / * *   @ v a r   \ S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r   $ E M C o n t a i n e r   * / 
 
 
 
     L i n e   6 2 1   [ m a t c h :   W A V E ] : 
 
         6 1 9 :   
 
         6 2 0 :   	 	 / /   r e g i s t e r   w a v e _ P r o c e s s   r e p o s i t o r y 
 
   > >   6 2 1 :   	 	 $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ' ,   f u n c t i o n ( A p p l i c a t i o n   $ a p p ) { 
 
         6 2 2 :   	 	 	 / * *   @ v a r   \ S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r   $ E M C o n t a i n e r   * / 
 
         6 2 3 :   	 	 	 $ E M C o n t a i n e r   =   $ a p p - > m a k e ( ' S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ' ) ; 
 
 
 
     L i n e   6 2 6   [ m a t c h :   W A V E ] : 
 
         6 2 4 :   	 	 	 / * *   @ v a r   \ I l l u m i n a t e \ C o n t r a c t s \ C o n f i g \ R e p o s i t o r y   $ A p p C o n f i g   * / 
 
         6 2 5 :   	 	 	 $ A p p C o n f i g   =   $ a p p - > m a k e ( ' c o n f i g ' ) ; 
 
   > >   6 2 6 :   	 	 	 r e t u r n   $ E M C o n t a i n e r - > g e t E M ( $ A p p C o n f i g - > g e t ( ' d a t a b a s e . d e f a u l t ' ) ) - > g e t R e p o s i t o r y ( ' A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s ' ) ; 
 
         6 2 7 :   	 	 } ) ; 
 
         6 2 8 :   
 
 
 
     L i n e   6 2 9   [ m a t c h :   W A V E ] : 
 
         6 2 7 :   	 	 } ) ; 
 
         6 2 8 :   
 
   > >   6 2 9 :   	 	 / /   r e g i s t e r   w a v e _ P r o c e s s H i s t o r y   r e p o s i t o r y 
 
         6 3 0 :   	 	 $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y ' ,   f u n c t i o n ( A p p l i c a t i o n   $ a p p ) { 
 
         6 3 1 :   	 	 	 / * *   @ v a r   \ S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r   $ E M C o n t a i n e r   * / 
 
 
 
     L i n e   6 3 0   [ m a t c h :   W A V E ] : 
 
         6 2 8 :   
 
         6 2 9 :   	 	 / /   r e g i s t e r   w a v e _ P r o c e s s H i s t o r y   r e p o s i t o r y 
 
   > >   6 3 0 :   	 	 $ t h i s - > a p p - > s i n g l e t o n ( ' A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s H i s t o r y ' ,   f u n c t i o n ( A p p l i c a t i o n   $ a p p ) { 
 
         6 3 1 :   	 	 	 / * *   @ v a r   \ S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r   $ E M C o n t a i n e r   * / 
 
         6 3 2 :   	 	 	 $ E M C o n t a i n e r   =   $ a p p - > m a k e ( ' S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ' ) ; 
 
 
 
     L i n e   6 3 5   [ m a t c h :   W A V E ] : 
 
         6 3 3 :   	 	 	 / * *   @ v a r   \ I l l u m i n a t e \ C o n t r a c t s \ C o n f i g \ R e p o s i t o r y   $ A p p C o n f i g   * / 
 
         6 3 4 :   	 	 	 $ A p p C o n f i g   =   $ a p p - > m a k e ( ' c o n f i g ' ) ; 
 
   > >   6 3 5 :   	 	 	 r e t u r n   $ E M C o n t a i n e r - > g e t E M ( $ A p p C o n f i g - > g e t ( ' d a t a b a s e . d e f a u l t ' ) ) - > g e t R e p o s i t o r y ( ' A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s H i s t o r y ' ) ; 
 
         6 3 6 :   	 	 } ) ; 
 
         6 3 7 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ A P C h e c k P r o c e s s i n g \ C r e a t e C S V . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6   [ m a t c h :   e p i c o r ] : 
 
         4 :   $ c o n n   =   $ t h i s - > c o n n R O ; 
 
         5 :   
 
   > >   6 :   $ s q l     =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / . . / e p i c o r e S Q L / A P - C h e c k P r o c e s s i n g / h e a d e r . s q l " ) ; 
 
         7 :   $ s t h   =   $ c o n n - > p r e p a r e ( $ s q l ) ; 
 
         8 :   $ s t h - > e x e c u t e ( ) ; 
 
 
 
     L i n e   1 5 3   [ m a t c h :   e p i c o r ] : 
 
         1 5 1 :   
 
         1 5 2 :   
 
   > >   1 5 3 :           $ s q l     =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / . . / e p i c o r e S Q L / A P - C h e c k P r o c e s s i n g / i n v o i c e l i n e s . s q l " ) ; 
 
         1 5 4 :           $ s t h   =   $ c o n n - > p r e p a r e ( $ s q l ) ; 
 
         1 5 5 :           $ s t h - > e x e c u t e ( [ ' : C H E C K N U M '   = >   $ c h e c k N u m ] ) ; 
 
 
 
     L i n e   2 2 5   [ m a t c h :   e p i c o r ] : 
 
         2 2 3 :   
 
         2 2 4 :   
 
   > >   2 2 5 :   $ s q l     =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / . . / e p i c o r e S Q L / A P - C h e c k P r o c e s s i n g / f o o t e r . s q l " ) ; 
 
         2 2 6 :   $ s t h   =   $ c o n n - > p r e p a r e ( $ s q l ) ; 
 
         2 2 7 :   $ s t h - > e x e c u t e ( ) ; 
 
 
 
     L i n e   6   [ m a t c h :   E p i c o r ] : 
 
         4 :   $ c o n n   =   $ t h i s - > c o n n R O ; 
 
         5 :   
 
   > >   6 :   $ s q l     =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / . . / e p i c o r e S Q L / A P - C h e c k P r o c e s s i n g / h e a d e r . s q l " ) ; 
 
         7 :   $ s t h   =   $ c o n n - > p r e p a r e ( $ s q l ) ; 
 
         8 :   $ s t h - > e x e c u t e ( ) ; 
 
 
 
     L i n e   1 5 3   [ m a t c h :   E p i c o r ] : 
 
         1 5 1 :   
 
         1 5 2 :   
 
   > >   1 5 3 :           $ s q l     =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / . . / e p i c o r e S Q L / A P - C h e c k P r o c e s s i n g / i n v o i c e l i n e s . s q l " ) ; 
 
         1 5 4 :           $ s t h   =   $ c o n n - > p r e p a r e ( $ s q l ) ; 
 
         1 5 5 :           $ s t h - > e x e c u t e ( [ ' : C H E C K N U M '   = >   $ c h e c k N u m ] ) ; 
 
 
 
     L i n e   2 2 5   [ m a t c h :   E p i c o r ] : 
 
         2 2 3 :   
 
         2 2 4 :   
 
   > >   2 2 5 :   $ s q l     =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / . . / e p i c o r e S Q L / A P - C h e c k P r o c e s s i n g / f o o t e r . s q l " ) ; 
 
         2 2 6 :   $ s t h   =   $ c o n n - > p r e p a r e ( $ s q l ) ; 
 
         2 2 7 :   $ s t h - > e x e c u t e ( ) ; 
 
 
 
     L i n e   6   [ m a t c h :   E P I C O R ] : 
 
         4 :   $ c o n n   =   $ t h i s - > c o n n R O ; 
 
         5 :   
 
   > >   6 :   $ s q l     =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / . . / e p i c o r e S Q L / A P - C h e c k P r o c e s s i n g / h e a d e r . s q l " ) ; 
 
         7 :   $ s t h   =   $ c o n n - > p r e p a r e ( $ s q l ) ; 
 
         8 :   $ s t h - > e x e c u t e ( ) ; 
 
 
 
     L i n e   1 5 3   [ m a t c h :   E P I C O R ] : 
 
         1 5 1 :   
 
         1 5 2 :   
 
   > >   1 5 3 :           $ s q l     =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / . . / e p i c o r e S Q L / A P - C h e c k P r o c e s s i n g / i n v o i c e l i n e s . s q l " ) ; 
 
         1 5 4 :           $ s t h   =   $ c o n n - > p r e p a r e ( $ s q l ) ; 
 
         1 5 5 :           $ s t h - > e x e c u t e ( [ ' : C H E C K N U M '   = >   $ c h e c k N u m ] ) ; 
 
 
 
     L i n e   2 2 5   [ m a t c h :   E P I C O R ] : 
 
         2 2 3 :   
 
         2 2 4 :   
 
   > >   2 2 5 :   $ s q l     =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / . . / e p i c o r e S Q L / A P - C h e c k P r o c e s s i n g / f o o t e r . s q l " ) ; 
 
         2 2 6 :   $ s t h   =   $ c o n n - > p r e p a r e ( $ s q l ) ; 
 
         2 2 7 :   $ s t h - > e x e c u t e ( ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ A l l o c C a r t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 9   [ m a t c h :   e p i c o r ] : 
 
         7 7 :                           e l s e 
 
         7 8 :                           { 
 
   > >   7 9 :                                   $ E p i c o r C u s t I D   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         8 0 :                                   i f ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         8 1 :                                           r e t u r n ; 
 
 
 
     L i n e   8 0   [ m a t c h :   e p i c o r ] : 
 
         7 8 :                           { 
 
         7 9 :                                   $ E p i c o r C u s t I D   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
   > >   8 0 :                                   i f ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         8 1 :                                           r e t u r n ; 
 
         8 2 :                                   $ t h i s - > d b A l l o c a t i o n   =   $ R O A l l o c R e u e s t R e p o - > g e t O p e n A l l o c a t i o n W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ) ; 
 
 
 
     L i n e   8 2   [ m a t c h :   e p i c o r ] : 
 
         8 0 :                                   i f ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         8 1 :                                           r e t u r n ; 
 
   > >   8 2 :                                   $ t h i s - > d b A l l o c a t i o n   =   $ R O A l l o c R e u e s t R e p o - > g e t O p e n A l l o c a t i o n W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ) ; 
 
         8 3 :                           } 
 
         8 4 :                   }   c a t c h ( N o n U n i q u e R e s u l t E x c e p t i o n   $ e )   {   / /   s h o u l d   r e a l i s t i c a l l y   n e v e r   h a p p e n   d u e   t o   I D X _ S h i p m e n t R e q u e s t S i n g l e O p e n C a r t C o n s t r a i n t 
 
 
 
     L i n e   7 9   [ m a t c h :   E p i c o r ] : 
 
         7 7 :                           e l s e 
 
         7 8 :                           { 
 
   > >   7 9 :                                   $ E p i c o r C u s t I D   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         8 0 :                                   i f ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         8 1 :                                           r e t u r n ; 
 
 
 
     L i n e   8 0   [ m a t c h :   E p i c o r ] : 
 
         7 8 :                           { 
 
         7 9 :                                   $ E p i c o r C u s t I D   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
   > >   8 0 :                                   i f ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         8 1 :                                           r e t u r n ; 
 
         8 2 :                                   $ t h i s - > d b A l l o c a t i o n   =   $ R O A l l o c R e u e s t R e p o - > g e t O p e n A l l o c a t i o n W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ) ; 
 
 
 
     L i n e   8 2   [ m a t c h :   E p i c o r ] : 
 
         8 0 :                                   i f ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         8 1 :                                           r e t u r n ; 
 
   > >   8 2 :                                   $ t h i s - > d b A l l o c a t i o n   =   $ R O A l l o c R e u e s t R e p o - > g e t O p e n A l l o c a t i o n W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ) ; 
 
         8 3 :                           } 
 
         8 4 :                   }   c a t c h ( N o n U n i q u e R e s u l t E x c e p t i o n   $ e )   {   / /   s h o u l d   r e a l i s t i c a l l y   n e v e r   h a p p e n   d u e   t o   I D X _ S h i p m e n t R e q u e s t S i n g l e O p e n C a r t C o n s t r a i n t 
 
 
 
     L i n e   7 9   [ m a t c h :   E P I C O R ] : 
 
         7 7 :                           e l s e 
 
         7 8 :                           { 
 
   > >   7 9 :                                   $ E p i c o r C u s t I D   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         8 0 :                                   i f ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         8 1 :                                           r e t u r n ; 
 
 
 
     L i n e   8 0   [ m a t c h :   E P I C O R ] : 
 
         7 8 :                           { 
 
         7 9 :                                   $ E p i c o r C u s t I D   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
   > >   8 0 :                                   i f ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         8 1 :                                           r e t u r n ; 
 
         8 2 :                                   $ t h i s - > d b A l l o c a t i o n   =   $ R O A l l o c R e u e s t R e p o - > g e t O p e n A l l o c a t i o n W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ) ; 
 
 
 
     L i n e   8 2   [ m a t c h :   E P I C O R ] : 
 
         8 0 :                                   i f ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         8 1 :                                           r e t u r n ; 
 
   > >   8 2 :                                   $ t h i s - > d b A l l o c a t i o n   =   $ R O A l l o c R e u e s t R e p o - > g e t O p e n A l l o c a t i o n W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ) ; 
 
         8 3 :                           } 
 
         8 4 :                   }   c a t c h ( N o n U n i q u e R e s u l t E x c e p t i o n   $ e )   {   / /   s h o u l d   r e a l i s t i c a l l y   n e v e r   h a p p e n   d u e   t o   I D X _ S h i p m e n t R e q u e s t S i n g l e O p e n C a r t C o n s t r a i n t 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1   [ m a t c h :   e p i c o r ] : 
 
   > >   1 :   < ? p h p   n a m e s p a c e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a ; 
 
         2 :   
 
         3 :   c l a s s   E n t i t y M e t a d a t a   e x t e n d s   \ S a v v i o r \ M e t a d a t a \ E n t i t y M e t a d a t a 
 
 
 
     L i n e   1   [ m a t c h :   E p i c o r ] : 
 
   > >   1 :   < ? p h p   n a m e s p a c e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a ; 
 
         2 :   
 
         3 :   c l a s s   E n t i t y M e t a d a t a   e x t e n d s   \ S a v v i o r \ M e t a d a t a \ E n t i t y M e t a d a t a 
 
 
 
     L i n e   1   [ m a t c h :   E P I C O R ] : 
 
   > >   1 :   < ? p h p   n a m e s p a c e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a ; 
 
         2 :   
 
         3 :   c l a s s   E n t i t y M e t a d a t a   e x t e n d s   \ S a v v i o r \ M e t a d a t a \ E n t i t y M e t a d a t a 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ U n i q u e E p i c o r C u s t I D . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7   [ m a t c h :   e p i c o r ] : 
 
         5 :   u s e   S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ I n p u t V a l i d a t o r I n t e r f a c e ; 
 
         6 :   
 
   > >   7 :   c l a s s   U n i q u e E p i c o r C u s t I D   i m p l e m e n t s   I n p u t V a l i d a t o r I n t e r f a c e 
 
         8 :   { 
 
         9 :           p r o t e c t e d   $ c u r r e n t C o m p a n y I D   =   n u l l ; 
 
 
 
     L i n e   1 2   [ m a t c h :   e p i c o r ] : 
 
         1 0 :   
 
         1 1 :           / * * 
 
   > >   1 2 :             *   U n i q u e E p i c o r C u s t I D   c o n s t r u c t o r . 
 
         1 3 :             *   @ p a r a m   i n t | n u l l   $ C o m p a n y I D 
 
         1 4 :             * / 
 
 
 
     L i n e   4 5   [ m a t c h :   e p i c o r ] : 
 
         4 3 :                           $ v a l u e   =   s t r t o u p p e r ( $ v a l u e ) ; 
 
         4 4 :   
 
   > >   4 5 :                   $ E x i s t i n g C o m p a n y   =   $ R O Q u e s t C o m p a n y R e p o - > f i n d O n e B y ( [ ' E p i c o r C u s t I D '   = >   $ v a l u e ] ) ; 
 
         4 6 :                   i f ( ! i s _ o b j e c t ( $ E x i s t i n g C o m p a n y ) ) 
 
         4 7 :                           r e t u r n   t r u e ; 
 
 
 
     L i n e   7   [ m a t c h :   E p i c o r ] : 
 
         5 :   u s e   S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ I n p u t V a l i d a t o r I n t e r f a c e ; 
 
         6 :   
 
   > >   7 :   c l a s s   U n i q u e E p i c o r C u s t I D   i m p l e m e n t s   I n p u t V a l i d a t o r I n t e r f a c e 
 
         8 :   { 
 
         9 :           p r o t e c t e d   $ c u r r e n t C o m p a n y I D   =   n u l l ; 
 
 
 
     L i n e   1 2   [ m a t c h :   E p i c o r ] : 
 
         1 0 :   
 
         1 1 :           / * * 
 
   > >   1 2 :             *   U n i q u e E p i c o r C u s t I D   c o n s t r u c t o r . 
 
         1 3 :             *   @ p a r a m   i n t | n u l l   $ C o m p a n y I D 
 
         1 4 :             * / 
 
 
 
     L i n e   4 5   [ m a t c h :   E p i c o r ] : 
 
         4 3 :                           $ v a l u e   =   s t r t o u p p e r ( $ v a l u e ) ; 
 
         4 4 :   
 
   > >   4 5 :                   $ E x i s t i n g C o m p a n y   =   $ R O Q u e s t C o m p a n y R e p o - > f i n d O n e B y ( [ ' E p i c o r C u s t I D '   = >   $ v a l u e ] ) ; 
 
         4 6 :                   i f ( ! i s _ o b j e c t ( $ E x i s t i n g C o m p a n y ) ) 
 
         4 7 :                           r e t u r n   t r u e ; 
 
 
 
     L i n e   7   [ m a t c h :   E P I C O R ] : 
 
         5 :   u s e   S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ I n p u t V a l i d a t o r I n t e r f a c e ; 
 
         6 :   
 
   > >   7 :   c l a s s   U n i q u e E p i c o r C u s t I D   i m p l e m e n t s   I n p u t V a l i d a t o r I n t e r f a c e 
 
         8 :   { 
 
         9 :           p r o t e c t e d   $ c u r r e n t C o m p a n y I D   =   n u l l ; 
 
 
 
     L i n e   1 2   [ m a t c h :   E P I C O R ] : 
 
         1 0 :   
 
         1 1 :           / * * 
 
   > >   1 2 :             *   U n i q u e E p i c o r C u s t I D   c o n s t r u c t o r . 
 
         1 3 :             *   @ p a r a m   i n t | n u l l   $ C o m p a n y I D 
 
         1 4 :             * / 
 
 
 
     L i n e   4 5   [ m a t c h :   E P I C O R ] : 
 
         4 3 :                           $ v a l u e   =   s t r t o u p p e r ( $ v a l u e ) ; 
 
         4 4 :   
 
   > >   4 5 :                   $ E x i s t i n g C o m p a n y   =   $ R O Q u e s t C o m p a n y R e p o - > f i n d O n e B y ( [ ' E p i c o r C u s t I D '   = >   $ v a l u e ] ) ; 
 
         4 6 :                   i f ( ! i s _ o b j e c t ( $ E x i s t i n g C o m p a n y ) ) 
 
         4 7 :                           r e t u r n   t r u e ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ I n p u t V a l i d a t o r s \ V a l i d E p i c o r C u s t I D . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   e p i c o r ] : 
 
         1 :   < ? p h p   n a m e s p a c e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s ; 
 
         2 :   
 
   > >   3 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         4 :   u s e   S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ I n p u t I n t e r f a c e ; 
 
         5 :   u s e   S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ I n p u t V a l i d a t o r I n t e r f a c e ; 
 
 
 
     L i n e   7   [ m a t c h :   e p i c o r ] : 
 
         5 :   u s e   S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ I n p u t V a l i d a t o r I n t e r f a c e ; 
 
         6 :   
 
   > >   7 :   c l a s s   V a l i d E p i c o r C u s t I D   i m p l e m e n t s   I n p u t V a l i d a t o r I n t e r f a c e 
 
         8 :   { 
 
         9 :           p r o t e c t e d   $ c u r r e n t C o m p a n y I D   =   n u l l ; 
 
 
 
     L i n e   2 6   [ m a t c h :   e p i c o r ] : 
 
         2 4 :           p u b l i c   f u n c t i o n   t e s t V a l u e ( $ v a l u e ) 
 
         2 5 :           { 
 
   > >   2 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         2 7 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 8 :   
 
 
 
     L i n e   2 7   [ m a t c h :   e p i c o r ] : 
 
         2 5 :           { 
 
         2 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   2 7 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 8 :   
 
         2 9 :                   r e t u r n   ( $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ v a l u e )   ! = =   F A L S E ) ; 
 
 
 
     L i n e   2 9   [ m a t c h :   e p i c o r ] : 
 
         2 7 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 8 :   
 
   > >   2 9 :                   r e t u r n   ( $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ v a l u e )   ! = =   F A L S E ) ; 
 
         3 0 :           } 
 
         3 1 :   
 
 
 
     L i n e   3 8   [ m a t c h :   e p i c o r ] : 
 
         3 6 :           p u b l i c   f u n c t i o n   g e t E r r o r ( $ f i e l d L a b e l ) 
 
         3 7 :           { 
 
   > >   3 8 :                   r e t u r n   ' T h e   C u s t o m e r   I D   e n t e r e d   d o e s   n o t   e x i s t   i n   E p i c o r ' ; 
 
         3 9 :           } 
 
         4 0 :   
 
 
 
     L i n e   3   [ m a t c h :   E p i c o r ] : 
 
         1 :   < ? p h p   n a m e s p a c e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s ; 
 
         2 :   
 
   > >   3 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         4 :   u s e   S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ I n p u t I n t e r f a c e ; 
 
         5 :   u s e   S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ I n p u t V a l i d a t o r I n t e r f a c e ; 
 
 
 
     L i n e   7   [ m a t c h :   E p i c o r ] : 
 
         5 :   u s e   S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ I n p u t V a l i d a t o r I n t e r f a c e ; 
 
         6 :   
 
   > >   7 :   c l a s s   V a l i d E p i c o r C u s t I D   i m p l e m e n t s   I n p u t V a l i d a t o r I n t e r f a c e 
 
         8 :   { 
 
         9 :           p r o t e c t e d   $ c u r r e n t C o m p a n y I D   =   n u l l ; 
 
 
 
     L i n e   2 6   [ m a t c h :   E p i c o r ] : 
 
         2 4 :           p u b l i c   f u n c t i o n   t e s t V a l u e ( $ v a l u e ) 
 
         2 5 :           { 
 
   > >   2 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         2 7 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 8 :   
 
 
 
     L i n e   2 7   [ m a t c h :   E p i c o r ] : 
 
         2 5 :           { 
 
         2 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   2 7 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 8 :   
 
         2 9 :                   r e t u r n   ( $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ v a l u e )   ! = =   F A L S E ) ; 
 
 
 
     L i n e   2 9   [ m a t c h :   E p i c o r ] : 
 
         2 7 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 8 :   
 
   > >   2 9 :                   r e t u r n   ( $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ v a l u e )   ! = =   F A L S E ) ; 
 
         3 0 :           } 
 
         3 1 :   
 
 
 
     L i n e   3 8   [ m a t c h :   E p i c o r ] : 
 
         3 6 :           p u b l i c   f u n c t i o n   g e t E r r o r ( $ f i e l d L a b e l ) 
 
         3 7 :           { 
 
   > >   3 8 :                   r e t u r n   ' T h e   C u s t o m e r   I D   e n t e r e d   d o e s   n o t   e x i s t   i n   E p i c o r ' ; 
 
         3 9 :           } 
 
         4 0 :   
 
 
 
     L i n e   3   [ m a t c h :   E P I C O R ] : 
 
         1 :   < ? p h p   n a m e s p a c e   A p p \ S e r v i c e s \ I n p u t V a l i d a t o r s ; 
 
         2 :   
 
   > >   3 :   u s e   A p p \ S e r v i c e s \ E p i c o r D a t a b a s e ; 
 
         4 :   u s e   S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ I n p u t I n t e r f a c e ; 
 
         5 :   u s e   S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ I n p u t V a l i d a t o r I n t e r f a c e ; 
 
 
 
     L i n e   7   [ m a t c h :   E P I C O R ] : 
 
         5 :   u s e   S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ I n p u t V a l i d a t o r I n t e r f a c e ; 
 
         6 :   
 
   > >   7 :   c l a s s   V a l i d E p i c o r C u s t I D   i m p l e m e n t s   I n p u t V a l i d a t o r I n t e r f a c e 
 
         8 :   { 
 
         9 :           p r o t e c t e d   $ c u r r e n t C o m p a n y I D   =   n u l l ; 
 
 
 
     L i n e   2 6   [ m a t c h :   E P I C O R ] : 
 
         2 4 :           p u b l i c   f u n c t i o n   t e s t V a l u e ( $ v a l u e ) 
 
         2 5 :           { 
 
   > >   2 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         2 7 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 8 :   
 
 
 
     L i n e   2 7   [ m a t c h :   E P I C O R ] : 
 
         2 5 :           { 
 
         2 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   2 7 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 8 :   
 
         2 9 :                   r e t u r n   ( $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ v a l u e )   ! = =   F A L S E ) ; 
 
 
 
     L i n e   2 9   [ m a t c h :   E P I C O R ] : 
 
         2 7 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 8 :   
 
   > >   2 9 :                   r e t u r n   ( $ E p i c o r D a t a b a s e - > g e t C u s t I n f o I f E x i s t s ( $ v a l u e )   ! = =   F A L S E ) ; 
 
         3 0 :           } 
 
         3 1 :   
 
 
 
     L i n e   3 8   [ m a t c h :   E P I C O R ] : 
 
         3 6 :           p u b l i c   f u n c t i o n   g e t E r r o r ( $ f i e l d L a b e l ) 
 
         3 7 :           { 
 
   > >   3 8 :                   r e t u r n   ' T h e   C u s t o m e r   I D   e n t e r e d   d o e s   n o t   e x i s t   i n   E p i c o r ' ; 
 
         3 9 :           } 
 
         4 0 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ T a s k S c h e d u l e r \ T a s k \ Q u e s t R e p o r t \ B a s e Q u e s t R e p o r t W i t h C o m p a n y A n d F o r m a t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 3   [ m a t c h :   e p i c o r ] : 
 
         3 1 :                           t h r o w   n e w   \ E x c e p t i o n ( ' O w n e r   n o t   f o u n d ' ) ; 
 
         3 2 :   
 
   > >   3 3 :                   $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ Q u e s t U s e r ) ; 
 
         3 4 :                   $ C o m p a n y S e l e c t i o n O p t i o n s   =   [ ] ; 
 
         3 5 :                   f o r e a c h ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
 
 
     L i n e   3 5   [ m a t c h :   e p i c o r ] : 
 
         3 3 :                   $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ Q u e s t U s e r ) ; 
 
         3 4 :                   $ C o m p a n y S e l e c t i o n O p t i o n s   =   [ ] ; 
 
   > >   3 5 :                   f o r e a c h ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
         3 6 :                           $ C o m p a n y S e l e c t i o n O p t i o n s [ $ E p i c o r C u s t I D ]   =   $ C o m p a n y - > g e t C a l c D i s p l a y N a m e ( ) ; 
 
         3 7 :   
 
 
 
     L i n e   3 6   [ m a t c h :   e p i c o r ] : 
 
         3 4 :                   $ C o m p a n y S e l e c t i o n O p t i o n s   =   [ ] ; 
 
         3 5 :                   f o r e a c h ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
   > >   3 6 :                           $ C o m p a n y S e l e c t i o n O p t i o n s [ $ E p i c o r C u s t I D ]   =   $ C o m p a n y - > g e t C a l c D i s p l a y N a m e ( ) ; 
 
         3 7 :   
 
         3 8 :                   r e t u r n   n e w   T a s k P a r a m e t e r C o l l e c t i o n ( [ 
 
 
 
     L i n e   3 9   [ m a t c h :   e p i c o r ] : 
 
         3 7 :   
 
         3 8 :                   r e t u r n   n e w   T a s k P a r a m e t e r C o l l e c t i o n ( [ 
 
   > >   3 9 :                           n e w   T a s k P a r a m e t e r ( ' C O M P A N Y ' , ' C o m p a n y / L o c a t i o n ' , t r u e , T a s k P a r a m e t e r I n t e r f a c e : : V A L U E _ T Y P E _ S E L E C T , ( s i z e o f ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D )   = = =   1   ?   a r r a y _ k e y s ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ) [ 0 ]   :   n u l l ) , $ C o m p a n y S e l e c t i o n O p t i o n s ) , 
 
         4 0 :                           n e w   T a s k P a r a m e t e r ( ' F O R M A T ' , ' F o r m a t ' , t r u e , T a s k P a r a m e t e r I n t e r f a c e : : V A L U E _ T Y P E _ S E L E C T ,   n u l l ,   [ 
 
         4 1 :                                   ' e x c e l '   = >   ' E x c e l ' , 
 
 
 
     L i n e   6 1   [ m a t c h :   e p i c o r ] : 
 
         5 9 :   
 
         6 0 :                   $ Q u e s t U s e r   =   $ R O Q u e s t U s e r R e p o - > g e t Q u e s t U s e r W i t h A l l C o m p a n y I n f o r m a t i o n ( $ O w n e r I D ) ; 
 
   > >   6 1 :                   $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ Q u e s t U s e r ) ; 
 
         6 2 :   
 
         6 3 :                   $ R e p o r t C o m p a n y E p i c o r C u s t I D   =   $ p a r a m e t e r D a t a [ ' C O M P A N Y ' ] ; 
 
 
 
     L i n e   6 3   [ m a t c h :   e p i c o r ] : 
 
         6 1 :                   $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ Q u e s t U s e r ) ; 
 
         6 2 :   
 
   > >   6 3 :                   $ R e p o r t C o m p a n y E p i c o r C u s t I D   =   $ p a r a m e t e r D a t a [ ' C O M P A N Y ' ] ; 
 
         6 4 :   
 
         6 5 :                   i f ( ! i n _ a r r a y ( $ R e p o r t C o m p a n y E p i c o r C u s t I D ,   a r r a y _ k e y s ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ) ) ) 
 
 
 
     L i n e   6 5   [ m a t c h :   e p i c o r ] : 
 
         6 3 :                   $ R e p o r t C o m p a n y E p i c o r C u s t I D   =   $ p a r a m e t e r D a t a [ ' C O M P A N Y ' ] ; 
 
         6 4 :   
 
   > >   6 5 :                   i f ( ! i n _ a r r a y ( $ R e p o r t C o m p a n y E p i c o r C u s t I D ,   a r r a y _ k e y s ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ) ) ) 
 
         6 6 :                           t h r o w   n e w   \ E x c e p t i o n ( ' U s e r   d o e s   n o t   h a v e   a c c e s s   t o   c o m p a n y   ' . $ R e p o r t C o m p a n y E p i c o r C u s t I D . '   d a t a   o r   t h e   c o m p a n y   i s   n o t   a c t i v e ' ) ; 
 
         6 7 :   
 
 
 
     L i n e   6 6   [ m a t c h :   e p i c o r ] : 
 
         6 4 :   
 
         6 5 :                   i f ( ! i n _ a r r a y ( $ R e p o r t C o m p a n y E p i c o r C u s t I D ,   a r r a y _ k e y s ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ) ) ) 
 
   > >   6 6 :                           t h r o w   n e w   \ E x c e p t i o n ( ' U s e r   d o e s   n o t   h a v e   a c c e s s   t o   c o m p a n y   ' . $ R e p o r t C o m p a n y E p i c o r C u s t I D . '   d a t a   o r   t h e   c o m p a n y   i s   n o t   a c t i v e ' ) ; 
 
         6 7 :   
 
         6 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r - > s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ R e p o r t C o m p a n y E p i c o r C u s t I D ) ; 
 
 
 
     L i n e   6 8   [ m a t c h :   e p i c o r ] : 
 
         6 6 :                           t h r o w   n e w   \ E x c e p t i o n ( ' U s e r   d o e s   n o t   h a v e   a c c e s s   t o   c o m p a n y   ' . $ R e p o r t C o m p a n y E p i c o r C u s t I D . '   d a t a   o r   t h e   c o m p a n y   i s   n o t   a c t i v e ' ) ; 
 
         6 7 :   
 
   > >   6 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r - > s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ R e p o r t C o m p a n y E p i c o r C u s t I D ) ; 
 
         6 9 :   
 
         7 0 :                   $ N o t i f i c a t i o n   =   $ t h i s - > _ g e t R e p o r t N o t i f i c a t i o n ( $ p a r a m e t e r D a t a [ ' F O R M A T ' ] ,   $ Q u e s t U s e r ,   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) ) ; 
 
 
 
     L i n e   3 3   [ m a t c h :   E p i c o r ] : 
 
         3 1 :                           t h r o w   n e w   \ E x c e p t i o n ( ' O w n e r   n o t   f o u n d ' ) ; 
 
         3 2 :   
 
   > >   3 3 :                   $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ Q u e s t U s e r ) ; 
 
         3 4 :                   $ C o m p a n y S e l e c t i o n O p t i o n s   =   [ ] ; 
 
         3 5 :                   f o r e a c h ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
 
 
     L i n e   3 5   [ m a t c h :   E p i c o r ] : 
 
         3 3 :                   $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ Q u e s t U s e r ) ; 
 
         3 4 :                   $ C o m p a n y S e l e c t i o n O p t i o n s   =   [ ] ; 
 
   > >   3 5 :                   f o r e a c h ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
         3 6 :                           $ C o m p a n y S e l e c t i o n O p t i o n s [ $ E p i c o r C u s t I D ]   =   $ C o m p a n y - > g e t C a l c D i s p l a y N a m e ( ) ; 
 
         3 7 :   
 
 
 
     L i n e   3 6   [ m a t c h :   E p i c o r ] : 
 
         3 4 :                   $ C o m p a n y S e l e c t i o n O p t i o n s   =   [ ] ; 
 
         3 5 :                   f o r e a c h ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
   > >   3 6 :                           $ C o m p a n y S e l e c t i o n O p t i o n s [ $ E p i c o r C u s t I D ]   =   $ C o m p a n y - > g e t C a l c D i s p l a y N a m e ( ) ; 
 
         3 7 :   
 
         3 8 :                   r e t u r n   n e w   T a s k P a r a m e t e r C o l l e c t i o n ( [ 
 
 
 
     L i n e   3 9   [ m a t c h :   E p i c o r ] : 
 
         3 7 :   
 
         3 8 :                   r e t u r n   n e w   T a s k P a r a m e t e r C o l l e c t i o n ( [ 
 
   > >   3 9 :                           n e w   T a s k P a r a m e t e r ( ' C O M P A N Y ' , ' C o m p a n y / L o c a t i o n ' , t r u e , T a s k P a r a m e t e r I n t e r f a c e : : V A L U E _ T Y P E _ S E L E C T , ( s i z e o f ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D )   = = =   1   ?   a r r a y _ k e y s ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ) [ 0 ]   :   n u l l ) , $ C o m p a n y S e l e c t i o n O p t i o n s ) , 
 
         4 0 :                           n e w   T a s k P a r a m e t e r ( ' F O R M A T ' , ' F o r m a t ' , t r u e , T a s k P a r a m e t e r I n t e r f a c e : : V A L U E _ T Y P E _ S E L E C T ,   n u l l ,   [ 
 
         4 1 :                                   ' e x c e l '   = >   ' E x c e l ' , 
 
 
 
     L i n e   6 1   [ m a t c h :   E p i c o r ] : 
 
         5 9 :   
 
         6 0 :                   $ Q u e s t U s e r   =   $ R O Q u e s t U s e r R e p o - > g e t Q u e s t U s e r W i t h A l l C o m p a n y I n f o r m a t i o n ( $ O w n e r I D ) ; 
 
   > >   6 1 :                   $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ Q u e s t U s e r ) ; 
 
         6 2 :   
 
         6 3 :                   $ R e p o r t C o m p a n y E p i c o r C u s t I D   =   $ p a r a m e t e r D a t a [ ' C O M P A N Y ' ] ; 
 
 
 
     L i n e   6 3   [ m a t c h :   E p i c o r ] : 
 
         6 1 :                   $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ Q u e s t U s e r ) ; 
 
         6 2 :   
 
   > >   6 3 :                   $ R e p o r t C o m p a n y E p i c o r C u s t I D   =   $ p a r a m e t e r D a t a [ ' C O M P A N Y ' ] ; 
 
         6 4 :   
 
         6 5 :                   i f ( ! i n _ a r r a y ( $ R e p o r t C o m p a n y E p i c o r C u s t I D ,   a r r a y _ k e y s ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ) ) ) 
 
 
 
     L i n e   6 5   [ m a t c h :   E p i c o r ] : 
 
         6 3 :                   $ R e p o r t C o m p a n y E p i c o r C u s t I D   =   $ p a r a m e t e r D a t a [ ' C O M P A N Y ' ] ; 
 
         6 4 :   
 
   > >   6 5 :                   i f ( ! i n _ a r r a y ( $ R e p o r t C o m p a n y E p i c o r C u s t I D ,   a r r a y _ k e y s ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ) ) ) 
 
         6 6 :                           t h r o w   n e w   \ E x c e p t i o n ( ' U s e r   d o e s   n o t   h a v e   a c c e s s   t o   c o m p a n y   ' . $ R e p o r t C o m p a n y E p i c o r C u s t I D . '   d a t a   o r   t h e   c o m p a n y   i s   n o t   a c t i v e ' ) ; 
 
         6 7 :   
 
 
 
     L i n e   6 6   [ m a t c h :   E p i c o r ] : 
 
         6 4 :   
 
         6 5 :                   i f ( ! i n _ a r r a y ( $ R e p o r t C o m p a n y E p i c o r C u s t I D ,   a r r a y _ k e y s ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ) ) ) 
 
   > >   6 6 :                           t h r o w   n e w   \ E x c e p t i o n ( ' U s e r   d o e s   n o t   h a v e   a c c e s s   t o   c o m p a n y   ' . $ R e p o r t C o m p a n y E p i c o r C u s t I D . '   d a t a   o r   t h e   c o m p a n y   i s   n o t   a c t i v e ' ) ; 
 
         6 7 :   
 
         6 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r - > s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ R e p o r t C o m p a n y E p i c o r C u s t I D ) ; 
 
 
 
     L i n e   6 8   [ m a t c h :   E p i c o r ] : 
 
         6 6 :                           t h r o w   n e w   \ E x c e p t i o n ( ' U s e r   d o e s   n o t   h a v e   a c c e s s   t o   c o m p a n y   ' . $ R e p o r t C o m p a n y E p i c o r C u s t I D . '   d a t a   o r   t h e   c o m p a n y   i s   n o t   a c t i v e ' ) ; 
 
         6 7 :   
 
   > >   6 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r - > s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ R e p o r t C o m p a n y E p i c o r C u s t I D ) ; 
 
         6 9 :   
 
         7 0 :                   $ N o t i f i c a t i o n   =   $ t h i s - > _ g e t R e p o r t N o t i f i c a t i o n ( $ p a r a m e t e r D a t a [ ' F O R M A T ' ] ,   $ Q u e s t U s e r ,   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) ) ; 
 
 
 
     L i n e   3 3   [ m a t c h :   E P I C O R ] : 
 
         3 1 :                           t h r o w   n e w   \ E x c e p t i o n ( ' O w n e r   n o t   f o u n d ' ) ; 
 
         3 2 :   
 
   > >   3 3 :                   $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ Q u e s t U s e r ) ; 
 
         3 4 :                   $ C o m p a n y S e l e c t i o n O p t i o n s   =   [ ] ; 
 
         3 5 :                   f o r e a c h ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
 
 
     L i n e   3 5   [ m a t c h :   E P I C O R ] : 
 
         3 3 :                   $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ Q u e s t U s e r ) ; 
 
         3 4 :                   $ C o m p a n y S e l e c t i o n O p t i o n s   =   [ ] ; 
 
   > >   3 5 :                   f o r e a c h ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
         3 6 :                           $ C o m p a n y S e l e c t i o n O p t i o n s [ $ E p i c o r C u s t I D ]   =   $ C o m p a n y - > g e t C a l c D i s p l a y N a m e ( ) ; 
 
         3 7 :   
 
 
 
     L i n e   3 6   [ m a t c h :   E P I C O R ] : 
 
         3 4 :                   $ C o m p a n y S e l e c t i o n O p t i o n s   =   [ ] ; 
 
         3 5 :                   f o r e a c h ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
   > >   3 6 :                           $ C o m p a n y S e l e c t i o n O p t i o n s [ $ E p i c o r C u s t I D ]   =   $ C o m p a n y - > g e t C a l c D i s p l a y N a m e ( ) ; 
 
         3 7 :   
 
         3 8 :                   r e t u r n   n e w   T a s k P a r a m e t e r C o l l e c t i o n ( [ 
 
 
 
     L i n e   3 9   [ m a t c h :   E P I C O R ] : 
 
         3 7 :   
 
         3 8 :                   r e t u r n   n e w   T a s k P a r a m e t e r C o l l e c t i o n ( [ 
 
   > >   3 9 :                           n e w   T a s k P a r a m e t e r ( ' C O M P A N Y ' , ' C o m p a n y / L o c a t i o n ' , t r u e , T a s k P a r a m e t e r I n t e r f a c e : : V A L U E _ T Y P E _ S E L E C T , ( s i z e o f ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D )   = = =   1   ?   a r r a y _ k e y s ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ) [ 0 ]   :   n u l l ) , $ C o m p a n y S e l e c t i o n O p t i o n s ) , 
 
         4 0 :                           n e w   T a s k P a r a m e t e r ( ' F O R M A T ' , ' F o r m a t ' , t r u e , T a s k P a r a m e t e r I n t e r f a c e : : V A L U E _ T Y P E _ S E L E C T ,   n u l l ,   [ 
 
         4 1 :                                   ' e x c e l '   = >   ' E x c e l ' , 
 
 
 
     L i n e   6 1   [ m a t c h :   E P I C O R ] : 
 
         5 9 :   
 
         6 0 :                   $ Q u e s t U s e r   =   $ R O Q u e s t U s e r R e p o - > g e t Q u e s t U s e r W i t h A l l C o m p a n y I n f o r m a t i o n ( $ O w n e r I D ) ; 
 
   > >   6 1 :                   $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ Q u e s t U s e r ) ; 
 
         6 2 :   
 
         6 3 :                   $ R e p o r t C o m p a n y E p i c o r C u s t I D   =   $ p a r a m e t e r D a t a [ ' C O M P A N Y ' ] ; 
 
 
 
     L i n e   6 3   [ m a t c h :   E P I C O R ] : 
 
         6 1 :                   $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ Q u e s t U s e r ) ; 
 
         6 2 :   
 
   > >   6 3 :                   $ R e p o r t C o m p a n y E p i c o r C u s t I D   =   $ p a r a m e t e r D a t a [ ' C O M P A N Y ' ] ; 
 
         6 4 :   
 
         6 5 :                   i f ( ! i n _ a r r a y ( $ R e p o r t C o m p a n y E p i c o r C u s t I D ,   a r r a y _ k e y s ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ) ) ) 
 
 
 
     L i n e   6 5   [ m a t c h :   E P I C O R ] : 
 
         6 3 :                   $ R e p o r t C o m p a n y E p i c o r C u s t I D   =   $ p a r a m e t e r D a t a [ ' C O M P A N Y ' ] ; 
 
         6 4 :   
 
   > >   6 5 :                   i f ( ! i n _ a r r a y ( $ R e p o r t C o m p a n y E p i c o r C u s t I D ,   a r r a y _ k e y s ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ) ) ) 
 
         6 6 :                           t h r o w   n e w   \ E x c e p t i o n ( ' U s e r   d o e s   n o t   h a v e   a c c e s s   t o   c o m p a n y   ' . $ R e p o r t C o m p a n y E p i c o r C u s t I D . '   d a t a   o r   t h e   c o m p a n y   i s   n o t   a c t i v e ' ) ; 
 
         6 7 :   
 
 
 
     L i n e   6 6   [ m a t c h :   E P I C O R ] : 
 
         6 4 :   
 
         6 5 :                   i f ( ! i n _ a r r a y ( $ R e p o r t C o m p a n y E p i c o r C u s t I D ,   a r r a y _ k e y s ( $ A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ) ) ) 
 
   > >   6 6 :                           t h r o w   n e w   \ E x c e p t i o n ( ' U s e r   d o e s   n o t   h a v e   a c c e s s   t o   c o m p a n y   ' . $ R e p o r t C o m p a n y E p i c o r C u s t I D . '   d a t a   o r   t h e   c o m p a n y   i s   n o t   a c t i v e ' ) ; 
 
         6 7 :   
 
         6 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r - > s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ R e p o r t C o m p a n y E p i c o r C u s t I D ) ; 
 
 
 
     L i n e   6 8   [ m a t c h :   E P I C O R ] : 
 
         6 6 :                           t h r o w   n e w   \ E x c e p t i o n ( ' U s e r   d o e s   n o t   h a v e   a c c e s s   t o   c o m p a n y   ' . $ R e p o r t C o m p a n y E p i c o r C u s t I D . '   d a t a   o r   t h e   c o m p a n y   i s   n o t   a c t i v e ' ) ; 
 
         6 7 :   
 
   > >   6 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r - > s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ R e p o r t C o m p a n y E p i c o r C u s t I D ) ; 
 
         6 9 :   
 
         7 0 :                   $ N o t i f i c a t i o n   =   $ t h i s - > _ g e t R e p o r t N o t i f i c a t i o n ( $ p a r a m e t e r D a t a [ ' F O R M A T ' ] ,   $ Q u e s t U s e r ,   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ W a v e E d i \ E d i F i l e B a s e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   S a v v i o r \ L E d i \ E d i F i l e ; 
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   S a v v i o r \ L E d i \ E d i F i l e ; 
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   S a v v i o r \ L E d i \ E d i F i l e ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ W a v e E d i \ E d i F i l e P R I E C O P . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   S a v v i o r \ L E d i \ E d i F i l e ; 
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   S a v v i o r \ L E d i \ E d i F i l e ; 
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   S a v v i o r \ L E d i \ E d i F i l e ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ W a v e E d i \ E d i F i l e P R I P R D 1 . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   S a v v i o r \ L E d i \ E d i F i l e ; 
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   S a v v i o r \ L E d i \ E d i F i l e ; 
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   S a v v i o r \ L E d i \ E d i F i l e ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ W a v e E d i \ E d i F i l e P R I P R D 2 . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   S a v v i o r \ L E d i \ E d i F i l e ; 
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   S a v v i o r \ L E d i \ E d i F i l e ; 
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   S a v v i o r \ L E d i \ E d i F i l e ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ W a v e E d i \ E d i F i l e P R I R C . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 0   [ m a t c h :   F R O M   ] : 
 
         8 :   / * * 
 
         9 :     * 
 
   > >   1 0 :     *   P r i o r   C o a t e d   M e t a l s   R e c e i p t   f r o m   a   G a l v a n i z i n g   M i l l 
 
         1 1 :     * 
 
         1 2 :     *   F O R M A T : 
 
 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   S a v v i o r \ L E d i \ E d i F i l e ; 
 
 
 
     L i n e   1 3   [ m a t c h :   w a v e ] : 
 
         1 1 :     * 
 
         1 2 :     *   F O R M A T : 
 
   > >   1 3 :     *   P u r c h a s e   O r d e r   #   a n d   L i n e   #   ( N o t e   p u r c h a s e   o r d e r   i s   t h e   n u m b e r   g i v e n   t o   t h e   m i l l   b y   W A V E ) 
 
         1 4 :     *   C u s t o m e r   P a r t   # 
 
         1 5 :     *   B i l l   o f   L a n d i n g 
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   S a v v i o r \ L E d i \ E d i F i l e ; 
 
 
 
     L i n e   1 3   [ m a t c h :   W a v e ] : 
 
         1 1 :     * 
 
         1 2 :     *   F O R M A T : 
 
   > >   1 3 :     *   P u r c h a s e   O r d e r   #   a n d   L i n e   #   ( N o t e   p u r c h a s e   o r d e r   i s   t h e   n u m b e r   g i v e n   t o   t h e   m i l l   b y   W A V E ) 
 
         1 4 :     *   C u s t o m e r   P a r t   # 
 
         1 5 :     *   B i l l   o f   L a n d i n g 
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   S a v v i o r \ L E d i \ E d i F i l e ; 
 
 
 
     L i n e   1 3   [ m a t c h :   W A V E ] : 
 
         1 1 :     * 
 
         1 2 :     *   F O R M A T : 
 
   > >   1 3 :     *   P u r c h a s e   O r d e r   #   a n d   L i n e   #   ( N o t e   p u r c h a s e   o r d e r   i s   t h e   n u m b e r   g i v e n   t o   t h e   m i l l   b y   W A V E ) 
 
         1 4 :     *   C u s t o m e r   P a r t   # 
 
         1 5 :     *   B i l l   o f   L a n d i n g 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ W a v e E d i \ E d i F i l e P R I S H I P . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 6   [ m a t c h :   e p i c o r ] : 
 
         3 4 :   
 
         3 5 :   
 
   > >   3 6 :           p r i v a t e   $ e p i c o r C o n n R O ; 
 
         3 7 :   
 
         3 8 :           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   * / 
 
 
 
     L i n e   1 3 7   [ m a t c h :   e p i c o r ] : 
 
         1 3 5 :           { 
 
         1 3 6 :                   $ t h i s - > c o n n R O   =   $ E M s - > g e t E M ( ' w a v e _ r o ' ) - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; 
 
   > >   1 3 7 :                   $ t h i s - > e p i c o r C o n n R O   =   $ E M s - > g e t E M ( ' e p i c o r _ r o ' ) - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; 
 
         1 3 8 :           } 
 
         1 3 9 :   
 
 
 
     L i n e   3 2 2   [ m a t c h :   e p i c o r ] : 
 
         3 2 0 :   
 
         3 2 1 :   
 
   > >   3 2 2 :                           $ q u e r y   =   $ t h i s - > e p i c o r C o n n R O - > p r e p a r e ( f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _   .   ' / . . / ' . $ t h i s - > s q l D i r e c t o r y . ' / '   .   $ q u e r y F i l e N a m e   .   ' . s q l ' ) ) ; 
 
         3 2 3 :   
 
         3 2 4 :                           e c h o   " \ n \ n = = = = = = = = = = = \ n \ n " . _ _ D I R _ _   .   ' / . . / ' . $ t h i s - > s q l D i r e c t o r y . ' / '   .   $ q u e r y F i l e N a m e   .   ' . s q l ' . " \ n \ n = = = = = = = = = = = \ n \ n " ; 
 
 
 
     L i n e   3 9 3   [ m a t c h :   e p i c o r ] : 
 
         3 9 1 :                                   / /   B u i l d   t h e   q u e r y 
 
         3 9 2 :   
 
   > >   3 9 3 :                                   $ Q u e r y   =   $ t h i s - > e p i c o r C o n n R O - > p r e p a r e ( f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _   .   ' / . . / ' . $ t h i s - > s q l D i r e c t o r y . ' / '   .   $ f i l e [ ' q u e r y ' ]   .   ' . s q l ' ) ) ; 
 
         3 9 4 :   
 
         3 9 5 :   
 
 
 
     L i n e   4 9 3   [ m a t c h :   e p i c o r ] : 
 
         4 9 1 :           { 
 
         4 9 2 :                   t r y { 
 
   > >   4 9 3 :                           $ Q u e r y   =   $ t h i s - > e p i c o r C o n n R O - > p r e p a r e ( f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _   .   ' / . . / ' . $ t h i s - > s q l D i r e c t o r y   .   ' / p r i e o p . s q l ' ) ) ; 
 
         4 9 4 :   
 
         4 9 5 :                           e c h o   " \ n \ n = = = = = = = = = = = = = = = = = = \ n \ n " ; 
 
 
 
     L i n e   3 6   [ m a t c h :   E p i c o r ] : 
 
         3 4 :   
 
         3 5 :   
 
   > >   3 6 :           p r i v a t e   $ e p i c o r C o n n R O ; 
 
         3 7 :   
 
         3 8 :           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   * / 
 
 
 
     L i n e   1 3 7   [ m a t c h :   E p i c o r ] : 
 
         1 3 5 :           { 
 
         1 3 6 :                   $ t h i s - > c o n n R O   =   $ E M s - > g e t E M ( ' w a v e _ r o ' ) - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; 
 
   > >   1 3 7 :                   $ t h i s - > e p i c o r C o n n R O   =   $ E M s - > g e t E M ( ' e p i c o r _ r o ' ) - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; 
 
         1 3 8 :           } 
 
         1 3 9 :   
 
 
 
     L i n e   3 2 2   [ m a t c h :   E p i c o r ] : 
 
         3 2 0 :   
 
         3 2 1 :   
 
   > >   3 2 2 :                           $ q u e r y   =   $ t h i s - > e p i c o r C o n n R O - > p r e p a r e ( f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _   .   ' / . . / ' . $ t h i s - > s q l D i r e c t o r y . ' / '   .   $ q u e r y F i l e N a m e   .   ' . s q l ' ) ) ; 
 
         3 2 3 :   
 
         3 2 4 :                           e c h o   " \ n \ n = = = = = = = = = = = \ n \ n " . _ _ D I R _ _   .   ' / . . / ' . $ t h i s - > s q l D i r e c t o r y . ' / '   .   $ q u e r y F i l e N a m e   .   ' . s q l ' . " \ n \ n = = = = = = = = = = = \ n \ n " ; 
 
 
 
     L i n e   3 9 3   [ m a t c h :   E p i c o r ] : 
 
         3 9 1 :                                   / /   B u i l d   t h e   q u e r y 
 
         3 9 2 :   
 
   > >   3 9 3 :                                   $ Q u e r y   =   $ t h i s - > e p i c o r C o n n R O - > p r e p a r e ( f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _   .   ' / . . / ' . $ t h i s - > s q l D i r e c t o r y . ' / '   .   $ f i l e [ ' q u e r y ' ]   .   ' . s q l ' ) ) ; 
 
         3 9 4 :   
 
         3 9 5 :   
 
 
 
     L i n e   4 9 3   [ m a t c h :   E p i c o r ] : 
 
         4 9 1 :           { 
 
         4 9 2 :                   t r y { 
 
   > >   4 9 3 :                           $ Q u e r y   =   $ t h i s - > e p i c o r C o n n R O - > p r e p a r e ( f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _   .   ' / . . / ' . $ t h i s - > s q l D i r e c t o r y   .   ' / p r i e o p . s q l ' ) ) ; 
 
         4 9 4 :   
 
         4 9 5 :                           e c h o   " \ n \ n = = = = = = = = = = = = = = = = = = \ n \ n " ; 
 
 
 
     L i n e   3 6   [ m a t c h :   E P I C O R ] : 
 
         3 4 :   
 
         3 5 :   
 
   > >   3 6 :           p r i v a t e   $ e p i c o r C o n n R O ; 
 
         3 7 :   
 
         3 8 :           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   * / 
 
 
 
     L i n e   1 3 7   [ m a t c h :   E P I C O R ] : 
 
         1 3 5 :           { 
 
         1 3 6 :                   $ t h i s - > c o n n R O   =   $ E M s - > g e t E M ( ' w a v e _ r o ' ) - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; 
 
   > >   1 3 7 :                   $ t h i s - > e p i c o r C o n n R O   =   $ E M s - > g e t E M ( ' e p i c o r _ r o ' ) - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; 
 
         1 3 8 :           } 
 
         1 3 9 :   
 
 
 
     L i n e   3 2 2   [ m a t c h :   E P I C O R ] : 
 
         3 2 0 :   
 
         3 2 1 :   
 
   > >   3 2 2 :                           $ q u e r y   =   $ t h i s - > e p i c o r C o n n R O - > p r e p a r e ( f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _   .   ' / . . / ' . $ t h i s - > s q l D i r e c t o r y . ' / '   .   $ q u e r y F i l e N a m e   .   ' . s q l ' ) ) ; 
 
         3 2 3 :   
 
         3 2 4 :                           e c h o   " \ n \ n = = = = = = = = = = = \ n \ n " . _ _ D I R _ _   .   ' / . . / ' . $ t h i s - > s q l D i r e c t o r y . ' / '   .   $ q u e r y F i l e N a m e   .   ' . s q l ' . " \ n \ n = = = = = = = = = = = \ n \ n " ; 
 
 
 
     L i n e   3 9 3   [ m a t c h :   E P I C O R ] : 
 
         3 9 1 :                                   / /   B u i l d   t h e   q u e r y 
 
         3 9 2 :   
 
   > >   3 9 3 :                                   $ Q u e r y   =   $ t h i s - > e p i c o r C o n n R O - > p r e p a r e ( f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _   .   ' / . . / ' . $ t h i s - > s q l D i r e c t o r y . ' / '   .   $ f i l e [ ' q u e r y ' ]   .   ' . s q l ' ) ) ; 
 
         3 9 4 :   
 
         3 9 5 :   
 
 
 
     L i n e   4 9 3   [ m a t c h :   E P I C O R ] : 
 
         4 9 1 :           { 
 
         4 9 2 :                   t r y { 
 
   > >   4 9 3 :                           $ Q u e r y   =   $ t h i s - > e p i c o r C o n n R O - > p r e p a r e ( f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _   .   ' / . . / ' . $ t h i s - > s q l D i r e c t o r y   .   ' / p r i e o p . s q l ' ) ) ; 
 
         4 9 4 :   
 
         4 9 5 :                           e c h o   " \ n \ n = = = = = = = = = = = = = = = = = = \ n \ n " ; 
 
 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r ; 
 
 
 
     L i n e   6   [ m a t c h :   w a v e ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r ; 
 
   > >   6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
 
 
     L i n e   7   [ m a t c h :   w a v e ] : 
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r ; 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
 
 
     L i n e   8   [ m a t c h :   w a v e ] : 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
   > >   8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
 
 
     L i n e   9   [ m a t c h :   w a v e ] : 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
   > >   9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
 
 
     L i n e   1 0   [ m a t c h :   w a v e ] : 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
   > >   1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
 
 
     L i n e   1 1   [ m a t c h :   w a v e ] : 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
   > >   1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
 
 
     L i n e   1 2   [ m a t c h :   w a v e ] : 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
   > >   1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
         1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k ; 
 
 
 
     L i n e   1 3   [ m a t c h :   w a v e ] : 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
   > >   1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
         1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k ; 
 
         1 5 :   
 
 
 
     L i n e   1 4   [ m a t c h :   w a v e ] : 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
   > >   1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k ; 
 
         1 5 :   
 
         1 6 :   
 
 
 
     L i n e   1 7   [ m a t c h :   w a v e ] : 
 
         1 5 :   
 
         1 6 :   
 
   > >   1 7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e S L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
         1 8 :   u s e   C a r b o n \ C a r b o n ; 
 
         1 9 :   u s e   D o c t r i n e \ D B A L \ C o n n e c t i o n ; 
 
 
 
     L i n e   3 0   [ m a t c h :   w a v e ] : 
 
         2 8 :   u s e   S y m f o n y \ C o m p o n e n t \ P r o c e s s \ P r o c e s s ; 
 
         2 9 :   
 
   > >   3 0 :   c l a s s   W a v e S e r v i c e 
 
         3 1 :   { 
 
         3 2 :   
 
 
 
     L i n e   3 8   [ m a t c h :   w a v e ] : 
 
         3 6 :           p r i v a t e   $ e p i c o r C o n n R O ; 
 
         3 7 :   
 
   > >   3 8 :           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   * / 
 
         3 9 :           p u b l i c   $ w a v e _ P r o c e s s ; 
 
         4 0 :   
 
 
 
     L i n e   3 9   [ m a t c h :   w a v e ] : 
 
         3 7 :   
 
         3 8 :           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   * / 
 
   > >   3 9 :           p u b l i c   $ w a v e _ P r o c e s s ; 
 
         4 0 :   
 
         4 1 :           / * *   @ v a r   b o o l   * / 
 
 
 
     L i n e   5 1   [ m a t c h :   w a v e ] : 
 
         4 9 :   
 
         5 0 :   
 
   > >   5 1 :           p r o t e c t e d   $ s q l D i r e c t o r y   =   " w a v e S Q L " ; 
 
         5 2 :           p r o t e c t e d   $ s u f f i x   =   " " ; 
 
         5 3 :   
 
 
 
     L i n e   6 6   [ m a t c h :   w a v e ] : 
 
         6 4 :   
 
         6 5 :           / * * 
 
   > >   6 6 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l 
 
         6 7 :             * / 
 
         6 8 :           p r i v a t e   f u n c t i o n   g e t W a v e P r o c e s s ( ) :   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s 
 
 
 
     L i n e   6 8   [ m a t c h :   w a v e ] : 
 
         6 6 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l 
 
         6 7 :             * / 
 
   > >   6 8 :           p r i v a t e   f u n c t i o n   g e t W a v e P r o c e s s ( ) :   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s 
 
         6 9 :           { 
 
         7 0 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s ; 
 
 
 
     L i n e   7 0   [ m a t c h :   w a v e ] : 
 
         6 8 :           p r i v a t e   f u n c t i o n   g e t W a v e P r o c e s s ( ) :   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s 
 
         6 9 :           { 
 
   > >   7 0 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s ; 
 
         7 1 :           } 
 
         7 2 :   
 
 
 
     L i n e   7 4   [ m a t c h :   w a v e ] : 
 
         7 2 :   
 
         7 3 :           / * * 
 
   > >   7 4 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   $ w a v e _ P r o c e s s 
 
         7 5 :             * / 
 
         7 6 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s ) 
 
 
 
     L i n e   7 6   [ m a t c h :   w a v e ] : 
 
         7 4 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   $ w a v e _ P r o c e s s 
 
         7 5 :             * / 
 
   > >   7 6 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s ) 
 
         7 7 :           { 
 
         7 8 :                   $ t h i s - > w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s ; 
 
 
 
     L i n e   7 8   [ m a t c h :   w a v e ] : 
 
         7 6 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s ) 
 
         7 7 :           { 
 
   > >   7 8 :                   $ t h i s - > w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s ; 
 
         7 9 :           } 
 
         8 0 :   
 
 
 
     L i n e   1 3 6   [ m a t c h :   w a v e ] : 
 
         1 3 4 :           p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( E M C o n t a i n e r   $ E M s ) 
 
         1 3 5 :           { 
 
   > >   1 3 6 :                   $ t h i s - > c o n n R O   =   $ E M s - > g e t E M ( ' w a v e _ r o ' ) - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; 
 
         1 3 7 :                   $ t h i s - > e p i c o r C o n n R O   =   $ E M s - > g e t E M ( ' e p i c o r _ r o ' ) - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; 
 
         1 3 8 :           } 
 
 
 
     L i n e   1 5 4   [ m a t c h :   w a v e ] : 
 
         1 5 2 :                           / /   t h e   s a m e   t h i n g ,   s o   i f   t h e   r u n n i n g   p r o c e s s   i s   o n e   o f   t h e s e ,   t h e y 
 
         1 5 3 :                           / /   w i l l   u s e   t h e   " r u n G e n e r i c P r o c e s s ( ) "   f u n c t i o n 
 
   > >   1 5 4 :                           / /   N O T E :   T h e s e   a r r a y   k e y s   m a t c h   t h e   C o d i n g K e y   o n   w a v e _ P r o c e s s   t a b l e 
 
         1 5 5 :                           / /   c o u l d   p r o b a b l y   m o v e   t h i s   d a t a   i n t o   t h e   d a t a b a s e   ( T O D O ? ) 
 
         1 5 6 :                           $ p r o c e s s e s   =   [ 
 
 
 
     L i n e   1 5 9   [ m a t c h :   w a v e ] : 
 
         1 5 7 :                                   ' W O _ C U S T O M E R _ P A R T _ N U M B E R '   = >   [ 
 
         1 5 8 :                                           ' q u e r y F i l e N a m e '   = >   ' p a r t s W o C u s t o m e r P a r t N u m b e r ' , 
 
   > >   1 5 9 :                                           ' e m a i l C l a s s '   = >   W a v e P a r t s W o C u s t o m e r P a r t N u m b e r : : c l a s s , 
 
         1 6 0 :                                           ' c o l u m n s '   = >   [ ' P a r t N u m ' ,   ' P a r t D e s c r i p t i o n ' ] , 
 
         1 6 1 :                                           ' q u e r y H a s D a t e '   = >   f a l s e 
 
 
 
     L i n e   1 6 5   [ m a t c h :   w a v e ] : 
 
         1 6 3 :                                   ' M I S S I N G _ P A R T _ N U M B E R _ S L '   = >   [ 
 
         1 6 4 :                                           ' q u e r y F i l e N a m e '   = >   ' s l P r o d u c t i o n ' , 
 
   > >   1 6 5 :                                           ' e m a i l C l a s s '   = >   W a v e S L P r o d u c t i o n M i s s i n g P a r t N u m b e r : : c l a s s , 
 
         1 6 6 :                                           ' c o l u m n s '   = >   [ ' S y s D a t e ' ,   ' T r a n D a t e ' ,   ' X P a r t N u m ' ,   ' L o t N u m ' ,   ' M a s t e r L o t N u m _ c ' ,   ' S k i d N u m _ c ' ,   ' P l a n t ' ,   ' J o b N u m ' ,   ' P a r t N u m ' ,   ' P a r t D e s c r i p t i o n ' ,   ' A c t T r a n s U O M ' ,   ' W a r e H o u s e C o d e ' ,   ' T r a n T y p e ' ,   ' A c t T r a n Q t y ' ,   ' P r o d C o d e ' ,   ' I n c l u d e ' ,   ' H o l d ' ,   ' P r o d W t ' ,   ' Q t y U s e d ' ] , 
 
         1 6 7 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
 
 
     L i n e   1 7 1   [ m a t c h :   w a v e ] : 
 
         1 6 9 :                                   ' M I S S I N G _ P A R T _ N U M B E R _ P L '   = >   [ 
 
         1 7 0 :                                           ' q u e r y F i l e N a m e '   = >   ' p l P r o d u c t i o n ' , 
 
   > >   1 7 1 :                                           ' e m a i l C l a s s '   = >   W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r : : c l a s s , 
 
         1 7 2 :                                           ' c o l u m n s '   = >   [ ' S y s D a t e ' ,   ' T r a n D a t e ' ,   ' X P a r t N u m ' ,   ' L o t N u m ' ,   ' M a s t e r L o t N u m _ c ' ,   ' S k i d N u m _ c ' ,   ' P l a n t ' ,   ' J o b N u m ' ,   ' P a r t N u m ' ,   ' P a r t D e s c r i p t i o n ' ,   ' A c t T r a n s U O M ' ,   ' W a r e H o u s e C o d e ' ,   ' T r a n T y p e ' ,   ' A c t T r a n Q t y ' ,   ' P r o d C o d e ' ,   ' I n c l u d e ' ,   ' H o l d ' ,   ' P r o d W t ' ,   ' Q t y U s e d ' ] , 
 
         1 7 3 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
 
 
     L i n e   1 7 7   [ m a t c h :   w a v e ] : 
 
         1 7 5 :                                   ' M I S S I N G _ R A W _ M E T A L '   = >   [ 
 
         1 7 6 :                                           ' q u e r y F i l e N a m e '   = >   ' m i s s i n g R a w M e t a l R e c e i p t P o ' , 
 
   > >   1 7 7 :                                           ' e m a i l C l a s s '   = >   W a v e M i s s i n g R a w M e t a l R e c e i p t P o : : c l a s s , 
 
         1 7 8 :                                           ' c o l u m n s '   = >   [ ' P a r t T r a n _ P l a n t ' , ' P a r t T r a n _ S y s D a t e ' , ' R c v H e a d _ R e c e i p t D a t e ' , ' R c v H e a d _ P O N u m ' , ' R c v H e a d _ P a c k S l i p ' , ' R c v D t l _ P O L i n e ' , ' C u s t X P r t _ X P a r t N u m ' , ' R c v D t l _ P a r t N u m ' , ' R c v D t l _ P a r t D e s c r i p t i o n ' , ' R c v D t l _ O u r Q t y ' , ' R c v D t l _ L o t N u m ' , ' R c v D t l _ W a r e H o u s e C o d e ' , ' R c v D t l _ B i n N u m ' , ' P a r t T r a n _ T r a n D a t e ' , ' R c v D t l _ T r a n R e f e r e n c e ' , ' V e n d o r _ V e n d o r I D ' ] , 
 
         1 7 9 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
 
 
     L i n e   1 8 3   [ m a t c h :   w a v e ] : 
 
         1 8 1 :                                   ' W A R E H O U S E _ F I V E _ M O V E D _ O U T '   = >   [ 
 
         1 8 2 :                                           ' q u e r y F i l e N a m e '   = >   ' m o v e d O u t O f W a r e h o u s e 0 5 ' , 
 
   > >   1 8 3 :                                           ' e m a i l C l a s s '   = >   W a v e M o v e d O u t O f W a r e h o u s e 0 5 : : c l a s s , 
 
         1 8 4 :                                           ' c o l u m n s '   = >   [ ' P r o d u c t i o n D a t e ' , ' P a r t N u m ' , ' W A V E   P a r t   N u m b e r ' , ' P a r t D e s c r i p t i o n ' , ' A c t T r a n Q t y ' , ' L o t N u m ' , ' W a r e H o u s e C o d e ' , ' B i n ' , ' T r a n T y p e ' ] , 
 
         1 8 5 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
 
 
     L i n e   1 8 4   [ m a t c h :   w a v e ] : 
 
         1 8 2 :                                           ' q u e r y F i l e N a m e '   = >   ' m o v e d O u t O f W a r e h o u s e 0 5 ' , 
 
         1 8 3 :                                           ' e m a i l C l a s s '   = >   W a v e M o v e d O u t O f W a r e h o u s e 0 5 : : c l a s s , 
 
   > >   1 8 4 :                                           ' c o l u m n s '   = >   [ ' P r o d u c t i o n D a t e ' , ' P a r t N u m ' , ' W A V E   P a r t   N u m b e r ' , ' P a r t D e s c r i p t i o n ' , ' A c t T r a n Q t y ' , ' L o t N u m ' , ' W a r e H o u s e C o d e ' , ' B i n ' , ' T r a n T y p e ' ] , 
 
         1 8 5 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
         1 8 6 :                                   ] , 
 
 
 
     L i n e   1 8 9   [ m a t c h :   w a v e ] : 
 
         1 8 7 :                                   ' W A R E H O U S E _ F I V E _ M O V E D _ I N '   = >   [ 
 
         1 8 8 :                                           ' q u e r y F i l e N a m e '   = >   ' m o v e d I n t o W a r e h o u s e 0 5 ' , 
 
   > >   1 8 9 :                                           ' e m a i l C l a s s '   = >   W a v e M o v e d I n t o W a r e h o u s e 0 5 : : c l a s s , 
 
         1 9 0 :                                           ' c o l u m n s '   = >   [ ' P r o d u c t i o n   D a t e ' , ' P a r t N u m ' , ' W A V E   P a r t   N u m b e r ' , ' P a r t D e s c r i p t i o n ' , ' A c t T r a n Q t y ' , ' T r a n Q t y ' , ' L o t N u m ' , ' W a r e H o u s e C o d e   ( s h o u l d   b e   0 5 ) ' , ' B i n ' , ' T r a n T y p e ' ] , 
 
         1 9 1 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
 
 
     L i n e   1 9 0   [ m a t c h :   w a v e ] : 
 
         1 8 8 :                                           ' q u e r y F i l e N a m e '   = >   ' m o v e d I n t o W a r e h o u s e 0 5 ' , 
 
         1 8 9 :                                           ' e m a i l C l a s s '   = >   W a v e M o v e d I n t o W a r e h o u s e 0 5 : : c l a s s , 
 
   > >   1 9 0 :                                           ' c o l u m n s '   = >   [ ' P r o d u c t i o n   D a t e ' , ' P a r t N u m ' , ' W A V E   P a r t   N u m b e r ' , ' P a r t D e s c r i p t i o n ' , ' A c t T r a n Q t y ' , ' T r a n Q t y ' , ' L o t N u m ' , ' W a r e H o u s e C o d e   ( s h o u l d   b e   0 5 ) ' , ' B i n ' , ' T r a n T y p e ' ] , 
 
         1 9 1 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
         1 9 2 :                                   ] , 
 
 
 
     L i n e   1 9 5   [ m a t c h :   w a v e ] : 
 
         1 9 3 :                           ] ; 
 
         1 9 4 :   
 
   > >   1 9 5 :                           i f ( i s s e t ( $ p r o c e s s e s [ $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( ) ] ) ) 
 
         1 9 6 :                           { 
 
         1 9 7 :                                   / /   T h i s   i s   a   p r o c e s s   f o r   t h e   " E x c e p t i o n   R e p o r t s "   w h i c h   a l l   u s e   t h e   g e n e r i c   p r o c e s s   f u n c t i o n 
 
 
 
     L i n e   1 9 8   [ m a t c h :   w a v e ] : 
 
         1 9 6 :                           { 
 
         1 9 7 :                                   / /   T h i s   i s   a   p r o c e s s   f o r   t h e   " E x c e p t i o n   R e p o r t s "   w h i c h   a l l   u s e   t h e   g e n e r i c   p r o c e s s   f u n c t i o n 
 
   > >   1 9 8 :                                   $ p r o c e s s   =   $ p r o c e s s e s [ $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( ) ] ; 
 
         1 9 9 :                                   $ r e s u l t s   =   $ t h i s - > r u n G e n e r i c P r o c e s s ( $ p r o c e s s [ ' q u e r y F i l e N a m e ' ] ,   $ p r o c e s s [ ' c o l u m n s ' ] ,   $ p r o c e s s [ ' e m a i l C l a s s ' ] ,   $ p r o c e s s [ ' q u e r y H a s D a t e ' ] ) ; 
 
         2 0 0 :                           } 
 
 
 
     L i n e   2 0 1   [ m a t c h :   w a v e ] : 
 
         1 9 9 :                                   $ r e s u l t s   =   $ t h i s - > r u n G e n e r i c P r o c e s s ( $ p r o c e s s [ ' q u e r y F i l e N a m e ' ] ,   $ p r o c e s s [ ' c o l u m n s ' ] ,   $ p r o c e s s [ ' e m a i l C l a s s ' ] ,   $ p r o c e s s [ ' q u e r y H a s D a t e ' ] ) ; 
 
         2 0 0 :                           } 
 
   > >   2 0 1 :                           e l s e   i f ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   = = =   ' W A V E _ P R E C H E C K ' ) 
 
         2 0 2 :                           { 
 
         2 0 3 :                                   / /   T h i s   p r e - c h e c k   i s   w o r t h l e s s   a n d   d o e s n ' t   d o   a n y t h i n g , 
 
 
 
     L i n e   2 0 7   [ m a t c h :   w a v e ] : 
 
         2 0 5 :                                   $ r e s u l t s   =   t r u e ; 
 
         2 0 6 :                                   $ t h i s - > l o g P r o c e s s H i s t o r y ( ' C o m p l e t e d ' ) ; 
 
   > >   2 0 7 :                                   $ t h i s - > s e n d E m a i l ( W a v e P r e c h e c k : : c l a s s ,   ' ' ) ; 
 
         2 0 8 :                           } 
 
         2 0 9 :                           e l s e   i f ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   = = =   ' W A V E _ F I L E S _ E X P O R T E D _ U P L O A D E D ' ) 
 
 
 
     L i n e   2 0 9   [ m a t c h :   w a v e ] : 
 
         2 0 7 :                                   $ t h i s - > s e n d E m a i l ( W a v e P r e c h e c k : : c l a s s ,   ' ' ) ; 
 
         2 0 8 :                           } 
 
   > >   2 0 9 :                           e l s e   i f ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   = = =   ' W A V E _ F I L E S _ E X P O R T E D _ U P L O A D E D ' ) 
 
         2 1 0 :                           { 
 
         2 1 1 :                                   $ r e s u l t s   =   $ t h i s - > e x p o r t U p l o a d W a v e F i l e s ( ) ; 
 
 
 
     L i n e   2 1 1   [ m a t c h :   w a v e ] : 
 
         2 0 9 :                           e l s e   i f ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   = = =   ' W A V E _ F I L E S _ E X P O R T E D _ U P L O A D E D ' ) 
 
         2 1 0 :                           { 
 
   > >   2 1 1 :                                   $ r e s u l t s   =   $ t h i s - > e x p o r t U p l o a d W a v e F i l e s ( ) ; 
 
         2 1 2 :                           } 
 
         2 1 3 :                           e l s e   i f ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   = = =   ' W A V E _ E N D _ O F _ M O N T H ' ) 
 
 
 
     L i n e   2 1 3   [ m a t c h :   w a v e ] : 
 
         2 1 1 :                                   $ r e s u l t s   =   $ t h i s - > e x p o r t U p l o a d W a v e F i l e s ( ) ; 
 
         2 1 2 :                           } 
 
   > >   2 1 3 :                           e l s e   i f ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   = = =   ' W A V E _ E N D _ O F _ M O N T H ' ) 
 
         2 1 4 :                           { 
 
         2 1 5 :                                   $ r e s u l t s   =   $ t h i s - > e n d O f M o n t h ( ) ; 
 
 
 
     L i n e   2 3 3   [ m a t c h :   w a v e ] : 
 
         2 3 1 :   
 
         2 3 2 :           / * * 
 
   > >   2 3 3 :             *   N O T E :   T h i s   i s   t h e   o n l y   f u n c t i o n   t h a t   c a n n o t   u s e   $ t h i s - > g e t W a v e P r o c e s s ( ) 
 
         2 3 4 :             *   t h a t   i s   w h y   w e   a r e   p a s s i n g   i t   i n . 
 
         2 3 5 :             * 
 
 
 
     L i n e   2 3 7   [ m a t c h :   w a v e ] : 
 
         2 3 5 :             * 
 
         2 3 6 :             *   @ p a r a m   s t r i n g   $ P r o c e s s C o d i n g K e y 
 
   > >   2 3 7 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | b o o l 
 
         2 3 8 :             *   @ t h r o w s   \ E x c e p t i o n 
 
         2 3 9 :             * / 
 
 
 
     L i n e   2 4 3   [ m a t c h :   w a v e ] : 
 
         2 4 1 :           { 
 
         2 4 2 :                   t r y { 
 
   > >   2 4 3 :                           / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
         2 4 4 :                           $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         2 4 5 :   
 
 
 
     L i n e   2 4 4   [ m a t c h :   w a v e ] : 
 
         2 4 2 :                   t r y { 
 
         2 4 3 :                           / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
   > >   2 4 4 :                           $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         2 4 5 :   
 
         2 4 6 :                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
 
 
     L i n e   2 4 6   [ m a t c h :   w a v e ] : 
 
         2 4 4 :                           $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         2 4 5 :   
 
   > >   2 4 6 :                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
         2 4 7 :                           $ w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s R e p o - > f i n d O n e B y ( [ ' C o d i n g K e y '   = >   $ P r o c e s s C o d i n g K e y ] ) ; 
 
         2 4 8 :   
 
 
 
     L i n e   2 4 7   [ m a t c h :   w a v e ] : 
 
         2 4 5 :   
 
         2 4 6 :                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
   > >   2 4 7 :                           $ w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s R e p o - > f i n d O n e B y ( [ ' C o d i n g K e y '   = >   $ P r o c e s s C o d i n g K e y ] ) ; 
 
         2 4 8 :   
 
         2 4 9 :                           r e t u r n   $ w a v e _ P r o c e s s ; 
 
 
 
     L i n e   2 4 9   [ m a t c h :   w a v e ] : 
 
         2 4 7 :                           $ w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s R e p o - > f i n d O n e B y ( [ ' C o d i n g K e y '   = >   $ P r o c e s s C o d i n g K e y ] ) ; 
 
         2 4 8 :   
 
   > >   2 4 9 :                           r e t u r n   $ w a v e _ P r o c e s s ; 
 
         2 5 0 :                   } 
 
         2 5 1 :                   c a t c h ( \ E x c e p t i o n   $ e )   { 
 
 
 
     L i n e   2 7 3   [ m a t c h :   w a v e ] : 
 
         2 7 1 :   
 
         2 7 2 :                   / /   G e t   t h e   s p r e a d s h e e t   a n d   n a m e   t h e   a c t i v e   s h e e t 
 
   > >   2 7 3 :                   $ s h e e t   =   $ t h i s - > g e t S p r e a d s h e e t ( ) - > g e t A c t i v e S h e e t ( ) - > s e t T i t l e ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( ) ) ; 
 
         2 7 4 :   
 
         2 7 5 :                   / /   S e t   t h e   c o l u m n   v a l u e s 
 
 
 
     L i n e   2 9 1   [ m a t c h :   w a v e ] : 
 
         2 8 9 :                   / /   P r e p   t h e   f i l e   s y s t e m   f o r   s t o r a g e 
 
         2 9 0 :                   $ s t o r a g e P a t h   =   ' e d i \ \ e x c e p t i o n - r e p o r t s \ \ ' ; 
 
   > >   2 9 1 :                   $ f i l e N a m e   =   $ t h i s - > g e t P r o c e s s D a t e ( )   .   ' - '   .     $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   .   ' - '   .   t i m e ( )   .   ' . x l s x ' ; 
 
         2 9 2 :                   \ S t o r a g e : : m a k e D i r e c t o r y ( $ s t o r a g e P a t h ) ; 
 
         2 9 3 :   
 
 
 
     L i n e   3 6 0   [ m a t c h :   w a v e ] : 
 
         3 5 8 :             *   @ t h r o w s   \ E x c e p t i o n 
 
         3 5 9 :             * / 
 
   > >   3 6 0 :           p r i v a t e   f u n c t i o n   e x p o r t U p l o a d W a v e F i l e s ( ) 
 
         3 6 1 :           { 
 
         3 6 2 :                   t r y { 
 
 
 
     L i n e   4 7 1   [ m a t c h :   w a v e ] : 
 
         4 6 9 :                           } 
 
         4 7 0 :   
 
   > >   4 7 1 :                           $ f i l e P a t h   =   " \ \ \ \ \ w i - f p s \ w t 3 2 n e w \ w a v e \ \ Q u e s t T e s t i n g \ \ "   .   d a t e ( ' Y m d ' ,   s t r t o t i m e ( $ t h i s - > g e t P r o c e s s D a t e ( ) ) ) ; 
 
         4 7 2 :                           $ t h i s - > s e n d E m a i l ( W a v e F i l e s E x p o r t e d A n d U p l o a d e d : : c l a s s ,   $ f i l e P a t h ) ; 
 
         4 7 3 :   
 
 
 
     L i n e   4 7 2   [ m a t c h :   w a v e ] : 
 
         4 7 0 :   
 
         4 7 1 :                           $ f i l e P a t h   =   " \ \ \ \ \ w i - f p s \ w t 3 2 n e w \ w a v e \ \ Q u e s t T e s t i n g \ \ "   .   d a t e ( ' Y m d ' ,   s t r t o t i m e ( $ t h i s - > g e t P r o c e s s D a t e ( ) ) ) ; 
 
   > >   4 7 2 :                           $ t h i s - > s e n d E m a i l ( W a v e F i l e s E x p o r t e d A n d U p l o a d e d : : c l a s s ,   $ f i l e P a t h ) ; 
 
         4 7 3 :   
 
         4 7 4 :                           r e t u r n   t r u e ; 
 
 
 
     L i n e   4 8 4   [ m a t c h :   w a v e ] : 
 
         4 8 2 :           / * * 
 
         4 8 3 :             *   U s e d   o n c e   a   m o n t h   t o   p r o d u c e   a   c o m p l i a n t   E D I   f i l e ,   d o e s 
 
   > >   4 8 4 :             *   b a s i c a l l y   t h e   s a m e   t h i n g   a s   e x p o r t U p l o a d W a v e F i l e s ( )   b u t 
 
         4 8 5 :             *   i s   e x c l u d e d   a s   i t   i s   n o t   r u n   d a i l y . 
 
         4 8 6 :             * 
 
 
 
     L i n e   5 4 5   [ m a t c h :   w a v e ] : 
 
         5 4 3 :                       / /     d d ( ' m a d e   i t ' ) ; 
 
         5 4 4 :   
 
   > >   5 4 5 :                           $ t h i s - > s e n d E m a i l ( W a v e M o n t h E n d I n v e n t o r y : : c l a s s ,   $ f i l e P a t h . " p r i e o p . t x t " ) ; 
 
         5 4 6 :   
 
         5 4 7 :   
 
 
 
     L i n e   5 6 6   [ m a t c h :   w a v e ] : 
 
         5 6 4 :           { 
 
         5 6 5 :                   $ e m a i l s   =   [ ] ; 
 
   > >   5 6 6 :                   $ q u e s t U s e r s T o N o t i f y   =   $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t Q u e s t E m a i l E v e n t ( ) - > g e t Q u e s t U s e r ( ) ; 
 
         5 6 7 :   
 
         5 6 8 :                   / * *   @ v a r   q u e s t _ U s e r   $ q u e s t U s e r T o N o t i f y   * / 
 
 
 
     L i n e   6 0 0   [ m a t c h :   w a v e ] : 
 
         5 9 8 :                           $ D a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
         5 9 9 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
   > >   6 0 0 :                                   ' w a v e _ P r o c e s s '   = >   [ ' I D '   = >   $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t I D ( ) ] , 
 
         6 0 1 :                                   ' R e s u l t s '   = >   $ R e s u l t s , 
 
         6 0 2 :                                   ' W a s S u c c e s s f u l '   = >   $ W a s S u c c e s s f u l , 
 
 
 
     L i n e   6 0 6   [ m a t c h :   w a v e ] : 
 
         6 0 4 :                                   ' R e s u l t s F i l e P a t h '   = >   $ R e s u l t s F i l e P a t h , 
 
         6 0 5 :                                   ' R a n D T '   = >   C a r b o n : : n o w ( ) , 
 
   > >   6 0 6 :                           ] ,   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' w a v e _ P r o c e s s H i s t o r y ' ) ) ; 
 
         6 0 7 :   
 
         6 0 8 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
 
 
     L i n e   6 0 9   [ m a t c h :   w a v e ] : 
 
         6 0 7 :   
 
         6 0 8 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
   > >   6 0 9 :                                   ' I D '   = >   $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t I D ( ) , 
 
         6 1 0 :                                   ' L a s t R a n D T '   = >   C a r b o n : : n o w ( ) 
 
         6 1 1 :                           ] ,   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' w a v e _ P r o c e s s ' ) ) ; 
 
 
 
     L i n e   6 1 1   [ m a t c h :   w a v e ] : 
 
         6 0 9 :                                   ' I D '   = >   $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t I D ( ) , 
 
         6 1 0 :                                   ' L a s t R a n D T '   = >   C a r b o n : : n o w ( ) 
 
   > >   6 1 1 :                           ] ,   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' w a v e _ P r o c e s s ' ) ) ; 
 
         6 1 2 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         6 1 3 :                   } 
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r ; 
 
 
 
     L i n e   6   [ m a t c h :   W a v e ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r ; 
 
   > >   6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
 
 
     L i n e   7   [ m a t c h :   W a v e ] : 
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r ; 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
 
 
     L i n e   8   [ m a t c h :   W a v e ] : 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
   > >   8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
 
 
     L i n e   9   [ m a t c h :   W a v e ] : 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
   > >   9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W a v e ] : 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
   > >   1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
 
 
     L i n e   1 1   [ m a t c h :   W a v e ] : 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
   > >   1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
 
 
     L i n e   1 2   [ m a t c h :   W a v e ] : 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
   > >   1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
         1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k ; 
 
 
 
     L i n e   1 3   [ m a t c h :   W a v e ] : 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
   > >   1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
         1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k ; 
 
         1 5 :   
 
 
 
     L i n e   1 4   [ m a t c h :   W a v e ] : 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
   > >   1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k ; 
 
         1 5 :   
 
         1 6 :   
 
 
 
     L i n e   1 7   [ m a t c h :   W a v e ] : 
 
         1 5 :   
 
         1 6 :   
 
   > >   1 7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e S L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
         1 8 :   u s e   C a r b o n \ C a r b o n ; 
 
         1 9 :   u s e   D o c t r i n e \ D B A L \ C o n n e c t i o n ; 
 
 
 
     L i n e   3 0   [ m a t c h :   W a v e ] : 
 
         2 8 :   u s e   S y m f o n y \ C o m p o n e n t \ P r o c e s s \ P r o c e s s ; 
 
         2 9 :   
 
   > >   3 0 :   c l a s s   W a v e S e r v i c e 
 
         3 1 :   { 
 
         3 2 :   
 
 
 
     L i n e   3 8   [ m a t c h :   W a v e ] : 
 
         3 6 :           p r i v a t e   $ e p i c o r C o n n R O ; 
 
         3 7 :   
 
   > >   3 8 :           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   * / 
 
         3 9 :           p u b l i c   $ w a v e _ P r o c e s s ; 
 
         4 0 :   
 
 
 
     L i n e   3 9   [ m a t c h :   W a v e ] : 
 
         3 7 :   
 
         3 8 :           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   * / 
 
   > >   3 9 :           p u b l i c   $ w a v e _ P r o c e s s ; 
 
         4 0 :   
 
         4 1 :           / * *   @ v a r   b o o l   * / 
 
 
 
     L i n e   5 1   [ m a t c h :   W a v e ] : 
 
         4 9 :   
 
         5 0 :   
 
   > >   5 1 :           p r o t e c t e d   $ s q l D i r e c t o r y   =   " w a v e S Q L " ; 
 
         5 2 :           p r o t e c t e d   $ s u f f i x   =   " " ; 
 
         5 3 :   
 
 
 
     L i n e   6 6   [ m a t c h :   W a v e ] : 
 
         6 4 :   
 
         6 5 :           / * * 
 
   > >   6 6 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l 
 
         6 7 :             * / 
 
         6 8 :           p r i v a t e   f u n c t i o n   g e t W a v e P r o c e s s ( ) :   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s 
 
 
 
     L i n e   6 8   [ m a t c h :   W a v e ] : 
 
         6 6 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l 
 
         6 7 :             * / 
 
   > >   6 8 :           p r i v a t e   f u n c t i o n   g e t W a v e P r o c e s s ( ) :   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s 
 
         6 9 :           { 
 
         7 0 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s ; 
 
 
 
     L i n e   7 0   [ m a t c h :   W a v e ] : 
 
         6 8 :           p r i v a t e   f u n c t i o n   g e t W a v e P r o c e s s ( ) :   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s 
 
         6 9 :           { 
 
   > >   7 0 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s ; 
 
         7 1 :           } 
 
         7 2 :   
 
 
 
     L i n e   7 4   [ m a t c h :   W a v e ] : 
 
         7 2 :   
 
         7 3 :           / * * 
 
   > >   7 4 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   $ w a v e _ P r o c e s s 
 
         7 5 :             * / 
 
         7 6 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s ) 
 
 
 
     L i n e   7 6   [ m a t c h :   W a v e ] : 
 
         7 4 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   $ w a v e _ P r o c e s s 
 
         7 5 :             * / 
 
   > >   7 6 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s ) 
 
         7 7 :           { 
 
         7 8 :                   $ t h i s - > w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s ; 
 
 
 
     L i n e   7 8   [ m a t c h :   W a v e ] : 
 
         7 6 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s ) 
 
         7 7 :           { 
 
   > >   7 8 :                   $ t h i s - > w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s ; 
 
         7 9 :           } 
 
         8 0 :   
 
 
 
     L i n e   1 3 6   [ m a t c h :   W a v e ] : 
 
         1 3 4 :           p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( E M C o n t a i n e r   $ E M s ) 
 
         1 3 5 :           { 
 
   > >   1 3 6 :                   $ t h i s - > c o n n R O   =   $ E M s - > g e t E M ( ' w a v e _ r o ' ) - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; 
 
         1 3 7 :                   $ t h i s - > e p i c o r C o n n R O   =   $ E M s - > g e t E M ( ' e p i c o r _ r o ' ) - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; 
 
         1 3 8 :           } 
 
 
 
     L i n e   1 5 4   [ m a t c h :   W a v e ] : 
 
         1 5 2 :                           / /   t h e   s a m e   t h i n g ,   s o   i f   t h e   r u n n i n g   p r o c e s s   i s   o n e   o f   t h e s e ,   t h e y 
 
         1 5 3 :                           / /   w i l l   u s e   t h e   " r u n G e n e r i c P r o c e s s ( ) "   f u n c t i o n 
 
   > >   1 5 4 :                           / /   N O T E :   T h e s e   a r r a y   k e y s   m a t c h   t h e   C o d i n g K e y   o n   w a v e _ P r o c e s s   t a b l e 
 
         1 5 5 :                           / /   c o u l d   p r o b a b l y   m o v e   t h i s   d a t a   i n t o   t h e   d a t a b a s e   ( T O D O ? ) 
 
         1 5 6 :                           $ p r o c e s s e s   =   [ 
 
 
 
     L i n e   1 5 9   [ m a t c h :   W a v e ] : 
 
         1 5 7 :                                   ' W O _ C U S T O M E R _ P A R T _ N U M B E R '   = >   [ 
 
         1 5 8 :                                           ' q u e r y F i l e N a m e '   = >   ' p a r t s W o C u s t o m e r P a r t N u m b e r ' , 
 
   > >   1 5 9 :                                           ' e m a i l C l a s s '   = >   W a v e P a r t s W o C u s t o m e r P a r t N u m b e r : : c l a s s , 
 
         1 6 0 :                                           ' c o l u m n s '   = >   [ ' P a r t N u m ' ,   ' P a r t D e s c r i p t i o n ' ] , 
 
         1 6 1 :                                           ' q u e r y H a s D a t e '   = >   f a l s e 
 
 
 
     L i n e   1 6 5   [ m a t c h :   W a v e ] : 
 
         1 6 3 :                                   ' M I S S I N G _ P A R T _ N U M B E R _ S L '   = >   [ 
 
         1 6 4 :                                           ' q u e r y F i l e N a m e '   = >   ' s l P r o d u c t i o n ' , 
 
   > >   1 6 5 :                                           ' e m a i l C l a s s '   = >   W a v e S L P r o d u c t i o n M i s s i n g P a r t N u m b e r : : c l a s s , 
 
         1 6 6 :                                           ' c o l u m n s '   = >   [ ' S y s D a t e ' ,   ' T r a n D a t e ' ,   ' X P a r t N u m ' ,   ' L o t N u m ' ,   ' M a s t e r L o t N u m _ c ' ,   ' S k i d N u m _ c ' ,   ' P l a n t ' ,   ' J o b N u m ' ,   ' P a r t N u m ' ,   ' P a r t D e s c r i p t i o n ' ,   ' A c t T r a n s U O M ' ,   ' W a r e H o u s e C o d e ' ,   ' T r a n T y p e ' ,   ' A c t T r a n Q t y ' ,   ' P r o d C o d e ' ,   ' I n c l u d e ' ,   ' H o l d ' ,   ' P r o d W t ' ,   ' Q t y U s e d ' ] , 
 
         1 6 7 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
 
 
     L i n e   1 7 1   [ m a t c h :   W a v e ] : 
 
         1 6 9 :                                   ' M I S S I N G _ P A R T _ N U M B E R _ P L '   = >   [ 
 
         1 7 0 :                                           ' q u e r y F i l e N a m e '   = >   ' p l P r o d u c t i o n ' , 
 
   > >   1 7 1 :                                           ' e m a i l C l a s s '   = >   W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r : : c l a s s , 
 
         1 7 2 :                                           ' c o l u m n s '   = >   [ ' S y s D a t e ' ,   ' T r a n D a t e ' ,   ' X P a r t N u m ' ,   ' L o t N u m ' ,   ' M a s t e r L o t N u m _ c ' ,   ' S k i d N u m _ c ' ,   ' P l a n t ' ,   ' J o b N u m ' ,   ' P a r t N u m ' ,   ' P a r t D e s c r i p t i o n ' ,   ' A c t T r a n s U O M ' ,   ' W a r e H o u s e C o d e ' ,   ' T r a n T y p e ' ,   ' A c t T r a n Q t y ' ,   ' P r o d C o d e ' ,   ' I n c l u d e ' ,   ' H o l d ' ,   ' P r o d W t ' ,   ' Q t y U s e d ' ] , 
 
         1 7 3 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
 
 
     L i n e   1 7 7   [ m a t c h :   W a v e ] : 
 
         1 7 5 :                                   ' M I S S I N G _ R A W _ M E T A L '   = >   [ 
 
         1 7 6 :                                           ' q u e r y F i l e N a m e '   = >   ' m i s s i n g R a w M e t a l R e c e i p t P o ' , 
 
   > >   1 7 7 :                                           ' e m a i l C l a s s '   = >   W a v e M i s s i n g R a w M e t a l R e c e i p t P o : : c l a s s , 
 
         1 7 8 :                                           ' c o l u m n s '   = >   [ ' P a r t T r a n _ P l a n t ' , ' P a r t T r a n _ S y s D a t e ' , ' R c v H e a d _ R e c e i p t D a t e ' , ' R c v H e a d _ P O N u m ' , ' R c v H e a d _ P a c k S l i p ' , ' R c v D t l _ P O L i n e ' , ' C u s t X P r t _ X P a r t N u m ' , ' R c v D t l _ P a r t N u m ' , ' R c v D t l _ P a r t D e s c r i p t i o n ' , ' R c v D t l _ O u r Q t y ' , ' R c v D t l _ L o t N u m ' , ' R c v D t l _ W a r e H o u s e C o d e ' , ' R c v D t l _ B i n N u m ' , ' P a r t T r a n _ T r a n D a t e ' , ' R c v D t l _ T r a n R e f e r e n c e ' , ' V e n d o r _ V e n d o r I D ' ] , 
 
         1 7 9 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
 
 
     L i n e   1 8 3   [ m a t c h :   W a v e ] : 
 
         1 8 1 :                                   ' W A R E H O U S E _ F I V E _ M O V E D _ O U T '   = >   [ 
 
         1 8 2 :                                           ' q u e r y F i l e N a m e '   = >   ' m o v e d O u t O f W a r e h o u s e 0 5 ' , 
 
   > >   1 8 3 :                                           ' e m a i l C l a s s '   = >   W a v e M o v e d O u t O f W a r e h o u s e 0 5 : : c l a s s , 
 
         1 8 4 :                                           ' c o l u m n s '   = >   [ ' P r o d u c t i o n D a t e ' , ' P a r t N u m ' , ' W A V E   P a r t   N u m b e r ' , ' P a r t D e s c r i p t i o n ' , ' A c t T r a n Q t y ' , ' L o t N u m ' , ' W a r e H o u s e C o d e ' , ' B i n ' , ' T r a n T y p e ' ] , 
 
         1 8 5 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
 
 
     L i n e   1 8 4   [ m a t c h :   W a v e ] : 
 
         1 8 2 :                                           ' q u e r y F i l e N a m e '   = >   ' m o v e d O u t O f W a r e h o u s e 0 5 ' , 
 
         1 8 3 :                                           ' e m a i l C l a s s '   = >   W a v e M o v e d O u t O f W a r e h o u s e 0 5 : : c l a s s , 
 
   > >   1 8 4 :                                           ' c o l u m n s '   = >   [ ' P r o d u c t i o n D a t e ' , ' P a r t N u m ' , ' W A V E   P a r t   N u m b e r ' , ' P a r t D e s c r i p t i o n ' , ' A c t T r a n Q t y ' , ' L o t N u m ' , ' W a r e H o u s e C o d e ' , ' B i n ' , ' T r a n T y p e ' ] , 
 
         1 8 5 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
         1 8 6 :                                   ] , 
 
 
 
     L i n e   1 8 9   [ m a t c h :   W a v e ] : 
 
         1 8 7 :                                   ' W A R E H O U S E _ F I V E _ M O V E D _ I N '   = >   [ 
 
         1 8 8 :                                           ' q u e r y F i l e N a m e '   = >   ' m o v e d I n t o W a r e h o u s e 0 5 ' , 
 
   > >   1 8 9 :                                           ' e m a i l C l a s s '   = >   W a v e M o v e d I n t o W a r e h o u s e 0 5 : : c l a s s , 
 
         1 9 0 :                                           ' c o l u m n s '   = >   [ ' P r o d u c t i o n   D a t e ' , ' P a r t N u m ' , ' W A V E   P a r t   N u m b e r ' , ' P a r t D e s c r i p t i o n ' , ' A c t T r a n Q t y ' , ' T r a n Q t y ' , ' L o t N u m ' , ' W a r e H o u s e C o d e   ( s h o u l d   b e   0 5 ) ' , ' B i n ' , ' T r a n T y p e ' ] , 
 
         1 9 1 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
 
 
     L i n e   1 9 0   [ m a t c h :   W a v e ] : 
 
         1 8 8 :                                           ' q u e r y F i l e N a m e '   = >   ' m o v e d I n t o W a r e h o u s e 0 5 ' , 
 
         1 8 9 :                                           ' e m a i l C l a s s '   = >   W a v e M o v e d I n t o W a r e h o u s e 0 5 : : c l a s s , 
 
   > >   1 9 0 :                                           ' c o l u m n s '   = >   [ ' P r o d u c t i o n   D a t e ' , ' P a r t N u m ' , ' W A V E   P a r t   N u m b e r ' , ' P a r t D e s c r i p t i o n ' , ' A c t T r a n Q t y ' , ' T r a n Q t y ' , ' L o t N u m ' , ' W a r e H o u s e C o d e   ( s h o u l d   b e   0 5 ) ' , ' B i n ' , ' T r a n T y p e ' ] , 
 
         1 9 1 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
         1 9 2 :                                   ] , 
 
 
 
     L i n e   1 9 5   [ m a t c h :   W a v e ] : 
 
         1 9 3 :                           ] ; 
 
         1 9 4 :   
 
   > >   1 9 5 :                           i f ( i s s e t ( $ p r o c e s s e s [ $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( ) ] ) ) 
 
         1 9 6 :                           { 
 
         1 9 7 :                                   / /   T h i s   i s   a   p r o c e s s   f o r   t h e   " E x c e p t i o n   R e p o r t s "   w h i c h   a l l   u s e   t h e   g e n e r i c   p r o c e s s   f u n c t i o n 
 
 
 
     L i n e   1 9 8   [ m a t c h :   W a v e ] : 
 
         1 9 6 :                           { 
 
         1 9 7 :                                   / /   T h i s   i s   a   p r o c e s s   f o r   t h e   " E x c e p t i o n   R e p o r t s "   w h i c h   a l l   u s e   t h e   g e n e r i c   p r o c e s s   f u n c t i o n 
 
   > >   1 9 8 :                                   $ p r o c e s s   =   $ p r o c e s s e s [ $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( ) ] ; 
 
         1 9 9 :                                   $ r e s u l t s   =   $ t h i s - > r u n G e n e r i c P r o c e s s ( $ p r o c e s s [ ' q u e r y F i l e N a m e ' ] ,   $ p r o c e s s [ ' c o l u m n s ' ] ,   $ p r o c e s s [ ' e m a i l C l a s s ' ] ,   $ p r o c e s s [ ' q u e r y H a s D a t e ' ] ) ; 
 
         2 0 0 :                           } 
 
 
 
     L i n e   2 0 1   [ m a t c h :   W a v e ] : 
 
         1 9 9 :                                   $ r e s u l t s   =   $ t h i s - > r u n G e n e r i c P r o c e s s ( $ p r o c e s s [ ' q u e r y F i l e N a m e ' ] ,   $ p r o c e s s [ ' c o l u m n s ' ] ,   $ p r o c e s s [ ' e m a i l C l a s s ' ] ,   $ p r o c e s s [ ' q u e r y H a s D a t e ' ] ) ; 
 
         2 0 0 :                           } 
 
   > >   2 0 1 :                           e l s e   i f ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   = = =   ' W A V E _ P R E C H E C K ' ) 
 
         2 0 2 :                           { 
 
         2 0 3 :                                   / /   T h i s   p r e - c h e c k   i s   w o r t h l e s s   a n d   d o e s n ' t   d o   a n y t h i n g , 
 
 
 
     L i n e   2 0 7   [ m a t c h :   W a v e ] : 
 
         2 0 5 :                                   $ r e s u l t s   =   t r u e ; 
 
         2 0 6 :                                   $ t h i s - > l o g P r o c e s s H i s t o r y ( ' C o m p l e t e d ' ) ; 
 
   > >   2 0 7 :                                   $ t h i s - > s e n d E m a i l ( W a v e P r e c h e c k : : c l a s s ,   ' ' ) ; 
 
         2 0 8 :                           } 
 
         2 0 9 :                           e l s e   i f ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   = = =   ' W A V E _ F I L E S _ E X P O R T E D _ U P L O A D E D ' ) 
 
 
 
     L i n e   2 0 9   [ m a t c h :   W a v e ] : 
 
         2 0 7 :                                   $ t h i s - > s e n d E m a i l ( W a v e P r e c h e c k : : c l a s s ,   ' ' ) ; 
 
         2 0 8 :                           } 
 
   > >   2 0 9 :                           e l s e   i f ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   = = =   ' W A V E _ F I L E S _ E X P O R T E D _ U P L O A D E D ' ) 
 
         2 1 0 :                           { 
 
         2 1 1 :                                   $ r e s u l t s   =   $ t h i s - > e x p o r t U p l o a d W a v e F i l e s ( ) ; 
 
 
 
     L i n e   2 1 1   [ m a t c h :   W a v e ] : 
 
         2 0 9 :                           e l s e   i f ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   = = =   ' W A V E _ F I L E S _ E X P O R T E D _ U P L O A D E D ' ) 
 
         2 1 0 :                           { 
 
   > >   2 1 1 :                                   $ r e s u l t s   =   $ t h i s - > e x p o r t U p l o a d W a v e F i l e s ( ) ; 
 
         2 1 2 :                           } 
 
         2 1 3 :                           e l s e   i f ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   = = =   ' W A V E _ E N D _ O F _ M O N T H ' ) 
 
 
 
     L i n e   2 1 3   [ m a t c h :   W a v e ] : 
 
         2 1 1 :                                   $ r e s u l t s   =   $ t h i s - > e x p o r t U p l o a d W a v e F i l e s ( ) ; 
 
         2 1 2 :                           } 
 
   > >   2 1 3 :                           e l s e   i f ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   = = =   ' W A V E _ E N D _ O F _ M O N T H ' ) 
 
         2 1 4 :                           { 
 
         2 1 5 :                                   $ r e s u l t s   =   $ t h i s - > e n d O f M o n t h ( ) ; 
 
 
 
     L i n e   2 3 3   [ m a t c h :   W a v e ] : 
 
         2 3 1 :   
 
         2 3 2 :           / * * 
 
   > >   2 3 3 :             *   N O T E :   T h i s   i s   t h e   o n l y   f u n c t i o n   t h a t   c a n n o t   u s e   $ t h i s - > g e t W a v e P r o c e s s ( ) 
 
         2 3 4 :             *   t h a t   i s   w h y   w e   a r e   p a s s i n g   i t   i n . 
 
         2 3 5 :             * 
 
 
 
     L i n e   2 3 7   [ m a t c h :   W a v e ] : 
 
         2 3 5 :             * 
 
         2 3 6 :             *   @ p a r a m   s t r i n g   $ P r o c e s s C o d i n g K e y 
 
   > >   2 3 7 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | b o o l 
 
         2 3 8 :             *   @ t h r o w s   \ E x c e p t i o n 
 
         2 3 9 :             * / 
 
 
 
     L i n e   2 4 3   [ m a t c h :   W a v e ] : 
 
         2 4 1 :           { 
 
         2 4 2 :                   t r y { 
 
   > >   2 4 3 :                           / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
         2 4 4 :                           $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         2 4 5 :   
 
 
 
     L i n e   2 4 4   [ m a t c h :   W a v e ] : 
 
         2 4 2 :                   t r y { 
 
         2 4 3 :                           / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
   > >   2 4 4 :                           $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         2 4 5 :   
 
         2 4 6 :                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
 
 
     L i n e   2 4 6   [ m a t c h :   W a v e ] : 
 
         2 4 4 :                           $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         2 4 5 :   
 
   > >   2 4 6 :                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
         2 4 7 :                           $ w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s R e p o - > f i n d O n e B y ( [ ' C o d i n g K e y '   = >   $ P r o c e s s C o d i n g K e y ] ) ; 
 
         2 4 8 :   
 
 
 
     L i n e   2 4 7   [ m a t c h :   W a v e ] : 
 
         2 4 5 :   
 
         2 4 6 :                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
   > >   2 4 7 :                           $ w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s R e p o - > f i n d O n e B y ( [ ' C o d i n g K e y '   = >   $ P r o c e s s C o d i n g K e y ] ) ; 
 
         2 4 8 :   
 
         2 4 9 :                           r e t u r n   $ w a v e _ P r o c e s s ; 
 
 
 
     L i n e   2 4 9   [ m a t c h :   W a v e ] : 
 
         2 4 7 :                           $ w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s R e p o - > f i n d O n e B y ( [ ' C o d i n g K e y '   = >   $ P r o c e s s C o d i n g K e y ] ) ; 
 
         2 4 8 :   
 
   > >   2 4 9 :                           r e t u r n   $ w a v e _ P r o c e s s ; 
 
         2 5 0 :                   } 
 
         2 5 1 :                   c a t c h ( \ E x c e p t i o n   $ e )   { 
 
 
 
     L i n e   2 7 3   [ m a t c h :   W a v e ] : 
 
         2 7 1 :   
 
         2 7 2 :                   / /   G e t   t h e   s p r e a d s h e e t   a n d   n a m e   t h e   a c t i v e   s h e e t 
 
   > >   2 7 3 :                   $ s h e e t   =   $ t h i s - > g e t S p r e a d s h e e t ( ) - > g e t A c t i v e S h e e t ( ) - > s e t T i t l e ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( ) ) ; 
 
         2 7 4 :   
 
         2 7 5 :                   / /   S e t   t h e   c o l u m n   v a l u e s 
 
 
 
     L i n e   2 9 1   [ m a t c h :   W a v e ] : 
 
         2 8 9 :                   / /   P r e p   t h e   f i l e   s y s t e m   f o r   s t o r a g e 
 
         2 9 0 :                   $ s t o r a g e P a t h   =   ' e d i \ \ e x c e p t i o n - r e p o r t s \ \ ' ; 
 
   > >   2 9 1 :                   $ f i l e N a m e   =   $ t h i s - > g e t P r o c e s s D a t e ( )   .   ' - '   .     $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   .   ' - '   .   t i m e ( )   .   ' . x l s x ' ; 
 
         2 9 2 :                   \ S t o r a g e : : m a k e D i r e c t o r y ( $ s t o r a g e P a t h ) ; 
 
         2 9 3 :   
 
 
 
     L i n e   3 6 0   [ m a t c h :   W a v e ] : 
 
         3 5 8 :             *   @ t h r o w s   \ E x c e p t i o n 
 
         3 5 9 :             * / 
 
   > >   3 6 0 :           p r i v a t e   f u n c t i o n   e x p o r t U p l o a d W a v e F i l e s ( ) 
 
         3 6 1 :           { 
 
         3 6 2 :                   t r y { 
 
 
 
     L i n e   4 7 1   [ m a t c h :   W a v e ] : 
 
         4 6 9 :                           } 
 
         4 7 0 :   
 
   > >   4 7 1 :                           $ f i l e P a t h   =   " \ \ \ \ \ w i - f p s \ w t 3 2 n e w \ w a v e \ \ Q u e s t T e s t i n g \ \ "   .   d a t e ( ' Y m d ' ,   s t r t o t i m e ( $ t h i s - > g e t P r o c e s s D a t e ( ) ) ) ; 
 
         4 7 2 :                           $ t h i s - > s e n d E m a i l ( W a v e F i l e s E x p o r t e d A n d U p l o a d e d : : c l a s s ,   $ f i l e P a t h ) ; 
 
         4 7 3 :   
 
 
 
     L i n e   4 7 2   [ m a t c h :   W a v e ] : 
 
         4 7 0 :   
 
         4 7 1 :                           $ f i l e P a t h   =   " \ \ \ \ \ w i - f p s \ w t 3 2 n e w \ w a v e \ \ Q u e s t T e s t i n g \ \ "   .   d a t e ( ' Y m d ' ,   s t r t o t i m e ( $ t h i s - > g e t P r o c e s s D a t e ( ) ) ) ; 
 
   > >   4 7 2 :                           $ t h i s - > s e n d E m a i l ( W a v e F i l e s E x p o r t e d A n d U p l o a d e d : : c l a s s ,   $ f i l e P a t h ) ; 
 
         4 7 3 :   
 
         4 7 4 :                           r e t u r n   t r u e ; 
 
 
 
     L i n e   4 8 4   [ m a t c h :   W a v e ] : 
 
         4 8 2 :           / * * 
 
         4 8 3 :             *   U s e d   o n c e   a   m o n t h   t o   p r o d u c e   a   c o m p l i a n t   E D I   f i l e ,   d o e s 
 
   > >   4 8 4 :             *   b a s i c a l l y   t h e   s a m e   t h i n g   a s   e x p o r t U p l o a d W a v e F i l e s ( )   b u t 
 
         4 8 5 :             *   i s   e x c l u d e d   a s   i t   i s   n o t   r u n   d a i l y . 
 
         4 8 6 :             * 
 
 
 
     L i n e   5 4 5   [ m a t c h :   W a v e ] : 
 
         5 4 3 :                       / /     d d ( ' m a d e   i t ' ) ; 
 
         5 4 4 :   
 
   > >   5 4 5 :                           $ t h i s - > s e n d E m a i l ( W a v e M o n t h E n d I n v e n t o r y : : c l a s s ,   $ f i l e P a t h . " p r i e o p . t x t " ) ; 
 
         5 4 6 :   
 
         5 4 7 :   
 
 
 
     L i n e   5 6 6   [ m a t c h :   W a v e ] : 
 
         5 6 4 :           { 
 
         5 6 5 :                   $ e m a i l s   =   [ ] ; 
 
   > >   5 6 6 :                   $ q u e s t U s e r s T o N o t i f y   =   $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t Q u e s t E m a i l E v e n t ( ) - > g e t Q u e s t U s e r ( ) ; 
 
         5 6 7 :   
 
         5 6 8 :                   / * *   @ v a r   q u e s t _ U s e r   $ q u e s t U s e r T o N o t i f y   * / 
 
 
 
     L i n e   6 0 0   [ m a t c h :   W a v e ] : 
 
         5 9 8 :                           $ D a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
         5 9 9 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
   > >   6 0 0 :                                   ' w a v e _ P r o c e s s '   = >   [ ' I D '   = >   $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t I D ( ) ] , 
 
         6 0 1 :                                   ' R e s u l t s '   = >   $ R e s u l t s , 
 
         6 0 2 :                                   ' W a s S u c c e s s f u l '   = >   $ W a s S u c c e s s f u l , 
 
 
 
     L i n e   6 0 6   [ m a t c h :   W a v e ] : 
 
         6 0 4 :                                   ' R e s u l t s F i l e P a t h '   = >   $ R e s u l t s F i l e P a t h , 
 
         6 0 5 :                                   ' R a n D T '   = >   C a r b o n : : n o w ( ) , 
 
   > >   6 0 6 :                           ] ,   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' w a v e _ P r o c e s s H i s t o r y ' ) ) ; 
 
         6 0 7 :   
 
         6 0 8 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
 
 
     L i n e   6 0 9   [ m a t c h :   W a v e ] : 
 
         6 0 7 :   
 
         6 0 8 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
   > >   6 0 9 :                                   ' I D '   = >   $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t I D ( ) , 
 
         6 1 0 :                                   ' L a s t R a n D T '   = >   C a r b o n : : n o w ( ) 
 
         6 1 1 :                           ] ,   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' w a v e _ P r o c e s s ' ) ) ; 
 
 
 
     L i n e   6 1 1   [ m a t c h :   W a v e ] : 
 
         6 0 9 :                                   ' I D '   = >   $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t I D ( ) , 
 
         6 1 0 :                                   ' L a s t R a n D T '   = >   C a r b o n : : n o w ( ) 
 
   > >   6 1 1 :                           ] ,   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' w a v e _ P r o c e s s ' ) ) ; 
 
         6 1 2 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         6 1 3 :                   } 
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r ; 
 
 
 
     L i n e   6   [ m a t c h :   W A V E ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r ; 
 
   > >   6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
 
 
     L i n e   7   [ m a t c h :   W A V E ] : 
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r ; 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
 
 
     L i n e   8   [ m a t c h :   W A V E ] : 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
   > >   8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
 
 
     L i n e   9   [ m a t c h :   W A V E ] : 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
   > >   9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W A V E ] : 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
   > >   1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
 
 
     L i n e   1 1   [ m a t c h :   W A V E ] : 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
   > >   1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
 
 
     L i n e   1 2   [ m a t c h :   W A V E ] : 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
   > >   1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
         1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k ; 
 
 
 
     L i n e   1 3   [ m a t c h :   W A V E ] : 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
   > >   1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
         1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k ; 
 
         1 5 :   
 
 
 
     L i n e   1 4   [ m a t c h :   W A V E ] : 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
   > >   1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k ; 
 
         1 5 :   
 
         1 6 :   
 
 
 
     L i n e   1 7   [ m a t c h :   W A V E ] : 
 
         1 5 :   
 
         1 6 :   
 
   > >   1 7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e S L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
         1 8 :   u s e   C a r b o n \ C a r b o n ; 
 
         1 9 :   u s e   D o c t r i n e \ D B A L \ C o n n e c t i o n ; 
 
 
 
     L i n e   3 0   [ m a t c h :   W A V E ] : 
 
         2 8 :   u s e   S y m f o n y \ C o m p o n e n t \ P r o c e s s \ P r o c e s s ; 
 
         2 9 :   
 
   > >   3 0 :   c l a s s   W a v e S e r v i c e 
 
         3 1 :   { 
 
         3 2 :   
 
 
 
     L i n e   3 8   [ m a t c h :   W A V E ] : 
 
         3 6 :           p r i v a t e   $ e p i c o r C o n n R O ; 
 
         3 7 :   
 
   > >   3 8 :           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   * / 
 
         3 9 :           p u b l i c   $ w a v e _ P r o c e s s ; 
 
         4 0 :   
 
 
 
     L i n e   3 9   [ m a t c h :   W A V E ] : 
 
         3 7 :   
 
         3 8 :           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   * / 
 
   > >   3 9 :           p u b l i c   $ w a v e _ P r o c e s s ; 
 
         4 0 :   
 
         4 1 :           / * *   @ v a r   b o o l   * / 
 
 
 
     L i n e   5 1   [ m a t c h :   W A V E ] : 
 
         4 9 :   
 
         5 0 :   
 
   > >   5 1 :           p r o t e c t e d   $ s q l D i r e c t o r y   =   " w a v e S Q L " ; 
 
         5 2 :           p r o t e c t e d   $ s u f f i x   =   " " ; 
 
         5 3 :   
 
 
 
     L i n e   6 6   [ m a t c h :   W A V E ] : 
 
         6 4 :   
 
         6 5 :           / * * 
 
   > >   6 6 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l 
 
         6 7 :             * / 
 
         6 8 :           p r i v a t e   f u n c t i o n   g e t W a v e P r o c e s s ( ) :   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s 
 
 
 
     L i n e   6 8   [ m a t c h :   W A V E ] : 
 
         6 6 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l 
 
         6 7 :             * / 
 
   > >   6 8 :           p r i v a t e   f u n c t i o n   g e t W a v e P r o c e s s ( ) :   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s 
 
         6 9 :           { 
 
         7 0 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s ; 
 
 
 
     L i n e   7 0   [ m a t c h :   W A V E ] : 
 
         6 8 :           p r i v a t e   f u n c t i o n   g e t W a v e P r o c e s s ( ) :   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s 
 
         6 9 :           { 
 
   > >   7 0 :                   r e t u r n   $ t h i s - > w a v e _ P r o c e s s ; 
 
         7 1 :           } 
 
         7 2 :   
 
 
 
     L i n e   7 4   [ m a t c h :   W A V E ] : 
 
         7 2 :   
 
         7 3 :           / * * 
 
   > >   7 4 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   $ w a v e _ P r o c e s s 
 
         7 5 :             * / 
 
         7 6 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s ) 
 
 
 
     L i n e   7 6   [ m a t c h :   W A V E ] : 
 
         7 4 :             *   @ p a r a m   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | n u l l   $ w a v e _ P r o c e s s 
 
         7 5 :             * / 
 
   > >   7 6 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s ) 
 
         7 7 :           { 
 
         7 8 :                   $ t h i s - > w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s ; 
 
 
 
     L i n e   7 8   [ m a t c h :   W A V E ] : 
 
         7 6 :           p u b l i c   f u n c t i o n   s e t W a v e P r o c e s s ( \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s ) 
 
         7 7 :           { 
 
   > >   7 8 :                   $ t h i s - > w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s ; 
 
         7 9 :           } 
 
         8 0 :   
 
 
 
     L i n e   1 3 6   [ m a t c h :   W A V E ] : 
 
         1 3 4 :           p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( E M C o n t a i n e r   $ E M s ) 
 
         1 3 5 :           { 
 
   > >   1 3 6 :                   $ t h i s - > c o n n R O   =   $ E M s - > g e t E M ( ' w a v e _ r o ' ) - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; 
 
         1 3 7 :                   $ t h i s - > e p i c o r C o n n R O   =   $ E M s - > g e t E M ( ' e p i c o r _ r o ' ) - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; 
 
         1 3 8 :           } 
 
 
 
     L i n e   1 5 4   [ m a t c h :   W A V E ] : 
 
         1 5 2 :                           / /   t h e   s a m e   t h i n g ,   s o   i f   t h e   r u n n i n g   p r o c e s s   i s   o n e   o f   t h e s e ,   t h e y 
 
         1 5 3 :                           / /   w i l l   u s e   t h e   " r u n G e n e r i c P r o c e s s ( ) "   f u n c t i o n 
 
   > >   1 5 4 :                           / /   N O T E :   T h e s e   a r r a y   k e y s   m a t c h   t h e   C o d i n g K e y   o n   w a v e _ P r o c e s s   t a b l e 
 
         1 5 5 :                           / /   c o u l d   p r o b a b l y   m o v e   t h i s   d a t a   i n t o   t h e   d a t a b a s e   ( T O D O ? ) 
 
         1 5 6 :                           $ p r o c e s s e s   =   [ 
 
 
 
     L i n e   1 5 9   [ m a t c h :   W A V E ] : 
 
         1 5 7 :                                   ' W O _ C U S T O M E R _ P A R T _ N U M B E R '   = >   [ 
 
         1 5 8 :                                           ' q u e r y F i l e N a m e '   = >   ' p a r t s W o C u s t o m e r P a r t N u m b e r ' , 
 
   > >   1 5 9 :                                           ' e m a i l C l a s s '   = >   W a v e P a r t s W o C u s t o m e r P a r t N u m b e r : : c l a s s , 
 
         1 6 0 :                                           ' c o l u m n s '   = >   [ ' P a r t N u m ' ,   ' P a r t D e s c r i p t i o n ' ] , 
 
         1 6 1 :                                           ' q u e r y H a s D a t e '   = >   f a l s e 
 
 
 
     L i n e   1 6 5   [ m a t c h :   W A V E ] : 
 
         1 6 3 :                                   ' M I S S I N G _ P A R T _ N U M B E R _ S L '   = >   [ 
 
         1 6 4 :                                           ' q u e r y F i l e N a m e '   = >   ' s l P r o d u c t i o n ' , 
 
   > >   1 6 5 :                                           ' e m a i l C l a s s '   = >   W a v e S L P r o d u c t i o n M i s s i n g P a r t N u m b e r : : c l a s s , 
 
         1 6 6 :                                           ' c o l u m n s '   = >   [ ' S y s D a t e ' ,   ' T r a n D a t e ' ,   ' X P a r t N u m ' ,   ' L o t N u m ' ,   ' M a s t e r L o t N u m _ c ' ,   ' S k i d N u m _ c ' ,   ' P l a n t ' ,   ' J o b N u m ' ,   ' P a r t N u m ' ,   ' P a r t D e s c r i p t i o n ' ,   ' A c t T r a n s U O M ' ,   ' W a r e H o u s e C o d e ' ,   ' T r a n T y p e ' ,   ' A c t T r a n Q t y ' ,   ' P r o d C o d e ' ,   ' I n c l u d e ' ,   ' H o l d ' ,   ' P r o d W t ' ,   ' Q t y U s e d ' ] , 
 
         1 6 7 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
 
 
     L i n e   1 7 1   [ m a t c h :   W A V E ] : 
 
         1 6 9 :                                   ' M I S S I N G _ P A R T _ N U M B E R _ P L '   = >   [ 
 
         1 7 0 :                                           ' q u e r y F i l e N a m e '   = >   ' p l P r o d u c t i o n ' , 
 
   > >   1 7 1 :                                           ' e m a i l C l a s s '   = >   W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r : : c l a s s , 
 
         1 7 2 :                                           ' c o l u m n s '   = >   [ ' S y s D a t e ' ,   ' T r a n D a t e ' ,   ' X P a r t N u m ' ,   ' L o t N u m ' ,   ' M a s t e r L o t N u m _ c ' ,   ' S k i d N u m _ c ' ,   ' P l a n t ' ,   ' J o b N u m ' ,   ' P a r t N u m ' ,   ' P a r t D e s c r i p t i o n ' ,   ' A c t T r a n s U O M ' ,   ' W a r e H o u s e C o d e ' ,   ' T r a n T y p e ' ,   ' A c t T r a n Q t y ' ,   ' P r o d C o d e ' ,   ' I n c l u d e ' ,   ' H o l d ' ,   ' P r o d W t ' ,   ' Q t y U s e d ' ] , 
 
         1 7 3 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
 
 
     L i n e   1 7 7   [ m a t c h :   W A V E ] : 
 
         1 7 5 :                                   ' M I S S I N G _ R A W _ M E T A L '   = >   [ 
 
         1 7 6 :                                           ' q u e r y F i l e N a m e '   = >   ' m i s s i n g R a w M e t a l R e c e i p t P o ' , 
 
   > >   1 7 7 :                                           ' e m a i l C l a s s '   = >   W a v e M i s s i n g R a w M e t a l R e c e i p t P o : : c l a s s , 
 
         1 7 8 :                                           ' c o l u m n s '   = >   [ ' P a r t T r a n _ P l a n t ' , ' P a r t T r a n _ S y s D a t e ' , ' R c v H e a d _ R e c e i p t D a t e ' , ' R c v H e a d _ P O N u m ' , ' R c v H e a d _ P a c k S l i p ' , ' R c v D t l _ P O L i n e ' , ' C u s t X P r t _ X P a r t N u m ' , ' R c v D t l _ P a r t N u m ' , ' R c v D t l _ P a r t D e s c r i p t i o n ' , ' R c v D t l _ O u r Q t y ' , ' R c v D t l _ L o t N u m ' , ' R c v D t l _ W a r e H o u s e C o d e ' , ' R c v D t l _ B i n N u m ' , ' P a r t T r a n _ T r a n D a t e ' , ' R c v D t l _ T r a n R e f e r e n c e ' , ' V e n d o r _ V e n d o r I D ' ] , 
 
         1 7 9 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
 
 
     L i n e   1 8 3   [ m a t c h :   W A V E ] : 
 
         1 8 1 :                                   ' W A R E H O U S E _ F I V E _ M O V E D _ O U T '   = >   [ 
 
         1 8 2 :                                           ' q u e r y F i l e N a m e '   = >   ' m o v e d O u t O f W a r e h o u s e 0 5 ' , 
 
   > >   1 8 3 :                                           ' e m a i l C l a s s '   = >   W a v e M o v e d O u t O f W a r e h o u s e 0 5 : : c l a s s , 
 
         1 8 4 :                                           ' c o l u m n s '   = >   [ ' P r o d u c t i o n D a t e ' , ' P a r t N u m ' , ' W A V E   P a r t   N u m b e r ' , ' P a r t D e s c r i p t i o n ' , ' A c t T r a n Q t y ' , ' L o t N u m ' , ' W a r e H o u s e C o d e ' , ' B i n ' , ' T r a n T y p e ' ] , 
 
         1 8 5 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
 
 
     L i n e   1 8 4   [ m a t c h :   W A V E ] : 
 
         1 8 2 :                                           ' q u e r y F i l e N a m e '   = >   ' m o v e d O u t O f W a r e h o u s e 0 5 ' , 
 
         1 8 3 :                                           ' e m a i l C l a s s '   = >   W a v e M o v e d O u t O f W a r e h o u s e 0 5 : : c l a s s , 
 
   > >   1 8 4 :                                           ' c o l u m n s '   = >   [ ' P r o d u c t i o n D a t e ' , ' P a r t N u m ' , ' W A V E   P a r t   N u m b e r ' , ' P a r t D e s c r i p t i o n ' , ' A c t T r a n Q t y ' , ' L o t N u m ' , ' W a r e H o u s e C o d e ' , ' B i n ' , ' T r a n T y p e ' ] , 
 
         1 8 5 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
         1 8 6 :                                   ] , 
 
 
 
     L i n e   1 8 9   [ m a t c h :   W A V E ] : 
 
         1 8 7 :                                   ' W A R E H O U S E _ F I V E _ M O V E D _ I N '   = >   [ 
 
         1 8 8 :                                           ' q u e r y F i l e N a m e '   = >   ' m o v e d I n t o W a r e h o u s e 0 5 ' , 
 
   > >   1 8 9 :                                           ' e m a i l C l a s s '   = >   W a v e M o v e d I n t o W a r e h o u s e 0 5 : : c l a s s , 
 
         1 9 0 :                                           ' c o l u m n s '   = >   [ ' P r o d u c t i o n   D a t e ' , ' P a r t N u m ' , ' W A V E   P a r t   N u m b e r ' , ' P a r t D e s c r i p t i o n ' , ' A c t T r a n Q t y ' , ' T r a n Q t y ' , ' L o t N u m ' , ' W a r e H o u s e C o d e   ( s h o u l d   b e   0 5 ) ' , ' B i n ' , ' T r a n T y p e ' ] , 
 
         1 9 1 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
 
 
     L i n e   1 9 0   [ m a t c h :   W A V E ] : 
 
         1 8 8 :                                           ' q u e r y F i l e N a m e '   = >   ' m o v e d I n t o W a r e h o u s e 0 5 ' , 
 
         1 8 9 :                                           ' e m a i l C l a s s '   = >   W a v e M o v e d I n t o W a r e h o u s e 0 5 : : c l a s s , 
 
   > >   1 9 0 :                                           ' c o l u m n s '   = >   [ ' P r o d u c t i o n   D a t e ' , ' P a r t N u m ' , ' W A V E   P a r t   N u m b e r ' , ' P a r t D e s c r i p t i o n ' , ' A c t T r a n Q t y ' , ' T r a n Q t y ' , ' L o t N u m ' , ' W a r e H o u s e C o d e   ( s h o u l d   b e   0 5 ) ' , ' B i n ' , ' T r a n T y p e ' ] , 
 
         1 9 1 :                                           ' q u e r y H a s D a t e '   = >   t r u e 
 
         1 9 2 :                                   ] , 
 
 
 
     L i n e   1 9 5   [ m a t c h :   W A V E ] : 
 
         1 9 3 :                           ] ; 
 
         1 9 4 :   
 
   > >   1 9 5 :                           i f ( i s s e t ( $ p r o c e s s e s [ $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( ) ] ) ) 
 
         1 9 6 :                           { 
 
         1 9 7 :                                   / /   T h i s   i s   a   p r o c e s s   f o r   t h e   " E x c e p t i o n   R e p o r t s "   w h i c h   a l l   u s e   t h e   g e n e r i c   p r o c e s s   f u n c t i o n 
 
 
 
     L i n e   1 9 8   [ m a t c h :   W A V E ] : 
 
         1 9 6 :                           { 
 
         1 9 7 :                                   / /   T h i s   i s   a   p r o c e s s   f o r   t h e   " E x c e p t i o n   R e p o r t s "   w h i c h   a l l   u s e   t h e   g e n e r i c   p r o c e s s   f u n c t i o n 
 
   > >   1 9 8 :                                   $ p r o c e s s   =   $ p r o c e s s e s [ $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( ) ] ; 
 
         1 9 9 :                                   $ r e s u l t s   =   $ t h i s - > r u n G e n e r i c P r o c e s s ( $ p r o c e s s [ ' q u e r y F i l e N a m e ' ] ,   $ p r o c e s s [ ' c o l u m n s ' ] ,   $ p r o c e s s [ ' e m a i l C l a s s ' ] ,   $ p r o c e s s [ ' q u e r y H a s D a t e ' ] ) ; 
 
         2 0 0 :                           } 
 
 
 
     L i n e   2 0 1   [ m a t c h :   W A V E ] : 
 
         1 9 9 :                                   $ r e s u l t s   =   $ t h i s - > r u n G e n e r i c P r o c e s s ( $ p r o c e s s [ ' q u e r y F i l e N a m e ' ] ,   $ p r o c e s s [ ' c o l u m n s ' ] ,   $ p r o c e s s [ ' e m a i l C l a s s ' ] ,   $ p r o c e s s [ ' q u e r y H a s D a t e ' ] ) ; 
 
         2 0 0 :                           } 
 
   > >   2 0 1 :                           e l s e   i f ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   = = =   ' W A V E _ P R E C H E C K ' ) 
 
         2 0 2 :                           { 
 
         2 0 3 :                                   / /   T h i s   p r e - c h e c k   i s   w o r t h l e s s   a n d   d o e s n ' t   d o   a n y t h i n g , 
 
 
 
     L i n e   2 0 7   [ m a t c h :   W A V E ] : 
 
         2 0 5 :                                   $ r e s u l t s   =   t r u e ; 
 
         2 0 6 :                                   $ t h i s - > l o g P r o c e s s H i s t o r y ( ' C o m p l e t e d ' ) ; 
 
   > >   2 0 7 :                                   $ t h i s - > s e n d E m a i l ( W a v e P r e c h e c k : : c l a s s ,   ' ' ) ; 
 
         2 0 8 :                           } 
 
         2 0 9 :                           e l s e   i f ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   = = =   ' W A V E _ F I L E S _ E X P O R T E D _ U P L O A D E D ' ) 
 
 
 
     L i n e   2 0 9   [ m a t c h :   W A V E ] : 
 
         2 0 7 :                                   $ t h i s - > s e n d E m a i l ( W a v e P r e c h e c k : : c l a s s ,   ' ' ) ; 
 
         2 0 8 :                           } 
 
   > >   2 0 9 :                           e l s e   i f ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   = = =   ' W A V E _ F I L E S _ E X P O R T E D _ U P L O A D E D ' ) 
 
         2 1 0 :                           { 
 
         2 1 1 :                                   $ r e s u l t s   =   $ t h i s - > e x p o r t U p l o a d W a v e F i l e s ( ) ; 
 
 
 
     L i n e   2 1 1   [ m a t c h :   W A V E ] : 
 
         2 0 9 :                           e l s e   i f ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   = = =   ' W A V E _ F I L E S _ E X P O R T E D _ U P L O A D E D ' ) 
 
         2 1 0 :                           { 
 
   > >   2 1 1 :                                   $ r e s u l t s   =   $ t h i s - > e x p o r t U p l o a d W a v e F i l e s ( ) ; 
 
         2 1 2 :                           } 
 
         2 1 3 :                           e l s e   i f ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   = = =   ' W A V E _ E N D _ O F _ M O N T H ' ) 
 
 
 
     L i n e   2 1 3   [ m a t c h :   W A V E ] : 
 
         2 1 1 :                                   $ r e s u l t s   =   $ t h i s - > e x p o r t U p l o a d W a v e F i l e s ( ) ; 
 
         2 1 2 :                           } 
 
   > >   2 1 3 :                           e l s e   i f ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   = = =   ' W A V E _ E N D _ O F _ M O N T H ' ) 
 
         2 1 4 :                           { 
 
         2 1 5 :                                   $ r e s u l t s   =   $ t h i s - > e n d O f M o n t h ( ) ; 
 
 
 
     L i n e   2 3 3   [ m a t c h :   W A V E ] : 
 
         2 3 1 :   
 
         2 3 2 :           / * * 
 
   > >   2 3 3 :             *   N O T E :   T h i s   i s   t h e   o n l y   f u n c t i o n   t h a t   c a n n o t   u s e   $ t h i s - > g e t W a v e P r o c e s s ( ) 
 
         2 3 4 :             *   t h a t   i s   w h y   w e   a r e   p a s s i n g   i t   i n . 
 
         2 3 5 :             * 
 
 
 
     L i n e   2 3 7   [ m a t c h :   W A V E ] : 
 
         2 3 5 :             * 
 
         2 3 6 :             *   @ p a r a m   s t r i n g   $ P r o c e s s C o d i n g K e y 
 
   > >   2 3 7 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s | b o o l 
 
         2 3 8 :             *   @ t h r o w s   \ E x c e p t i o n 
 
         2 3 9 :             * / 
 
 
 
     L i n e   2 4 3   [ m a t c h :   W A V E ] : 
 
         2 4 1 :           { 
 
         2 4 2 :                   t r y { 
 
   > >   2 4 3 :                           / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
         2 4 4 :                           $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         2 4 5 :   
 
 
 
     L i n e   2 4 4   [ m a t c h :   W A V E ] : 
 
         2 4 2 :                   t r y { 
 
         2 4 3 :                           / * *   @ v a r   w a v e _ P r o c e s s   $ w a v e _ P r o c e s s R e p o   * / 
 
   > >   2 4 4 :                           $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         2 4 5 :   
 
         2 4 6 :                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
 
 
     L i n e   2 4 6   [ m a t c h :   W A V E ] : 
 
         2 4 4 :                           $ w a v e _ P r o c e s s R e p o   =   a p p ( w a v e _ P r o c e s s : : c l a s s ) ; 
 
         2 4 5 :   
 
   > >   2 4 6 :                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
         2 4 7 :                           $ w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s R e p o - > f i n d O n e B y ( [ ' C o d i n g K e y '   = >   $ P r o c e s s C o d i n g K e y ] ) ; 
 
         2 4 8 :   
 
 
 
     L i n e   2 4 7   [ m a t c h :   W A V E ] : 
 
         2 4 5 :   
 
         2 4 6 :                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ w a v e _ P r o c e s s   $ w a v e _ P r o c e s s   * / 
 
   > >   2 4 7 :                           $ w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s R e p o - > f i n d O n e B y ( [ ' C o d i n g K e y '   = >   $ P r o c e s s C o d i n g K e y ] ) ; 
 
         2 4 8 :   
 
         2 4 9 :                           r e t u r n   $ w a v e _ P r o c e s s ; 
 
 
 
     L i n e   2 4 9   [ m a t c h :   W A V E ] : 
 
         2 4 7 :                           $ w a v e _ P r o c e s s   =   $ w a v e _ P r o c e s s R e p o - > f i n d O n e B y ( [ ' C o d i n g K e y '   = >   $ P r o c e s s C o d i n g K e y ] ) ; 
 
         2 4 8 :   
 
   > >   2 4 9 :                           r e t u r n   $ w a v e _ P r o c e s s ; 
 
         2 5 0 :                   } 
 
         2 5 1 :                   c a t c h ( \ E x c e p t i o n   $ e )   { 
 
 
 
     L i n e   2 7 3   [ m a t c h :   W A V E ] : 
 
         2 7 1 :   
 
         2 7 2 :                   / /   G e t   t h e   s p r e a d s h e e t   a n d   n a m e   t h e   a c t i v e   s h e e t 
 
   > >   2 7 3 :                   $ s h e e t   =   $ t h i s - > g e t S p r e a d s h e e t ( ) - > g e t A c t i v e S h e e t ( ) - > s e t T i t l e ( $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( ) ) ; 
 
         2 7 4 :   
 
         2 7 5 :                   / /   S e t   t h e   c o l u m n   v a l u e s 
 
 
 
     L i n e   2 9 1   [ m a t c h :   W A V E ] : 
 
         2 8 9 :                   / /   P r e p   t h e   f i l e   s y s t e m   f o r   s t o r a g e 
 
         2 9 0 :                   $ s t o r a g e P a t h   =   ' e d i \ \ e x c e p t i o n - r e p o r t s \ \ ' ; 
 
   > >   2 9 1 :                   $ f i l e N a m e   =   $ t h i s - > g e t P r o c e s s D a t e ( )   .   ' - '   .     $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t C o d i n g K e y ( )   .   ' - '   .   t i m e ( )   .   ' . x l s x ' ; 
 
         2 9 2 :                   \ S t o r a g e : : m a k e D i r e c t o r y ( $ s t o r a g e P a t h ) ; 
 
         2 9 3 :   
 
 
 
     L i n e   3 6 0   [ m a t c h :   W A V E ] : 
 
         3 5 8 :             *   @ t h r o w s   \ E x c e p t i o n 
 
         3 5 9 :             * / 
 
   > >   3 6 0 :           p r i v a t e   f u n c t i o n   e x p o r t U p l o a d W a v e F i l e s ( ) 
 
         3 6 1 :           { 
 
         3 6 2 :                   t r y { 
 
 
 
     L i n e   4 7 1   [ m a t c h :   W A V E ] : 
 
         4 6 9 :                           } 
 
         4 7 0 :   
 
   > >   4 7 1 :                           $ f i l e P a t h   =   " \ \ \ \ \ w i - f p s \ w t 3 2 n e w \ w a v e \ \ Q u e s t T e s t i n g \ \ "   .   d a t e ( ' Y m d ' ,   s t r t o t i m e ( $ t h i s - > g e t P r o c e s s D a t e ( ) ) ) ; 
 
         4 7 2 :                           $ t h i s - > s e n d E m a i l ( W a v e F i l e s E x p o r t e d A n d U p l o a d e d : : c l a s s ,   $ f i l e P a t h ) ; 
 
         4 7 3 :   
 
 
 
     L i n e   4 7 2   [ m a t c h :   W A V E ] : 
 
         4 7 0 :   
 
         4 7 1 :                           $ f i l e P a t h   =   " \ \ \ \ \ w i - f p s \ w t 3 2 n e w \ w a v e \ \ Q u e s t T e s t i n g \ \ "   .   d a t e ( ' Y m d ' ,   s t r t o t i m e ( $ t h i s - > g e t P r o c e s s D a t e ( ) ) ) ; 
 
   > >   4 7 2 :                           $ t h i s - > s e n d E m a i l ( W a v e F i l e s E x p o r t e d A n d U p l o a d e d : : c l a s s ,   $ f i l e P a t h ) ; 
 
         4 7 3 :   
 
         4 7 4 :                           r e t u r n   t r u e ; 
 
 
 
     L i n e   4 8 4   [ m a t c h :   W A V E ] : 
 
         4 8 2 :           / * * 
 
         4 8 3 :             *   U s e d   o n c e   a   m o n t h   t o   p r o d u c e   a   c o m p l i a n t   E D I   f i l e ,   d o e s 
 
   > >   4 8 4 :             *   b a s i c a l l y   t h e   s a m e   t h i n g   a s   e x p o r t U p l o a d W a v e F i l e s ( )   b u t 
 
         4 8 5 :             *   i s   e x c l u d e d   a s   i t   i s   n o t   r u n   d a i l y . 
 
         4 8 6 :             * 
 
 
 
     L i n e   5 4 5   [ m a t c h :   W A V E ] : 
 
         5 4 3 :                       / /     d d ( ' m a d e   i t ' ) ; 
 
         5 4 4 :   
 
   > >   5 4 5 :                           $ t h i s - > s e n d E m a i l ( W a v e M o n t h E n d I n v e n t o r y : : c l a s s ,   $ f i l e P a t h . " p r i e o p . t x t " ) ; 
 
         5 4 6 :   
 
         5 4 7 :   
 
 
 
     L i n e   5 6 6   [ m a t c h :   W A V E ] : 
 
         5 6 4 :           { 
 
         5 6 5 :                   $ e m a i l s   =   [ ] ; 
 
   > >   5 6 6 :                   $ q u e s t U s e r s T o N o t i f y   =   $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t Q u e s t E m a i l E v e n t ( ) - > g e t Q u e s t U s e r ( ) ; 
 
         5 6 7 :   
 
         5 6 8 :                   / * *   @ v a r   q u e s t _ U s e r   $ q u e s t U s e r T o N o t i f y   * / 
 
 
 
     L i n e   6 0 0   [ m a t c h :   W A V E ] : 
 
         5 9 8 :                           $ D a t a H a n d l e r - > s t a r t T r a n s a c t i o n ( ) ; 
 
         5 9 9 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
   > >   6 0 0 :                                   ' w a v e _ P r o c e s s '   = >   [ ' I D '   = >   $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t I D ( ) ] , 
 
         6 0 1 :                                   ' R e s u l t s '   = >   $ R e s u l t s , 
 
         6 0 2 :                                   ' W a s S u c c e s s f u l '   = >   $ W a s S u c c e s s f u l , 
 
 
 
     L i n e   6 0 6   [ m a t c h :   W A V E ] : 
 
         6 0 4 :                                   ' R e s u l t s F i l e P a t h '   = >   $ R e s u l t s F i l e P a t h , 
 
         6 0 5 :                                   ' R a n D T '   = >   C a r b o n : : n o w ( ) , 
 
   > >   6 0 6 :                           ] ,   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' w a v e _ P r o c e s s H i s t o r y ' ) ) ; 
 
         6 0 7 :   
 
         6 0 8 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
 
 
     L i n e   6 0 9   [ m a t c h :   W A V E ] : 
 
         6 0 7 :   
 
         6 0 8 :                           $ D a t a H a n d l e r - > h a n d l e I n s e r t U p d a t e ( [ 
 
   > >   6 0 9 :                                   ' I D '   = >   $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t I D ( ) , 
 
         6 1 0 :                                   ' L a s t R a n D T '   = >   C a r b o n : : n o w ( ) 
 
         6 1 1 :                           ] ,   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' w a v e _ P r o c e s s ' ) ) ; 
 
 
 
     L i n e   6 1 1   [ m a t c h :   W A V E ] : 
 
         6 0 9 :                                   ' I D '   = >   $ t h i s - > g e t W a v e P r o c e s s ( ) - > g e t I D ( ) , 
 
         6 1 0 :                                   ' L a s t R a n D T '   = >   C a r b o n : : n o w ( ) 
 
   > >   6 1 1 :                           ] ,   $ M e t a d a t a F a c t o r y - > g e t E n t i t y ( ' w a v e _ P r o c e s s ' ) ) ; 
 
         6 1 2 :                           $ D a t a H a n d l e r - > c o m m i t T r a n s a c t i o n ( ) ; 
 
         6 1 3 :                   } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ W a v e E d i \ W a v e S e r v i c e V P . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3   [ m a t c h :   w a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r ; 
 
 
 
     L i n e   6   [ m a t c h :   w a v e ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r ; 
 
   > >   6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
 
 
     L i n e   7   [ m a t c h :   w a v e ] : 
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r ; 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
 
 
     L i n e   8   [ m a t c h :   w a v e ] : 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
   > >   8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
 
 
     L i n e   9   [ m a t c h :   w a v e ] : 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
   > >   9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
 
 
     L i n e   1 0   [ m a t c h :   w a v e ] : 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
   > >   1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
 
 
     L i n e   1 1   [ m a t c h :   w a v e ] : 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
   > >   1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
 
 
     L i n e   1 2   [ m a t c h :   w a v e ] : 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
   > >   1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
         1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k ; 
 
 
 
     L i n e   1 3   [ m a t c h :   w a v e ] : 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
   > >   1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
         1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k ; 
 
         1 5 :   
 
 
 
     L i n e   1 4   [ m a t c h :   w a v e ] : 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
   > >   1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k ; 
 
         1 5 :   
 
         1 6 :   
 
 
 
     L i n e   1 7   [ m a t c h :   w a v e ] : 
 
         1 5 :   
 
         1 6 :   
 
   > >   1 7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e S L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
         1 8 :   u s e   C a r b o n \ C a r b o n ; 
 
         1 9 :   u s e   D o c t r i n e \ D B A L \ C o n n e c t i o n ; 
 
 
 
     L i n e   3 0   [ m a t c h :   w a v e ] : 
 
         2 8 :   u s e   S y m f o n y \ C o m p o n e n t \ P r o c e s s \ P r o c e s s ; 
 
         2 9 :   
 
   > >   3 0 :   c l a s s   W a v e S e r v i c e V P   E x t e n d s   W a v e S e r v i c e 
 
         3 1 :   { 
 
         3 2 :   
 
 
 
     L i n e   3 4   [ m a t c h :   w a v e ] : 
 
         3 2 :   
 
         3 3 :   
 
   > >   3 4 :           p r o t e c t e d   $ s q l D i r e c t o r y   =   " w a v e S Q L - V P " ; 
 
         3 5 :           p r o t e c t e d   $ s u f f i x   =   " V P " ; 
 
         3 6 :           p r o t e c t e d   $ f i l e s   = [ 
 
 
 
     L i n e   3   [ m a t c h :   W a v e ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r ; 
 
 
 
     L i n e   6   [ m a t c h :   W a v e ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r ; 
 
   > >   6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
 
 
     L i n e   7   [ m a t c h :   W a v e ] : 
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r ; 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
 
 
     L i n e   8   [ m a t c h :   W a v e ] : 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
   > >   8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
 
 
     L i n e   9   [ m a t c h :   W a v e ] : 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
   > >   9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W a v e ] : 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
   > >   1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
 
 
     L i n e   1 1   [ m a t c h :   W a v e ] : 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
   > >   1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
 
 
     L i n e   1 2   [ m a t c h :   W a v e ] : 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
   > >   1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
         1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k ; 
 
 
 
     L i n e   1 3   [ m a t c h :   W a v e ] : 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
   > >   1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
         1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k ; 
 
         1 5 :   
 
 
 
     L i n e   1 4   [ m a t c h :   W a v e ] : 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
   > >   1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k ; 
 
         1 5 :   
 
         1 6 :   
 
 
 
     L i n e   1 7   [ m a t c h :   W a v e ] : 
 
         1 5 :   
 
         1 6 :   
 
   > >   1 7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e S L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
         1 8 :   u s e   C a r b o n \ C a r b o n ; 
 
         1 9 :   u s e   D o c t r i n e \ D B A L \ C o n n e c t i o n ; 
 
 
 
     L i n e   3 0   [ m a t c h :   W a v e ] : 
 
         2 8 :   u s e   S y m f o n y \ C o m p o n e n t \ P r o c e s s \ P r o c e s s ; 
 
         2 9 :   
 
   > >   3 0 :   c l a s s   W a v e S e r v i c e V P   E x t e n d s   W a v e S e r v i c e 
 
         3 1 :   { 
 
         3 2 :   
 
 
 
     L i n e   3 4   [ m a t c h :   W a v e ] : 
 
         3 2 :   
 
         3 3 :   
 
   > >   3 4 :           p r o t e c t e d   $ s q l D i r e c t o r y   =   " w a v e S Q L - V P " ; 
 
         3 5 :           p r o t e c t e d   $ s u f f i x   =   " V P " ; 
 
         3 6 :           p r o t e c t e d   $ f i l e s   = [ 
 
 
 
     L i n e   3   [ m a t c h :   W A V E ] : 
 
         1 :   < ? p h p 
 
         2 :   
 
   > >   3 :   n a m e s p a c e   A p p \ S e r v i c e s \ W a v e E d i ; 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r ; 
 
 
 
     L i n e   6   [ m a t c h :   W A V E ] : 
 
         4 :   
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r ; 
 
   > >   6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
 
 
     L i n e   7   [ m a t c h :   W A V E ] : 
 
         5 :   u s e   A p p \ M o d e l \ E n t i t i e s \ q u e s t _ U s e r ; 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
   > >   7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
 
 
     L i n e   8   [ m a t c h :   W A V E ] : 
 
         6 :   u s e   A p p \ M o d e l \ R e p o s \ w a v e _ P r o c e s s ; 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
   > >   8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
 
 
     L i n e   9   [ m a t c h :   W A V E ] : 
 
         7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e F i l e s E x p o r t e d A n d U p l o a d e d ; 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
   > >   9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
 
 
     L i n e   1 0   [ m a t c h :   W A V E ] : 
 
         8 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M i s s i n g R a w M e t a l R e c e i p t P o ; 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
   > >   1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
 
 
     L i n e   1 1   [ m a t c h :   W A V E ] : 
 
         9 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o n t h E n d I n v e n t o r y ; 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
   > >   1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
 
 
     L i n e   1 2   [ m a t c h :   W A V E ] : 
 
         1 0 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d I n t o W a r e h o u s e 0 5 ; 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
   > >   1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
         1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k ; 
 
 
 
     L i n e   1 3   [ m a t c h :   W A V E ] : 
 
         1 1 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e M o v e d O u t O f W a r e h o u s e 0 5 ; 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
   > >   1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
         1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k ; 
 
         1 5 :   
 
 
 
     L i n e   1 4   [ m a t c h :   W A V E ] : 
 
         1 2 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P a r t s W o C u s t o m e r P a r t N u m b e r ; 
 
         1 3 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
   > >   1 4 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e P r e c h e c k ; 
 
         1 5 :   
 
         1 6 :   
 
 
 
     L i n e   1 7   [ m a t c h :   W A V E ] : 
 
         1 5 :   
 
         1 6 :   
 
   > >   1 7 :   u s e   A p p \ N o t i f i c a t i o n s \ W a v e E D I \ W a v e S L P r o d u c t i o n M i s s i n g P a r t N u m b e r ; 
 
         1 8 :   u s e   C a r b o n \ C a r b o n ; 
 
         1 9 :   u s e   D o c t r i n e \ D B A L \ C o n n e c t i o n ; 
 
 
 
     L i n e   3 0   [ m a t c h :   W A V E ] : 
 
         2 8 :   u s e   S y m f o n y \ C o m p o n e n t \ P r o c e s s \ P r o c e s s ; 
 
         2 9 :   
 
   > >   3 0 :   c l a s s   W a v e S e r v i c e V P   E x t e n d s   W a v e S e r v i c e 
 
         3 1 :   { 
 
         3 2 :   
 
 
 
     L i n e   3 4   [ m a t c h :   W A V E ] : 
 
         3 2 :   
 
         3 3 :   
 
   > >   3 4 :           p r o t e c t e d   $ s q l D i r e c t o r y   =   " w a v e S Q L - V P " ; 
 
         3 5 :           p r o t e c t e d   $ s u f f i x   =   " V P " ; 
 
         3 6 :           p r o t e c t e d   $ f i l e s   = [ 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ A c k n o w l e d g e m e n t P d f S e r v i c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 9   [ m a t c h :   e p i c o r ] : 
 
         1 7 :                   } 
 
         1 8 :   
 
   > >   1 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r D a t a b a s e   * / 
 
         2 0 :                   $ e p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 1 :   
 
 
 
     L i n e   2 0   [ m a t c h :   e p i c o r ] : 
 
         1 8 :   
 
         1 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r D a t a b a s e   * / 
 
   > >   2 0 :                   $ e p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 1 :   
 
         2 2 :                   $ d a t a   =   $ e p i c o r D a t a b a s e - > g e t A c k n o w l e d g e m e n t ( $ c u s t o m e r I D ,   $ p o N u m b e r ,   $ o r d e r N u m b e r ) ; 
 
 
 
     L i n e   2 2   [ m a t c h :   e p i c o r ] : 
 
         2 0 :                   $ e p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 1 :   
 
   > >   2 2 :                   $ d a t a   =   $ e p i c o r D a t a b a s e - > g e t A c k n o w l e d g e m e n t ( $ c u s t o m e r I D ,   $ p o N u m b e r ,   $ o r d e r N u m b e r ) ; 
 
         2 3 :   
 
         2 4 :                   i f ( $ d a t a   = = =   F A L S E ) 
 
 
 
     L i n e   2 8   [ m a t c h :   e p i c o r ] : 
 
         2 6 :   
 
         2 7 :                   f o r e a c h ( $ d a t a   a s   & $ r o w )   { 
 
   > >   2 8 :                           $ r o w [ ' P a i n t C o d e D a t a ' ]   =   $ e p i c o r D a t a b a s e - > g e t P a i n t C o d e D a t a F o r P a r t ( $ r o w [ ' O r d e r D t l _ P a r t N u m ' ] ) ; 
 
         2 9 :                   } 
 
         3 0 :   
 
 
 
     L i n e   1 9   [ m a t c h :   E p i c o r ] : 
 
         1 7 :                   } 
 
         1 8 :   
 
   > >   1 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r D a t a b a s e   * / 
 
         2 0 :                   $ e p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 1 :   
 
 
 
     L i n e   2 0   [ m a t c h :   E p i c o r ] : 
 
         1 8 :   
 
         1 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r D a t a b a s e   * / 
 
   > >   2 0 :                   $ e p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 1 :   
 
         2 2 :                   $ d a t a   =   $ e p i c o r D a t a b a s e - > g e t A c k n o w l e d g e m e n t ( $ c u s t o m e r I D ,   $ p o N u m b e r ,   $ o r d e r N u m b e r ) ; 
 
 
 
     L i n e   2 2   [ m a t c h :   E p i c o r ] : 
 
         2 0 :                   $ e p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 1 :   
 
   > >   2 2 :                   $ d a t a   =   $ e p i c o r D a t a b a s e - > g e t A c k n o w l e d g e m e n t ( $ c u s t o m e r I D ,   $ p o N u m b e r ,   $ o r d e r N u m b e r ) ; 
 
         2 3 :   
 
         2 4 :                   i f ( $ d a t a   = = =   F A L S E ) 
 
 
 
     L i n e   2 8   [ m a t c h :   E p i c o r ] : 
 
         2 6 :   
 
         2 7 :                   f o r e a c h ( $ d a t a   a s   & $ r o w )   { 
 
   > >   2 8 :                           $ r o w [ ' P a i n t C o d e D a t a ' ]   =   $ e p i c o r D a t a b a s e - > g e t P a i n t C o d e D a t a F o r P a r t ( $ r o w [ ' O r d e r D t l _ P a r t N u m ' ] ) ; 
 
         2 9 :                   } 
 
         3 0 :   
 
 
 
     L i n e   1 9   [ m a t c h :   E P I C O R ] : 
 
         1 7 :                   } 
 
         1 8 :   
 
   > >   1 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r D a t a b a s e   * / 
 
         2 0 :                   $ e p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 1 :   
 
 
 
     L i n e   2 0   [ m a t c h :   E P I C O R ] : 
 
         1 8 :   
 
         1 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r D a t a b a s e   * / 
 
   > >   2 0 :                   $ e p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 1 :   
 
         2 2 :                   $ d a t a   =   $ e p i c o r D a t a b a s e - > g e t A c k n o w l e d g e m e n t ( $ c u s t o m e r I D ,   $ p o N u m b e r ,   $ o r d e r N u m b e r ) ; 
 
 
 
     L i n e   2 2   [ m a t c h :   E P I C O R ] : 
 
         2 0 :                   $ e p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 1 :   
 
   > >   2 2 :                   $ d a t a   =   $ e p i c o r D a t a b a s e - > g e t A c k n o w l e d g e m e n t ( $ c u s t o m e r I D ,   $ p o N u m b e r ,   $ o r d e r N u m b e r ) ; 
 
         2 3 :   
 
         2 4 :                   i f ( $ d a t a   = = =   F A L S E ) 
 
 
 
     L i n e   2 8   [ m a t c h :   E P I C O R ] : 
 
         2 6 :   
 
         2 7 :                   f o r e a c h ( $ d a t a   a s   & $ r o w )   { 
 
   > >   2 8 :                           $ r o w [ ' P a i n t C o d e D a t a ' ]   =   $ e p i c o r D a t a b a s e - > g e t P a i n t C o d e D a t a F o r P a r t ( $ r o w [ ' O r d e r D t l _ P a r t N u m ' ] ) ; 
 
         2 9 :                   } 
 
         3 0 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ A c t i v e C o m p a n y M a n a g e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 3   [ m a t c h :   e p i c o r ] : 
 
         1 1 :   { 
 
         1 2 :           / * *   @ v a r   q u e s t _ C o m p a n y [ ]   * / 
 
   > >   1 3 :           p r i v a t e   $ a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   [ ] ; 
 
         1 4 :   
 
         1 5 :           p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( ) 
 
 
 
     L i n e   2 1   [ m a t c h :   e p i c o r ] : 
 
         1 9 :                   / * *   @ v a r   q u e s t _ C o m p a n y R e p o   $ R W Q u e s t C o m p a n y R e p o   * / 
 
         2 0 :                   $ R W Q u e s t C o m p a n y R e p o   =   $ E M C o n t a i n e r - > g e t E M ( ' r w ' ) - > g e t R e p o s i t o r y ( ' A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y ' ) ; 
 
   > >   2 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 3 :   
 
 
 
     L i n e   2 2   [ m a t c h :   e p i c o r ] : 
 
         2 0 :                   $ R W Q u e s t C o m p a n y R e p o   =   $ E M C o n t a i n e r - > g e t E M ( ' r w ' ) - > g e t R e p o s i t o r y ( ' A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y ' ) ; 
 
         2 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 3 :   
 
         2 4 :                   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   $ R W Q u e s t C o m p a n y R e p o - > g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
 
 
     L i n e   2 4   [ m a t c h :   e p i c o r ] : 
 
         2 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 3 :   
 
   > >   2 4 :                   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   $ R W Q u e s t C o m p a n y R e p o - > g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
         2 5 :                   $ N o L o n g e r A c t i v e E p i c o r C u s t I D s   =   [ ] ; 
 
         2 6 :   
 
 
 
     L i n e   2 5   [ m a t c h :   e p i c o r ] : 
 
         2 3 :   
 
         2 4 :                   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   $ R W Q u e s t C o m p a n y R e p o - > g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
   > >   2 5 :                   $ N o L o n g e r A c t i v e E p i c o r C u s t I D s   =   [ ] ; 
 
         2 6 :   
 
         2 7 :   
 
 
 
     L i n e   2 8   [ m a t c h :   e p i c o r ] : 
 
         2 6 :   
 
         2 7 :   
 
   > >   2 8 :                   $ E p i c o r D B - > s t o r e C o m p a n y I n f o ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ) ; 
 
         2 9 :   
 
         3 0 :                   f o r e a c h ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
 
 
     L i n e   3 0   [ m a t c h :   e p i c o r ] : 
 
         2 8 :                   $ E p i c o r D B - > s t o r e C o m p a n y I n f o ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ) ; 
 
         2 9 :   
 
   > >   3 0 :                   f o r e a c h ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
         3 1 :                   { 
 
         3 2 :                           $ E p i c o r C u s t I n f o   =   $ E p i c o r D B - > g e t C u s t I n f o I f E x i s t s ( $ E p i c o r C u s t I D ) ; 
 
 
 
     L i n e   3 2   [ m a t c h :   e p i c o r ] : 
 
         3 0 :                   f o r e a c h ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
         3 1 :                   { 
 
   > >   3 2 :                           $ E p i c o r C u s t I n f o   =   $ E p i c o r D B - > g e t C u s t I n f o I f E x i s t s ( $ E p i c o r C u s t I D ) ; 
 
         3 3 :                           i f ( $ E p i c o r C u s t I n f o   = = =   F A L S E   & &   A p p : : e n v i r o n m e n t ( )   = = =   ' p r o d ' ) 
 
         3 4 :                           { 
 
 
 
     L i n e   3 3   [ m a t c h :   e p i c o r ] : 
 
         3 1 :                   { 
 
         3 2 :                           $ E p i c o r C u s t I n f o   =   $ E p i c o r D B - > g e t C u s t I n f o I f E x i s t s ( $ E p i c o r C u s t I D ) ; 
 
   > >   3 3 :                           i f ( $ E p i c o r C u s t I n f o   = = =   F A L S E   & &   A p p : : e n v i r o n m e n t ( )   = = =   ' p r o d ' ) 
 
         3 4 :                           { 
 
         3 5 :                               / *     $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] - > s e t I s D e a c t i v a t e d ( t r u e ) ; 
 
 
 
     L i n e   3 5   [ m a t c h :   e p i c o r ] : 
 
         3 3 :                           i f ( $ E p i c o r C u s t I n f o   = = =   F A L S E   & &   A p p : : e n v i r o n m e n t ( )   = = =   ' p r o d ' ) 
 
         3 4 :                           { 
 
   > >   3 5 :                               / *     $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] - > s e t I s D e a c t i v a t e d ( t r u e ) ; 
 
         3 6 :                                   a r r a y _ p u s h ( $ N o L o n g e r A c t i v e E p i c o r C u s t I D s ,   $ E p i c o r C u s t I D ) ; 
 
         3 7 :                                   N o t i f i c a t i o n : : r o u t e ( ' m a i l ' ,   ' d e v s @ s a v v i o r . c o m ' ) 
 
 
 
     L i n e   3 6   [ m a t c h :   e p i c o r ] : 
 
         3 4 :                           { 
 
         3 5 :                               / *     $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] - > s e t I s D e a c t i v a t e d ( t r u e ) ; 
 
   > >   3 6 :                                   a r r a y _ p u s h ( $ N o L o n g e r A c t i v e E p i c o r C u s t I D s ,   $ E p i c o r C u s t I D ) ; 
 
         3 7 :                                   N o t i f i c a t i o n : : r o u t e ( ' m a i l ' ,   ' d e v s @ s a v v i o r . c o m ' ) 
 
         3 8 :                                           - > n o t i f y ( n e w   C u s t o m e r D e a c t i v a t e d D e v O n l y ( 
 
 
 
     L i n e   4 0   [ m a t c h :   e p i c o r ] : 
 
         3 8 :                                           - > n o t i f y ( n e w   C u s t o m e r D e a c t i v a t e d D e v O n l y ( 
 
         3 9 :                                                   ' A c t i v e C o m p a n y M a n a g e r # _ _ c o n s t r u c t ' , 
 
   > >   4 0 :                                                   ' E p i c o r   C u s t o m e r   I D   =   '   .   $ E p i c o r C u s t I D   .   P H P _ E O L   .   ' $ C o m p a n y   =   ( s t r i n g )   '   .   ( ( s t r i n g )   $ C o m p a n y ) 
 
         4 1 :                                                   ) 
 
         4 2 :                                           ) ;   * / 
 
 
 
     L i n e   4 6   [ m a t c h :   e p i c o r ] : 
 
         4 4 :                           } 
 
         4 5 :   
 
   > >   4 6 :                           $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] - > s e t E p i N a m e ( $ E p i c o r C u s t I n f o [ ' N a m e ' ] ) ; 
 
         4 7 :                   } 
 
         4 8 :                   t r y   { 
 
 
 
     L i n e   5 4   [ m a t c h :   e p i c o r ] : 
 
         5 2 :                           $ E M C o n t a i n e r - > r e s e t E M ( ' r w ' ) ; 
 
         5 3 :                   } 
 
   > >   5 4 :                   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   a r r a y _ d i f f _ k e y ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ,   a r r a y _ f l i p ( $ N o L o n g e r A c t i v e E p i c o r C u s t I D s ) ) ; 
 
         5 5 :           } 
 
         5 6 :   
 
 
 
     L i n e   6 0   [ m a t c h :   e p i c o r ] : 
 
         5 8 :             *   @ r e t u r n   q u e s t _ C o m p a n y [ ] 
 
         5 9 :             * / 
 
   > >   6 0 :           p u b l i c   f u n c t i o n   g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) 
 
         6 1 :           { 
 
         6 2 :                   r e t u r n   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ; 
 
 
 
     L i n e   6 2   [ m a t c h :   e p i c o r ] : 
 
         6 0 :           p u b l i c   f u n c t i o n   g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) 
 
         6 1 :           { 
 
   > >   6 2 :                   r e t u r n   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ; 
 
         6 3 :           } 
 
         6 4 :   
 
 
 
     L i n e   6 6   [ m a t c h :   e p i c o r ] : 
 
         6 4 :   
 
         6 5 :           / * * 
 
   > >   6 6 :             *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         6 7 :             *   @ r e t u r n   q u e s t _ C o m p a n y | n u l l 
 
         6 8 :             * / 
 
 
 
     L i n e   6 9   [ m a t c h :   e p i c o r ] : 
 
         6 7 :             *   @ r e t u r n   q u e s t _ C o m p a n y | n u l l 
 
         6 8 :             * / 
 
   > >   6 9 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ E p i c o r C u s t I D ) 
 
         7 0 :           { 
 
         7 1 :                   r e t u r n   ( i s s e t ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] )   ?   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ]   :   n u l l ) ; 
 
 
 
     L i n e   7 1   [ m a t c h :   e p i c o r ] : 
 
         6 9 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ E p i c o r C u s t I D ) 
 
         7 0 :           { 
 
   > >   7 1 :                   r e t u r n   ( i s s e t ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] )   ?   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ]   :   n u l l ) ; 
 
         7 2 :           } 
 
         7 3 :   
 
 
 
     L i n e   7 5   [ m a t c h :   e p i c o r ] : 
 
         7 3 :   
 
         7 4 :           / * * 
 
   > >   7 5 :             *   @ p a r a m   s t r i n g [ ]   $ E p i c o r C u s t I D s 
 
         7 6 :             *   @ r e t u r n   q u e s t _ C o m p a n y [ ] 
 
         7 7 :             * / 
 
 
 
     L i n e   7 8   [ m a t c h :   e p i c o r ] : 
 
         7 6 :             *   @ r e t u r n   q u e s t _ C o m p a n y [ ] 
 
         7 7 :             * / 
 
   > >   7 8 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D s ( a r r a y   $ E p i c o r C u s t I D s ) 
 
         7 9 :           { 
 
         8 0 :                   r e t u r n   a r r a y _ i n t e r s e c t _ k e y ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ,   a r r a y _ f l i p ( $ E p i c o r C u s t I D s ) ) ; 
 
 
 
     L i n e   8 0   [ m a t c h :   e p i c o r ] : 
 
         7 8 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D s ( a r r a y   $ E p i c o r C u s t I D s ) 
 
         7 9 :           { 
 
   > >   8 0 :                   r e t u r n   a r r a y _ i n t e r s e c t _ k e y ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ,   a r r a y _ f l i p ( $ E p i c o r C u s t I D s ) ) ; 
 
         8 1 :           } 
 
         8 2 :   
 
 
 
     L i n e   8 7   [ m a t c h :   e p i c o r ] : 
 
         8 5 :             *   @ r e t u r n   s t r i n g [ ] 
 
         8 6 :             * / 
 
   > >   8 7 :           p u b l i c   f u n c t i o n   g e t A l l A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) 
 
         8 8 :           { 
 
         8 9 :                   r e t u r n   a r r a y _ k e y s ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ) ; 
 
 
 
     L i n e   8 9   [ m a t c h :   e p i c o r ] : 
 
         8 7 :           p u b l i c   f u n c t i o n   g e t A l l A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) 
 
         8 8 :           { 
 
   > >   8 9 :                   r e t u r n   a r r a y _ k e y s ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ) ; 
 
         9 0 :           } 
 
         9 1 :   } 
 
 
 
     L i n e   1 3   [ m a t c h :   E p i c o r ] : 
 
         1 1 :   { 
 
         1 2 :           / * *   @ v a r   q u e s t _ C o m p a n y [ ]   * / 
 
   > >   1 3 :           p r i v a t e   $ a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   [ ] ; 
 
         1 4 :   
 
         1 5 :           p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( ) 
 
 
 
     L i n e   2 1   [ m a t c h :   E p i c o r ] : 
 
         1 9 :                   / * *   @ v a r   q u e s t _ C o m p a n y R e p o   $ R W Q u e s t C o m p a n y R e p o   * / 
 
         2 0 :                   $ R W Q u e s t C o m p a n y R e p o   =   $ E M C o n t a i n e r - > g e t E M ( ' r w ' ) - > g e t R e p o s i t o r y ( ' A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y ' ) ; 
 
   > >   2 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 3 :   
 
 
 
     L i n e   2 2   [ m a t c h :   E p i c o r ] : 
 
         2 0 :                   $ R W Q u e s t C o m p a n y R e p o   =   $ E M C o n t a i n e r - > g e t E M ( ' r w ' ) - > g e t R e p o s i t o r y ( ' A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y ' ) ; 
 
         2 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 3 :   
 
         2 4 :                   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   $ R W Q u e s t C o m p a n y R e p o - > g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
 
 
     L i n e   2 4   [ m a t c h :   E p i c o r ] : 
 
         2 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 3 :   
 
   > >   2 4 :                   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   $ R W Q u e s t C o m p a n y R e p o - > g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
         2 5 :                   $ N o L o n g e r A c t i v e E p i c o r C u s t I D s   =   [ ] ; 
 
         2 6 :   
 
 
 
     L i n e   2 5   [ m a t c h :   E p i c o r ] : 
 
         2 3 :   
 
         2 4 :                   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   $ R W Q u e s t C o m p a n y R e p o - > g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
   > >   2 5 :                   $ N o L o n g e r A c t i v e E p i c o r C u s t I D s   =   [ ] ; 
 
         2 6 :   
 
         2 7 :   
 
 
 
     L i n e   2 8   [ m a t c h :   E p i c o r ] : 
 
         2 6 :   
 
         2 7 :   
 
   > >   2 8 :                   $ E p i c o r D B - > s t o r e C o m p a n y I n f o ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ) ; 
 
         2 9 :   
 
         3 0 :                   f o r e a c h ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
 
 
     L i n e   3 0   [ m a t c h :   E p i c o r ] : 
 
         2 8 :                   $ E p i c o r D B - > s t o r e C o m p a n y I n f o ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ) ; 
 
         2 9 :   
 
   > >   3 0 :                   f o r e a c h ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
         3 1 :                   { 
 
         3 2 :                           $ E p i c o r C u s t I n f o   =   $ E p i c o r D B - > g e t C u s t I n f o I f E x i s t s ( $ E p i c o r C u s t I D ) ; 
 
 
 
     L i n e   3 2   [ m a t c h :   E p i c o r ] : 
 
         3 0 :                   f o r e a c h ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
         3 1 :                   { 
 
   > >   3 2 :                           $ E p i c o r C u s t I n f o   =   $ E p i c o r D B - > g e t C u s t I n f o I f E x i s t s ( $ E p i c o r C u s t I D ) ; 
 
         3 3 :                           i f ( $ E p i c o r C u s t I n f o   = = =   F A L S E   & &   A p p : : e n v i r o n m e n t ( )   = = =   ' p r o d ' ) 
 
         3 4 :                           { 
 
 
 
     L i n e   3 3   [ m a t c h :   E p i c o r ] : 
 
         3 1 :                   { 
 
         3 2 :                           $ E p i c o r C u s t I n f o   =   $ E p i c o r D B - > g e t C u s t I n f o I f E x i s t s ( $ E p i c o r C u s t I D ) ; 
 
   > >   3 3 :                           i f ( $ E p i c o r C u s t I n f o   = = =   F A L S E   & &   A p p : : e n v i r o n m e n t ( )   = = =   ' p r o d ' ) 
 
         3 4 :                           { 
 
         3 5 :                               / *     $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] - > s e t I s D e a c t i v a t e d ( t r u e ) ; 
 
 
 
     L i n e   3 5   [ m a t c h :   E p i c o r ] : 
 
         3 3 :                           i f ( $ E p i c o r C u s t I n f o   = = =   F A L S E   & &   A p p : : e n v i r o n m e n t ( )   = = =   ' p r o d ' ) 
 
         3 4 :                           { 
 
   > >   3 5 :                               / *     $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] - > s e t I s D e a c t i v a t e d ( t r u e ) ; 
 
         3 6 :                                   a r r a y _ p u s h ( $ N o L o n g e r A c t i v e E p i c o r C u s t I D s ,   $ E p i c o r C u s t I D ) ; 
 
         3 7 :                                   N o t i f i c a t i o n : : r o u t e ( ' m a i l ' ,   ' d e v s @ s a v v i o r . c o m ' ) 
 
 
 
     L i n e   3 6   [ m a t c h :   E p i c o r ] : 
 
         3 4 :                           { 
 
         3 5 :                               / *     $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] - > s e t I s D e a c t i v a t e d ( t r u e ) ; 
 
   > >   3 6 :                                   a r r a y _ p u s h ( $ N o L o n g e r A c t i v e E p i c o r C u s t I D s ,   $ E p i c o r C u s t I D ) ; 
 
         3 7 :                                   N o t i f i c a t i o n : : r o u t e ( ' m a i l ' ,   ' d e v s @ s a v v i o r . c o m ' ) 
 
         3 8 :                                           - > n o t i f y ( n e w   C u s t o m e r D e a c t i v a t e d D e v O n l y ( 
 
 
 
     L i n e   4 0   [ m a t c h :   E p i c o r ] : 
 
         3 8 :                                           - > n o t i f y ( n e w   C u s t o m e r D e a c t i v a t e d D e v O n l y ( 
 
         3 9 :                                                   ' A c t i v e C o m p a n y M a n a g e r # _ _ c o n s t r u c t ' , 
 
   > >   4 0 :                                                   ' E p i c o r   C u s t o m e r   I D   =   '   .   $ E p i c o r C u s t I D   .   P H P _ E O L   .   ' $ C o m p a n y   =   ( s t r i n g )   '   .   ( ( s t r i n g )   $ C o m p a n y ) 
 
         4 1 :                                                   ) 
 
         4 2 :                                           ) ;   * / 
 
 
 
     L i n e   4 6   [ m a t c h :   E p i c o r ] : 
 
         4 4 :                           } 
 
         4 5 :   
 
   > >   4 6 :                           $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] - > s e t E p i N a m e ( $ E p i c o r C u s t I n f o [ ' N a m e ' ] ) ; 
 
         4 7 :                   } 
 
         4 8 :                   t r y   { 
 
 
 
     L i n e   5 4   [ m a t c h :   E p i c o r ] : 
 
         5 2 :                           $ E M C o n t a i n e r - > r e s e t E M ( ' r w ' ) ; 
 
         5 3 :                   } 
 
   > >   5 4 :                   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   a r r a y _ d i f f _ k e y ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ,   a r r a y _ f l i p ( $ N o L o n g e r A c t i v e E p i c o r C u s t I D s ) ) ; 
 
         5 5 :           } 
 
         5 6 :   
 
 
 
     L i n e   6 0   [ m a t c h :   E p i c o r ] : 
 
         5 8 :             *   @ r e t u r n   q u e s t _ C o m p a n y [ ] 
 
         5 9 :             * / 
 
   > >   6 0 :           p u b l i c   f u n c t i o n   g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) 
 
         6 1 :           { 
 
         6 2 :                   r e t u r n   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ; 
 
 
 
     L i n e   6 2   [ m a t c h :   E p i c o r ] : 
 
         6 0 :           p u b l i c   f u n c t i o n   g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) 
 
         6 1 :           { 
 
   > >   6 2 :                   r e t u r n   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ; 
 
         6 3 :           } 
 
         6 4 :   
 
 
 
     L i n e   6 6   [ m a t c h :   E p i c o r ] : 
 
         6 4 :   
 
         6 5 :           / * * 
 
   > >   6 6 :             *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         6 7 :             *   @ r e t u r n   q u e s t _ C o m p a n y | n u l l 
 
         6 8 :             * / 
 
 
 
     L i n e   6 9   [ m a t c h :   E p i c o r ] : 
 
         6 7 :             *   @ r e t u r n   q u e s t _ C o m p a n y | n u l l 
 
         6 8 :             * / 
 
   > >   6 9 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ E p i c o r C u s t I D ) 
 
         7 0 :           { 
 
         7 1 :                   r e t u r n   ( i s s e t ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] )   ?   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ]   :   n u l l ) ; 
 
 
 
     L i n e   7 1   [ m a t c h :   E p i c o r ] : 
 
         6 9 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ E p i c o r C u s t I D ) 
 
         7 0 :           { 
 
   > >   7 1 :                   r e t u r n   ( i s s e t ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] )   ?   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ]   :   n u l l ) ; 
 
         7 2 :           } 
 
         7 3 :   
 
 
 
     L i n e   7 5   [ m a t c h :   E p i c o r ] : 
 
         7 3 :   
 
         7 4 :           / * * 
 
   > >   7 5 :             *   @ p a r a m   s t r i n g [ ]   $ E p i c o r C u s t I D s 
 
         7 6 :             *   @ r e t u r n   q u e s t _ C o m p a n y [ ] 
 
         7 7 :             * / 
 
 
 
     L i n e   7 8   [ m a t c h :   E p i c o r ] : 
 
         7 6 :             *   @ r e t u r n   q u e s t _ C o m p a n y [ ] 
 
         7 7 :             * / 
 
   > >   7 8 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D s ( a r r a y   $ E p i c o r C u s t I D s ) 
 
         7 9 :           { 
 
         8 0 :                   r e t u r n   a r r a y _ i n t e r s e c t _ k e y ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ,   a r r a y _ f l i p ( $ E p i c o r C u s t I D s ) ) ; 
 
 
 
     L i n e   8 0   [ m a t c h :   E p i c o r ] : 
 
         7 8 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D s ( a r r a y   $ E p i c o r C u s t I D s ) 
 
         7 9 :           { 
 
   > >   8 0 :                   r e t u r n   a r r a y _ i n t e r s e c t _ k e y ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ,   a r r a y _ f l i p ( $ E p i c o r C u s t I D s ) ) ; 
 
         8 1 :           } 
 
         8 2 :   
 
 
 
     L i n e   8 7   [ m a t c h :   E p i c o r ] : 
 
         8 5 :             *   @ r e t u r n   s t r i n g [ ] 
 
         8 6 :             * / 
 
   > >   8 7 :           p u b l i c   f u n c t i o n   g e t A l l A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) 
 
         8 8 :           { 
 
         8 9 :                   r e t u r n   a r r a y _ k e y s ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ) ; 
 
 
 
     L i n e   8 9   [ m a t c h :   E p i c o r ] : 
 
         8 7 :           p u b l i c   f u n c t i o n   g e t A l l A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) 
 
         8 8 :           { 
 
   > >   8 9 :                   r e t u r n   a r r a y _ k e y s ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ) ; 
 
         9 0 :           } 
 
         9 1 :   } 
 
 
 
     L i n e   1 3   [ m a t c h :   E P I C O R ] : 
 
         1 1 :   { 
 
         1 2 :           / * *   @ v a r   q u e s t _ C o m p a n y [ ]   * / 
 
   > >   1 3 :           p r i v a t e   $ a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   [ ] ; 
 
         1 4 :   
 
         1 5 :           p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( ) 
 
 
 
     L i n e   2 1   [ m a t c h :   E P I C O R ] : 
 
         1 9 :                   / * *   @ v a r   q u e s t _ C o m p a n y R e p o   $ R W Q u e s t C o m p a n y R e p o   * / 
 
         2 0 :                   $ R W Q u e s t C o m p a n y R e p o   =   $ E M C o n t a i n e r - > g e t E M ( ' r w ' ) - > g e t R e p o s i t o r y ( ' A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y ' ) ; 
 
   > >   2 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 3 :   
 
 
 
     L i n e   2 2   [ m a t c h :   E P I C O R ] : 
 
         2 0 :                   $ R W Q u e s t C o m p a n y R e p o   =   $ E M C o n t a i n e r - > g e t E M ( ' r w ' ) - > g e t R e p o s i t o r y ( ' A p p \ M o d e l \ E n t i t i e s \ q u e s t _ C o m p a n y ' ) ; 
 
         2 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 3 :   
 
         2 4 :                   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   $ R W Q u e s t C o m p a n y R e p o - > g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
 
 
     L i n e   2 4   [ m a t c h :   E P I C O R ] : 
 
         2 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 3 :   
 
   > >   2 4 :                   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   $ R W Q u e s t C o m p a n y R e p o - > g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
         2 5 :                   $ N o L o n g e r A c t i v e E p i c o r C u s t I D s   =   [ ] ; 
 
         2 6 :   
 
 
 
     L i n e   2 5   [ m a t c h :   E P I C O R ] : 
 
         2 3 :   
 
         2 4 :                   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   $ R W Q u e s t C o m p a n y R e p o - > g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
   > >   2 5 :                   $ N o L o n g e r A c t i v e E p i c o r C u s t I D s   =   [ ] ; 
 
         2 6 :   
 
         2 7 :   
 
 
 
     L i n e   2 8   [ m a t c h :   E P I C O R ] : 
 
         2 6 :   
 
         2 7 :   
 
   > >   2 8 :                   $ E p i c o r D B - > s t o r e C o m p a n y I n f o ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ) ; 
 
         2 9 :   
 
         3 0 :                   f o r e a c h ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
 
 
     L i n e   3 0   [ m a t c h :   E P I C O R ] : 
 
         2 8 :                   $ E p i c o r D B - > s t o r e C o m p a n y I n f o ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ) ; 
 
         2 9 :   
 
   > >   3 0 :                   f o r e a c h ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
         3 1 :                   { 
 
         3 2 :                           $ E p i c o r C u s t I n f o   =   $ E p i c o r D B - > g e t C u s t I n f o I f E x i s t s ( $ E p i c o r C u s t I D ) ; 
 
 
 
     L i n e   3 2   [ m a t c h :   E P I C O R ] : 
 
         3 0 :                   f o r e a c h ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   a s   $ E p i c o r C u s t I D   = >   $ C o m p a n y ) 
 
         3 1 :                   { 
 
   > >   3 2 :                           $ E p i c o r C u s t I n f o   =   $ E p i c o r D B - > g e t C u s t I n f o I f E x i s t s ( $ E p i c o r C u s t I D ) ; 
 
         3 3 :                           i f ( $ E p i c o r C u s t I n f o   = = =   F A L S E   & &   A p p : : e n v i r o n m e n t ( )   = = =   ' p r o d ' ) 
 
         3 4 :                           { 
 
 
 
     L i n e   3 3   [ m a t c h :   E P I C O R ] : 
 
         3 1 :                   { 
 
         3 2 :                           $ E p i c o r C u s t I n f o   =   $ E p i c o r D B - > g e t C u s t I n f o I f E x i s t s ( $ E p i c o r C u s t I D ) ; 
 
   > >   3 3 :                           i f ( $ E p i c o r C u s t I n f o   = = =   F A L S E   & &   A p p : : e n v i r o n m e n t ( )   = = =   ' p r o d ' ) 
 
         3 4 :                           { 
 
         3 5 :                               / *     $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] - > s e t I s D e a c t i v a t e d ( t r u e ) ; 
 
 
 
     L i n e   3 5   [ m a t c h :   E P I C O R ] : 
 
         3 3 :                           i f ( $ E p i c o r C u s t I n f o   = = =   F A L S E   & &   A p p : : e n v i r o n m e n t ( )   = = =   ' p r o d ' ) 
 
         3 4 :                           { 
 
   > >   3 5 :                               / *     $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] - > s e t I s D e a c t i v a t e d ( t r u e ) ; 
 
         3 6 :                                   a r r a y _ p u s h ( $ N o L o n g e r A c t i v e E p i c o r C u s t I D s ,   $ E p i c o r C u s t I D ) ; 
 
         3 7 :                                   N o t i f i c a t i o n : : r o u t e ( ' m a i l ' ,   ' d e v s @ s a v v i o r . c o m ' ) 
 
 
 
     L i n e   3 6   [ m a t c h :   E P I C O R ] : 
 
         3 4 :                           { 
 
         3 5 :                               / *     $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] - > s e t I s D e a c t i v a t e d ( t r u e ) ; 
 
   > >   3 6 :                                   a r r a y _ p u s h ( $ N o L o n g e r A c t i v e E p i c o r C u s t I D s ,   $ E p i c o r C u s t I D ) ; 
 
         3 7 :                                   N o t i f i c a t i o n : : r o u t e ( ' m a i l ' ,   ' d e v s @ s a v v i o r . c o m ' ) 
 
         3 8 :                                           - > n o t i f y ( n e w   C u s t o m e r D e a c t i v a t e d D e v O n l y ( 
 
 
 
     L i n e   4 0   [ m a t c h :   E P I C O R ] : 
 
         3 8 :                                           - > n o t i f y ( n e w   C u s t o m e r D e a c t i v a t e d D e v O n l y ( 
 
         3 9 :                                                   ' A c t i v e C o m p a n y M a n a g e r # _ _ c o n s t r u c t ' , 
 
   > >   4 0 :                                                   ' E p i c o r   C u s t o m e r   I D   =   '   .   $ E p i c o r C u s t I D   .   P H P _ E O L   .   ' $ C o m p a n y   =   ( s t r i n g )   '   .   ( ( s t r i n g )   $ C o m p a n y ) 
 
         4 1 :                                                   ) 
 
         4 2 :                                           ) ;   * / 
 
 
 
     L i n e   4 6   [ m a t c h :   E P I C O R ] : 
 
         4 4 :                           } 
 
         4 5 :   
 
   > >   4 6 :                           $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] - > s e t E p i N a m e ( $ E p i c o r C u s t I n f o [ ' N a m e ' ] ) ; 
 
         4 7 :                   } 
 
         4 8 :                   t r y   { 
 
 
 
     L i n e   5 4   [ m a t c h :   E P I C O R ] : 
 
         5 2 :                           $ E M C o n t a i n e r - > r e s e t E M ( ' r w ' ) ; 
 
         5 3 :                   } 
 
   > >   5 4 :                   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D   =   a r r a y _ d i f f _ k e y ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ,   a r r a y _ f l i p ( $ N o L o n g e r A c t i v e E p i c o r C u s t I D s ) ) ; 
 
         5 5 :           } 
 
         5 6 :   
 
 
 
     L i n e   6 0   [ m a t c h :   E P I C O R ] : 
 
         5 8 :             *   @ r e t u r n   q u e s t _ C o m p a n y [ ] 
 
         5 9 :             * / 
 
   > >   6 0 :           p u b l i c   f u n c t i o n   g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) 
 
         6 1 :           { 
 
         6 2 :                   r e t u r n   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ; 
 
 
 
     L i n e   6 2   [ m a t c h :   E P I C O R ] : 
 
         6 0 :           p u b l i c   f u n c t i o n   g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) 
 
         6 1 :           { 
 
   > >   6 2 :                   r e t u r n   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ; 
 
         6 3 :           } 
 
         6 4 :   
 
 
 
     L i n e   6 6   [ m a t c h :   E P I C O R ] : 
 
         6 4 :   
 
         6 5 :           / * * 
 
   > >   6 6 :             *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         6 7 :             *   @ r e t u r n   q u e s t _ C o m p a n y | n u l l 
 
         6 8 :             * / 
 
 
 
     L i n e   6 9   [ m a t c h :   E P I C O R ] : 
 
         6 7 :             *   @ r e t u r n   q u e s t _ C o m p a n y | n u l l 
 
         6 8 :             * / 
 
   > >   6 9 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ E p i c o r C u s t I D ) 
 
         7 0 :           { 
 
         7 1 :                   r e t u r n   ( i s s e t ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] )   ?   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ]   :   n u l l ) ; 
 
 
 
     L i n e   7 1   [ m a t c h :   E P I C O R ] : 
 
         6 9 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ E p i c o r C u s t I D ) 
 
         7 0 :           { 
 
   > >   7 1 :                   r e t u r n   ( i s s e t ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] )   ?   $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ]   :   n u l l ) ; 
 
         7 2 :           } 
 
         7 3 :   
 
 
 
     L i n e   7 5   [ m a t c h :   E P I C O R ] : 
 
         7 3 :   
 
         7 4 :           / * * 
 
   > >   7 5 :             *   @ p a r a m   s t r i n g [ ]   $ E p i c o r C u s t I D s 
 
         7 6 :             *   @ r e t u r n   q u e s t _ C o m p a n y [ ] 
 
         7 7 :             * / 
 
 
 
     L i n e   7 8   [ m a t c h :   E P I C O R ] : 
 
         7 6 :             *   @ r e t u r n   q u e s t _ C o m p a n y [ ] 
 
         7 7 :             * / 
 
   > >   7 8 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D s ( a r r a y   $ E p i c o r C u s t I D s ) 
 
         7 9 :           { 
 
         8 0 :                   r e t u r n   a r r a y _ i n t e r s e c t _ k e y ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ,   a r r a y _ f l i p ( $ E p i c o r C u s t I D s ) ) ; 
 
 
 
     L i n e   8 0   [ m a t c h :   E P I C O R ] : 
 
         7 8 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D s ( a r r a y   $ E p i c o r C u s t I D s ) 
 
         7 9 :           { 
 
   > >   8 0 :                   r e t u r n   a r r a y _ i n t e r s e c t _ k e y ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ,   a r r a y _ f l i p ( $ E p i c o r C u s t I D s ) ) ; 
 
         8 1 :           } 
 
         8 2 :   
 
 
 
     L i n e   8 7   [ m a t c h :   E P I C O R ] : 
 
         8 5 :             *   @ r e t u r n   s t r i n g [ ] 
 
         8 6 :             * / 
 
   > >   8 7 :           p u b l i c   f u n c t i o n   g e t A l l A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) 
 
         8 8 :           { 
 
         8 9 :                   r e t u r n   a r r a y _ k e y s ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ) ; 
 
 
 
     L i n e   8 9   [ m a t c h :   E P I C O R ] : 
 
         8 7 :           p u b l i c   f u n c t i o n   g e t A l l A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) 
 
         8 8 :           { 
 
   > >   8 9 :                   r e t u r n   a r r a y _ k e y s ( $ t h i s - > a c t i v e C o m p a n i e s B y E p i c o r C u s t I D ) ; 
 
         9 0 :           } 
 
         9 1 :   } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ A P C h e c k P r o c e s s i n g S e r v i c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 3   [ m a t c h :   e p i c o r ] : 
 
         6 1 :                   $ e x c e l F i l e P a t h   =   $ t h i s - > g e t U p l o a d e d E x c e l F i l e P a t h ( $ a p C h e c k P r o c e s s i n g B a t c h I D ) ; 
 
         6 2 :   
 
   > >   6 3 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         6 4 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 5 :   
 
 
 
     L i n e   6 4   [ m a t c h :   e p i c o r ] : 
 
         6 2 :   
 
         6 3 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   6 4 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 5 :   
 
         6 6 :                   r e t u r n   $ E p i c o r D a t a b a s e - > c r e a t e G r o u p C S V ( $ e x c e l F i l e P a t h ) ; 
 
 
 
     L i n e   6 6   [ m a t c h :   e p i c o r ] : 
 
         6 4 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 5 :   
 
   > >   6 6 :                   r e t u r n   $ E p i c o r D a t a b a s e - > c r e a t e G r o u p C S V ( $ e x c e l F i l e P a t h ) ; 
 
         6 7 :           } 
 
         6 8 :   
 
 
 
     L i n e   6 3   [ m a t c h :   E p i c o r ] : 
 
         6 1 :                   $ e x c e l F i l e P a t h   =   $ t h i s - > g e t U p l o a d e d E x c e l F i l e P a t h ( $ a p C h e c k P r o c e s s i n g B a t c h I D ) ; 
 
         6 2 :   
 
   > >   6 3 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         6 4 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 5 :   
 
 
 
     L i n e   6 4   [ m a t c h :   E p i c o r ] : 
 
         6 2 :   
 
         6 3 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   6 4 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 5 :   
 
         6 6 :                   r e t u r n   $ E p i c o r D a t a b a s e - > c r e a t e G r o u p C S V ( $ e x c e l F i l e P a t h ) ; 
 
 
 
     L i n e   6 6   [ m a t c h :   E p i c o r ] : 
 
         6 4 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 5 :   
 
   > >   6 6 :                   r e t u r n   $ E p i c o r D a t a b a s e - > c r e a t e G r o u p C S V ( $ e x c e l F i l e P a t h ) ; 
 
         6 7 :           } 
 
         6 8 :   
 
 
 
     L i n e   6 3   [ m a t c h :   E P I C O R ] : 
 
         6 1 :                   $ e x c e l F i l e P a t h   =   $ t h i s - > g e t U p l o a d e d E x c e l F i l e P a t h ( $ a p C h e c k P r o c e s s i n g B a t c h I D ) ; 
 
         6 2 :   
 
   > >   6 3 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         6 4 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 5 :   
 
 
 
     L i n e   6 4   [ m a t c h :   E P I C O R ] : 
 
         6 2 :   
 
         6 3 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   6 4 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 5 :   
 
         6 6 :                   r e t u r n   $ E p i c o r D a t a b a s e - > c r e a t e G r o u p C S V ( $ e x c e l F i l e P a t h ) ; 
 
 
 
     L i n e   6 6   [ m a t c h :   E P I C O R ] : 
 
         6 4 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 5 :   
 
   > >   6 6 :                   r e t u r n   $ E p i c o r D a t a b a s e - > c r e a t e G r o u p C S V ( $ e x c e l F i l e P a t h ) ; 
 
         6 7 :           } 
 
         6 8 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ A P I U s e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 9   [ m a t c h :   e p i c o r ] : 
 
         4 7 :           } 
 
         4 8 :   
 
   > >   4 9 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) 
 
         5 0 :           { 
 
         5 1 :                   i f ( i s s e t ( $ t h i s - > a c t i v e C o m p a n i e s ) ) 
 
 
 
     L i n e   5 4   [ m a t c h :   e p i c o r ] : 
 
         5 2 :                           r e t u r n   $ t h i s - > a c t i v e C o m p a n i e s ; 
 
         5 3 :   
 
   > >   5 4 :                   $ t h i s - > a c t i v e C o m p a n i e s   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ t h i s - > g e t Q u e s t U s e r ( ) ) ; 
 
         5 5 :                   r e t u r n   $ t h i s - > a c t i v e C o m p a n i e s ; 
 
         5 6 :           } 
 
 
 
     L i n e   4 9   [ m a t c h :   E p i c o r ] : 
 
         4 7 :           } 
 
         4 8 :   
 
   > >   4 9 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) 
 
         5 0 :           { 
 
         5 1 :                   i f ( i s s e t ( $ t h i s - > a c t i v e C o m p a n i e s ) ) 
 
 
 
     L i n e   5 4   [ m a t c h :   E p i c o r ] : 
 
         5 2 :                           r e t u r n   $ t h i s - > a c t i v e C o m p a n i e s ; 
 
         5 3 :   
 
   > >   5 4 :                   $ t h i s - > a c t i v e C o m p a n i e s   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ t h i s - > g e t Q u e s t U s e r ( ) ) ; 
 
         5 5 :                   r e t u r n   $ t h i s - > a c t i v e C o m p a n i e s ; 
 
         5 6 :           } 
 
 
 
     L i n e   4 9   [ m a t c h :   E P I C O R ] : 
 
         4 7 :           } 
 
         4 8 :   
 
   > >   4 9 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) 
 
         5 0 :           { 
 
         5 1 :                   i f ( i s s e t ( $ t h i s - > a c t i v e C o m p a n i e s ) ) 
 
 
 
     L i n e   5 4   [ m a t c h :   E P I C O R ] : 
 
         5 2 :                           r e t u r n   $ t h i s - > a c t i v e C o m p a n i e s ; 
 
         5 3 :   
 
   > >   5 4 :                   $ t h i s - > a c t i v e C o m p a n i e s   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ t h i s - > g e t Q u e s t U s e r ( ) ) ; 
 
         5 5 :                   r e t u r n   $ t h i s - > a c t i v e C o m p a n i e s ; 
 
         5 6 :           } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ C o i l A c t i v i t y H e l p e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5   [ m a t c h :   e p i c o r ] : 
 
         3 :   u s e   A p p \ E x c e p t i o n s \ I n v a l i d C o i l A c t i v i t y D a t e R a n g e ; 
 
         4 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ E m a i l E v e n t   a s   q u e s t _ E m a i l E v e n t R e p o ; 
 
   > >   5 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         6 :   u s e   D a t e T i m e ; 
 
         7 :   u s e   I l l u m i n a t e \ H t t p \ R e s p o n s e ; 
 
 
 
     L i n e   1 2 0   [ m a t c h :   e p i c o r ] : 
 
         1 1 8 :           p u b l i c   f u n c t i o n   g e t C o i l A c t i v i t y U s a g e G r i d ( $ G r i d P a g i n g ) 
 
         1 1 9 :           { 
 
   > >   1 2 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 2 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 2 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 2 1   [ m a t c h :   e p i c o r ] : 
 
         1 1 9 :           { 
 
         1 2 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 2 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 2 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 2 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 2 5   [ m a t c h :   e p i c o r ] : 
 
         1 2 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 2 4 :   
 
   > >   1 2 5 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A c t i v i t y U s a g e D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ t h i s - > s t a r t D a t e - > f o r m a t ( ' Y - m - d ' ) ,   $ t h i s - > e n d D a t e - > f o r m a t ( ' Y - m - d ' ) ) ; 
 
         1 2 6 :   
 
         1 2 7 :   
 
 
 
     L i n e   1 4 2   [ m a t c h :   e p i c o r ] : 
 
         1 4 0 :           p u b l i c   f u n c t i o n   g e t C o i l A c t i v i t y R e c e i p t s G r i d ( $ G r i d P a g i n g ) 
 
         1 4 1 :           { 
 
   > >   1 4 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 4 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 4 3   [ m a t c h :   e p i c o r ] : 
 
         1 4 1 :           { 
 
         1 4 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 4 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 4 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 4 7   [ m a t c h :   e p i c o r ] : 
 
         1 4 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 4 6 :   
 
   > >   1 4 7 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A c t i v i t y R e c e i p t s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ t h i s - > s t a r t D a t e - > f o r m a t ( ' Y - m - d ' ) ,   $ t h i s - > e n d D a t e - > f o r m a t ( ' Y - m - d ' ) ) ; 
 
         1 4 8 :   
 
         1 4 9 :                   f o r e a c h   ( $ D a t a   a s   $ i   = >   $ D a t a R o w )   { 
 
 
 
     L i n e   1 7 2   [ m a t c h :   e p i c o r ] : 
 
         1 7 0 :   
 
         1 7 1 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 7 2 :                   $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D ' ,   F i l t e r F i e l d : : O P E R A T O R _ E Q U A L ,   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ; 
 
         1 7 3 :   
 
         1 7 4 :                   $ F i l t e r C o l l e c t i o n - > a d d G r o u p ( $ N e w F i l t e r G r o u p ) ; 
 
 
 
     L i n e   2 0 6   [ m a t c h :   e p i c o r ] : 
 
         2 0 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 0 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   2 0 6 :                   $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D ' ,   F i l t e r F i e l d : : O P E R A T O R _ E Q U A L ,   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ; 
 
         2 0 7 :                   / / $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' C o m p l e t e d D T ' ,   F i l t e r F i e l d : : O P E R A T O R _ G R E A T E R T H A N _ E Q U A L ,   $ t h i s - > g e t A c t i v i t y S t a r t D a t e ( ) ) ) ; 
 
         2 0 8 :                   / / $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' C o m p l e t e d D T ' ,   F i l t e r F i e l d : : O P E R A T O R _ L E S S T H A N _ E Q U A L ,   $ t h i s - > g e t A c t i v i t y E n d D a t e ( ) ) ) ; 
 
 
 
     L i n e   2 2 8   [ m a t c h :   e p i c o r ] : 
 
         2 2 6 :           p u b l i c   f u n c t i o n   g e t C o i l A c t i v i t y U s a g e E x c e l R e s p o n s e ( ) 
 
         2 2 7 :           { 
 
   > >   2 2 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 2 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 3 0 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   2 2 9   [ m a t c h :   e p i c o r ] : 
 
         2 2 7 :           { 
 
         2 2 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 2 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 3 0 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 3 1 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   2 3 3   [ m a t c h :   e p i c o r ] : 
 
         2 3 1 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 3 2 :   
 
   > >   2 3 3 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A c t i v i t y U s a g e D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ t h i s - > s t a r t D a t e - > f o r m a t ( ' Y - m - d ' ) ,   $ t h i s - > e n d D a t e - > f o r m a t ( ' Y - m - d ' ) ) ; 
 
         2 3 4 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t C o i l A c t i v i t y U s a g e M e t a d a t a ( ) ,   $ D a t a ) ; 
 
         2 3 5 :           } 
 
 
 
     L i n e   2 4 2   [ m a t c h :   e p i c o r ] : 
 
         2 4 0 :           p u b l i c   f u n c t i o n   g e t C o i l A c t i v i t y R e c e i p t s E x c e l R e s p o n s e ( ) 
 
         2 4 1 :           { 
 
   > >   2 4 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   2 4 3   [ m a t c h :   e p i c o r ] : 
 
         2 4 1 :           { 
 
         2 4 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 4 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   2 4 7   [ m a t c h :   e p i c o r ] : 
 
         2 4 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 4 6 :   
 
   > >   2 4 7 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A c t i v i t y R e c e i p t s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ t h i s - > s t a r t D a t e - > f o r m a t ( ' Y - m - d ' ) ,   $ t h i s - > e n d D a t e - > f o r m a t ( ' Y - m - d ' ) ) ; 
 
         2 4 8 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t C o i l A c t i v i t y R e c e i p t s M e t a d a t a ( ) ,   $ D a t a ) ; 
 
         2 4 9 :           } 
 
 
 
     L i n e   2 7 8   [ m a t c h :   e p i c o r ] : 
 
         2 7 6 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 7 7 :   
 
   > >   2 7 8 :                   r e t u r n   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) )   .   '   -   '   .   $ t h i s - > g e t E x p o r t S h o r t N a m e F o r S o u r c e ( $ S o u r c e )   .   '   '   .   d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) ) ; 
 
         2 7 9 :           } 
 
         2 8 0 :   
 
 
 
     L i n e   2 9 4   [ m a t c h :   e p i c o r ] : 
 
         2 9 2 :                   $ R e c e i p t s E x c e l R e s p o n s e   =   $ t h i s - > g e t C o i l A c t i v i t y R e c e i p t s E x c e l R e s p o n s e ( ) ; 
 
         2 9 3 :   
 
   > >   2 9 4 :                   $ c a c h e K e y   =   ' c o i l _ '   .   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( )   .   ' _ '   .   u n i q i d ( ' ' ,   t r u e )   .   ' _ '   .   m i c r o t i m e ( )   .   ' _ '   .   r a n d ( ) ; 
 
         2 9 5 :   
 
         2 9 6 :                   r e t u r n   $ t h i s - > _ g e t E x c e l E x p o r t C o n t e n t s ( $ c a c h e K e y ,   $ U s a g e E x c e l R e s p o n s e ,   $ R e c e i p t s E x c e l R e s p o n s e ) ; 
 
 
 
     L i n e   3 0 8   [ m a t c h :   e p i c o r ] : 
 
         3 0 6 :   
 
         3 0 7 :                   $ E x c e l E x p o r t e r   =   n e w   E x c e l ( ) ; 
 
   > >   3 0 8 :                   $ E x p o r t N a m e   =   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) )   .   '   C o i l   A c t i v i t y   '   .   d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) ) ; 
 
         3 0 9 :                   r e t u r n   $ E x p o r t N a m e   .   ' . '   .   $ E x c e l E x p o r t e r - > g e t F i l e E x t e n s i o n ( ) ; 
 
         3 1 0 :           } 
 
 
 
     L i n e   3 3 1   [ m a t c h :   e p i c o r ] : 
 
         3 2 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         3 3 0 :   
 
   > >   3 3 1 :                   $ c a c h e K e y   =   ' c o i l _ '   .   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( )   .   ' _ '   .   u n i q i d ( ' ' ,   t r u e )   .   ' _ '   .   m i c r o t i m e ( )   .   ' _ '   .   r a n d ( ) ; 
 
         3 3 2 :   
 
         3 3 3 :                   $ U s a g e G r i d   =   $ t h i s - > g e t C o i l A c t i v i t y U s a g e G r i d ( f a l s e ) ; 
 
 
 
     L i n e   3 4 7   [ m a t c h :   e p i c o r ] : 
 
         3 4 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         3 4 6 :   
 
   > >   3 4 7 :                   r e t u r n   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) )   .   '   C o i l   A c t i v i t y   '   .   d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) )   .   ' . p d f ' ; 
 
         3 4 8 :           } 
 
         3 4 9 :   
 
 
 
     L i n e   3 5 0   [ m a t c h :   e p i c o r ] : 
 
         3 4 8 :           } 
 
         3 4 9 :   
 
   > >   3 5 0 :           p r o t e c t e d   f u n c t i o n   _ s e t u p C o m m o n G r i d ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ,   $ G r i d P a g i n g ) 
 
         3 5 1 :           { 
 
         3 5 2 :                   / * *   @ v a r   G r i d F a c t o r y   $ G r i d F a c t o r y   * / 
 
 
 
     L i n e   4 7 0   [ m a t c h :   e p i c o r ] : 
 
         4 6 8 :   
 
         4 6 9 :           / * * 
 
   > >   4 7 0 :             *   @ p a r a m   E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a 
 
         4 7 1 :             *   @ p a r a m   a r r a y   $ D a t a 
 
         4 7 2 :             *   @ r e t u r n   R e s p o n s e 
 
 
 
     L i n e   4 7 4   [ m a t c h :   e p i c o r ] : 
 
         4 7 2 :             *   @ r e t u r n   R e s p o n s e 
 
         4 7 3 :             * / 
 
   > >   4 7 4 :           p r o t e c t e d   f u n c t i o n   _ s e t u p C o m m o n E x c e l ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ) 
 
         4 7 5 :           { 
 
         4 7 6 :                   / /   @ T O D O 
 
 
 
     L i n e   5 2 5   [ m a t c h :   e p i c o r ] : 
 
         5 2 3 :           p r o t e c t e d   f u n c t i o n   _ g e t C o i l A c t i v i t y U s a g e M e t a d a t a ( ) 
 
         5 2 4 :           { 
 
   > >   5 2 5 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ C o i l A c t i v i t y U s a g e ' ) ; 
 
         5 2 6 :   
 
         5 2 7 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ D a t e U s e d   * / 
 
 
 
     L i n e   6 2 3   [ m a t c h :   e p i c o r ] : 
 
         6 2 1 :           p r o t e c t e d   f u n c t i o n   _ g e t C o i l A c t i v i t y R e c e i p t s M e t a d a t a ( ) 
 
         6 2 2 :           { 
 
   > >   6 2 3 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ C o i l A c t i v i t y R e c e i p t s ' ) ; 
 
         6 2 4 :   
 
         6 2 5 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ D a t e R e c e i v e d   * / 
 
 
 
     L i n e   5   [ m a t c h :   E p i c o r ] : 
 
         3 :   u s e   A p p \ E x c e p t i o n s \ I n v a l i d C o i l A c t i v i t y D a t e R a n g e ; 
 
         4 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ E m a i l E v e n t   a s   q u e s t _ E m a i l E v e n t R e p o ; 
 
   > >   5 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         6 :   u s e   D a t e T i m e ; 
 
         7 :   u s e   I l l u m i n a t e \ H t t p \ R e s p o n s e ; 
 
 
 
     L i n e   1 2 0   [ m a t c h :   E p i c o r ] : 
 
         1 1 8 :           p u b l i c   f u n c t i o n   g e t C o i l A c t i v i t y U s a g e G r i d ( $ G r i d P a g i n g ) 
 
         1 1 9 :           { 
 
   > >   1 2 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 2 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 2 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 2 1   [ m a t c h :   E p i c o r ] : 
 
         1 1 9 :           { 
 
         1 2 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 2 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 2 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 2 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 2 5   [ m a t c h :   E p i c o r ] : 
 
         1 2 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 2 4 :   
 
   > >   1 2 5 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A c t i v i t y U s a g e D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ t h i s - > s t a r t D a t e - > f o r m a t ( ' Y - m - d ' ) ,   $ t h i s - > e n d D a t e - > f o r m a t ( ' Y - m - d ' ) ) ; 
 
         1 2 6 :   
 
         1 2 7 :   
 
 
 
     L i n e   1 4 2   [ m a t c h :   E p i c o r ] : 
 
         1 4 0 :           p u b l i c   f u n c t i o n   g e t C o i l A c t i v i t y R e c e i p t s G r i d ( $ G r i d P a g i n g ) 
 
         1 4 1 :           { 
 
   > >   1 4 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 4 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 4 3   [ m a t c h :   E p i c o r ] : 
 
         1 4 1 :           { 
 
         1 4 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 4 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 4 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 4 7   [ m a t c h :   E p i c o r ] : 
 
         1 4 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 4 6 :   
 
   > >   1 4 7 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A c t i v i t y R e c e i p t s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ t h i s - > s t a r t D a t e - > f o r m a t ( ' Y - m - d ' ) ,   $ t h i s - > e n d D a t e - > f o r m a t ( ' Y - m - d ' ) ) ; 
 
         1 4 8 :   
 
         1 4 9 :                   f o r e a c h   ( $ D a t a   a s   $ i   = >   $ D a t a R o w )   { 
 
 
 
     L i n e   1 7 2   [ m a t c h :   E p i c o r ] : 
 
         1 7 0 :   
 
         1 7 1 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 7 2 :                   $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D ' ,   F i l t e r F i e l d : : O P E R A T O R _ E Q U A L ,   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ; 
 
         1 7 3 :   
 
         1 7 4 :                   $ F i l t e r C o l l e c t i o n - > a d d G r o u p ( $ N e w F i l t e r G r o u p ) ; 
 
 
 
     L i n e   2 0 6   [ m a t c h :   E p i c o r ] : 
 
         2 0 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 0 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   2 0 6 :                   $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D ' ,   F i l t e r F i e l d : : O P E R A T O R _ E Q U A L ,   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ; 
 
         2 0 7 :                   / / $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' C o m p l e t e d D T ' ,   F i l t e r F i e l d : : O P E R A T O R _ G R E A T E R T H A N _ E Q U A L ,   $ t h i s - > g e t A c t i v i t y S t a r t D a t e ( ) ) ) ; 
 
         2 0 8 :                   / / $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' C o m p l e t e d D T ' ,   F i l t e r F i e l d : : O P E R A T O R _ L E S S T H A N _ E Q U A L ,   $ t h i s - > g e t A c t i v i t y E n d D a t e ( ) ) ) ; 
 
 
 
     L i n e   2 2 8   [ m a t c h :   E p i c o r ] : 
 
         2 2 6 :           p u b l i c   f u n c t i o n   g e t C o i l A c t i v i t y U s a g e E x c e l R e s p o n s e ( ) 
 
         2 2 7 :           { 
 
   > >   2 2 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 2 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 3 0 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   2 2 9   [ m a t c h :   E p i c o r ] : 
 
         2 2 7 :           { 
 
         2 2 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 2 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 3 0 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 3 1 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   2 3 3   [ m a t c h :   E p i c o r ] : 
 
         2 3 1 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 3 2 :   
 
   > >   2 3 3 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A c t i v i t y U s a g e D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ t h i s - > s t a r t D a t e - > f o r m a t ( ' Y - m - d ' ) ,   $ t h i s - > e n d D a t e - > f o r m a t ( ' Y - m - d ' ) ) ; 
 
         2 3 4 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t C o i l A c t i v i t y U s a g e M e t a d a t a ( ) ,   $ D a t a ) ; 
 
         2 3 5 :           } 
 
 
 
     L i n e   2 4 2   [ m a t c h :   E p i c o r ] : 
 
         2 4 0 :           p u b l i c   f u n c t i o n   g e t C o i l A c t i v i t y R e c e i p t s E x c e l R e s p o n s e ( ) 
 
         2 4 1 :           { 
 
   > >   2 4 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   2 4 3   [ m a t c h :   E p i c o r ] : 
 
         2 4 1 :           { 
 
         2 4 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 4 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   2 4 7   [ m a t c h :   E p i c o r ] : 
 
         2 4 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 4 6 :   
 
   > >   2 4 7 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A c t i v i t y R e c e i p t s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ t h i s - > s t a r t D a t e - > f o r m a t ( ' Y - m - d ' ) ,   $ t h i s - > e n d D a t e - > f o r m a t ( ' Y - m - d ' ) ) ; 
 
         2 4 8 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t C o i l A c t i v i t y R e c e i p t s M e t a d a t a ( ) ,   $ D a t a ) ; 
 
         2 4 9 :           } 
 
 
 
     L i n e   2 7 8   [ m a t c h :   E p i c o r ] : 
 
         2 7 6 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 7 7 :   
 
   > >   2 7 8 :                   r e t u r n   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) )   .   '   -   '   .   $ t h i s - > g e t E x p o r t S h o r t N a m e F o r S o u r c e ( $ S o u r c e )   .   '   '   .   d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) ) ; 
 
         2 7 9 :           } 
 
         2 8 0 :   
 
 
 
     L i n e   2 9 4   [ m a t c h :   E p i c o r ] : 
 
         2 9 2 :                   $ R e c e i p t s E x c e l R e s p o n s e   =   $ t h i s - > g e t C o i l A c t i v i t y R e c e i p t s E x c e l R e s p o n s e ( ) ; 
 
         2 9 3 :   
 
   > >   2 9 4 :                   $ c a c h e K e y   =   ' c o i l _ '   .   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( )   .   ' _ '   .   u n i q i d ( ' ' ,   t r u e )   .   ' _ '   .   m i c r o t i m e ( )   .   ' _ '   .   r a n d ( ) ; 
 
         2 9 5 :   
 
         2 9 6 :                   r e t u r n   $ t h i s - > _ g e t E x c e l E x p o r t C o n t e n t s ( $ c a c h e K e y ,   $ U s a g e E x c e l R e s p o n s e ,   $ R e c e i p t s E x c e l R e s p o n s e ) ; 
 
 
 
     L i n e   3 0 8   [ m a t c h :   E p i c o r ] : 
 
         3 0 6 :   
 
         3 0 7 :                   $ E x c e l E x p o r t e r   =   n e w   E x c e l ( ) ; 
 
   > >   3 0 8 :                   $ E x p o r t N a m e   =   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) )   .   '   C o i l   A c t i v i t y   '   .   d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) ) ; 
 
         3 0 9 :                   r e t u r n   $ E x p o r t N a m e   .   ' . '   .   $ E x c e l E x p o r t e r - > g e t F i l e E x t e n s i o n ( ) ; 
 
         3 1 0 :           } 
 
 
 
     L i n e   3 3 1   [ m a t c h :   E p i c o r ] : 
 
         3 2 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         3 3 0 :   
 
   > >   3 3 1 :                   $ c a c h e K e y   =   ' c o i l _ '   .   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( )   .   ' _ '   .   u n i q i d ( ' ' ,   t r u e )   .   ' _ '   .   m i c r o t i m e ( )   .   ' _ '   .   r a n d ( ) ; 
 
         3 3 2 :   
 
         3 3 3 :                   $ U s a g e G r i d   =   $ t h i s - > g e t C o i l A c t i v i t y U s a g e G r i d ( f a l s e ) ; 
 
 
 
     L i n e   3 4 7   [ m a t c h :   E p i c o r ] : 
 
         3 4 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         3 4 6 :   
 
   > >   3 4 7 :                   r e t u r n   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) )   .   '   C o i l   A c t i v i t y   '   .   d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) )   .   ' . p d f ' ; 
 
         3 4 8 :           } 
 
         3 4 9 :   
 
 
 
     L i n e   3 5 0   [ m a t c h :   E p i c o r ] : 
 
         3 4 8 :           } 
 
         3 4 9 :   
 
   > >   3 5 0 :           p r o t e c t e d   f u n c t i o n   _ s e t u p C o m m o n G r i d ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ,   $ G r i d P a g i n g ) 
 
         3 5 1 :           { 
 
         3 5 2 :                   / * *   @ v a r   G r i d F a c t o r y   $ G r i d F a c t o r y   * / 
 
 
 
     L i n e   4 7 0   [ m a t c h :   E p i c o r ] : 
 
         4 6 8 :   
 
         4 6 9 :           / * * 
 
   > >   4 7 0 :             *   @ p a r a m   E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a 
 
         4 7 1 :             *   @ p a r a m   a r r a y   $ D a t a 
 
         4 7 2 :             *   @ r e t u r n   R e s p o n s e 
 
 
 
     L i n e   4 7 4   [ m a t c h :   E p i c o r ] : 
 
         4 7 2 :             *   @ r e t u r n   R e s p o n s e 
 
         4 7 3 :             * / 
 
   > >   4 7 4 :           p r o t e c t e d   f u n c t i o n   _ s e t u p C o m m o n E x c e l ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ) 
 
         4 7 5 :           { 
 
         4 7 6 :                   / /   @ T O D O 
 
 
 
     L i n e   5 2 5   [ m a t c h :   E p i c o r ] : 
 
         5 2 3 :           p r o t e c t e d   f u n c t i o n   _ g e t C o i l A c t i v i t y U s a g e M e t a d a t a ( ) 
 
         5 2 4 :           { 
 
   > >   5 2 5 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ C o i l A c t i v i t y U s a g e ' ) ; 
 
         5 2 6 :   
 
         5 2 7 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ D a t e U s e d   * / 
 
 
 
     L i n e   6 2 3   [ m a t c h :   E p i c o r ] : 
 
         6 2 1 :           p r o t e c t e d   f u n c t i o n   _ g e t C o i l A c t i v i t y R e c e i p t s M e t a d a t a ( ) 
 
         6 2 2 :           { 
 
   > >   6 2 3 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ C o i l A c t i v i t y R e c e i p t s ' ) ; 
 
         6 2 4 :   
 
         6 2 5 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ D a t e R e c e i v e d   * / 
 
 
 
     L i n e   5   [ m a t c h :   E P I C O R ] : 
 
         3 :   u s e   A p p \ E x c e p t i o n s \ I n v a l i d C o i l A c t i v i t y D a t e R a n g e ; 
 
         4 :   u s e   A p p \ M o d e l \ R e p o s \ q u e s t _ E m a i l E v e n t   a s   q u e s t _ E m a i l E v e n t R e p o ; 
 
   > >   5 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         6 :   u s e   D a t e T i m e ; 
 
         7 :   u s e   I l l u m i n a t e \ H t t p \ R e s p o n s e ; 
 
 
 
     L i n e   1 2 0   [ m a t c h :   E P I C O R ] : 
 
         1 1 8 :           p u b l i c   f u n c t i o n   g e t C o i l A c t i v i t y U s a g e G r i d ( $ G r i d P a g i n g ) 
 
         1 1 9 :           { 
 
   > >   1 2 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 2 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 2 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 2 1   [ m a t c h :   E P I C O R ] : 
 
         1 1 9 :           { 
 
         1 2 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 2 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 2 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 2 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 2 5   [ m a t c h :   E P I C O R ] : 
 
         1 2 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 2 4 :   
 
   > >   1 2 5 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A c t i v i t y U s a g e D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ t h i s - > s t a r t D a t e - > f o r m a t ( ' Y - m - d ' ) ,   $ t h i s - > e n d D a t e - > f o r m a t ( ' Y - m - d ' ) ) ; 
 
         1 2 6 :   
 
         1 2 7 :   
 
 
 
     L i n e   1 4 2   [ m a t c h :   E P I C O R ] : 
 
         1 4 0 :           p u b l i c   f u n c t i o n   g e t C o i l A c t i v i t y R e c e i p t s G r i d ( $ G r i d P a g i n g ) 
 
         1 4 1 :           { 
 
   > >   1 4 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 4 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 4 3   [ m a t c h :   E P I C O R ] : 
 
         1 4 1 :           { 
 
         1 4 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 4 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 4 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 4 7   [ m a t c h :   E P I C O R ] : 
 
         1 4 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 4 6 :   
 
   > >   1 4 7 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A c t i v i t y R e c e i p t s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ t h i s - > s t a r t D a t e - > f o r m a t ( ' Y - m - d ' ) ,   $ t h i s - > e n d D a t e - > f o r m a t ( ' Y - m - d ' ) ) ; 
 
         1 4 8 :   
 
         1 4 9 :                   f o r e a c h   ( $ D a t a   a s   $ i   = >   $ D a t a R o w )   { 
 
 
 
     L i n e   1 7 2   [ m a t c h :   E P I C O R ] : 
 
         1 7 0 :   
 
         1 7 1 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 7 2 :                   $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D ' ,   F i l t e r F i e l d : : O P E R A T O R _ E Q U A L ,   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ; 
 
         1 7 3 :   
 
         1 7 4 :                   $ F i l t e r C o l l e c t i o n - > a d d G r o u p ( $ N e w F i l t e r G r o u p ) ; 
 
 
 
     L i n e   2 0 6   [ m a t c h :   E P I C O R ] : 
 
         2 0 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 0 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   2 0 6 :                   $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' q u e s t _ C o m p a n y . E p i c o r C u s t I D ' ,   F i l t e r F i e l d : : O P E R A T O R _ E Q U A L ,   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) ; 
 
         2 0 7 :                   / / $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' C o m p l e t e d D T ' ,   F i l t e r F i e l d : : O P E R A T O R _ G R E A T E R T H A N _ E Q U A L ,   $ t h i s - > g e t A c t i v i t y S t a r t D a t e ( ) ) ) ; 
 
         2 0 8 :                   / / $ N e w F i l t e r G r o u p - > a d d F i l t e r ( n e w   F i l t e r F i e l d ( ' C o m p l e t e d D T ' ,   F i l t e r F i e l d : : O P E R A T O R _ L E S S T H A N _ E Q U A L ,   $ t h i s - > g e t A c t i v i t y E n d D a t e ( ) ) ) ; 
 
 
 
     L i n e   2 2 8   [ m a t c h :   E P I C O R ] : 
 
         2 2 6 :           p u b l i c   f u n c t i o n   g e t C o i l A c t i v i t y U s a g e E x c e l R e s p o n s e ( ) 
 
         2 2 7 :           { 
 
   > >   2 2 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 2 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 3 0 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   2 2 9   [ m a t c h :   E P I C O R ] : 
 
         2 2 7 :           { 
 
         2 2 8 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 2 9 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 3 0 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 3 1 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   2 3 3   [ m a t c h :   E P I C O R ] : 
 
         2 3 1 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 3 2 :   
 
   > >   2 3 3 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A c t i v i t y U s a g e D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ t h i s - > s t a r t D a t e - > f o r m a t ( ' Y - m - d ' ) ,   $ t h i s - > e n d D a t e - > f o r m a t ( ' Y - m - d ' ) ) ; 
 
         2 3 4 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t C o i l A c t i v i t y U s a g e M e t a d a t a ( ) ,   $ D a t a ) ; 
 
         2 3 5 :           } 
 
 
 
     L i n e   2 4 2   [ m a t c h :   E P I C O R ] : 
 
         2 4 0 :           p u b l i c   f u n c t i o n   g e t C o i l A c t i v i t y R e c e i p t s E x c e l R e s p o n s e ( ) 
 
         2 4 1 :           { 
 
   > >   2 4 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   2 4 3   [ m a t c h :   E P I C O R ] : 
 
         2 4 1 :           { 
 
         2 4 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 4 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 4 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 4 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   2 4 7   [ m a t c h :   E P I C O R ] : 
 
         2 4 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 4 6 :   
 
   > >   2 4 7 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A c t i v i t y R e c e i p t s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ t h i s - > s t a r t D a t e - > f o r m a t ( ' Y - m - d ' ) ,   $ t h i s - > e n d D a t e - > f o r m a t ( ' Y - m - d ' ) ) ; 
 
         2 4 8 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t C o i l A c t i v i t y R e c e i p t s M e t a d a t a ( ) ,   $ D a t a ) ; 
 
         2 4 9 :           } 
 
 
 
     L i n e   2 7 8   [ m a t c h :   E P I C O R ] : 
 
         2 7 6 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 7 7 :   
 
   > >   2 7 8 :                   r e t u r n   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) )   .   '   -   '   .   $ t h i s - > g e t E x p o r t S h o r t N a m e F o r S o u r c e ( $ S o u r c e )   .   '   '   .   d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) ) ; 
 
         2 7 9 :           } 
 
         2 8 0 :   
 
 
 
     L i n e   2 9 4   [ m a t c h :   E P I C O R ] : 
 
         2 9 2 :                   $ R e c e i p t s E x c e l R e s p o n s e   =   $ t h i s - > g e t C o i l A c t i v i t y R e c e i p t s E x c e l R e s p o n s e ( ) ; 
 
         2 9 3 :   
 
   > >   2 9 4 :                   $ c a c h e K e y   =   ' c o i l _ '   .   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( )   .   ' _ '   .   u n i q i d ( ' ' ,   t r u e )   .   ' _ '   .   m i c r o t i m e ( )   .   ' _ '   .   r a n d ( ) ; 
 
         2 9 5 :   
 
         2 9 6 :                   r e t u r n   $ t h i s - > _ g e t E x c e l E x p o r t C o n t e n t s ( $ c a c h e K e y ,   $ U s a g e E x c e l R e s p o n s e ,   $ R e c e i p t s E x c e l R e s p o n s e ) ; 
 
 
 
     L i n e   3 0 8   [ m a t c h :   E P I C O R ] : 
 
         3 0 6 :   
 
         3 0 7 :                   $ E x c e l E x p o r t e r   =   n e w   E x c e l ( ) ; 
 
   > >   3 0 8 :                   $ E x p o r t N a m e   =   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) )   .   '   C o i l   A c t i v i t y   '   .   d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) ) ; 
 
         3 0 9 :                   r e t u r n   $ E x p o r t N a m e   .   ' . '   .   $ E x c e l E x p o r t e r - > g e t F i l e E x t e n s i o n ( ) ; 
 
         3 1 0 :           } 
 
 
 
     L i n e   3 3 1   [ m a t c h :   E P I C O R ] : 
 
         3 2 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         3 3 0 :   
 
   > >   3 3 1 :                   $ c a c h e K e y   =   ' c o i l _ '   .   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( )   .   ' _ '   .   u n i q i d ( ' ' ,   t r u e )   .   ' _ '   .   m i c r o t i m e ( )   .   ' _ '   .   r a n d ( ) ; 
 
         3 3 2 :   
 
         3 3 3 :                   $ U s a g e G r i d   =   $ t h i s - > g e t C o i l A c t i v i t y U s a g e G r i d ( f a l s e ) ; 
 
 
 
     L i n e   3 4 7   [ m a t c h :   E P I C O R ] : 
 
         3 4 5 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         3 4 6 :   
 
   > >   3 4 7 :                   r e t u r n   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) )   .   '   C o i l   A c t i v i t y   '   .   d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) )   .   ' . p d f ' ; 
 
         3 4 8 :           } 
 
         3 4 9 :   
 
 
 
     L i n e   3 5 0   [ m a t c h :   E P I C O R ] : 
 
         3 4 8 :           } 
 
         3 4 9 :   
 
   > >   3 5 0 :           p r o t e c t e d   f u n c t i o n   _ s e t u p C o m m o n G r i d ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ,   $ G r i d P a g i n g ) 
 
         3 5 1 :           { 
 
         3 5 2 :                   / * *   @ v a r   G r i d F a c t o r y   $ G r i d F a c t o r y   * / 
 
 
 
     L i n e   4 7 0   [ m a t c h :   E P I C O R ] : 
 
         4 6 8 :   
 
         4 6 9 :           / * * 
 
   > >   4 7 0 :             *   @ p a r a m   E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a 
 
         4 7 1 :             *   @ p a r a m   a r r a y   $ D a t a 
 
         4 7 2 :             *   @ r e t u r n   R e s p o n s e 
 
 
 
     L i n e   4 7 4   [ m a t c h :   E P I C O R ] : 
 
         4 7 2 :             *   @ r e t u r n   R e s p o n s e 
 
         4 7 3 :             * / 
 
   > >   4 7 4 :           p r o t e c t e d   f u n c t i o n   _ s e t u p C o m m o n E x c e l ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ) 
 
         4 7 5 :           { 
 
         4 7 6 :                   / /   @ T O D O 
 
 
 
     L i n e   5 2 5   [ m a t c h :   E P I C O R ] : 
 
         5 2 3 :           p r o t e c t e d   f u n c t i o n   _ g e t C o i l A c t i v i t y U s a g e M e t a d a t a ( ) 
 
         5 2 4 :           { 
 
   > >   5 2 5 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ C o i l A c t i v i t y U s a g e ' ) ; 
 
         5 2 6 :   
 
         5 2 7 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ D a t e U s e d   * / 
 
 
 
     L i n e   6 2 3   [ m a t c h :   E P I C O R ] : 
 
         6 2 1 :           p r o t e c t e d   f u n c t i o n   _ g e t C o i l A c t i v i t y R e c e i p t s M e t a d a t a ( ) 
 
         6 2 2 :           { 
 
   > >   6 2 3 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ C o i l A c t i v i t y R e c e i p t s ' ) ; 
 
         6 2 4 :   
 
         6 2 5 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ D a t e R e c e i v e d   * / 
 
 
 
     L i n e   4 4   [ m a t c h :   - > q u e r y ( ] : 
 
         4 2 :           p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( ) 
 
         4 3 :           { 
 
   > >   4 4 :                   $ R e q u e s t e d D a t e s   =   ( i n _ a r r a y ( ' s t a r t _ d a t e ' ,   r e q u e s t ( ) - > q u e r y ( ) )   | |   i n _ a r r a y ( ' e n d _ d a t e ' ,   r e q u e s t ( ) - > q u e r y ( ) ) ) ; 
 
         4 5 :                   $ t h i s - > s t a r t D a t e   =   r e q u e s t ( ) - > q u e r y ( ' s t a r t _ d a t e ' ) ; 
 
         4 6 :                   $ t h i s - > e n d D a t e   =   r e q u e s t ( ) - > q u e r y ( ' e n d _ d a t e ' ) ; 
 
 
 
     L i n e   4 5   [ m a t c h :   - > q u e r y ( ] : 
 
         4 3 :           { 
 
         4 4 :                   $ R e q u e s t e d D a t e s   =   ( i n _ a r r a y ( ' s t a r t _ d a t e ' ,   r e q u e s t ( ) - > q u e r y ( ) )   | |   i n _ a r r a y ( ' e n d _ d a t e ' ,   r e q u e s t ( ) - > q u e r y ( ) ) ) ; 
 
   > >   4 5 :                   $ t h i s - > s t a r t D a t e   =   r e q u e s t ( ) - > q u e r y ( ' s t a r t _ d a t e ' ) ; 
 
         4 6 :                   $ t h i s - > e n d D a t e   =   r e q u e s t ( ) - > q u e r y ( ' e n d _ d a t e ' ) ; 
 
         4 7 :   
 
 
 
     L i n e   4 6   [ m a t c h :   - > q u e r y ( ] : 
 
         4 4 :                   $ R e q u e s t e d D a t e s   =   ( i n _ a r r a y ( ' s t a r t _ d a t e ' ,   r e q u e s t ( ) - > q u e r y ( ) )   | |   i n _ a r r a y ( ' e n d _ d a t e ' ,   r e q u e s t ( ) - > q u e r y ( ) ) ) ; 
 
         4 5 :                   $ t h i s - > s t a r t D a t e   =   r e q u e s t ( ) - > q u e r y ( ' s t a r t _ d a t e ' ) ; 
 
   > >   4 6 :                   $ t h i s - > e n d D a t e   =   r e q u e s t ( ) - > q u e r y ( ' e n d _ d a t e ' ) ; 
 
         4 7 :   
 
         4 8 :                   i f   ( ! i s _ n u l l ( $ t h i s - > s t a r t D a t e ) )   { 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ C o i l A l l o c a t i o n H e l p e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 3 7   [ m a t c h :   F R O M   ] : 
 
         3 3 5 :                   $ p d o   =   $ e m - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; 
 
         3 3 6 :   
 
   > >   3 3 7 :                   $ s q l   =   " S E L E C T   S U M ( O n H a n d Q u a n t i t y )   A S   S   F R O M   d b o . a l l o c _ R e q u e s t D e t a i l   W H E R E   a l l o c _ R e q u e s t _ I D   =   : S I D " ; 
 
         3 3 8 :                   $ s t h   =   $ p d o - > p r e p a r e ( $ s q l ) ; 
 
         3 3 9 :                   $ s t h - > e x e c u t e ( [ ' : S I D '   = >   $ d a t a [ " C o i l A l l o c a t i o n R e f e r e n c e " ] ] ) ; 
 
 
 
     L i n e   3 4 4   [ m a t c h :   F R O M   ] : 
 
         3 4 2 :                   $ d a t a [ " T o t a l S e l e c t e d " ]   =   $ r e s u l t s [ 0 ] [ ' S ' ] ; 
 
         3 4 3 :   
 
   > >   3 4 4 :                   $ d q l   =   " s e l e c t   a l l o c _ R e q u e s t D e t a i l   f r o m   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a l l o c _ R e q u e s t D e t a i l   a l l o c _ R e q u e s t D e t a i l   w h e r e 
 
         3 4 5 :                                   a l l o c _ R e q u e s t D e t a i l . a l l o c _ R e q u e s t   =   : S I D " ; 
 
         3 4 6 :   
 
 
 
     L i n e   3 0 8   [ m a t c h :   S E L E C T   ] : 
 
         3 0 6 :                                   ( n e w   B u t t o n ( ' C o m p l e t e   A l l o c a t i o n ' ,   t r u e ) ) 
 
         3 0 7 :                                           - > s e t T y p e ( B u t t o n I n t e r f a c e : : T Y P E _ P R I M A R Y ) , 
 
   > >   3 0 8 :                                   ( n e w   B u t t o n ( ' S e l e c t   M o r e   I t e m s ' ,   f a l s e ) ) 
 
         3 0 9 :                                           - > s e t T y p e ( B u t t o n I n t e r f a c e : : T Y P E _ D E F A U L T ) 
 
         3 1 0 :                                           - > s e t A t t r i b u t e ( ' o n c l i c k ' ,   ' q u e s t S h i p m e n t R e q u e s t R e d i r e c t T o I n v e n t o r y ( ) ' ) , 
 
 
 
     L i n e   3 3 7   [ m a t c h :   S E L E C T   ] : 
 
         3 3 5 :                   $ p d o   =   $ e m - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; 
 
         3 3 6 :   
 
   > >   3 3 7 :                   $ s q l   =   " S E L E C T   S U M ( O n H a n d Q u a n t i t y )   A S   S   F R O M   d b o . a l l o c _ R e q u e s t D e t a i l   W H E R E   a l l o c _ R e q u e s t _ I D   =   : S I D " ; 
 
         3 3 8 :                   $ s t h   =   $ p d o - > p r e p a r e ( $ s q l ) ; 
 
         3 3 9 :                   $ s t h - > e x e c u t e ( [ ' : S I D '   = >   $ d a t a [ " C o i l A l l o c a t i o n R e f e r e n c e " ] ] ) ; 
 
 
 
     L i n e   3 4 4   [ m a t c h :   S E L E C T   ] : 
 
         3 4 2 :                   $ d a t a [ " T o t a l S e l e c t e d " ]   =   $ r e s u l t s [ 0 ] [ ' S ' ] ; 
 
         3 4 3 :   
 
   > >   3 4 4 :                   $ d q l   =   " s e l e c t   a l l o c _ R e q u e s t D e t a i l   f r o m   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a l l o c _ R e q u e s t D e t a i l   a l l o c _ R e q u e s t D e t a i l   w h e r e 
 
         3 4 5 :                                   a l l o c _ R e q u e s t D e t a i l . a l l o c _ R e q u e s t   =   : S I D " ; 
 
         3 4 6 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ E p i c o r D a t a b a s e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 8 2 5   [ m a t c h :   - > s e l e c t ( ] : 
 
         1 8 2 3 :   
 
         1 8 2 4 :                   $ Q u e r y B u i l d e r   =   $ t h i s - > c o n n R O - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
   > >   1 8 2 5 :                   $ Q u e r y B u i l d e r - > s e l e c t ( ' * ' ) 
 
         1 8 2 6 :                           - > f r o m ( ' d b o . ' . $ v i e w N a m e ) 
 
         1 8 2 7 :                           - > w h e r e ( ' C u s t o m e r I D   =   : c u s t I D ' ) 
 
 
 
     L i n e   9 8   [ m a t c h :   F R O M   ] : 
 
         9 6 :   	 [ J o b P r o d ] . [ J o b N u m ]   a s   J O 
 
         9 7 :   
 
   > >   9 8 :   f r o m   E r p . I n v c H e a d   a s   I n v c H e a d 
 
         9 9 :   i n n e r   j o i n   E r p . I n v c D t l   a s   I n v c D t l   o n 
 
         1 0 0 :   	 I n v c H e a d . C o m p a n y   =   I n v c D t l . C o m p a n y 
 
 
 
     L i n e   4 0 6   [ m a t c h :   F R O M   ] : 
 
         4 0 4 :                                   P a r t _ U D . T o p c o a t P a i n t C o d e _ c   a s   [ T o p   F i n i s h ] , 
 
         4 0 5 :                                   P a r t _ U D . B a c k c o a t P a i n t C o d e _ c   a s   [ B o t t o m   F i n i s h ] 
 
   > >   4 0 6 :                           F R O M   E r p . P a r t   A S   P a r t 
 
         4 0 7 :                           I N N E R   J O I N   E r p . P a r t _ U D   O N   P a r t _ U D . F o r e i g n S y s R o w I D   =   P a r t . S y s R o w I D 
 
         4 0 8 :                           W H E R E   P a r t . P a r t N u m = : P a r t N u m b e r 
 
 
 
     L i n e   4 3 1   [ m a t c h :   F R O M   ] : 
 
         4 2 9 :                   / /     d d ( $ l o t N u m ) ; 
 
         4 3 0 :   
 
   > >   4 3 1 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   *   F R O M   p o r t a l _ L o t H i s t o r y   W H E R E   	 [ L o t N u m ] =   : L o t N u m   o r d e r   b y     [ D a t e I s s u e d ]   A S C ; " ) ; 
 
         4 3 2 :                   $ q u e r y - > b i n d V a l u e ( ' : L o t N u m ' ,   $ l o t N u m ) ; 
 
         4 3 3 :                   $ r e s u l t   =   $ q u e r y - > e x e c u t e Q u e r y ( ) ; 
 
 
 
     L i n e   4 3 6   [ m a t c h :   F R O M   ] : 
 
         4 3 4 :                   $ r e s u l t s   =   $ r e s u l t - > f e t c h A l l A s s o c i a t i v e ( ) ; 
 
         4 3 5 :   
 
   > >   4 3 6 :                   / / d d ( $ r e s u l t s , $ l o t N u m , " S E L E C T   *   F R O M   p o r t a l _ L o t H i s t o r y   W H E R E   [ L o t N u m ] =   : L o t N u m   o r d e r   b y     [ D a t e   I s s u e d ]   A S C ; " ) ; 
 
         4 3 7 :   
 
         4 3 8 :   
 
 
 
     L i n e   4 9 0   [ m a t c h :   F R O M   ] : 
 
         4 8 8 :   
 
         4 8 9 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   N a m e , C u s t I D 
 
   > >   4 9 0 :                                                                                     F R O M   E r p . C u s t o m e r 
 
         4 9 1 :                                                                                     W H E R E   C u s t I D   I N   ( " . i m p l o d e ( " , " , $ c u s t I D s ) . " ) " ) ; 
 
         4 9 2 :   
 
 
 
     L i n e   5 1 9   [ m a t c h :   F R O M   ] : 
 
         5 1 7 :                           $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( ' U P D A T E   C O M 
 
         5 1 8 :   S E T   C O M . I s D e a c t i v a t e d   =   0 
 
   > >   5 1 9 :   F R O M   V o r t e q P o r t a l . d b o . q u e s t _ C o m p a n y   C O M 
 
         5 2 0 :           J O I N   E p i c o r 1 0 L i v e . E r p . C u s t o m e r   C U S T 
 
         5 2 1 :                   O N   C U S T . C u s t I D   =   C O M . E p i c o r C u s t I D 
 
 
 
     L i n e   5 5 5   [ m a t c h :   F R O M   ] : 
 
         5 5 3 :   
 
         5 5 4 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   N a m e 
 
   > >   5 5 5 :                                                                             F R O M   E r p . C u s t o m e r 
 
         5 5 6 :                                                                             W H E R E   C u s t I D   =   : c u s t I D " ) ; 
 
         5 5 7 :                   $ q u e r y - > b i n d V a l u e ( ' : c u s t I D ' ,   $ C u s t I D ) ; 
 
 
 
     L i n e   1 3 0 3   [ m a t c h :   F R O M   ] : 
 
         1 3 0 1 :                                                         V e n d o r B o t t o m C o a t . V e n d o r I D ,   '   ' , 
 
         1 3 0 2 :                                                         P a r t _ U D . B a c k c o a t P a i n t C o d e _ c ) , ' ' ) )   A S   [ P a i n t   C o d e ] 
 
   > >   1 3 0 3 :                       F R O M             E r p . P a r t   A S   P a r t 
 
         1 3 0 4 :                                           I N N E R   J O I N   E r p . P a r t _ U D   O N   P a r t _ U D . F o r e i g n S y s R o w I D   =   P a r t . S y s R o w I D 
 
         1 3 0 5 :                                           I N N E R   J O I N   E r p . V e n d P a r t   A S   V e n d P a r t   O N   P a r t . C o m p a n y   =   V e n d P a r t . C o m p a n y 
 
 
 
     L i n e   1 3 2 2   [ m a t c h :   F R O M   ] : 
 
         1 3 2 0 :                   P a r t B i n . P a r t N u m   A S   V o r t e q P a r t N u m 
 
         1 3 2 1 :   
 
   > >   1 3 2 2 :   	 	 F R O M   E r p . P a r t   J O I N   E r p . P a r t B i n   O N   P a r t B i n . P a r t N u m   =   P a r t . P a r t N u m 
 
         1 3 2 3 :   	 	 I N N E R   J O I N   E r p . C u s t o m e r   A S   C u s t o m e r   O N   P a r t . C o m p a n y   =   C u s t o m e r . C o m p a n y 
 
         1 3 2 4 :   
 
 
 
     L i n e   1 3 5 4   [ m a t c h :   F R O M   ] : 
 
         1 3 5 2 :           { 
 
         1 3 5 3 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   P a r t . P a r t D e s c r i p t i o n 
 
   > >   1 3 5 4 :                                                                                     F R O M   E r p . P a r t   A S   P a r t 
 
         1 3 5 5 :                                                                                     I N N E R   J O I N   E r p . C u s t o m e r   A S   C u s t o m e r   O N   P a r t . C o m p a n y   =   C u s t o m e r . C o m p a n y 
 
         1 3 5 6 :                                                                                     W H E R E   P a r t . P a r t N u m   =   : p a r t N u m 
 
 
 
     L i n e   1 3 7 8   [ m a t c h :   F R O M   ] : 
 
         1 3 7 6 :           { 
 
         1 3 7 7 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   O n H a n d Q t y 
 
   > >   1 3 7 8 :                                                                                     F R O M   d b o . p o r t a l _ U n p r o c e s s e d I n v e n t o r y S u m m a r y 
 
         1 3 7 9 :                                                                                     W H E R E   C u s t I D   =   : c u s t I D 
 
         1 3 8 0 :                                                                                         A N D   V o r t e q P a r t N u m   =   : p a r t 
 
 
 
     L i n e   1 3 9 4   [ m a t c h :   F R O M   ] : 
 
         1 3 9 2 :           { 
 
         1 3 9 3 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   O n H a n d Q t y 
 
   > >   1 3 9 4 :                                                                                     F R O M   d b o . p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y 
 
         1 3 9 5 :                                                                                     W H E R E   C u s t I D   =   : c u s t I D 
 
         1 3 9 6 :                                                                                         A N D   V o r t e q P a r t N u m   =   : p a r t 
 
 
 
     L i n e   1 4 9 7   [ m a t c h :   F R O M   ] : 
 
         1 4 9 5 :   
 
         1 4 9 6 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   P a i n t C o d e 
 
   > >   1 4 9 7 :                                                                                     F R O M   d b o . { $ t a b l e } 
 
         1 4 9 8 :                                                                                     W H E R E   C u s t I D   =   : c u s t I D 
 
         1 4 9 9 :                                                                                         A N D   V o r t e q P a r t N u m   =   : p a r t 
 
 
 
     L i n e   1 6 3 4   [ m a t c h :   F R O M   ] : 
 
         1 6 3 2 :                 P a c k i n g S l i p 
 
         1 6 3 3 :   
 
   > >   1 6 3 4 :                   F R O M   d b o . p o r t a l _ C o i l A c t i v i t y R e c e i p t s 
 
         1 6 3 5 :                   w h e r e   P a c k i n g S l i p   =   : S L I P 
 
         1 6 3 6 :                   " ; 
 
 
 
     L i n e   1 6 5 7   [ m a t c h :   F R O M   ] : 
 
         1 6 5 5 :                   $ s q l   = " 
 
         1 6 5 6 :                   S E L E C T   E r p . P l a n t . P l a n t 
 
   > >   1 6 5 7 :                   F R O M   [ E p i c o r 1 0 L i v e ] . [ d b o ] . [ p o r t a l _ C o i l A c t i v i t y R e c e i p t s ] 
 
         1 6 5 8 :                   J O I N   E r p . P l a n t   O N   E r p . P l a n t . N a m e   =   d b o . p o r t a l _ C o i l A c t i v i t y R e c e i p t s . P l a n t N a m e 
 
         1 6 5 9 :                   W H E R E   P a c k i n g S l i p   =   : S L I P 
 
 
 
     L i n e   1 6 9 3   [ m a t c h :   F R O M   ] : 
 
         1 6 9 1 :   
 
         1 6 9 2 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   P a i n t C o d e 
 
   > >   1 6 9 3 :                                                                                     F R O M   d b o . [ p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ] 
 
         1 6 9 4 :                                                                                     W H E R E   C u s t I D   =   : c u s t I D 
 
         1 6 9 5 :                                                                                         A N D   V o r t e q P a r t N u m   =   : p a r t 
 
 
 
     L i n e   1 7 1 4   [ m a t c h :   F R O M   ] : 
 
         1 7 1 2 :   
 
         1 7 1 3 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   O n H a n d Q t y 
 
   > >   1 7 1 4 :                                                                                     F R O M   d b o . p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y 
 
         1 7 1 5 :                                                                                     W H E R E   C u s t I D   =   : c u s t I D 
 
         1 7 1 6 :                                                                                         A N D   V o r t e q P a r t N u m   =   : p a r t 
 
 
 
     L i n e   1 8 5 7   [ m a t c h :   F R O M   ] : 
 
         1 8 5 5 :                           $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   S h i p T o N u m ,   S h i p T o N a m e ,   A d d r e s s 1   A S   S h i p T o A d d r e s s 1 ,   A d d r e s s 2   A S   S h i p T o A d d r e s s 2 , 
 
         1 8 5 6 :                                                                                                                                                   C i t y   A S   S h i p T o C i t y ,   S t a t e   A S   S h i p T o S t a t e ,   Z i p   A S   S h i p T o Z i p 
 
   > >   1 8 5 7 :                                                                                             F R O M   p o r t a l _ C u s t o m e r S h i p T o A d d r e s s e s 
 
         1 8 5 8 :                                                                                             W H E R E   C u s t I D   =   : c u s t I D 
 
         1 8 5 9 :                                                                                             O R D E R   B Y   S h i p T o N a m e " ) ; 
 
 
 
     L i n e   1 8 6 3   [ m a t c h :   F R O M   ] : 
 
         1 8 6 1 :                                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   S h i p T o N u m ,   S h i p T o N a m e ,   A d d r e s s 1   A S   S h i p T o A d d r e s s 1 ,   A d d r e s s 2   A S   S h i p T o A d d r e s s 2 , 
 
         1 8 6 2 :                                                                                           C i t y   A S   S h i p T o C i t y ,   S t a t e   A S   S h i p T o S t a t e ,   Z i p   A S   S h i p T o Z i p 
 
   > >   1 8 6 3 :                                                                                             F R O M   p o r t a l _ C u s t o m e r S h i p T o A d d r e s s e s 
 
         1 8 6 4 :                                                                                             W H E R E   C u s t I D   =   : c u s t I D 
 
         1 8 6 5 :                                                                                             a n d   U P P E R ( S h i p T o N a m e )   l i k e   ' % N B   H A N D Y % ' 
 
 
 
     L i n e   1 8 8 9   [ m a t c h :   F R O M   ] : 
 
         1 8 8 7 :                   t r y   { 
 
         1 8 8 8 :                           $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   S h i p T o N a m e ,   A d d r e s s 1   A S   S h i p T o A d d r e s s 1 ,   A d d r e s s 2   A S   S h i p T o A d d r e s s 2 ,   C i t y   A S   S h i p T o C i t y ,   S t a t e   A S   S h i p T o S t a t e ,   Z i p   A S   S h i p T o Z i p 
 
   > >   1 8 8 9 :                                                                                             F R O M   p o r t a l _ C u s t o m e r S h i p T o A d d r e s s e s 
 
         1 8 9 0 :                                                                                             W H E R E   C u s t I D   =   : c u s t I D 
 
         1 8 9 1 :                                                                                                 A N D   S h i p T o N u m   =   : s h i p T o N u m " ) ; 
 
 
 
     L i n e   1 9 1 5   [ m a t c h :   F R O M   ] : 
 
         1 9 1 3 :   
 
         1 9 1 4 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   U s e r E m a i l A d d r e s s 
 
   > >   1 9 1 5 :                                                                                     F R O M   p o r t a l _ P l a n t U s e r I n f o 
 
         1 9 1 6 :                                                                                     W H E R E   P l a n t N a m e   =   : p l a n t N a m e 
 
         1 9 1 7 :                                                                                         A N D   U s e r E m a i l A d d r e s s   I S   N O T   N U L L 
 
 
 
     L i n e   1 9 3 8   [ m a t c h :   F R O M   ] : 
 
         1 9 3 6 :           { 
 
         1 9 3 7 :               / *     $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   D a t e U s e d ,   V o r t e q P a r t N u m ,   C u s t o m e r P a r t N u m ,   P a r t D e s c ,   L o t N u m ,   W e i g h t ,   P l a n t N a m e ,   J o b N u m ,   C u s t o m e r P O ,   O n H a n d Q t y 
 
   > >   1 9 3 8 :                                                                                     F R O M   d b o . p o r t a l _ C o i l A c t i v i t y U s a g e 
 
         1 9 3 9 :                                                                                     W H E R E   C u s t I D   =   : c u s t I D 
 
         1 9 4 0 :                                                                                         A N D   D a t e U s e d   > =   : s t a r t D a t e 
 
 
 
     L i n e   2 0 1 1   [ m a t c h :   F R O M   ] : 
 
         2 0 0 9 :                   e l s e   { 
 
         2 0 1 0 :                           $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   D a t e R e c e i v e d ,   V o r t e q P a r t N u m ,   C u s t o m e r P a r t N u m ,   P a r t D e s c ,   M a n u f a c t u r e r L o t N u m ,   W e i g h t ,   P l a n t N a m e ,   P a c k i n g S l i p ,   S u p p l i e r N a m e ,   M i l l O r d e r N u m ,   T e m p e r ,   A l l o y ,   C o i l s P e r S k i d 
 
   > >   2 0 1 1 :                                                                                     F R O M   d b o . p o r t a l _ C o i l A c t i v i t y R e c e i p t s 
 
         2 0 1 2 :                                                                                     W H E R E   C u s t I D   =   : c u s t I D 
 
         2 0 1 3 :                                                                                         A N D   D a t e R e c e i v e d   > =   : s t a r t D a t e 
 
 
 
     L i n e   2 0 3 7   [ m a t c h :   F R O M   ] : 
 
         2 0 3 5 :   
 
         2 0 3 6 :                   $ s t m t   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   e r p . I n v c H e a d . I n v o i c e N u m ,   e r p . C u s t o m e r . C u s t I D 
 
   > >   2 0 3 7 :                                                                                   F R O M   e r p . I n v c H e a d 
 
         2 0 3 8 :                                                                                   I N N E R   J O I N   e r p . C u s t o m e r   O N   C u s t o m e r . C u s t N u m   =   I n v c H e a d . C u s t N u m 
 
         2 0 3 9 :                                                                                   W H E R E   I n v o i c e N u m   I N   ( " . i m p l o d e ( ' , ' , a r r a y _ f i l l ( 0 , s i z e o f ( $ I n v o i c e N u m b e r s ) , " ? " ) ) . " ) " ) ; 
 
 
 
     L i n e   2 0 8 1   [ m a t c h :   F R O M   ] : 
 
         2 0 7 9 :           { 
 
         2 0 8 0 :                   $ s t m t   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   C u s t I D ,   N a m e 
 
   > >   2 0 8 1 :                                                                                   F R O M   e r p . C u s t o m e r 
 
         2 0 8 2 :                                                                                   O R D E R   B Y   C u s t I D " ) ; 
 
         2 0 8 3 :                   $ r e s u l t   =   $ s t m t - > e x e c u t e Q u e r y ( ) ; 
 
 
 
     L i n e   9 4   [ m a t c h :   S E L E C T   ] : 
 
         9 2 :           p u b l i c   f u n c t i o n   g e t J o b N u m b e r B y I n v o i c e N u m b e r ( $ i n v o i c e N u m b e r ) 
 
         9 3 :           { 
 
   > >   9 4 :                   $ s q l   = ' s e l e c t   T O P   1 
 
         9 5 :   
 
         9 6 :   	 [ J o b P r o d ] . [ J o b N u m ]   a s   J O 
 
 
 
     L i n e   4 0 2   [ m a t c h :   S E L E C T   ] : 
 
         4 0 0 :           { 
 
         4 0 1 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( ' 
 
   > >   4 0 2 :                           S E L E C T   T O P   1 
 
         4 0 3 :                                   [ P a r t ] . [ P a r t D e s c r i p t i o n ]   A S   [ P a r t _ P a r t D e s c r i p t i o n ] , 
 
         4 0 4 :                                   P a r t _ U D . T o p c o a t P a i n t C o d e _ c   a s   [ T o p   F i n i s h ] , 
 
 
 
     L i n e   4 3 1   [ m a t c h :   S E L E C T   ] : 
 
         4 2 9 :                   / /     d d ( $ l o t N u m ) ; 
 
         4 3 0 :   
 
   > >   4 3 1 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   *   F R O M   p o r t a l _ L o t H i s t o r y   W H E R E   	 [ L o t N u m ] =   : L o t N u m   o r d e r   b y     [ D a t e I s s u e d ]   A S C ; " ) ; 
 
         4 3 2 :                   $ q u e r y - > b i n d V a l u e ( ' : L o t N u m ' ,   $ l o t N u m ) ; 
 
         4 3 3 :                   $ r e s u l t   =   $ q u e r y - > e x e c u t e Q u e r y ( ) ; 
 
 
 
     L i n e   4 3 6   [ m a t c h :   S E L E C T   ] : 
 
         4 3 4 :                   $ r e s u l t s   =   $ r e s u l t - > f e t c h A l l A s s o c i a t i v e ( ) ; 
 
         4 3 5 :   
 
   > >   4 3 6 :                   / / d d ( $ r e s u l t s , $ l o t N u m , " S E L E C T   *   F R O M   p o r t a l _ L o t H i s t o r y   W H E R E   [ L o t N u m ] =   : L o t N u m   o r d e r   b y     [ D a t e   I s s u e d ]   A S C ; " ) ; 
 
         4 3 7 :   
 
         4 3 8 :   
 
 
 
     L i n e   4 8 9   [ m a t c h :   S E L E C T   ] : 
 
         4 8 7 :                   } 
 
         4 8 8 :   
 
   > >   4 8 9 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   N a m e , C u s t I D 
 
         4 9 0 :                                                                                     F R O M   E r p . C u s t o m e r 
 
         4 9 1 :                                                                                     W H E R E   C u s t I D   I N   ( " . i m p l o d e ( " , " , $ c u s t I D s ) . " ) " ) ; 
 
 
 
     L i n e   5 5 4   [ m a t c h :   S E L E C T   ] : 
 
         5 5 2 :   
 
         5 5 3 :   
 
   > >   5 5 4 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   N a m e 
 
         5 5 5 :                                                                             F R O M   E r p . C u s t o m e r 
 
         5 5 6 :                                                                             W H E R E   C u s t I D   =   : c u s t I D " ) ; 
 
 
 
     L i n e   1 2 9 5   [ m a t c h :   S E L E C T   ] : 
 
         1 2 9 3 :           p u b l i c   f u n c t i o n   g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r W i t h P a i n t C o d e ( $ C u s t I D ,   $ P a r t ) 
 
         1 2 9 4 :           { 
 
   > >   1 2 9 5 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   T O P   1 
 
         1 2 9 6 :   
 
         1 2 9 7 :                   I S N U L L ( (   S E L E C T   T O P   1 
 
 
 
     L i n e   1 2 9 7   [ m a t c h :   S E L E C T   ] : 
 
         1 2 9 5 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   T O P   1 
 
         1 2 9 6 :   
 
   > >   1 2 9 7 :                   I S N U L L ( (   S E L E C T   T O P   1 
 
         1 2 9 8 :                                           C O N C A T ( P a r t . P a r t D e s c r i p t i o n ,   I S N U L L ( C O N C A T ( C H A R ( 1 3 )   +   C H A R ( 1 0 ) , 
 
         1 2 9 9 :                                                         [ V e n d o r ] . [ V e n d o r I D ] ,   '   ' , 
 
 
 
     L i n e   1 3 5 3   [ m a t c h :   S E L E C T   ] : 
 
         1 3 5 1 :           p u b l i c   f u n c t i o n   g e t V o r P a r t D e s c r i p t i o n F r o m P a r t N u m b e r ( $ C u s t I D ,   $ P a r t ) 
 
         1 3 5 2 :           { 
 
   > >   1 3 5 3 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   P a r t . P a r t D e s c r i p t i o n 
 
         1 3 5 4 :                                                                                     F R O M   E r p . P a r t   A S   P a r t 
 
         1 3 5 5 :                                                                                     I N N E R   J O I N   E r p . C u s t o m e r   A S   C u s t o m e r   O N   P a r t . C o m p a n y   =   C u s t o m e r . C o m p a n y 
 
 
 
     L i n e   1 3 7 7   [ m a t c h :   S E L E C T   ] : 
 
         1 3 7 5 :           p u b l i c   f u n c t i o n   g e t I n v e n t o r y U n p r o c e s s e d Q O H F o r S p e c i f i c D e t a i l L i n e ( $ C u s t I D ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) 
 
         1 3 7 6 :           { 
 
   > >   1 3 7 7 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   O n H a n d Q t y 
 
         1 3 7 8 :                                                                                     F R O M   d b o . p o r t a l _ U n p r o c e s s e d I n v e n t o r y S u m m a r y 
 
         1 3 7 9 :                                                                                     W H E R E   C u s t I D   =   : c u s t I D 
 
 
 
     L i n e   1 3 9 3   [ m a t c h :   S E L E C T   ] : 
 
         1 3 9 1 :           p u b l i c   f u n c t i o n   g e t I n v e n t o r y U n p r o c e s s e d R R Q O H F o r S p e c i f i c D e t a i l L i n e ( $ C u s t I D ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) 
 
         1 3 9 2 :           { 
 
   > >   1 3 9 3 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   O n H a n d Q t y 
 
         1 3 9 4 :                                                                                     F R O M   d b o . p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y 
 
         1 3 9 5 :                                                                                     W H E R E   C u s t I D   =   : c u s t I D 
 
 
 
     L i n e   1 4 9 6   [ m a t c h :   S E L E C T   ] : 
 
         1 4 9 4 :                 / /   d d ( $ C u s t I D , $ P a r t , $ P l a n t , $ W a r e h o u s e ) ; 
 
         1 4 9 5 :   
 
   > >   1 4 9 6 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   P a i n t C o d e 
 
         1 4 9 7 :                                                                                     F R O M   d b o . { $ t a b l e } 
 
         1 4 9 8 :                                                                                     W H E R E   C u s t I D   =   : c u s t I D 
 
 
 
     L i n e   1 6 5 6   [ m a t c h :   S E L E C T   ] : 
 
         1 6 5 4 :           { 
 
         1 6 5 5 :                   $ s q l   = " 
 
   > >   1 6 5 6 :                   S E L E C T   E r p . P l a n t . P l a n t 
 
         1 6 5 7 :                   F R O M   [ E p i c o r 1 0 L i v e ] . [ d b o ] . [ p o r t a l _ C o i l A c t i v i t y R e c e i p t s ] 
 
         1 6 5 8 :                   J O I N   E r p . P l a n t   O N   E r p . P l a n t . N a m e   =   d b o . p o r t a l _ C o i l A c t i v i t y R e c e i p t s . P l a n t N a m e 
 
 
 
     L i n e   1 6 9 2   [ m a t c h :   S E L E C T   ] : 
 
         1 6 9 0 :   
 
         1 6 9 1 :   
 
   > >   1 6 9 2 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   P a i n t C o d e 
 
         1 6 9 3 :                                                                                     F R O M   d b o . [ p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ] 
 
         1 6 9 4 :                                                                                     W H E R E   C u s t I D   =   : c u s t I D 
 
 
 
     L i n e   1 7 1 3   [ m a t c h :   S E L E C T   ] : 
 
         1 7 1 1 :   
 
         1 7 1 2 :   
 
   > >   1 7 1 3 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   O n H a n d Q t y 
 
         1 7 1 4 :                                                                                     F R O M   d b o . p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y 
 
         1 7 1 5 :                                                                                     W H E R E   C u s t I D   =   : c u s t I D 
 
 
 
     L i n e   1 8 5 5   [ m a t c h :   S E L E C T   ] : 
 
         1 8 5 3 :                           i f   ( ! $ s u b u s e r ) : 
 
         1 8 5 4 :   
 
   > >   1 8 5 5 :                           $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   S h i p T o N u m ,   S h i p T o N a m e ,   A d d r e s s 1   A S   S h i p T o A d d r e s s 1 ,   A d d r e s s 2   A S   S h i p T o A d d r e s s 2 , 
 
         1 8 5 6 :                                                                                                                                                   C i t y   A S   S h i p T o C i t y ,   S t a t e   A S   S h i p T o S t a t e ,   Z i p   A S   S h i p T o Z i p 
 
         1 8 5 7 :                                                                                             F R O M   p o r t a l _ C u s t o m e r S h i p T o A d d r e s s e s 
 
 
 
     L i n e   1 8 6 1   [ m a t c h :   S E L E C T   ] : 
 
         1 8 5 9 :                                                                                             O R D E R   B Y   S h i p T o N a m e " ) ; 
 
         1 8 6 0 :                           e l s e : 
 
   > >   1 8 6 1 :                                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   S h i p T o N u m ,   S h i p T o N a m e ,   A d d r e s s 1   A S   S h i p T o A d d r e s s 1 ,   A d d r e s s 2   A S   S h i p T o A d d r e s s 2 , 
 
         1 8 6 2 :                                                                                           C i t y   A S   S h i p T o C i t y ,   S t a t e   A S   S h i p T o S t a t e ,   Z i p   A S   S h i p T o Z i p 
 
         1 8 6 3 :                                                                                             F R O M   p o r t a l _ C u s t o m e r S h i p T o A d d r e s s e s 
 
 
 
     L i n e   1 8 8 8   [ m a t c h :   S E L E C T   ] : 
 
         1 8 8 6 :           { 
 
         1 8 8 7 :                   t r y   { 
 
   > >   1 8 8 8 :                           $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   S h i p T o N a m e ,   A d d r e s s 1   A S   S h i p T o A d d r e s s 1 ,   A d d r e s s 2   A S   S h i p T o A d d r e s s 2 ,   C i t y   A S   S h i p T o C i t y ,   S t a t e   A S   S h i p T o S t a t e ,   Z i p   A S   S h i p T o Z i p 
 
         1 8 8 9 :                                                                                             F R O M   p o r t a l _ C u s t o m e r S h i p T o A d d r e s s e s 
 
         1 8 9 0 :                                                                                             W H E R E   C u s t I D   =   : c u s t I D 
 
 
 
     L i n e   1 9 1 4   [ m a t c h :   S E L E C T   ] : 
 
         1 9 1 2 :   
 
         1 9 1 3 :   
 
   > >   1 9 1 4 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   U s e r E m a i l A d d r e s s 
 
         1 9 1 5 :                                                                                     F R O M   p o r t a l _ P l a n t U s e r I n f o 
 
         1 9 1 6 :                                                                                     W H E R E   P l a n t N a m e   =   : p l a n t N a m e 
 
 
 
     L i n e   1 9 3 7   [ m a t c h :   S E L E C T   ] : 
 
         1 9 3 5 :           p u b l i c   f u n c t i o n   g e t C o i l A c t i v i t y U s a g e D a t a ( $ C u s t I D ,   $ S t a r t D a t e ,   $ E n d D a t e ) 
 
         1 9 3 6 :           { 
 
   > >   1 9 3 7 :               / *     $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   D a t e U s e d ,   V o r t e q P a r t N u m ,   C u s t o m e r P a r t N u m ,   P a r t D e s c ,   L o t N u m ,   W e i g h t ,   P l a n t N a m e ,   J o b N u m ,   C u s t o m e r P O ,   O n H a n d Q t y 
 
         1 9 3 8 :                                                                                     F R O M   d b o . p o r t a l _ C o i l A c t i v i t y U s a g e 
 
         1 9 3 9 :                                                                                     W H E R E   C u s t I D   =   : c u s t I D 
 
 
 
     L i n e   2 0 1 0   [ m a t c h :   S E L E C T   ] : 
 
         2 0 0 8 :                   } 
 
         2 0 0 9 :                   e l s e   { 
 
   > >   2 0 1 0 :                           $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   D a t e R e c e i v e d ,   V o r t e q P a r t N u m ,   C u s t o m e r P a r t N u m ,   P a r t D e s c ,   M a n u f a c t u r e r L o t N u m ,   W e i g h t ,   P l a n t N a m e ,   P a c k i n g S l i p ,   S u p p l i e r N a m e ,   M i l l O r d e r N u m ,   T e m p e r ,   A l l o y ,   C o i l s P e r S k i d 
 
         2 0 1 1 :                                                                                     F R O M   d b o . p o r t a l _ C o i l A c t i v i t y R e c e i p t s 
 
         2 0 1 2 :                                                                                     W H E R E   C u s t I D   =   : c u s t I D 
 
 
 
     L i n e   2 0 3 6   [ m a t c h :   S E L E C T   ] : 
 
         2 0 3 4 :                   $ I n v o i c e N u m b e r s   =   a r r a y _ u n i q u e ( $ I n v o i c e N u m b e r s ) ; 
 
         2 0 3 5 :   
 
   > >   2 0 3 6 :                   $ s t m t   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   e r p . I n v c H e a d . I n v o i c e N u m ,   e r p . C u s t o m e r . C u s t I D 
 
         2 0 3 7 :                                                                                   F R O M   e r p . I n v c H e a d 
 
         2 0 3 8 :                                                                                   I N N E R   J O I N   e r p . C u s t o m e r   O N   C u s t o m e r . C u s t N u m   =   I n v c H e a d . C u s t N u m 
 
 
 
     L i n e   2 0 8 0   [ m a t c h :   S E L E C T   ] : 
 
         2 0 7 8 :           p u b l i c   f u n c t i o n   g e t A l l C u s t o m e r N a m e s B y I D ( ) 
 
         2 0 7 9 :           { 
 
   > >   2 0 8 0 :                   $ s t m t   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   C u s t I D ,   N a m e 
 
         2 0 8 1 :                                                                                   F R O M   e r p . C u s t o m e r 
 
         2 0 8 2 :                                                                                   O R D E R   B Y   C u s t I D " ) ; 
 
 
 
     L i n e   5 1 7   [ m a t c h :   U P D A T E   ] : 
 
         5 1 5 :                   i f   ( A p p : : e n v i r o n m e n t ( )   = = =   ' p r o d ' ) : 
 
         5 1 6 :   
 
   > >   5 1 7 :                           $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( ' U P D A T E   C O M 
 
         5 1 8 :   S E T   C O M . I s D e a c t i v a t e d   =   0 
 
         5 1 9 :   F R O M   V o r t e q P o r t a l . d b o . q u e s t _ C o m p a n y   C O M 
 
 
 
     L i n e   9 9   [ m a t c h :   I N N E R   J O I N ] : 
 
         9 7 :   
 
         9 8 :   f r o m   E r p . I n v c H e a d   a s   I n v c H e a d 
 
   > >   9 9 :   i n n e r   j o i n   E r p . I n v c D t l   a s   I n v c D t l   o n 
 
         1 0 0 :   	 I n v c H e a d . C o m p a n y   =   I n v c D t l . C o m p a n y 
 
         1 0 1 :   A n d 
 
 
 
     L i n e   1 0 5   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 0 3 :     a n d   (   I n v c D t l . I n v o i c e L i n e   =   1     ) 
 
         1 0 4 :   
 
   > >   1 0 5 :   i n n e r   j o i n   E r p . J o b P r o d   a s   J o b P r o d   o n 
 
         1 0 6 :   	 I n v c D t l . C o m p a n y   =   J o b P r o d . C o m p a n y 
 
         1 0 7 :   A n d 
 
 
 
     L i n e   4 0 7   [ m a t c h :   I N N E R   J O I N ] : 
 
         4 0 5 :                                   P a r t _ U D . B a c k c o a t P a i n t C o d e _ c   a s   [ B o t t o m   F i n i s h ] 
 
         4 0 6 :                           F R O M   E r p . P a r t   A S   P a r t 
 
   > >   4 0 7 :                           I N N E R   J O I N   E r p . P a r t _ U D   O N   P a r t _ U D . F o r e i g n S y s R o w I D   =   P a r t . S y s R o w I D 
 
         4 0 8 :                           W H E R E   P a r t . P a r t N u m = : P a r t N u m b e r 
 
         4 0 9 :                   ' ) ; 
 
 
 
     L i n e   1 3 0 4   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 3 0 2 :                                                         P a r t _ U D . B a c k c o a t P a i n t C o d e _ c ) , ' ' ) )   A S   [ P a i n t   C o d e ] 
 
         1 3 0 3 :                       F R O M             E r p . P a r t   A S   P a r t 
 
   > >   1 3 0 4 :                                           I N N E R   J O I N   E r p . P a r t _ U D   O N   P a r t _ U D . F o r e i g n S y s R o w I D   =   P a r t . S y s R o w I D 
 
         1 3 0 5 :                                           I N N E R   J O I N   E r p . V e n d P a r t   A S   V e n d P a r t   O N   P a r t . C o m p a n y   =   V e n d P a r t . C o m p a n y 
 
         1 3 0 6 :                                                                                                                         A N D   P a r t _ U D . T o p c o a t P a i n t C o d e _ c   =   V e n d P a r t . P a r t N u m 
 
 
 
     L i n e   1 3 0 5   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 3 0 3 :                       F R O M             E r p . P a r t   A S   P a r t 
 
         1 3 0 4 :                                           I N N E R   J O I N   E r p . P a r t _ U D   O N   P a r t _ U D . F o r e i g n S y s R o w I D   =   P a r t . S y s R o w I D 
 
   > >   1 3 0 5 :                                           I N N E R   J O I N   E r p . V e n d P a r t   A S   V e n d P a r t   O N   P a r t . C o m p a n y   =   V e n d P a r t . C o m p a n y 
 
         1 3 0 6 :                                                                                                                         A N D   P a r t _ U D . T o p c o a t P a i n t C o d e _ c   =   V e n d P a r t . P a r t N u m 
 
         1 3 0 7 :                                                                                                                         A N D   (   V e n d P a r t . E x p i r a t i o n D a t e   I S   N U L L   ) 
 
 
 
     L i n e   1 3 0 8   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 3 0 6 :                                                                                                                         A N D   P a r t _ U D . T o p c o a t P a i n t C o d e _ c   =   V e n d P a r t . P a r t N u m 
 
         1 3 0 7 :                                                                                                                         A N D   (   V e n d P a r t . E x p i r a t i o n D a t e   I S   N U L L   ) 
 
   > >   1 3 0 8 :                                           I N N E R   J O I N   E r p . V e n d o r   A S   V e n d o r   O N   V e n d P a r t . C o m p a n y   =   V e n d o r . C o m p a n y 
 
         1 3 0 9 :                                                                                                                 A N D   V e n d P a r t . V e n d o r N u m   =   V e n d o r . V e n d o r N u m 
 
         1 3 1 0 :                                           I N N E R   J O I N   E r p . V e n d P a r t   A S   V e n d P a r t 2   O N   P a r t . C o m p a n y   =   V e n d P a r t 2 . C o m p a n y 
 
 
 
     L i n e   1 3 1 0   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 3 0 8 :                                           I N N E R   J O I N   E r p . V e n d o r   A S   V e n d o r   O N   V e n d P a r t . C o m p a n y   =   V e n d o r . C o m p a n y 
 
         1 3 0 9 :                                                                                                                 A N D   V e n d P a r t . V e n d o r N u m   =   V e n d o r . V e n d o r N u m 
 
   > >   1 3 1 0 :                                           I N N E R   J O I N   E r p . V e n d P a r t   A S   V e n d P a r t 2   O N   P a r t . C o m p a n y   =   V e n d P a r t 2 . C o m p a n y 
 
         1 3 1 1 :                                                                                                                           A N D   P a r t _ U D . B a c k c o a t P a i n t C o d e _ c   =   V e n d P a r t 2 . P a r t N u m 
 
         1 3 1 2 :                                                                                                                           A N D   (   V e n d P a r t 2 . E x p i r a t i o n D a t e   I S   N U L L   ) 
 
 
 
     L i n e   1 3 1 3   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 3 1 1 :                                                                                                                           A N D   P a r t _ U D . B a c k c o a t P a i n t C o d e _ c   =   V e n d P a r t 2 . P a r t N u m 
 
         1 3 1 2 :                                                                                                                           A N D   (   V e n d P a r t 2 . E x p i r a t i o n D a t e   I S   N U L L   ) 
 
   > >   1 3 1 3 :                                           I N N E R   J O I N   E r p . V e n d o r   A S   V e n d o r B o t t o m C o a t   O N   V e n d P a r t 2 . C o m p a n y   =   V e n d o r B o t t o m C o a t . C o m p a n y 
 
         1 3 1 4 :                                                                                                                               A N D   V e n d P a r t 2 . V e n d o r N u m   =   V e n d o r B o t t o m C o a t . V e n d o r N u m 
 
         1 3 1 5 :                       W H E R E           (   P a r t . C l a s s I D   =   ' F G S ' 
 
 
 
     L i n e   1 3 2 3   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 3 2 1 :   
 
         1 3 2 2 :   	 	 F R O M   E r p . P a r t   J O I N   E r p . P a r t B i n   O N   P a r t B i n . P a r t N u m   =   P a r t . P a r t N u m 
 
   > >   1 3 2 3 :   	 	 I N N E R   J O I N   E r p . C u s t o m e r   A S   C u s t o m e r   O N   P a r t . C o m p a n y   =   C u s t o m e r . C o m p a n y 
 
         1 3 2 4 :   
 
         1 3 2 5 :   	 	 W H E R E   P a r t B i n . P a r t N u m   L I K E   : p a r t N u m   A N D   C u s t o m e r . C u s t I D   =   : c u s t I D " ) ; 
 
 
 
     L i n e   1 3 5 5   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 3 5 3 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   P a r t . P a r t D e s c r i p t i o n 
 
         1 3 5 4 :                                                                                     F R O M   E r p . P a r t   A S   P a r t 
 
   > >   1 3 5 5 :                                                                                     I N N E R   J O I N   E r p . C u s t o m e r   A S   C u s t o m e r   O N   P a r t . C o m p a n y   =   C u s t o m e r . C o m p a n y 
 
         1 3 5 6 :                                                                                     W H E R E   P a r t . P a r t N u m   =   : p a r t N u m 
 
         1 3 5 7 :                                                                                         A N D   C u s t o m e r . C u s t I D   =   : c u s t I D " ) ; 
 
 
 
     L i n e   2 0 3 8   [ m a t c h :   I N N E R   J O I N ] : 
 
         2 0 3 6 :                   $ s t m t   =   $ t h i s - > c o n n R O - > p r e p a r e ( " S E L E C T   e r p . I n v c H e a d . I n v o i c e N u m ,   e r p . C u s t o m e r . C u s t I D 
 
         2 0 3 7 :                                                                                   F R O M   e r p . I n v c H e a d 
 
   > >   2 0 3 8 :                                                                                   I N N E R   J O I N   e r p . C u s t o m e r   O N   C u s t o m e r . C u s t N u m   =   I n v c H e a d . C u s t N u m 
 
         2 0 3 9 :                                                                                   W H E R E   I n v o i c e N u m   I N   ( " . i m p l o d e ( ' , ' , a r r a y _ f i l l ( 0 , s i z e o f ( $ I n v o i c e N u m b e r s ) , " ? " ) ) . " ) " ) ; 
 
         2 0 4 0 :                   $ r e t   =   a r r a y _ c o m b i n e ( $ I n v o i c e N u m b e r s ,   a r r a y _ f i l l ( 0 , s i z e o f ( $ I n v o i c e N u m b e r s ) , n u l l ) ) ; 
 
 
 
     L i n e   3   [ m a t c h :   e p i c o r ] : 
 
         1 :   < ? p h p   n a m e s p a c e   A p p \ S e r v i c e s ; 
 
         2 :   
 
   > >   3 :   u s e   A p p \ E x c e p t i o n s \ N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ; 
 
         4 :   u s e   D o c t r i n e \ D B A L \ E x c e p t i o n \ D r i v e r E x c e p t i o n ; 
 
         5 :   u s e   I l l u m i n a t e \ S u p p o r t \ F a c a d e s \ S e s s i o n ; 
 
 
 
     L i n e   1 2   [ m a t c h :   e p i c o r ] : 
 
         1 0 :   u s e   s t d C l a s s ; 
 
         1 1 :   
 
   > >   1 2 :   c l a s s   E p i c o r D a t a b a s e 
 
         1 3 :   { 
 
         1 4 :           / * *   @ v a r   \ D o c t r i n e \ D B A L \ C o n n e c t i o n     * / 
 
 
 
     L i n e   2 5   [ m a t c h :   e p i c o r ] : 
 
         2 3 :           p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( E M C o n t a i n e r   $ E M s ) 
 
         2 4 :           { 
 
   > >   2 5 :                   $ t h i s - > c o n n R O   =   $ E M s - > g e t E M ( ' e p i c o r _ r o ' ) - > g e t C o n n e c t i o n ( ) ; 
 
         2 6 :           } 
 
         2 7 :   
 
 
 
     L i n e   6 3   [ m a t c h :   e p i c o r ] : 
 
         6 1 :   	 	 A N D   [ C u s t o m e r ] . [ C u s t I D ]   =   : C u s t o m e r * / 
 
         6 2 :   
 
   > >   6 3 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / C o i l B y C o i l . s q l " ) ; 
 
         6 4 :   
 
         6 5 :                   / / d d ( $ s q l ) ; 
 
 
 
     L i n e   2 1 1   [ m a t c h :   e p i c o r ] : 
 
         2 0 9 :   
 
         2 1 0 :   
 
   > >   2 1 1 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / A P - C h e c k P r o c e s s i n g / C h e c k L i n e s . s q l " ) ; 
 
         2 1 2 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         2 1 3 :   
 
 
 
     L i n e   3 4 1   [ m a t c h :   e p i c o r ] : 
 
         3 3 9 :           p u b l i c   f u n c t i o n   g e t A c k n o w l e d g e m e n t ( $ c u s t o m e r ,   $ p o N u m b e r   =   n u l l ,   $ o r d e r N u m   =   n u l l   ) 
 
         3 4 0 :           { 
 
   > >   3 4 1 :                   $ s q l = f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / S a l e s O r d e r . s q l " ) ; 
 
         3 4 2 :   
 
         3 4 3 :   
 
 
 
     L i n e   4 4 9   [ m a t c h :   e p i c o r ] : 
 
         4 4 7 :           p u b l i c   f u n c t i o n   g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ C u s t I D ) 
 
         4 4 8 :           { 
 
   > >   4 4 9 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / J o b S t a t u s B y P l a n t B y C u s t o m e r . s q l " ) ; 
 
         4 5 0 :   
 
         4 5 1 :   
 
 
 
     L i n e   4 8 4   [ m a t c h :   e p i c o r ] : 
 
         4 8 2 :                   $ c u s t I D s = [ ] ; 
 
         4 8 3 :   
 
   > >   4 8 4 :                   f o r e a c h   ( $ C u s t o m e r s   a s   $ e p i c o r e C u s t o m e r I D   = >   $ v ) 
 
         4 8 5 :                   { 
 
         4 8 6 :                           $ c u s t I D s [ ] = " ' $ e p i c o r e C u s t o m e r I D ' " ; 
 
 
 
     L i n e   4 8 6   [ m a t c h :   e p i c o r ] : 
 
         4 8 4 :                   f o r e a c h   ( $ C u s t o m e r s   a s   $ e p i c o r e C u s t o m e r I D   = >   $ v ) 
 
         4 8 5 :                   { 
 
   > >   4 8 6 :                           $ c u s t I D s [ ] = " ' $ e p i c o r e C u s t o m e r I D ' " ; 
 
         4 8 7 :                   } 
 
         4 8 8 :   
 
 
 
     L i n e   5 2 0   [ m a t c h :   e p i c o r ] : 
 
         5 1 8 :   S E T   C O M . I s D e a c t i v a t e d   =   0 
 
         5 1 9 :   F R O M   V o r t e q P o r t a l . d b o . q u e s t _ C o m p a n y   C O M 
 
   > >   5 2 0 :           J O I N   E p i c o r 1 0 L i v e . E r p . C u s t o m e r   C U S T 
 
         5 2 1 :                   O N   C U S T . C u s t I D   =   C O M . E p i c o r C u s t I D 
 
         5 2 2 :   W H E R E   C O M . I s D e a c t i v a t e d   =   1 ; ' ) ; 
 
 
 
     L i n e   5 2 1   [ m a t c h :   e p i c o r ] : 
 
         5 1 9 :   F R O M   V o r t e q P o r t a l . d b o . q u e s t _ C o m p a n y   C O M 
 
         5 2 0 :           J O I N   E p i c o r 1 0 L i v e . E r p . C u s t o m e r   C U S T 
 
   > >   5 2 1 :                   O N   C U S T . C u s t I D   =   C O M . E p i c o r C u s t I D 
 
         5 2 2 :   W H E R E   C O M . I s D e a c t i v a t e d   =   1 ; ' ) ; 
 
         5 2 3 :   
 
 
 
     L i n e   8 7 8   [ m a t c h :   e p i c o r ] : 
 
         8 7 6 :             *   @ p a r a m   s t r i n g | n u l l   $ W a r e h o u s e 
 
         8 7 7 :             *   @ r e t u r n   a r r a y 
 
   > >   8 7 8 :             *   @ t h r o w s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         8 7 9 :             * / 
 
         8 8 0 :   
 
 
 
     L i n e   9 2 1   [ m a t c h :   e p i c o r ] : 
 
         9 1 9 :             *   @ p a r a m   s t r i n g | n u l l   $ W a r e h o u s e 
 
         9 2 0 :             *   @ r e t u r n   a r r a y 
 
   > >   9 2 1 :             *   @ t h r o w s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         9 2 2 :             * / 
 
         9 2 3 :           p u b l i c   f u n c t i o n   g e t I n v e n t o r y U n p r o c e s s e d R R D e t a i l s D a t a ( $ C u s t I D ,   $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
 
 
     L i n e   9 5 8   [ m a t c h :   e p i c o r ] : 
 
         9 5 6 :             *   @ p a r a m   s t r i n g | n u l l   $ W a r e h o u s e 
 
         9 5 7 :             *   @ r e t u r n   a r r a y 
 
   > >   9 5 8 :             *   @ t h r o w s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         9 5 9 :             * / 
 
         9 6 0 :           p u b l i c   f u n c t i o n   g e t I n v e n t o r y W o r k I n P r o g r e s s D e t a i l s D a t a ( $ C u s t I D ,   $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
 
 
     L i n e   9 7 0   [ m a t c h :   e p i c o r ] : 
 
         9 6 8 :   
 
         9 6 9 :                           t r y   { 
 
   > >   9 7 0 :                                 / *   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p r o c e s s e d I n v e n t o r y . s q l " ) ; 
 
         9 7 1 :                                   $ s q l   =   s t r _ r e p l a c e ( ' ~ D A T A B A S E _ N A M E ~ ' ,   ' [ ' . \ D B : : g e t D a t a b a s e N a m e ( ) . ' ] ' ,   $ s q l ) ; 
 
         9 7 2 :   
 
 
 
     L i n e   1 0 4 0   [ m a t c h :   e p i c o r ] : 
 
         1 0 3 8 :                                           r e t u r n   [ ] ; 
 
         1 0 3 9 :                                   e l s e 
 
   > >   1 0 4 0 :                                           t h r o w   n e w   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ( ) ; 
 
         1 0 4 1 :                           } 
 
         1 0 4 2 :   
 
 
 
     L i n e   1 0 4 4   [ m a t c h :   e p i c o r ] : 
 
         1 0 4 2 :   
 
         1 0 4 3 :                   i f ( ! s i z e o f ( $ r e s )   & &   ! $ G e t A l l ) 
 
   > >   1 0 4 4 :                           t h r o w   n e w   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ( ) ; 
 
         1 0 4 5 :   
 
         1 0 4 6 :   
 
 
 
     L i n e   1 0 5 9   [ m a t c h :   e p i c o r ] : 
 
         1 0 5 7 :             *   @ p a r a m   s t r i n g | n u l l   $ W a r e h o u s e 
 
         1 0 5 8 :             *   @ r e t u r n   a r r a y 
 
   > >   1 0 5 9 :             *   @ t h r o w s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         1 0 6 0 :             * / 
 
         1 0 6 1 :           p u b l i c   f u n c t i o n   g e t I n v e n t o r y F i n i s h e d G o o d s D e t a i l s D a t a ( $ C u s t I D ,   $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
 
 
     L i n e   1 0 7 1   [ m a t c h :   e p i c o r ] : 
 
         1 0 6 9 :   
 
         1 0 7 0 :                           t r y   { 
 
   > >   1 0 7 1 :                                 / *   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p r o c e s s e d I n v e n t o r y . s q l " ) ; 
 
         1 0 7 2 :                                   $ s q l   =   s t r _ r e p l a c e ( ' ~ D A T A B A S E _ N A M E ~ ' ,   ' [ ' . \ D B : : g e t D a t a b a s e N a m e ( ) . ' ] ' ,   $ s q l ) ; 
 
         1 0 7 3 :   
 
 
 
     L i n e   1 1 4 1   [ m a t c h :   e p i c o r ] : 
 
         1 1 3 9 :                                           r e t u r n   [ ] ; 
 
         1 1 4 0 :                                   e l s e 
 
   > >   1 1 4 1 :                                           t h r o w   n e w   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ( ) ; 
 
         1 1 4 2 :                           } 
 
         1 1 4 3 :   
 
 
 
     L i n e   1 1 4 5   [ m a t c h :   e p i c o r ] : 
 
         1 1 4 3 :   
 
         1 1 4 4 :                   i f ( ! s i z e o f ( $ r e s )   & &   ! $ G e t A l l ) 
 
   > >   1 1 4 5 :                           t h r o w   n e w   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ( ) ; 
 
         1 1 4 6 :   
 
         1 1 4 7 :   
 
 
 
     L i n e   1 1 6 0   [ m a t c h :   e p i c o r ] : 
 
         1 1 5 8 :             *   @ p a r a m   s t r i n g | n u l l   $ W a r e h o u s e 
 
         1 1 5 9 :             *   @ r e t u r n   a r r a y 
 
   > >   1 1 6 0 :             *   @ t h r o w s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         1 1 6 1 :             * / 
 
         1 1 6 2 :           p u b l i c   f u n c t i o n   g e t I n v e n t o r y P r o c e s s e d O t h e r D e t a i l s D a t a ( $ C u s t I D ,   $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
 
 
     L i n e   1 1 7 2   [ m a t c h :   e p i c o r ] : 
 
         1 1 7 0 :   
 
         1 1 7 1 :                           t r y   { 
 
   > >   1 1 7 2 :                                 / *   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p r o c e s s e d I n v e n t o r y . s q l " ) ; 
 
         1 1 7 3 :                                   $ s q l   =   s t r _ r e p l a c e ( ' ~ D A T A B A S E _ N A M E ~ ' ,   ' [ ' . \ D B : : g e t D a t a b a s e N a m e ( ) . ' ] ' ,   $ s q l ) ; 
 
         1 1 7 4 :   
 
 
 
     L i n e   1 2 4 2   [ m a t c h :   e p i c o r ] : 
 
         1 2 4 0 :                                           r e t u r n   [ ] ; 
 
         1 2 4 1 :                                   e l s e 
 
   > >   1 2 4 2 :                                           t h r o w   n e w   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ( ) ; 
 
         1 2 4 3 :                           } 
 
         1 2 4 4 :   
 
 
 
     L i n e   1 2 4 6   [ m a t c h :   e p i c o r ] : 
 
         1 2 4 4 :   
 
         1 2 4 5 :                   i f ( ! s i z e o f ( $ r e s )   & &   ! $ G e t A l l ) 
 
   > >   1 2 4 6 :                           t h r o w   n e w   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ( ) ; 
 
         1 2 4 7 :   
 
         1 2 4 8 :   
 
 
 
     L i n e   1 2 6 1   [ m a t c h :   e p i c o r ] : 
 
         1 2 5 9 :             *   @ p a r a m   s t r i n g | n u l l   $ W a r e h o u s e 
 
         1 2 6 0 :             *   @ r e t u r n   a r r a y 
 
   > >   1 2 6 1 :             *   @ t h r o w s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         1 2 6 2 :             * / 
 
         1 2 6 3 :           p u b l i c   f u n c t i o n   g e t I n v e n t o r y P r o c e s s e d R R D e t a i l s D a t a ( $ C u s t I D ,   $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
 
 
     L i n e   1 4 6 7   [ m a t c h :   e p i c o r ] : 
 
         1 4 6 5 :   
 
         1 4 6 6 :   
 
   > >   1 4 6 7 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _   .   " / e p i c o r e S Q L / C o i l A l l o c a t i o n . s q l " ) ; 
 
         1 4 6 8 :   
 
         1 4 6 9 :                   $ C u r r e n t D B   =   $ t h i s - > g e t C u r r e n t D a t a b a s e ( ) ; 
 
 
 
     L i n e   1 5 1 4   [ m a t c h :   e p i c o r ] : 
 
         1 5 1 2 :           p u b l i c   f u n c t i o n   g e t B O L ( $ b o l N u m ) 
 
         1 5 1 3 :           { 
 
   > >   1 5 1 4 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / g e t B O L . s q l " ) ; 
 
         1 5 1 5 :   
 
         1 5 1 6 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
 
 
     L i n e   1 5 2 1   [ m a t c h :   e p i c o r ] : 
 
         1 5 1 9 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ c u s t o m e r   * / 
 
         1 5 2 0 :                   $ c u s t o m e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 5 2 1 :                   $ c u s t o m e r   =   $ c u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         1 5 2 2 :                   $ q u e r y - > b i n d V a l u e ( ' : C U S T ' ,   $ c u s t o m e r ) ; 
 
         1 5 2 3 :   
 
 
 
     L i n e   1 5 3 7   [ m a t c h :   e p i c o r ] : 
 
         1 5 3 5 :           p u b l i c   f u n c t i o n   g e t J o b T r a v e l e r ( $ j o b N u m ) 
 
         1 5 3 6 :           { 
 
   > >   1 5 3 7 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / j o b T r a v e l e r . s q l " ) ; 
 
         1 5 3 8 :   
 
         1 5 3 9 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
 
 
     L i n e   1 5 6 4   [ m a t c h :   e p i c o r ] : 
 
         1 5 6 2 :                           $ J o b N u m [ $ k ]   =   " ' $ n u m ' " ; 
 
         1 5 6 3 :                   } 
 
   > >   1 5 6 4 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / g e t T o t a l C h a r g e s . s q l " ) ; 
 
         1 5 6 5 :                   $ s q l   =   s t r _ r e p l a c e ( ' $ t o t a l C h a r g e s ' ,   i m p l o d e ( " , " , $ J o b N u m ) ,   $ s q l ) ; 
 
         1 5 6 6 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
 
 
     L i n e   1 5 9 5   [ m a t c h :   e p i c o r ] : 
 
         1 5 9 3 :           p u b l i c   f u n c t i o n   g e t P a i n t L i n e s ( ) 
 
         1 5 9 4 :           { 
 
   > >   1 5 9 5 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p a i n t l i n e s . s q l " ) ; 
 
         1 5 9 6 :   
 
         1 5 9 7 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
 
 
     L i n e   1 6 0 6   [ m a t c h :   e p i c o r ] : 
 
         1 6 0 4 :           p u b l i c   f u n c t i o n   g e t J o b F o r P a i n t L i n e ( $ J o b N u m ,   $ P r o d C o d e ) 
 
         1 6 0 5 :           { 
 
   > >   1 6 0 6 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / g e t J o b F o r P a i n t L i n e . s q l " ) ; 
 
         1 6 0 7 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         1 6 0 8 :                   / / $ q u e r y - > b i n d P a r a m ( ' : C u s t I D ' ,   $ C u s t I D ) ; 
 
 
 
     L i n e   1 6 1 9   [ m a t c h :   e p i c o r ] : 
 
         1 6 1 7 :           p u b l i c   f u n c t i o n   g e t J o b ( $ J o b N u m ) 
 
         1 6 1 8 :           { 
 
   > >   1 6 1 9 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / g e t J o b . s q l " ) ; 
 
         1 6 2 0 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         1 6 2 1 :                   / / $ q u e r y - > b i n d P a r a m ( ' : C u s t I D ' ,   $ C u s t I D ) ; 
 
 
 
     L i n e   1 6 5 7   [ m a t c h :   e p i c o r ] : 
 
         1 6 5 5 :                   $ s q l   = " 
 
         1 6 5 6 :                   S E L E C T   E r p . P l a n t . P l a n t 
 
   > >   1 6 5 7 :                   F R O M   [ E p i c o r 1 0 L i v e ] . [ d b o ] . [ p o r t a l _ C o i l A c t i v i t y R e c e i p t s ] 
 
         1 6 5 8 :                   J O I N   E r p . P l a n t   O N   E r p . P l a n t . N a m e   =   d b o . p o r t a l _ C o i l A c t i v i t y R e c e i p t s . P l a n t N a m e 
 
         1 6 5 9 :                   W H E R E   P a c k i n g S l i p   =   : S L I P 
 
 
 
     L i n e   1 6 7 2   [ m a t c h :   e p i c o r ] : 
 
         1 6 7 0 :           p u b l i c   f u n c t i o n   g e t C l o s e d J o b ( $ J o b N u m ) 
 
         1 6 7 1 :           { 
 
   > >   1 6 7 2 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / g e t C l o s e d J o b . s q l " ) ; 
 
         1 6 7 3 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         1 6 7 4 :                   / / $ q u e r y - > b i n d P a r a m ( ' : C u s t I D ' ,   $ C u s t I D ) ; 
 
 
 
     L i n e   1 7 3 0   [ m a t c h :   e p i c o r ] : 
 
         1 7 2 8 :           { 
 
         1 7 2 9 :   
 
   > >   1 7 3 0 :                 / /   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _   .   " / e p i c o r e S Q L / p o r t a l _ S h i p m e n t s . s q l " ) ; 
 
         1 7 3 1 :   
 
         1 7 3 2 :   
 
 
 
     L i n e   1 7 5 6   [ m a t c h :   e p i c o r ] : 
 
         1 7 5 4 :           { 
 
         1 7 5 5 :   
 
   > >   1 7 5 6 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p o r t a l _ S h i p m e n t s T o p 5 . s q l " ) ; 
 
         1 7 5 7 :   
 
         1 7 5 8 :   
 
 
 
     L i n e   1 7 9 5   [ m a t c h :   e p i c o r ] : 
 
         1 7 9 3 :   
 
         1 7 9 4 :   
 
   > >   1 7 9 5 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p o r t a l _ O r d e r s . s q l " ) ; 
 
         1 7 9 6 :   
 
         1 7 9 7 :   
 
 
 
     L i n e   1 9 4 4   [ m a t c h :   e p i c o r ] : 
 
         1 9 4 2 :                                                                                     O R D E R   B Y   D a t e U s e d ,   V o r t e q P a r t N u m ,   J o b N u m ,   L o t N u m ,   W e i g h t   D E S C " ) ;   * / 
 
         1 9 4 3 :   
 
   > >   1 9 4 4 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p o r t a l _ C o i l A c t i v i t y U s a g e . s q l " ) ; 
 
         1 9 4 5 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         1 9 4 6 :   
 
 
 
     L i n e   2 0 0 3   [ m a t c h :   e p i c o r ] : 
 
         2 0 0 1 :           { 
 
         2 0 0 2 :                   i f   ( $ C u s t I D   = =   " V G L " )   { 
 
   > >   2 0 0 3 :                           $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / V G L C o i l R e c e i p t s D a t a . s q l " ) ; 
 
         2 0 0 4 :                           $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         2 0 0 5 :   
 
 
 
     L i n e   2 0 5 0   [ m a t c h :   e p i c o r ] : 
 
         2 0 4 8 :           { 
 
         2 0 4 9 :   
 
   > >   2 0 5 0 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / g e t O r d e r s F o r C u s t o m e r O n O r A f t e r D a t e . s q l " ) ; 
 
         2 0 5 1 :   
 
         2 0 5 2 :   
 
 
 
     L i n e   3   [ m a t c h :   E p i c o r ] : 
 
         1 :   < ? p h p   n a m e s p a c e   A p p \ S e r v i c e s ; 
 
         2 :   
 
   > >   3 :   u s e   A p p \ E x c e p t i o n s \ N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ; 
 
         4 :   u s e   D o c t r i n e \ D B A L \ E x c e p t i o n \ D r i v e r E x c e p t i o n ; 
 
         5 :   u s e   I l l u m i n a t e \ S u p p o r t \ F a c a d e s \ S e s s i o n ; 
 
 
 
     L i n e   1 2   [ m a t c h :   E p i c o r ] : 
 
         1 0 :   u s e   s t d C l a s s ; 
 
         1 1 :   
 
   > >   1 2 :   c l a s s   E p i c o r D a t a b a s e 
 
         1 3 :   { 
 
         1 4 :           / * *   @ v a r   \ D o c t r i n e \ D B A L \ C o n n e c t i o n     * / 
 
 
 
     L i n e   2 5   [ m a t c h :   E p i c o r ] : 
 
         2 3 :           p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( E M C o n t a i n e r   $ E M s ) 
 
         2 4 :           { 
 
   > >   2 5 :                   $ t h i s - > c o n n R O   =   $ E M s - > g e t E M ( ' e p i c o r _ r o ' ) - > g e t C o n n e c t i o n ( ) ; 
 
         2 6 :           } 
 
         2 7 :   
 
 
 
     L i n e   6 3   [ m a t c h :   E p i c o r ] : 
 
         6 1 :   	 	 A N D   [ C u s t o m e r ] . [ C u s t I D ]   =   : C u s t o m e r * / 
 
         6 2 :   
 
   > >   6 3 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / C o i l B y C o i l . s q l " ) ; 
 
         6 4 :   
 
         6 5 :                   / / d d ( $ s q l ) ; 
 
 
 
     L i n e   2 1 1   [ m a t c h :   E p i c o r ] : 
 
         2 0 9 :   
 
         2 1 0 :   
 
   > >   2 1 1 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / A P - C h e c k P r o c e s s i n g / C h e c k L i n e s . s q l " ) ; 
 
         2 1 2 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         2 1 3 :   
 
 
 
     L i n e   3 4 1   [ m a t c h :   E p i c o r ] : 
 
         3 3 9 :           p u b l i c   f u n c t i o n   g e t A c k n o w l e d g e m e n t ( $ c u s t o m e r ,   $ p o N u m b e r   =   n u l l ,   $ o r d e r N u m   =   n u l l   ) 
 
         3 4 0 :           { 
 
   > >   3 4 1 :                   $ s q l = f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / S a l e s O r d e r . s q l " ) ; 
 
         3 4 2 :   
 
         3 4 3 :   
 
 
 
     L i n e   4 4 9   [ m a t c h :   E p i c o r ] : 
 
         4 4 7 :           p u b l i c   f u n c t i o n   g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ C u s t I D ) 
 
         4 4 8 :           { 
 
   > >   4 4 9 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / J o b S t a t u s B y P l a n t B y C u s t o m e r . s q l " ) ; 
 
         4 5 0 :   
 
         4 5 1 :   
 
 
 
     L i n e   4 8 4   [ m a t c h :   E p i c o r ] : 
 
         4 8 2 :                   $ c u s t I D s = [ ] ; 
 
         4 8 3 :   
 
   > >   4 8 4 :                   f o r e a c h   ( $ C u s t o m e r s   a s   $ e p i c o r e C u s t o m e r I D   = >   $ v ) 
 
         4 8 5 :                   { 
 
         4 8 6 :                           $ c u s t I D s [ ] = " ' $ e p i c o r e C u s t o m e r I D ' " ; 
 
 
 
     L i n e   4 8 6   [ m a t c h :   E p i c o r ] : 
 
         4 8 4 :                   f o r e a c h   ( $ C u s t o m e r s   a s   $ e p i c o r e C u s t o m e r I D   = >   $ v ) 
 
         4 8 5 :                   { 
 
   > >   4 8 6 :                           $ c u s t I D s [ ] = " ' $ e p i c o r e C u s t o m e r I D ' " ; 
 
         4 8 7 :                   } 
 
         4 8 8 :   
 
 
 
     L i n e   5 2 0   [ m a t c h :   E p i c o r ] : 
 
         5 1 8 :   S E T   C O M . I s D e a c t i v a t e d   =   0 
 
         5 1 9 :   F R O M   V o r t e q P o r t a l . d b o . q u e s t _ C o m p a n y   C O M 
 
   > >   5 2 0 :           J O I N   E p i c o r 1 0 L i v e . E r p . C u s t o m e r   C U S T 
 
         5 2 1 :                   O N   C U S T . C u s t I D   =   C O M . E p i c o r C u s t I D 
 
         5 2 2 :   W H E R E   C O M . I s D e a c t i v a t e d   =   1 ; ' ) ; 
 
 
 
     L i n e   5 2 1   [ m a t c h :   E p i c o r ] : 
 
         5 1 9 :   F R O M   V o r t e q P o r t a l . d b o . q u e s t _ C o m p a n y   C O M 
 
         5 2 0 :           J O I N   E p i c o r 1 0 L i v e . E r p . C u s t o m e r   C U S T 
 
   > >   5 2 1 :                   O N   C U S T . C u s t I D   =   C O M . E p i c o r C u s t I D 
 
         5 2 2 :   W H E R E   C O M . I s D e a c t i v a t e d   =   1 ; ' ) ; 
 
         5 2 3 :   
 
 
 
     L i n e   8 7 8   [ m a t c h :   E p i c o r ] : 
 
         8 7 6 :             *   @ p a r a m   s t r i n g | n u l l   $ W a r e h o u s e 
 
         8 7 7 :             *   @ r e t u r n   a r r a y 
 
   > >   8 7 8 :             *   @ t h r o w s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         8 7 9 :             * / 
 
         8 8 0 :   
 
 
 
     L i n e   9 2 1   [ m a t c h :   E p i c o r ] : 
 
         9 1 9 :             *   @ p a r a m   s t r i n g | n u l l   $ W a r e h o u s e 
 
         9 2 0 :             *   @ r e t u r n   a r r a y 
 
   > >   9 2 1 :             *   @ t h r o w s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         9 2 2 :             * / 
 
         9 2 3 :           p u b l i c   f u n c t i o n   g e t I n v e n t o r y U n p r o c e s s e d R R D e t a i l s D a t a ( $ C u s t I D ,   $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
 
 
     L i n e   9 5 8   [ m a t c h :   E p i c o r ] : 
 
         9 5 6 :             *   @ p a r a m   s t r i n g | n u l l   $ W a r e h o u s e 
 
         9 5 7 :             *   @ r e t u r n   a r r a y 
 
   > >   9 5 8 :             *   @ t h r o w s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         9 5 9 :             * / 
 
         9 6 0 :           p u b l i c   f u n c t i o n   g e t I n v e n t o r y W o r k I n P r o g r e s s D e t a i l s D a t a ( $ C u s t I D ,   $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
 
 
     L i n e   9 7 0   [ m a t c h :   E p i c o r ] : 
 
         9 6 8 :   
 
         9 6 9 :                           t r y   { 
 
   > >   9 7 0 :                                 / *   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p r o c e s s e d I n v e n t o r y . s q l " ) ; 
 
         9 7 1 :                                   $ s q l   =   s t r _ r e p l a c e ( ' ~ D A T A B A S E _ N A M E ~ ' ,   ' [ ' . \ D B : : g e t D a t a b a s e N a m e ( ) . ' ] ' ,   $ s q l ) ; 
 
         9 7 2 :   
 
 
 
     L i n e   1 0 4 0   [ m a t c h :   E p i c o r ] : 
 
         1 0 3 8 :                                           r e t u r n   [ ] ; 
 
         1 0 3 9 :                                   e l s e 
 
   > >   1 0 4 0 :                                           t h r o w   n e w   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ( ) ; 
 
         1 0 4 1 :                           } 
 
         1 0 4 2 :   
 
 
 
     L i n e   1 0 4 4   [ m a t c h :   E p i c o r ] : 
 
         1 0 4 2 :   
 
         1 0 4 3 :                   i f ( ! s i z e o f ( $ r e s )   & &   ! $ G e t A l l ) 
 
   > >   1 0 4 4 :                           t h r o w   n e w   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ( ) ; 
 
         1 0 4 5 :   
 
         1 0 4 6 :   
 
 
 
     L i n e   1 0 5 9   [ m a t c h :   E p i c o r ] : 
 
         1 0 5 7 :             *   @ p a r a m   s t r i n g | n u l l   $ W a r e h o u s e 
 
         1 0 5 8 :             *   @ r e t u r n   a r r a y 
 
   > >   1 0 5 9 :             *   @ t h r o w s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         1 0 6 0 :             * / 
 
         1 0 6 1 :           p u b l i c   f u n c t i o n   g e t I n v e n t o r y F i n i s h e d G o o d s D e t a i l s D a t a ( $ C u s t I D ,   $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
 
 
     L i n e   1 0 7 1   [ m a t c h :   E p i c o r ] : 
 
         1 0 6 9 :   
 
         1 0 7 0 :                           t r y   { 
 
   > >   1 0 7 1 :                                 / *   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p r o c e s s e d I n v e n t o r y . s q l " ) ; 
 
         1 0 7 2 :                                   $ s q l   =   s t r _ r e p l a c e ( ' ~ D A T A B A S E _ N A M E ~ ' ,   ' [ ' . \ D B : : g e t D a t a b a s e N a m e ( ) . ' ] ' ,   $ s q l ) ; 
 
         1 0 7 3 :   
 
 
 
     L i n e   1 1 4 1   [ m a t c h :   E p i c o r ] : 
 
         1 1 3 9 :                                           r e t u r n   [ ] ; 
 
         1 1 4 0 :                                   e l s e 
 
   > >   1 1 4 1 :                                           t h r o w   n e w   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ( ) ; 
 
         1 1 4 2 :                           } 
 
         1 1 4 3 :   
 
 
 
     L i n e   1 1 4 5   [ m a t c h :   E p i c o r ] : 
 
         1 1 4 3 :   
 
         1 1 4 4 :                   i f ( ! s i z e o f ( $ r e s )   & &   ! $ G e t A l l ) 
 
   > >   1 1 4 5 :                           t h r o w   n e w   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ( ) ; 
 
         1 1 4 6 :   
 
         1 1 4 7 :   
 
 
 
     L i n e   1 1 6 0   [ m a t c h :   E p i c o r ] : 
 
         1 1 5 8 :             *   @ p a r a m   s t r i n g | n u l l   $ W a r e h o u s e 
 
         1 1 5 9 :             *   @ r e t u r n   a r r a y 
 
   > >   1 1 6 0 :             *   @ t h r o w s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         1 1 6 1 :             * / 
 
         1 1 6 2 :           p u b l i c   f u n c t i o n   g e t I n v e n t o r y P r o c e s s e d O t h e r D e t a i l s D a t a ( $ C u s t I D ,   $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
 
 
     L i n e   1 1 7 2   [ m a t c h :   E p i c o r ] : 
 
         1 1 7 0 :   
 
         1 1 7 1 :                           t r y   { 
 
   > >   1 1 7 2 :                                 / *   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p r o c e s s e d I n v e n t o r y . s q l " ) ; 
 
         1 1 7 3 :                                   $ s q l   =   s t r _ r e p l a c e ( ' ~ D A T A B A S E _ N A M E ~ ' ,   ' [ ' . \ D B : : g e t D a t a b a s e N a m e ( ) . ' ] ' ,   $ s q l ) ; 
 
         1 1 7 4 :   
 
 
 
     L i n e   1 2 4 2   [ m a t c h :   E p i c o r ] : 
 
         1 2 4 0 :                                           r e t u r n   [ ] ; 
 
         1 2 4 1 :                                   e l s e 
 
   > >   1 2 4 2 :                                           t h r o w   n e w   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ( ) ; 
 
         1 2 4 3 :                           } 
 
         1 2 4 4 :   
 
 
 
     L i n e   1 2 4 6   [ m a t c h :   E p i c o r ] : 
 
         1 2 4 4 :   
 
         1 2 4 5 :                   i f ( ! s i z e o f ( $ r e s )   & &   ! $ G e t A l l ) 
 
   > >   1 2 4 6 :                           t h r o w   n e w   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ( ) ; 
 
         1 2 4 7 :   
 
         1 2 4 8 :   
 
 
 
     L i n e   1 2 6 1   [ m a t c h :   E p i c o r ] : 
 
         1 2 5 9 :             *   @ p a r a m   s t r i n g | n u l l   $ W a r e h o u s e 
 
         1 2 6 0 :             *   @ r e t u r n   a r r a y 
 
   > >   1 2 6 1 :             *   @ t h r o w s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         1 2 6 2 :             * / 
 
         1 2 6 3 :           p u b l i c   f u n c t i o n   g e t I n v e n t o r y P r o c e s s e d R R D e t a i l s D a t a ( $ C u s t I D ,   $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
 
 
     L i n e   1 4 6 7   [ m a t c h :   E p i c o r ] : 
 
         1 4 6 5 :   
 
         1 4 6 6 :   
 
   > >   1 4 6 7 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _   .   " / e p i c o r e S Q L / C o i l A l l o c a t i o n . s q l " ) ; 
 
         1 4 6 8 :   
 
         1 4 6 9 :                   $ C u r r e n t D B   =   $ t h i s - > g e t C u r r e n t D a t a b a s e ( ) ; 
 
 
 
     L i n e   1 5 1 4   [ m a t c h :   E p i c o r ] : 
 
         1 5 1 2 :           p u b l i c   f u n c t i o n   g e t B O L ( $ b o l N u m ) 
 
         1 5 1 3 :           { 
 
   > >   1 5 1 4 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / g e t B O L . s q l " ) ; 
 
         1 5 1 5 :   
 
         1 5 1 6 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
 
 
     L i n e   1 5 2 1   [ m a t c h :   E p i c o r ] : 
 
         1 5 1 9 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ c u s t o m e r   * / 
 
         1 5 2 0 :                   $ c u s t o m e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 5 2 1 :                   $ c u s t o m e r   =   $ c u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         1 5 2 2 :                   $ q u e r y - > b i n d V a l u e ( ' : C U S T ' ,   $ c u s t o m e r ) ; 
 
         1 5 2 3 :   
 
 
 
     L i n e   1 5 3 7   [ m a t c h :   E p i c o r ] : 
 
         1 5 3 5 :           p u b l i c   f u n c t i o n   g e t J o b T r a v e l e r ( $ j o b N u m ) 
 
         1 5 3 6 :           { 
 
   > >   1 5 3 7 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / j o b T r a v e l e r . s q l " ) ; 
 
         1 5 3 8 :   
 
         1 5 3 9 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
 
 
     L i n e   1 5 6 4   [ m a t c h :   E p i c o r ] : 
 
         1 5 6 2 :                           $ J o b N u m [ $ k ]   =   " ' $ n u m ' " ; 
 
         1 5 6 3 :                   } 
 
   > >   1 5 6 4 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / g e t T o t a l C h a r g e s . s q l " ) ; 
 
         1 5 6 5 :                   $ s q l   =   s t r _ r e p l a c e ( ' $ t o t a l C h a r g e s ' ,   i m p l o d e ( " , " , $ J o b N u m ) ,   $ s q l ) ; 
 
         1 5 6 6 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
 
 
     L i n e   1 5 9 5   [ m a t c h :   E p i c o r ] : 
 
         1 5 9 3 :           p u b l i c   f u n c t i o n   g e t P a i n t L i n e s ( ) 
 
         1 5 9 4 :           { 
 
   > >   1 5 9 5 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p a i n t l i n e s . s q l " ) ; 
 
         1 5 9 6 :   
 
         1 5 9 7 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
 
 
     L i n e   1 6 0 6   [ m a t c h :   E p i c o r ] : 
 
         1 6 0 4 :           p u b l i c   f u n c t i o n   g e t J o b F o r P a i n t L i n e ( $ J o b N u m ,   $ P r o d C o d e ) 
 
         1 6 0 5 :           { 
 
   > >   1 6 0 6 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / g e t J o b F o r P a i n t L i n e . s q l " ) ; 
 
         1 6 0 7 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         1 6 0 8 :                   / / $ q u e r y - > b i n d P a r a m ( ' : C u s t I D ' ,   $ C u s t I D ) ; 
 
 
 
     L i n e   1 6 1 9   [ m a t c h :   E p i c o r ] : 
 
         1 6 1 7 :           p u b l i c   f u n c t i o n   g e t J o b ( $ J o b N u m ) 
 
         1 6 1 8 :           { 
 
   > >   1 6 1 9 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / g e t J o b . s q l " ) ; 
 
         1 6 2 0 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         1 6 2 1 :                   / / $ q u e r y - > b i n d P a r a m ( ' : C u s t I D ' ,   $ C u s t I D ) ; 
 
 
 
     L i n e   1 6 5 7   [ m a t c h :   E p i c o r ] : 
 
         1 6 5 5 :                   $ s q l   = " 
 
         1 6 5 6 :                   S E L E C T   E r p . P l a n t . P l a n t 
 
   > >   1 6 5 7 :                   F R O M   [ E p i c o r 1 0 L i v e ] . [ d b o ] . [ p o r t a l _ C o i l A c t i v i t y R e c e i p t s ] 
 
         1 6 5 8 :                   J O I N   E r p . P l a n t   O N   E r p . P l a n t . N a m e   =   d b o . p o r t a l _ C o i l A c t i v i t y R e c e i p t s . P l a n t N a m e 
 
         1 6 5 9 :                   W H E R E   P a c k i n g S l i p   =   : S L I P 
 
 
 
     L i n e   1 6 7 2   [ m a t c h :   E p i c o r ] : 
 
         1 6 7 0 :           p u b l i c   f u n c t i o n   g e t C l o s e d J o b ( $ J o b N u m ) 
 
         1 6 7 1 :           { 
 
   > >   1 6 7 2 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / g e t C l o s e d J o b . s q l " ) ; 
 
         1 6 7 3 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         1 6 7 4 :                   / / $ q u e r y - > b i n d P a r a m ( ' : C u s t I D ' ,   $ C u s t I D ) ; 
 
 
 
     L i n e   1 7 3 0   [ m a t c h :   E p i c o r ] : 
 
         1 7 2 8 :           { 
 
         1 7 2 9 :   
 
   > >   1 7 3 0 :                 / /   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _   .   " / e p i c o r e S Q L / p o r t a l _ S h i p m e n t s . s q l " ) ; 
 
         1 7 3 1 :   
 
         1 7 3 2 :   
 
 
 
     L i n e   1 7 5 6   [ m a t c h :   E p i c o r ] : 
 
         1 7 5 4 :           { 
 
         1 7 5 5 :   
 
   > >   1 7 5 6 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p o r t a l _ S h i p m e n t s T o p 5 . s q l " ) ; 
 
         1 7 5 7 :   
 
         1 7 5 8 :   
 
 
 
     L i n e   1 7 9 5   [ m a t c h :   E p i c o r ] : 
 
         1 7 9 3 :   
 
         1 7 9 4 :   
 
   > >   1 7 9 5 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p o r t a l _ O r d e r s . s q l " ) ; 
 
         1 7 9 6 :   
 
         1 7 9 7 :   
 
 
 
     L i n e   1 9 4 4   [ m a t c h :   E p i c o r ] : 
 
         1 9 4 2 :                                                                                     O R D E R   B Y   D a t e U s e d ,   V o r t e q P a r t N u m ,   J o b N u m ,   L o t N u m ,   W e i g h t   D E S C " ) ;   * / 
 
         1 9 4 3 :   
 
   > >   1 9 4 4 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p o r t a l _ C o i l A c t i v i t y U s a g e . s q l " ) ; 
 
         1 9 4 5 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         1 9 4 6 :   
 
 
 
     L i n e   2 0 0 3   [ m a t c h :   E p i c o r ] : 
 
         2 0 0 1 :           { 
 
         2 0 0 2 :                   i f   ( $ C u s t I D   = =   " V G L " )   { 
 
   > >   2 0 0 3 :                           $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / V G L C o i l R e c e i p t s D a t a . s q l " ) ; 
 
         2 0 0 4 :                           $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         2 0 0 5 :   
 
 
 
     L i n e   2 0 5 0   [ m a t c h :   E p i c o r ] : 
 
         2 0 4 8 :           { 
 
         2 0 4 9 :   
 
   > >   2 0 5 0 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / g e t O r d e r s F o r C u s t o m e r O n O r A f t e r D a t e . s q l " ) ; 
 
         2 0 5 1 :   
 
         2 0 5 2 :   
 
 
 
     L i n e   3   [ m a t c h :   E P I C O R ] : 
 
         1 :   < ? p h p   n a m e s p a c e   A p p \ S e r v i c e s ; 
 
         2 :   
 
   > >   3 :   u s e   A p p \ E x c e p t i o n s \ N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ; 
 
         4 :   u s e   D o c t r i n e \ D B A L \ E x c e p t i o n \ D r i v e r E x c e p t i o n ; 
 
         5 :   u s e   I l l u m i n a t e \ S u p p o r t \ F a c a d e s \ S e s s i o n ; 
 
 
 
     L i n e   1 2   [ m a t c h :   E P I C O R ] : 
 
         1 0 :   u s e   s t d C l a s s ; 
 
         1 1 :   
 
   > >   1 2 :   c l a s s   E p i c o r D a t a b a s e 
 
         1 3 :   { 
 
         1 4 :           / * *   @ v a r   \ D o c t r i n e \ D B A L \ C o n n e c t i o n     * / 
 
 
 
     L i n e   2 5   [ m a t c h :   E P I C O R ] : 
 
         2 3 :           p u b l i c   f u n c t i o n   _ _ c o n s t r u c t ( E M C o n t a i n e r   $ E M s ) 
 
         2 4 :           { 
 
   > >   2 5 :                   $ t h i s - > c o n n R O   =   $ E M s - > g e t E M ( ' e p i c o r _ r o ' ) - > g e t C o n n e c t i o n ( ) ; 
 
         2 6 :           } 
 
         2 7 :   
 
 
 
     L i n e   6 3   [ m a t c h :   E P I C O R ] : 
 
         6 1 :   	 	 A N D   [ C u s t o m e r ] . [ C u s t I D ]   =   : C u s t o m e r * / 
 
         6 2 :   
 
   > >   6 3 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / C o i l B y C o i l . s q l " ) ; 
 
         6 4 :   
 
         6 5 :                   / / d d ( $ s q l ) ; 
 
 
 
     L i n e   2 1 1   [ m a t c h :   E P I C O R ] : 
 
         2 0 9 :   
 
         2 1 0 :   
 
   > >   2 1 1 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / A P - C h e c k P r o c e s s i n g / C h e c k L i n e s . s q l " ) ; 
 
         2 1 2 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         2 1 3 :   
 
 
 
     L i n e   3 4 1   [ m a t c h :   E P I C O R ] : 
 
         3 3 9 :           p u b l i c   f u n c t i o n   g e t A c k n o w l e d g e m e n t ( $ c u s t o m e r ,   $ p o N u m b e r   =   n u l l ,   $ o r d e r N u m   =   n u l l   ) 
 
         3 4 0 :           { 
 
   > >   3 4 1 :                   $ s q l = f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / S a l e s O r d e r . s q l " ) ; 
 
         3 4 2 :   
 
         3 4 3 :   
 
 
 
     L i n e   4 4 9   [ m a t c h :   E P I C O R ] : 
 
         4 4 7 :           p u b l i c   f u n c t i o n   g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ C u s t I D ) 
 
         4 4 8 :           { 
 
   > >   4 4 9 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / J o b S t a t u s B y P l a n t B y C u s t o m e r . s q l " ) ; 
 
         4 5 0 :   
 
         4 5 1 :   
 
 
 
     L i n e   4 8 4   [ m a t c h :   E P I C O R ] : 
 
         4 8 2 :                   $ c u s t I D s = [ ] ; 
 
         4 8 3 :   
 
   > >   4 8 4 :                   f o r e a c h   ( $ C u s t o m e r s   a s   $ e p i c o r e C u s t o m e r I D   = >   $ v ) 
 
         4 8 5 :                   { 
 
         4 8 6 :                           $ c u s t I D s [ ] = " ' $ e p i c o r e C u s t o m e r I D ' " ; 
 
 
 
     L i n e   4 8 6   [ m a t c h :   E P I C O R ] : 
 
         4 8 4 :                   f o r e a c h   ( $ C u s t o m e r s   a s   $ e p i c o r e C u s t o m e r I D   = >   $ v ) 
 
         4 8 5 :                   { 
 
   > >   4 8 6 :                           $ c u s t I D s [ ] = " ' $ e p i c o r e C u s t o m e r I D ' " ; 
 
         4 8 7 :                   } 
 
         4 8 8 :   
 
 
 
     L i n e   5 2 0   [ m a t c h :   E P I C O R ] : 
 
         5 1 8 :   S E T   C O M . I s D e a c t i v a t e d   =   0 
 
         5 1 9 :   F R O M   V o r t e q P o r t a l . d b o . q u e s t _ C o m p a n y   C O M 
 
   > >   5 2 0 :           J O I N   E p i c o r 1 0 L i v e . E r p . C u s t o m e r   C U S T 
 
         5 2 1 :                   O N   C U S T . C u s t I D   =   C O M . E p i c o r C u s t I D 
 
         5 2 2 :   W H E R E   C O M . I s D e a c t i v a t e d   =   1 ; ' ) ; 
 
 
 
     L i n e   5 2 1   [ m a t c h :   E P I C O R ] : 
 
         5 1 9 :   F R O M   V o r t e q P o r t a l . d b o . q u e s t _ C o m p a n y   C O M 
 
         5 2 0 :           J O I N   E p i c o r 1 0 L i v e . E r p . C u s t o m e r   C U S T 
 
   > >   5 2 1 :                   O N   C U S T . C u s t I D   =   C O M . E p i c o r C u s t I D 
 
         5 2 2 :   W H E R E   C O M . I s D e a c t i v a t e d   =   1 ; ' ) ; 
 
         5 2 3 :   
 
 
 
     L i n e   8 7 8   [ m a t c h :   E P I C O R ] : 
 
         8 7 6 :             *   @ p a r a m   s t r i n g | n u l l   $ W a r e h o u s e 
 
         8 7 7 :             *   @ r e t u r n   a r r a y 
 
   > >   8 7 8 :             *   @ t h r o w s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         8 7 9 :             * / 
 
         8 8 0 :   
 
 
 
     L i n e   9 2 1   [ m a t c h :   E P I C O R ] : 
 
         9 1 9 :             *   @ p a r a m   s t r i n g | n u l l   $ W a r e h o u s e 
 
         9 2 0 :             *   @ r e t u r n   a r r a y 
 
   > >   9 2 1 :             *   @ t h r o w s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         9 2 2 :             * / 
 
         9 2 3 :           p u b l i c   f u n c t i o n   g e t I n v e n t o r y U n p r o c e s s e d R R D e t a i l s D a t a ( $ C u s t I D ,   $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
 
 
     L i n e   9 5 8   [ m a t c h :   E P I C O R ] : 
 
         9 5 6 :             *   @ p a r a m   s t r i n g | n u l l   $ W a r e h o u s e 
 
         9 5 7 :             *   @ r e t u r n   a r r a y 
 
   > >   9 5 8 :             *   @ t h r o w s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         9 5 9 :             * / 
 
         9 6 0 :           p u b l i c   f u n c t i o n   g e t I n v e n t o r y W o r k I n P r o g r e s s D e t a i l s D a t a ( $ C u s t I D ,   $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
 
 
     L i n e   9 7 0   [ m a t c h :   E P I C O R ] : 
 
         9 6 8 :   
 
         9 6 9 :                           t r y   { 
 
   > >   9 7 0 :                                 / *   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p r o c e s s e d I n v e n t o r y . s q l " ) ; 
 
         9 7 1 :                                   $ s q l   =   s t r _ r e p l a c e ( ' ~ D A T A B A S E _ N A M E ~ ' ,   ' [ ' . \ D B : : g e t D a t a b a s e N a m e ( ) . ' ] ' ,   $ s q l ) ; 
 
         9 7 2 :   
 
 
 
     L i n e   1 0 4 0   [ m a t c h :   E P I C O R ] : 
 
         1 0 3 8 :                                           r e t u r n   [ ] ; 
 
         1 0 3 9 :                                   e l s e 
 
   > >   1 0 4 0 :                                           t h r o w   n e w   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ( ) ; 
 
         1 0 4 1 :                           } 
 
         1 0 4 2 :   
 
 
 
     L i n e   1 0 4 4   [ m a t c h :   E P I C O R ] : 
 
         1 0 4 2 :   
 
         1 0 4 3 :                   i f ( ! s i z e o f ( $ r e s )   & &   ! $ G e t A l l ) 
 
   > >   1 0 4 4 :                           t h r o w   n e w   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ( ) ; 
 
         1 0 4 5 :   
 
         1 0 4 6 :   
 
 
 
     L i n e   1 0 5 9   [ m a t c h :   E P I C O R ] : 
 
         1 0 5 7 :             *   @ p a r a m   s t r i n g | n u l l   $ W a r e h o u s e 
 
         1 0 5 8 :             *   @ r e t u r n   a r r a y 
 
   > >   1 0 5 9 :             *   @ t h r o w s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         1 0 6 0 :             * / 
 
         1 0 6 1 :           p u b l i c   f u n c t i o n   g e t I n v e n t o r y F i n i s h e d G o o d s D e t a i l s D a t a ( $ C u s t I D ,   $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
 
 
     L i n e   1 0 7 1   [ m a t c h :   E P I C O R ] : 
 
         1 0 6 9 :   
 
         1 0 7 0 :                           t r y   { 
 
   > >   1 0 7 1 :                                 / *   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p r o c e s s e d I n v e n t o r y . s q l " ) ; 
 
         1 0 7 2 :                                   $ s q l   =   s t r _ r e p l a c e ( ' ~ D A T A B A S E _ N A M E ~ ' ,   ' [ ' . \ D B : : g e t D a t a b a s e N a m e ( ) . ' ] ' ,   $ s q l ) ; 
 
         1 0 7 3 :   
 
 
 
     L i n e   1 1 4 1   [ m a t c h :   E P I C O R ] : 
 
         1 1 3 9 :                                           r e t u r n   [ ] ; 
 
         1 1 4 0 :                                   e l s e 
 
   > >   1 1 4 1 :                                           t h r o w   n e w   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ( ) ; 
 
         1 1 4 2 :                           } 
 
         1 1 4 3 :   
 
 
 
     L i n e   1 1 4 5   [ m a t c h :   E P I C O R ] : 
 
         1 1 4 3 :   
 
         1 1 4 4 :                   i f ( ! s i z e o f ( $ r e s )   & &   ! $ G e t A l l ) 
 
   > >   1 1 4 5 :                           t h r o w   n e w   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ( ) ; 
 
         1 1 4 6 :   
 
         1 1 4 7 :   
 
 
 
     L i n e   1 1 6 0   [ m a t c h :   E P I C O R ] : 
 
         1 1 5 8 :             *   @ p a r a m   s t r i n g | n u l l   $ W a r e h o u s e 
 
         1 1 5 9 :             *   @ r e t u r n   a r r a y 
 
   > >   1 1 6 0 :             *   @ t h r o w s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         1 1 6 1 :             * / 
 
         1 1 6 2 :           p u b l i c   f u n c t i o n   g e t I n v e n t o r y P r o c e s s e d O t h e r D e t a i l s D a t a ( $ C u s t I D ,   $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
 
 
     L i n e   1 1 7 2   [ m a t c h :   E P I C O R ] : 
 
         1 1 7 0 :   
 
         1 1 7 1 :                           t r y   { 
 
   > >   1 1 7 2 :                                 / *   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p r o c e s s e d I n v e n t o r y . s q l " ) ; 
 
         1 1 7 3 :                                   $ s q l   =   s t r _ r e p l a c e ( ' ~ D A T A B A S E _ N A M E ~ ' ,   ' [ ' . \ D B : : g e t D a t a b a s e N a m e ( ) . ' ] ' ,   $ s q l ) ; 
 
         1 1 7 4 :   
 
 
 
     L i n e   1 2 4 2   [ m a t c h :   E P I C O R ] : 
 
         1 2 4 0 :                                           r e t u r n   [ ] ; 
 
         1 2 4 1 :                                   e l s e 
 
   > >   1 2 4 2 :                                           t h r o w   n e w   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ( ) ; 
 
         1 2 4 3 :                           } 
 
         1 2 4 4 :   
 
 
 
     L i n e   1 2 4 6   [ m a t c h :   E P I C O R ] : 
 
         1 2 4 4 :   
 
         1 2 4 5 :                   i f ( ! s i z e o f ( $ r e s )   & &   ! $ G e t A l l ) 
 
   > >   1 2 4 6 :                           t h r o w   n e w   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y ( ) ; 
 
         1 2 4 7 :   
 
         1 2 4 8 :   
 
 
 
     L i n e   1 2 6 1   [ m a t c h :   E P I C O R ] : 
 
         1 2 5 9 :             *   @ p a r a m   s t r i n g | n u l l   $ W a r e h o u s e 
 
         1 2 6 0 :             *   @ r e t u r n   a r r a y 
 
   > >   1 2 6 1 :             *   @ t h r o w s   N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         1 2 6 2 :             * / 
 
         1 2 6 3 :           p u b l i c   f u n c t i o n   g e t I n v e n t o r y P r o c e s s e d R R D e t a i l s D a t a ( $ C u s t I D ,   $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
 
 
     L i n e   1 4 6 7   [ m a t c h :   E P I C O R ] : 
 
         1 4 6 5 :   
 
         1 4 6 6 :   
 
   > >   1 4 6 7 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _   .   " / e p i c o r e S Q L / C o i l A l l o c a t i o n . s q l " ) ; 
 
         1 4 6 8 :   
 
         1 4 6 9 :                   $ C u r r e n t D B   =   $ t h i s - > g e t C u r r e n t D a t a b a s e ( ) ; 
 
 
 
     L i n e   1 5 1 4   [ m a t c h :   E P I C O R ] : 
 
         1 5 1 2 :           p u b l i c   f u n c t i o n   g e t B O L ( $ b o l N u m ) 
 
         1 5 1 3 :           { 
 
   > >   1 5 1 4 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / g e t B O L . s q l " ) ; 
 
         1 5 1 5 :   
 
         1 5 1 6 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
 
 
     L i n e   1 5 2 1   [ m a t c h :   E P I C O R ] : 
 
         1 5 1 9 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ c u s t o m e r   * / 
 
         1 5 2 0 :                   $ c u s t o m e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
   > >   1 5 2 1 :                   $ c u s t o m e r   =   $ c u s t o m e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         1 5 2 2 :                   $ q u e r y - > b i n d V a l u e ( ' : C U S T ' ,   $ c u s t o m e r ) ; 
 
         1 5 2 3 :   
 
 
 
     L i n e   1 5 3 7   [ m a t c h :   E P I C O R ] : 
 
         1 5 3 5 :           p u b l i c   f u n c t i o n   g e t J o b T r a v e l e r ( $ j o b N u m ) 
 
         1 5 3 6 :           { 
 
   > >   1 5 3 7 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / j o b T r a v e l e r . s q l " ) ; 
 
         1 5 3 8 :   
 
         1 5 3 9 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
 
 
     L i n e   1 5 6 4   [ m a t c h :   E P I C O R ] : 
 
         1 5 6 2 :                           $ J o b N u m [ $ k ]   =   " ' $ n u m ' " ; 
 
         1 5 6 3 :                   } 
 
   > >   1 5 6 4 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / g e t T o t a l C h a r g e s . s q l " ) ; 
 
         1 5 6 5 :                   $ s q l   =   s t r _ r e p l a c e ( ' $ t o t a l C h a r g e s ' ,   i m p l o d e ( " , " , $ J o b N u m ) ,   $ s q l ) ; 
 
         1 5 6 6 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
 
 
     L i n e   1 5 9 5   [ m a t c h :   E P I C O R ] : 
 
         1 5 9 3 :           p u b l i c   f u n c t i o n   g e t P a i n t L i n e s ( ) 
 
         1 5 9 4 :           { 
 
   > >   1 5 9 5 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p a i n t l i n e s . s q l " ) ; 
 
         1 5 9 6 :   
 
         1 5 9 7 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
 
 
     L i n e   1 6 0 6   [ m a t c h :   E P I C O R ] : 
 
         1 6 0 4 :           p u b l i c   f u n c t i o n   g e t J o b F o r P a i n t L i n e ( $ J o b N u m ,   $ P r o d C o d e ) 
 
         1 6 0 5 :           { 
 
   > >   1 6 0 6 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / g e t J o b F o r P a i n t L i n e . s q l " ) ; 
 
         1 6 0 7 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         1 6 0 8 :                   / / $ q u e r y - > b i n d P a r a m ( ' : C u s t I D ' ,   $ C u s t I D ) ; 
 
 
 
     L i n e   1 6 1 9   [ m a t c h :   E P I C O R ] : 
 
         1 6 1 7 :           p u b l i c   f u n c t i o n   g e t J o b ( $ J o b N u m ) 
 
         1 6 1 8 :           { 
 
   > >   1 6 1 9 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / g e t J o b . s q l " ) ; 
 
         1 6 2 0 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         1 6 2 1 :                   / / $ q u e r y - > b i n d P a r a m ( ' : C u s t I D ' ,   $ C u s t I D ) ; 
 
 
 
     L i n e   1 6 5 7   [ m a t c h :   E P I C O R ] : 
 
         1 6 5 5 :                   $ s q l   = " 
 
         1 6 5 6 :                   S E L E C T   E r p . P l a n t . P l a n t 
 
   > >   1 6 5 7 :                   F R O M   [ E p i c o r 1 0 L i v e ] . [ d b o ] . [ p o r t a l _ C o i l A c t i v i t y R e c e i p t s ] 
 
         1 6 5 8 :                   J O I N   E r p . P l a n t   O N   E r p . P l a n t . N a m e   =   d b o . p o r t a l _ C o i l A c t i v i t y R e c e i p t s . P l a n t N a m e 
 
         1 6 5 9 :                   W H E R E   P a c k i n g S l i p   =   : S L I P 
 
 
 
     L i n e   1 6 7 2   [ m a t c h :   E P I C O R ] : 
 
         1 6 7 0 :           p u b l i c   f u n c t i o n   g e t C l o s e d J o b ( $ J o b N u m ) 
 
         1 6 7 1 :           { 
 
   > >   1 6 7 2 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / g e t C l o s e d J o b . s q l " ) ; 
 
         1 6 7 3 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         1 6 7 4 :                   / / $ q u e r y - > b i n d P a r a m ( ' : C u s t I D ' ,   $ C u s t I D ) ; 
 
 
 
     L i n e   1 7 3 0   [ m a t c h :   E P I C O R ] : 
 
         1 7 2 8 :           { 
 
         1 7 2 9 :   
 
   > >   1 7 3 0 :                 / /   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _   .   " / e p i c o r e S Q L / p o r t a l _ S h i p m e n t s . s q l " ) ; 
 
         1 7 3 1 :   
 
         1 7 3 2 :   
 
 
 
     L i n e   1 7 5 6   [ m a t c h :   E P I C O R ] : 
 
         1 7 5 4 :           { 
 
         1 7 5 5 :   
 
   > >   1 7 5 6 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p o r t a l _ S h i p m e n t s T o p 5 . s q l " ) ; 
 
         1 7 5 7 :   
 
         1 7 5 8 :   
 
 
 
     L i n e   1 7 9 5   [ m a t c h :   E P I C O R ] : 
 
         1 7 9 3 :   
 
         1 7 9 4 :   
 
   > >   1 7 9 5 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p o r t a l _ O r d e r s . s q l " ) ; 
 
         1 7 9 6 :   
 
         1 7 9 7 :   
 
 
 
     L i n e   1 9 4 4   [ m a t c h :   E P I C O R ] : 
 
         1 9 4 2 :                                                                                     O R D E R   B Y   D a t e U s e d ,   V o r t e q P a r t N u m ,   J o b N u m ,   L o t N u m ,   W e i g h t   D E S C " ) ;   * / 
 
         1 9 4 3 :   
 
   > >   1 9 4 4 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / p o r t a l _ C o i l A c t i v i t y U s a g e . s q l " ) ; 
 
         1 9 4 5 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         1 9 4 6 :   
 
 
 
     L i n e   2 0 0 3   [ m a t c h :   E P I C O R ] : 
 
         2 0 0 1 :           { 
 
         2 0 0 2 :                   i f   ( $ C u s t I D   = =   " V G L " )   { 
 
   > >   2 0 0 3 :                           $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / V G L C o i l R e c e i p t s D a t a . s q l " ) ; 
 
         2 0 0 4 :                           $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         2 0 0 5 :   
 
 
 
     L i n e   2 0 5 0   [ m a t c h :   E P I C O R ] : 
 
         2 0 4 8 :           { 
 
         2 0 4 9 :   
 
   > >   2 0 5 0 :                   $ s q l   =   f i l e _ g e t _ c o n t e n t s ( _ _ D I R _ _ . " / e p i c o r e S Q L / g e t O r d e r s F o r C u s t o m e r O n O r A f t e r D a t e . s q l " ) ; 
 
         2 0 5 1 :   
 
         2 0 5 2 :   
 
 
 
     L i n e   3 8   [ m a t c h :   V o r t e q P o r t a l ] : 
 
         3 6 :                   { 
 
         3 7 :                           c a s e   " d e v " : 
 
   > >   3 8 :                                   r e t u r n   ' [ V o r t e q P o r t a l - u a t ] ' ; 
 
         3 9 :                           c a s e   " u a t " : 
 
         4 0 :                                   r e t u r n   ' [ V o r t e q P o r t a l - u a t ] ' ; 
 
 
 
     L i n e   4 0   [ m a t c h :   V o r t e q P o r t a l ] : 
 
         3 8 :                                   r e t u r n   ' [ V o r t e q P o r t a l - u a t ] ' ; 
 
         3 9 :                           c a s e   " u a t " : 
 
   > >   4 0 :                                   r e t u r n   ' [ V o r t e q P o r t a l - u a t ] ' ; 
 
         4 1 :                           c a s e   " m i r r o r " : 
 
         4 2 :                                   r e t u r n   ' [ V o r t e q P o r t a l - m i r r o r ] ' ; 
 
 
 
     L i n e   4 2   [ m a t c h :   V o r t e q P o r t a l ] : 
 
         4 0 :                                   r e t u r n   ' [ V o r t e q P o r t a l - u a t ] ' ; 
 
         4 1 :                           c a s e   " m i r r o r " : 
 
   > >   4 2 :                                   r e t u r n   ' [ V o r t e q P o r t a l - m i r r o r ] ' ; 
 
         4 3 :   
 
         4 4 :                           d e f a u l t :   / / p r o d u c t i o n 
 
 
 
     L i n e   4 5   [ m a t c h :   V o r t e q P o r t a l ] : 
 
         4 3 :   
 
         4 4 :                           d e f a u l t :   / / p r o d u c t i o n 
 
   > >   4 5 :                                   r e t u r n   ' [ V o r t e q P o r t a l ] ' ; 
 
         4 6 :                   }   * / 
 
         4 7 :   
 
 
 
     L i n e   5 1 9   [ m a t c h :   V o r t e q P o r t a l ] : 
 
         5 1 7 :                           $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( ' U P D A T E   C O M 
 
         5 1 8 :   S E T   C O M . I s D e a c t i v a t e d   =   0 
 
   > >   5 1 9 :   F R O M   V o r t e q P o r t a l . d b o . q u e s t _ C o m p a n y   C O M 
 
         5 2 0 :           J O I N   E p i c o r 1 0 L i v e . E r p . C u s t o m e r   C U S T 
 
         5 2 1 :                   O N   C U S T . C u s t I D   =   C O M . E p i c o r C u s t I D 
 
 
 
     L i n e   8 9 1   [ m a t c h :   e x e c   ] : 
 
         8 8 9 :                   $ G e t A l l   =   ( i s _ n u l l ( $ P a r t )   & &   i s _ n u l l ( $ P l a n t )   & &   i s _ n u l l ( $ W a r e h o u s e ) ) ; 
 
         8 9 0 :                   i f   ( $ G e t A l l ) 
 
   > >   8 9 1 :                           $ s q l   =   " E X E C   [ d b o ] . [ P o r t a l U n p r o c e s s e d I n v e n t o r y D e t a i l s A L L ]   : c u s t I D , : D B N A M E " ; 
 
         8 9 2 :                   e l s e 
 
         8 9 3 :                           $ s q l   =   " E X E C   d b o . [ P o r t a l U n p r o c e s s e d I n v e n t o r y D e t a i l s ]   : c u s t I D ,   : p l a n t ,   : p a r t ,   : w a r e h o u s e ,   : D B N A M E ; " ; 
 
 
 
     L i n e   8 9 3   [ m a t c h :   e x e c   ] : 
 
         8 9 1 :                           $ s q l   =   " E X E C   [ d b o ] . [ P o r t a l U n p r o c e s s e d I n v e n t o r y D e t a i l s A L L ]   : c u s t I D , : D B N A M E " ; 
 
         8 9 2 :                   e l s e 
 
   > >   8 9 3 :                           $ s q l   =   " E X E C   d b o . [ P o r t a l U n p r o c e s s e d I n v e n t o r y D e t a i l s ]   : c u s t I D ,   : p l a n t ,   : p a r t ,   : w a r e h o u s e ,   : D B N A M E ; " ; 
 
         8 9 4 :   
 
         8 9 5 :   
 
 
 
     L i n e   9 3 2   [ m a t c h :   e x e c   ] : 
 
         9 3 0 :                   $ G e t A l l   =   ( i s _ n u l l ( $ P a r t )   & &   i s _ n u l l ( $ P l a n t )   & &   i s _ n u l l ( $ W a r e h o u s e ) ) ; 
 
         9 3 1 :                   i f   ( $ G e t A l l ) 
 
   > >   9 3 2 :                           $ s q l   =   " E X E C   [ d b o ] . [ P o r t a l U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s D e t a i l s A L L ]   : c u s t I D , : D B N A M E " ; 
 
         9 3 3 :                   e l s e 
 
         9 3 4 :                           $ s q l   =   " E X E C   d b o . [ P o r t a l U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s D e t a i l s ]   : c u s t I D ,   : p l a n t ,   : p a r t ,   : w a r e h o u s e ,   : D B N A M E ; " ; 
 
 
 
     L i n e   9 3 4   [ m a t c h :   e x e c   ] : 
 
         9 3 2 :                           $ s q l   =   " E X E C   [ d b o ] . [ P o r t a l U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s D e t a i l s A L L ]   : c u s t I D , : D B N A M E " ; 
 
         9 3 3 :                   e l s e 
 
   > >   9 3 4 :                           $ s q l   =   " E X E C   d b o . [ P o r t a l U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s D e t a i l s ]   : c u s t I D ,   : p l a n t ,   : p a r t ,   : w a r e h o u s e ,   : D B N A M E ; " ; 
 
         9 3 5 :   
 
         9 3 6 :   
 
 
 
     L i n e   9 9 2   [ m a t c h :   e x e c   ] : 
 
         9 9 0 :                                           / / $ s q l   =   s t r _ r e p l a c e ( ' ~ ~ P A R T 3 ~ ~ ' ,   $ P a r t 3 ,   $ s q l ) ; 
 
         9 9 1 :   
 
   > >   9 9 2 :                                           / / E X E C   d b o . [ P o r t a l P r o c e s s e d I n v e n t o r y D e t a i l s ]   ' H D M ' ,   ' F r a n k l i n   P a r k ' ,   ' H D M 1 4 0 A 1 4 . 3 7 5 - S ' ,   ' F P   B O P ' ; 
 
         9 9 3 :   
 
         9 9 4 :                                           $ s q l   =   " E X E C   d b o . [ P o r t a l W o r k I n P r o g r e s s I n v e n t o r y D e t a i l s V 6 ]   : C U S T I D ,   : P L A N T ,   : P A R T ,   : W A R E H O U S E ,   : D B N A M E ,   : s u b ; " ; 
 
 
 
     L i n e   9 9 4   [ m a t c h :   e x e c   ] : 
 
         9 9 2 :                                           / / E X E C   d b o . [ P o r t a l P r o c e s s e d I n v e n t o r y D e t a i l s ]   ' H D M ' ,   ' F r a n k l i n   P a r k ' ,   ' H D M 1 4 0 A 1 4 . 3 7 5 - S ' ,   ' F P   B O P ' ; 
 
         9 9 3 :   
 
   > >   9 9 4 :                                           $ s q l   =   " E X E C   d b o . [ P o r t a l W o r k I n P r o g r e s s I n v e n t o r y D e t a i l s V 6 ]   : C U S T I D ,   : P L A N T ,   : P A R T ,   : W A R E H O U S E ,   : D B N A M E ,   : s u b ; " ; 
 
         9 9 5 :   
 
         9 9 6 :   
 
 
 
     L i n e   1 0 0 5   [ m a t c h :   e x e c   ] : 
 
         1 0 0 3 :                                   { 
 
         1 0 0 4 :   
 
   > >   1 0 0 5 :                                           $ s q l   =   " E X E C   d b o . [ P o r t a l W o r k I n P r o g r e s s I n v e n t o r y D e t a i l s A L L V 6 ]   : C U S T I D ,   : D B N A M E ,   : s u b ; " ; 
 
         1 0 0 6 :                                   } 
 
         1 0 0 7 :   
 
 
 
     L i n e   1 0 9 3   [ m a t c h :   e x e c   ] : 
 
         1 0 9 1 :                                           / / $ s q l   =   s t r _ r e p l a c e ( ' ~ ~ P A R T 3 ~ ~ ' ,   $ P a r t 3 ,   $ s q l ) ; 
 
         1 0 9 2 :   
 
   > >   1 0 9 3 :                                           / / E X E C   d b o . [ P o r t a l P r o c e s s e d I n v e n t o r y D e t a i l s ]   ' H D M ' ,   ' F r a n k l i n   P a r k ' ,   ' H D M 1 4 0 A 1 4 . 3 7 5 - S ' ,   ' F P   B O P ' ; 
 
         1 0 9 4 :   
 
         1 0 9 5 :                                           $ s q l   =   " E X E C   d b o . [ P o r t a l F i n i s h e d G o o d s I n v e n t o r y D e t a i l s V 6 ]   : C U S T I D ,   : P L A N T ,   : P A R T ,   : W A R E H O U S E ,   : D B N A M E ,   : s u b ; " ; 
 
 
 
     L i n e   1 0 9 5   [ m a t c h :   e x e c   ] : 
 
         1 0 9 3 :                                           / / E X E C   d b o . [ P o r t a l P r o c e s s e d I n v e n t o r y D e t a i l s ]   ' H D M ' ,   ' F r a n k l i n   P a r k ' ,   ' H D M 1 4 0 A 1 4 . 3 7 5 - S ' ,   ' F P   B O P ' ; 
 
         1 0 9 4 :   
 
   > >   1 0 9 5 :                                           $ s q l   =   " E X E C   d b o . [ P o r t a l F i n i s h e d G o o d s I n v e n t o r y D e t a i l s V 6 ]   : C U S T I D ,   : P L A N T ,   : P A R T ,   : W A R E H O U S E ,   : D B N A M E ,   : s u b ; " ; 
 
         1 0 9 6 :   
 
         1 0 9 7 :   
 
 
 
     L i n e   1 1 0 6   [ m a t c h :   e x e c   ] : 
 
         1 1 0 4 :                                   { 
 
         1 1 0 5 :   
 
   > >   1 1 0 6 :                                           $ s q l   =   " E X E C   d b o . [ P o r t a l F i n i s h e d G o o d s I n v e n t o r y D e t a i l s A L L V 6 ]   : C U S T I D ,   : D B N A M E ,   : s u b ; " ; 
 
         1 1 0 7 :                                   } 
 
         1 1 0 8 :   
 
 
 
     L i n e   1 1 9 4   [ m a t c h :   e x e c   ] : 
 
         1 1 9 2 :                                           / / $ s q l   =   s t r _ r e p l a c e ( ' ~ ~ P A R T 3 ~ ~ ' ,   $ P a r t 3 ,   $ s q l ) ; 
 
         1 1 9 3 :   
 
   > >   1 1 9 4 :                                           / / E X E C   d b o . [ P o r t a l P r o c e s s e d I n v e n t o r y D e t a i l s ]   ' H D M ' ,   ' F r a n k l i n   P a r k ' ,   ' H D M 1 4 0 A 1 4 . 3 7 5 - S ' ,   ' F P   B O P ' ; 
 
         1 1 9 5 :   
 
         1 1 9 6 :                                           $ s q l   =   " E X E C   d b o . [ P o r t a l P r o c e s s e d O t h e r I n v e n t o r y D e t a i l s V 6 ]   : C U S T I D ,   : P L A N T ,   : P A R T ,   : W A R E H O U S E ,   : D B N A M E ,   : s u b ; " ; 
 
 
 
     L i n e   1 1 9 6   [ m a t c h :   e x e c   ] : 
 
         1 1 9 4 :                                           / / E X E C   d b o . [ P o r t a l P r o c e s s e d I n v e n t o r y D e t a i l s ]   ' H D M ' ,   ' F r a n k l i n   P a r k ' ,   ' H D M 1 4 0 A 1 4 . 3 7 5 - S ' ,   ' F P   B O P ' ; 
 
         1 1 9 5 :   
 
   > >   1 1 9 6 :                                           $ s q l   =   " E X E C   d b o . [ P o r t a l P r o c e s s e d O t h e r I n v e n t o r y D e t a i l s V 6 ]   : C U S T I D ,   : P L A N T ,   : P A R T ,   : W A R E H O U S E ,   : D B N A M E ,   : s u b ; " ; 
 
         1 1 9 7 :   
 
         1 1 9 8 :   
 
 
 
     L i n e   1 2 0 7   [ m a t c h :   e x e c   ] : 
 
         1 2 0 5 :                                   { 
 
         1 2 0 6 :   
 
   > >   1 2 0 7 :                                           $ s q l   =   " E X E C   d b o . [ P o r t a l P r o c e s s e d O t h e r I n v e n t o r y D e t a i l s A L L V 6 ]   : C U S T I D ,   : D B N A M E ,   : s u b ; " ; 
 
         1 2 0 8 :                                   } 
 
         1 2 0 9 :   
 
 
 
     L i n e   1 2 7 1   [ m a t c h :   e x e c   ] : 
 
         1 2 6 9 :                   $ G e t A l l   =   ( i s _ n u l l ( $ P a r t )   & &   i s _ n u l l ( $ P l a n t )   & &   i s _ n u l l ( $ W a r e h o u s e ) ) ; 
 
         1 2 7 0 :                   i f   ( $ G e t A l l ) 
 
   > >   1 2 7 1 :                           $ s q l   =   " E X E C   [ d b o ] . [ P o r t a l P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s D e t a i l s A L L ]   : c u s t I D , : D B N A M E " ; 
 
         1 2 7 2 :                   e l s e 
 
         1 2 7 3 :                           $ s q l   =   " E X E C   d b o . [ P o r t a l P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s D e t a i l s ]   : c u s t I D ,   : p l a n t ,   : p a r t ,   : w a r e h o u s e ,   : D B N A M E ; " ; 
 
 
 
     L i n e   1 2 7 3   [ m a t c h :   e x e c   ] : 
 
         1 2 7 1 :                           $ s q l   =   " E X E C   [ d b o ] . [ P o r t a l P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s D e t a i l s A L L ]   : c u s t I D , : D B N A M E " ; 
 
         1 2 7 2 :                   e l s e 
 
   > >   1 2 7 3 :                           $ s q l   =   " E X E C   d b o . [ P o r t a l P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s D e t a i l s ]   : c u s t I D ,   : p l a n t ,   : p a r t ,   : w a r e h o u s e ,   : D B N A M E ; " ; 
 
         1 2 7 4 :   
 
         1 2 7 5 :   
 
 
 
     L i n e   2 0 9 0   [ m a t c h :   e x e c   ] : 
 
         2 0 8 8 :           p u b l i c   f u n c t i o n   g e t S h i p p i n g F o r M o n t h ( $ m o n t h ) 
 
         2 0 8 9 :           { 
 
   > >   2 0 9 0 :                   $ s q l   =   " e x e c   [ p o r t a l _ G e t S h i p m e n t s A l l C u s t o m e r s V 1 ]   0 ,   $ m o n t h ,   ' " . $ t h i s - > g e t C u r r e n t D a t a b a s e ( ) . " ' ; " ; 
 
         2 0 9 1 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         2 0 9 2 :                   t r y   { 
 
 
 
     L i n e   2 1 0 4   [ m a t c h :   e x e c   ] : 
 
         2 1 0 2 :           { 
 
         2 1 0 3 :   
 
   > >   2 1 0 4 :                   $ s q l   =   " e x e c   [ p o r t a l _ G e t S h i p m e n t s A l l C u s t o m e r s V 1 ]   1 ,   0 ,   ' " . $ t h i s - > g e t C u r r e n t D a t a b a s e ( ) . " ' ; " ; 
 
         2 1 0 5 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         2 1 0 6 :   
 
 
 
     L i n e   8 9 1   [ m a t c h :   E X E C   ] : 
 
         8 8 9 :                   $ G e t A l l   =   ( i s _ n u l l ( $ P a r t )   & &   i s _ n u l l ( $ P l a n t )   & &   i s _ n u l l ( $ W a r e h o u s e ) ) ; 
 
         8 9 0 :                   i f   ( $ G e t A l l ) 
 
   > >   8 9 1 :                           $ s q l   =   " E X E C   [ d b o ] . [ P o r t a l U n p r o c e s s e d I n v e n t o r y D e t a i l s A L L ]   : c u s t I D , : D B N A M E " ; 
 
         8 9 2 :                   e l s e 
 
         8 9 3 :                           $ s q l   =   " E X E C   d b o . [ P o r t a l U n p r o c e s s e d I n v e n t o r y D e t a i l s ]   : c u s t I D ,   : p l a n t ,   : p a r t ,   : w a r e h o u s e ,   : D B N A M E ; " ; 
 
 
 
     L i n e   8 9 3   [ m a t c h :   E X E C   ] : 
 
         8 9 1 :                           $ s q l   =   " E X E C   [ d b o ] . [ P o r t a l U n p r o c e s s e d I n v e n t o r y D e t a i l s A L L ]   : c u s t I D , : D B N A M E " ; 
 
         8 9 2 :                   e l s e 
 
   > >   8 9 3 :                           $ s q l   =   " E X E C   d b o . [ P o r t a l U n p r o c e s s e d I n v e n t o r y D e t a i l s ]   : c u s t I D ,   : p l a n t ,   : p a r t ,   : w a r e h o u s e ,   : D B N A M E ; " ; 
 
         8 9 4 :   
 
         8 9 5 :   
 
 
 
     L i n e   9 3 2   [ m a t c h :   E X E C   ] : 
 
         9 3 0 :                   $ G e t A l l   =   ( i s _ n u l l ( $ P a r t )   & &   i s _ n u l l ( $ P l a n t )   & &   i s _ n u l l ( $ W a r e h o u s e ) ) ; 
 
         9 3 1 :                   i f   ( $ G e t A l l ) 
 
   > >   9 3 2 :                           $ s q l   =   " E X E C   [ d b o ] . [ P o r t a l U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s D e t a i l s A L L ]   : c u s t I D , : D B N A M E " ; 
 
         9 3 3 :                   e l s e 
 
         9 3 4 :                           $ s q l   =   " E X E C   d b o . [ P o r t a l U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s D e t a i l s ]   : c u s t I D ,   : p l a n t ,   : p a r t ,   : w a r e h o u s e ,   : D B N A M E ; " ; 
 
 
 
     L i n e   9 3 4   [ m a t c h :   E X E C   ] : 
 
         9 3 2 :                           $ s q l   =   " E X E C   [ d b o ] . [ P o r t a l U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s D e t a i l s A L L ]   : c u s t I D , : D B N A M E " ; 
 
         9 3 3 :                   e l s e 
 
   > >   9 3 4 :                           $ s q l   =   " E X E C   d b o . [ P o r t a l U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s D e t a i l s ]   : c u s t I D ,   : p l a n t ,   : p a r t ,   : w a r e h o u s e ,   : D B N A M E ; " ; 
 
         9 3 5 :   
 
         9 3 6 :   
 
 
 
     L i n e   9 9 2   [ m a t c h :   E X E C   ] : 
 
         9 9 0 :                                           / / $ s q l   =   s t r _ r e p l a c e ( ' ~ ~ P A R T 3 ~ ~ ' ,   $ P a r t 3 ,   $ s q l ) ; 
 
         9 9 1 :   
 
   > >   9 9 2 :                                           / / E X E C   d b o . [ P o r t a l P r o c e s s e d I n v e n t o r y D e t a i l s ]   ' H D M ' ,   ' F r a n k l i n   P a r k ' ,   ' H D M 1 4 0 A 1 4 . 3 7 5 - S ' ,   ' F P   B O P ' ; 
 
         9 9 3 :   
 
         9 9 4 :                                           $ s q l   =   " E X E C   d b o . [ P o r t a l W o r k I n P r o g r e s s I n v e n t o r y D e t a i l s V 6 ]   : C U S T I D ,   : P L A N T ,   : P A R T ,   : W A R E H O U S E ,   : D B N A M E ,   : s u b ; " ; 
 
 
 
     L i n e   9 9 4   [ m a t c h :   E X E C   ] : 
 
         9 9 2 :                                           / / E X E C   d b o . [ P o r t a l P r o c e s s e d I n v e n t o r y D e t a i l s ]   ' H D M ' ,   ' F r a n k l i n   P a r k ' ,   ' H D M 1 4 0 A 1 4 . 3 7 5 - S ' ,   ' F P   B O P ' ; 
 
         9 9 3 :   
 
   > >   9 9 4 :                                           $ s q l   =   " E X E C   d b o . [ P o r t a l W o r k I n P r o g r e s s I n v e n t o r y D e t a i l s V 6 ]   : C U S T I D ,   : P L A N T ,   : P A R T ,   : W A R E H O U S E ,   : D B N A M E ,   : s u b ; " ; 
 
         9 9 5 :   
 
         9 9 6 :   
 
 
 
     L i n e   1 0 0 5   [ m a t c h :   E X E C   ] : 
 
         1 0 0 3 :                                   { 
 
         1 0 0 4 :   
 
   > >   1 0 0 5 :                                           $ s q l   =   " E X E C   d b o . [ P o r t a l W o r k I n P r o g r e s s I n v e n t o r y D e t a i l s A L L V 6 ]   : C U S T I D ,   : D B N A M E ,   : s u b ; " ; 
 
         1 0 0 6 :                                   } 
 
         1 0 0 7 :   
 
 
 
     L i n e   1 0 9 3   [ m a t c h :   E X E C   ] : 
 
         1 0 9 1 :                                           / / $ s q l   =   s t r _ r e p l a c e ( ' ~ ~ P A R T 3 ~ ~ ' ,   $ P a r t 3 ,   $ s q l ) ; 
 
         1 0 9 2 :   
 
   > >   1 0 9 3 :                                           / / E X E C   d b o . [ P o r t a l P r o c e s s e d I n v e n t o r y D e t a i l s ]   ' H D M ' ,   ' F r a n k l i n   P a r k ' ,   ' H D M 1 4 0 A 1 4 . 3 7 5 - S ' ,   ' F P   B O P ' ; 
 
         1 0 9 4 :   
 
         1 0 9 5 :                                           $ s q l   =   " E X E C   d b o . [ P o r t a l F i n i s h e d G o o d s I n v e n t o r y D e t a i l s V 6 ]   : C U S T I D ,   : P L A N T ,   : P A R T ,   : W A R E H O U S E ,   : D B N A M E ,   : s u b ; " ; 
 
 
 
     L i n e   1 0 9 5   [ m a t c h :   E X E C   ] : 
 
         1 0 9 3 :                                           / / E X E C   d b o . [ P o r t a l P r o c e s s e d I n v e n t o r y D e t a i l s ]   ' H D M ' ,   ' F r a n k l i n   P a r k ' ,   ' H D M 1 4 0 A 1 4 . 3 7 5 - S ' ,   ' F P   B O P ' ; 
 
         1 0 9 4 :   
 
   > >   1 0 9 5 :                                           $ s q l   =   " E X E C   d b o . [ P o r t a l F i n i s h e d G o o d s I n v e n t o r y D e t a i l s V 6 ]   : C U S T I D ,   : P L A N T ,   : P A R T ,   : W A R E H O U S E ,   : D B N A M E ,   : s u b ; " ; 
 
         1 0 9 6 :   
 
         1 0 9 7 :   
 
 
 
     L i n e   1 1 0 6   [ m a t c h :   E X E C   ] : 
 
         1 1 0 4 :                                   { 
 
         1 1 0 5 :   
 
   > >   1 1 0 6 :                                           $ s q l   =   " E X E C   d b o . [ P o r t a l F i n i s h e d G o o d s I n v e n t o r y D e t a i l s A L L V 6 ]   : C U S T I D ,   : D B N A M E ,   : s u b ; " ; 
 
         1 1 0 7 :                                   } 
 
         1 1 0 8 :   
 
 
 
     L i n e   1 1 9 4   [ m a t c h :   E X E C   ] : 
 
         1 1 9 2 :                                           / / $ s q l   =   s t r _ r e p l a c e ( ' ~ ~ P A R T 3 ~ ~ ' ,   $ P a r t 3 ,   $ s q l ) ; 
 
         1 1 9 3 :   
 
   > >   1 1 9 4 :                                           / / E X E C   d b o . [ P o r t a l P r o c e s s e d I n v e n t o r y D e t a i l s ]   ' H D M ' ,   ' F r a n k l i n   P a r k ' ,   ' H D M 1 4 0 A 1 4 . 3 7 5 - S ' ,   ' F P   B O P ' ; 
 
         1 1 9 5 :   
 
         1 1 9 6 :                                           $ s q l   =   " E X E C   d b o . [ P o r t a l P r o c e s s e d O t h e r I n v e n t o r y D e t a i l s V 6 ]   : C U S T I D ,   : P L A N T ,   : P A R T ,   : W A R E H O U S E ,   : D B N A M E ,   : s u b ; " ; 
 
 
 
     L i n e   1 1 9 6   [ m a t c h :   E X E C   ] : 
 
         1 1 9 4 :                                           / / E X E C   d b o . [ P o r t a l P r o c e s s e d I n v e n t o r y D e t a i l s ]   ' H D M ' ,   ' F r a n k l i n   P a r k ' ,   ' H D M 1 4 0 A 1 4 . 3 7 5 - S ' ,   ' F P   B O P ' ; 
 
         1 1 9 5 :   
 
   > >   1 1 9 6 :                                           $ s q l   =   " E X E C   d b o . [ P o r t a l P r o c e s s e d O t h e r I n v e n t o r y D e t a i l s V 6 ]   : C U S T I D ,   : P L A N T ,   : P A R T ,   : W A R E H O U S E ,   : D B N A M E ,   : s u b ; " ; 
 
         1 1 9 7 :   
 
         1 1 9 8 :   
 
 
 
     L i n e   1 2 0 7   [ m a t c h :   E X E C   ] : 
 
         1 2 0 5 :                                   { 
 
         1 2 0 6 :   
 
   > >   1 2 0 7 :                                           $ s q l   =   " E X E C   d b o . [ P o r t a l P r o c e s s e d O t h e r I n v e n t o r y D e t a i l s A L L V 6 ]   : C U S T I D ,   : D B N A M E ,   : s u b ; " ; 
 
         1 2 0 8 :                                   } 
 
         1 2 0 9 :   
 
 
 
     L i n e   1 2 7 1   [ m a t c h :   E X E C   ] : 
 
         1 2 6 9 :                   $ G e t A l l   =   ( i s _ n u l l ( $ P a r t )   & &   i s _ n u l l ( $ P l a n t )   & &   i s _ n u l l ( $ W a r e h o u s e ) ) ; 
 
         1 2 7 0 :                   i f   ( $ G e t A l l ) 
 
   > >   1 2 7 1 :                           $ s q l   =   " E X E C   [ d b o ] . [ P o r t a l P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s D e t a i l s A L L ]   : c u s t I D , : D B N A M E " ; 
 
         1 2 7 2 :                   e l s e 
 
         1 2 7 3 :                           $ s q l   =   " E X E C   d b o . [ P o r t a l P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s D e t a i l s ]   : c u s t I D ,   : p l a n t ,   : p a r t ,   : w a r e h o u s e ,   : D B N A M E ; " ; 
 
 
 
     L i n e   1 2 7 3   [ m a t c h :   E X E C   ] : 
 
         1 2 7 1 :                           $ s q l   =   " E X E C   [ d b o ] . [ P o r t a l P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s D e t a i l s A L L ]   : c u s t I D , : D B N A M E " ; 
 
         1 2 7 2 :                   e l s e 
 
   > >   1 2 7 3 :                           $ s q l   =   " E X E C   d b o . [ P o r t a l P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s D e t a i l s ]   : c u s t I D ,   : p l a n t ,   : p a r t ,   : w a r e h o u s e ,   : D B N A M E ; " ; 
 
         1 2 7 4 :   
 
         1 2 7 5 :   
 
 
 
     L i n e   2 0 9 0   [ m a t c h :   E X E C   ] : 
 
         2 0 8 8 :           p u b l i c   f u n c t i o n   g e t S h i p p i n g F o r M o n t h ( $ m o n t h ) 
 
         2 0 8 9 :           { 
 
   > >   2 0 9 0 :                   $ s q l   =   " e x e c   [ p o r t a l _ G e t S h i p m e n t s A l l C u s t o m e r s V 1 ]   0 ,   $ m o n t h ,   ' " . $ t h i s - > g e t C u r r e n t D a t a b a s e ( ) . " ' ; " ; 
 
         2 0 9 1 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         2 0 9 2 :                   t r y   { 
 
 
 
     L i n e   2 1 0 4   [ m a t c h :   E X E C   ] : 
 
         2 1 0 2 :           { 
 
         2 1 0 3 :   
 
   > >   2 1 0 4 :                   $ s q l   =   " e x e c   [ p o r t a l _ G e t S h i p m e n t s A l l C u s t o m e r s V 1 ]   1 ,   0 ,   ' " . $ t h i s - > g e t C u r r e n t D a t a b a s e ( ) . " ' ; " ; 
 
         2 1 0 5 :                   $ q u e r y   =   $ t h i s - > c o n n R O - > p r e p a r e ( $ s q l ) ; 
 
         2 1 0 6 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ I n v e n t o r y H e l p e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 4 2 7   [ m a t c h :   F R O M   ] : 
 
         2 4 2 5 :                   { 
 
         2 4 2 6 :                           / /   G e t   t h e   t h i r d   t a b 
 
   > >   2 4 2 7 :                           $ t h i r d T a b   =   $ s p r e a d s h e e t - > g e t S h e e t ( 2 ) ;     / /   I n d e x   s t a r t s   f r o m   0 
 
         2 4 2 8 :   
 
         2 4 2 9 :                           / /   R e m o v e   t h e   t h i r d   t a b   f r o m   i t s   o r i g i n a l   p o s i t i o n 
 
 
 
     L i n e   2 4 2 9   [ m a t c h :   F R O M   ] : 
 
         2 4 2 7 :                           $ t h i r d T a b   =   $ s p r e a d s h e e t - > g e t S h e e t ( 2 ) ;     / /   I n d e x   s t a r t s   f r o m   0 
 
         2 4 2 8 :   
 
   > >   2 4 2 9 :                           / /   R e m o v e   t h e   t h i r d   t a b   f r o m   i t s   o r i g i n a l   p o s i t i o n 
 
         2 4 3 0 :                           $ s p r e a d s h e e t - > r e m o v e S h e e t B y I n d e x ( 2 ) ; 
 
         2 4 3 1 :   
 
 
 
     L i n e   2 4 3 8   [ m a t c h :   F R O M   ] : 
 
         2 4 3 6 :                   { 
 
         2 4 3 7 :                           / /   G e t   t h e   f o u r t h ,   f i f t h ,   a n d   s i x t h   t a b s 
 
   > >   2 4 3 8 :                           $ f o u r t h T a b   =   $ s p r e a d s h e e t - > g e t S h e e t ( 3 ) ;     / /   I n d e x   s t a r t s   f r o m   0 
 
         2 4 3 9 :                           $ f i f t h T a b   =   $ s p r e a d s h e e t - > g e t S h e e t ( 4 ) ; 
 
         2 4 4 0 :                           $ s i x t h T a b   =   $ s p r e a d s h e e t - > g e t S h e e t ( 5 ) ; 
 
 
 
     L i n e   2 4 4 2   [ m a t c h :   F R O M   ] : 
 
         2 4 4 0 :                           $ s i x t h T a b   =   $ s p r e a d s h e e t - > g e t S h e e t ( 5 ) ; 
 
         2 4 4 1 :   
 
   > >   2 4 4 2 :                           / /   R e m o v e   t h e   f o u r t h ,   f i f t h ,   a n d   s i x t h   t a b s   f r o m   t h e i r   o r i g i n a l   p o s i t i o n s 
 
         2 4 4 3 :                           $ s p r e a d s h e e t - > r e m o v e S h e e t B y I n d e x ( 3 ) ; 
 
         2 4 4 4 :                           $ s p r e a d s h e e t - > r e m o v e S h e e t B y I n d e x ( 3 ) ; 
 
 
 
     L i n e   6   [ m a t c h :   e p i c o r ] : 
 
         4 :   u s e   A p p \ M o d e l \ R e p o s \ s h i p _ R e q u e s t   a s   s h i p _ R e q u e s t R e p o ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ A l l o c C a r t ; 
 
   > >   6 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         7 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a ; 
 
         8 :   u s e   A p p \ S e r v i c e s \ G r i d \ S u m m a r y M e n u T e m p l a t e ; 
 
 
 
     L i n e   7   [ m a t c h :   e p i c o r ] : 
 
         5 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ A l l o c C a r t ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
   > >   7 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a ; 
 
         8 :   u s e   A p p \ S e r v i c e s \ G r i d \ S u m m a r y M e n u T e m p l a t e ; 
 
         9 :   u s e   E x c e p t i o n ; 
 
 
 
     L i n e   6 8   [ m a t c h :   e p i c o r ] : 
 
         6 6 :                   $ c o m p a n y   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) ; 
 
         6 7 :   
 
   > >   6 8 :                   i f   ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( )   ! = =   ' H D Q ' )   { 
 
         6 9 :                           $ p a g e s - > a d d P a g e ( $ t h i s - > _ g e t U n p r o c e s s e d P a g e ( $ i s R e m o t e ,   $ r e m o t e _ p a g e _ i d ) ) ; 
 
         7 0 :                           $ p a g e s - > a d d P a g e ( $ t h i s - > _ g e t U n p r o c e s s e d R e j e c t s R e t u r n s P a g e ( $ i s R e m o t e ,   $ r e m o t e _ p a g e _ i d ) ) ; 
 
 
 
     L i n e   7 7   [ m a t c h :   e p i c o r ] : 
 
         7 5 :                   $ p a g e s - > a d d P a g e ( $ t h i s - > _ g e t P r o c e s s e d O t h e r P a g e ( $ i s R e m o t e ,   $ r e m o t e _ p a g e _ i d ) ) ; 
 
         7 6 :   
 
   > >   7 7 :                   i f   ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( )   ! = =   ' H D Q ' )   { 
 
         7 8 :                           $ p a g e s - > a d d P a g e ( $ t h i s - > _ g e t P r o c e s s e d R e j e c t s R e t u r n s P a g e ( $ i s R e m o t e ,   $ r e m o t e _ p a g e _ i d ) ) ; 
 
         7 9 :                   } 
 
 
 
     L i n e   1 0 9   [ m a t c h :   e p i c o r ] : 
 
         1 0 7 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a   =   f a l s e ) 
 
         1 0 8 :           { 
 
   > >   1 0 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 1 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 1 1 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 1 0   [ m a t c h :   e p i c o r ] : 
 
         1 0 8 :           { 
 
         1 0 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 1 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 1 1 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 1 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 1 4   [ m a t c h :   e p i c o r ] : 
 
         1 1 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 1 3 :   
 
   > >   1 1 4 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         1 1 5 :   
 
         1 1 6 :                   / / i f   ( $ r e t u r n D a t a ) 
 
 
 
     L i n e   1 4 1   [ m a t c h :   e p i c o r ] : 
 
         1 3 9 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d R R S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ) 
 
         1 4 0 :           { 
 
   > >   1 4 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 4 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 4 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 4 2   [ m a t c h :   e p i c o r ] : 
 
         1 4 0 :           { 
 
         1 4 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 4 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 4 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 4 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 4 6   [ m a t c h :   e p i c o r ] : 
 
         1 4 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 4 5 :   
 
   > >   1 4 6 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         1 4 7 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n S u m m a r y G r i d ( $ t h i s - > _ g e t U n p r o c e s s e d R R S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) ,   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) ; 
 
         1 4 8 :   
 
 
 
     L i n e   1 6 6   [ m a t c h :   e p i c o r ] : 
 
         1 6 4 :           p u b l i c   f u n c t i o n   g e t W o r k I n P r o g r e s s S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ) 
 
         1 6 5 :           { 
 
   > >   1 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 6 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 6 7   [ m a t c h :   e p i c o r ] : 
 
         1 6 5 :           { 
 
         1 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 6 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 6 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 7 1   [ m a t c h :   e p i c o r ] : 
 
         1 6 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 7 0 :   
 
   > >   1 7 1 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         1 7 2 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n S u m m a r y G r i d ( $ t h i s - > _ g e t W o r k I n P r o g r e s s S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) ,   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) ; 
 
         1 7 3 :   
 
 
 
     L i n e   1 9 1   [ m a t c h :   e p i c o r ] : 
 
         1 8 9 :           p u b l i c   f u n c t i o n   g e t F i n i s h e d G o o d s S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ) 
 
         1 9 0 :           { 
 
   > >   1 9 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 9 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 9 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 9 2   [ m a t c h :   e p i c o r ] : 
 
         1 9 0 :           { 
 
         1 9 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 9 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 9 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 9 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 9 6   [ m a t c h :   e p i c o r ] : 
 
         1 9 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 9 5 :   
 
   > >   1 9 6 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         1 9 7 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n S u m m a r y G r i d ( $ t h i s - > _ g e t F i n i s h e d G o o d s S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) ,   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) ; 
 
         1 9 8 :   
 
 
 
     L i n e   2 1 6   [ m a t c h :   e p i c o r ] : 
 
         2 1 4 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d O t h e r S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ) 
 
         2 1 5 :           { 
 
   > >   2 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 1 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   2 1 7   [ m a t c h :   e p i c o r ] : 
 
         2 1 5 :           { 
 
         2 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 1 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 1 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   2 2 1   [ m a t c h :   e p i c o r ] : 
 
         2 1 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 2 0 :   
 
   > >   2 2 1 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         2 2 2 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n S u m m a r y G r i d ( $ t h i s - > _ g e t P r o c e s s e d O t h e r S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) ,   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) ; 
 
         2 2 3 :   
 
 
 
     L i n e   2 4 1   [ m a t c h :   e p i c o r ] : 
 
         2 3 9 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d R R S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ) 
 
         2 4 0 :           { 
 
   > >   2 4 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 4 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   2 4 2   [ m a t c h :   e p i c o r ] : 
 
         2 4 0 :           { 
 
         2 4 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 4 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 4 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   2 4 6   [ m a t c h :   e p i c o r ] : 
 
         2 4 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 4 5 :   
 
   > >   2 4 6 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         2 4 7 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n S u m m a r y G r i d ( $ t h i s - > _ g e t P r o c e s s e d R R S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) ,   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) ; 
 
         2 4 8 :   
 
 
 
     L i n e   2 6 9   [ m a t c h :   e p i c o r ] : 
 
         2 6 7 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         2 6 8 :           { 
 
   > >   2 6 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 7 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 7 1 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   2 7 0   [ m a t c h :   e p i c o r ] : 
 
         2 6 8 :           { 
 
         2 6 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 7 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 7 1 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 7 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   2 7 4   [ m a t c h :   e p i c o r ] : 
 
         2 7 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 7 3 :   
 
   > >   2 7 4 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         2 7 5 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n D e t a i l s G r i d ( $ t h i s - > _ g e t U n p r o c e s s e d D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ,   $ D a t a ,   $ G r i d P a g i n g ) ; 
 
         2 7 6 :   
 
 
 
     L i n e   2 9 7   [ m a t c h :   e p i c o r ] : 
 
         2 9 5 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d R R D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         2 9 6 :           { 
 
   > >   2 9 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 9 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 9 9 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   2 9 8   [ m a t c h :   e p i c o r ] : 
 
         2 9 6 :           { 
 
         2 9 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 9 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 9 9 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         3 0 0 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   3 0 2   [ m a t c h :   e p i c o r ] : 
 
         3 0 0 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         3 0 1 :   
 
   > >   3 0 2 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 0 3 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n D e t a i l s G r i d ( $ t h i s - > _ g e t U n p r o c e s s e d R R D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ,   $ D a t a ,   $ G r i d P a g i n g ) ; 
 
         3 0 4 :   
 
 
 
     L i n e   3 2 2   [ m a t c h :   e p i c o r ] : 
 
         3 2 0 :             *   @ p a r a m   $ I n c l u d e S h i p m e n t R e l e a s e I n f o 
 
         3 2 1 :             *   @ r e t u r n   G r i d 
 
   > >   3 2 2 :             *   @ t h r o w s   \ A p p \ E x c e p t i o n s \ N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         3 2 3 :             * / 
 
         3 2 4 :           p u b l i c   f u n c t i o n   g e t W o r k I n P r o g r e s s D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ C a r t O p e n = f a l s e ) 
 
 
 
     L i n e   3 2 6   [ m a t c h :   e p i c o r ] : 
 
         3 2 4 :           p u b l i c   f u n c t i o n   g e t W o r k I n P r o g r e s s D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ C a r t O p e n = f a l s e ) 
 
         3 2 5 :           { 
 
   > >   3 2 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 2 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 2 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   3 2 7   [ m a t c h :   e p i c o r ] : 
 
         3 2 5 :           { 
 
         3 2 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 2 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 2 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         3 2 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   3 3 3   [ m a t c h :   e p i c o r ] : 
 
         3 3 1 :                   $ R O S h i p m e n t R e q u e s t R e p o   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
         3 3 2 :   
 
   > >   3 3 3 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 3 4 :   
 
         3 3 5 :   
 
 
 
     L i n e   3 4 2   [ m a t c h :   e p i c o r ] : 
 
         3 4 0 :                   f o r e a c h   ( $ D a t a   a s   $ i   = >   $ D a t a R o w )   { 
 
         3 4 1 :                           / / g e t   t h e   r e l e a s e   i d   i f   t h e r e   i s   o n e 
 
   > >   3 4 2 :                           $ D a t a [ $ i ] [ ' S h i p m e n t R e l e a s e I d ' ]   =   $ R O S h i p m e n t R e q u e s t R e p o - > g e t N o n C a n c e l l e d S h i p m e n t R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' V o r t e q P a r t N u m ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         3 4 3 :                   } 
 
         3 4 4 :   
 
 
 
     L i n e   3 6 7   [ m a t c h :   e p i c o r ] : 
 
         3 6 5 :             *   @ p a r a m   $ I n c l u d e S h i p m e n t R e l e a s e I n f o 
 
         3 6 6 :             *   @ r e t u r n   G r i d 
 
   > >   3 6 7 :             *   @ t h r o w s   \ A p p \ E x c e p t i o n s \ N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         3 6 8 :             * / 
 
         3 6 9 :           p u b l i c   f u n c t i o n   g e t F i n i s h e d G o o d s D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ C a r t O p e n = f a l s e ) 
 
 
 
     L i n e   3 7 1   [ m a t c h :   e p i c o r ] : 
 
         3 6 9 :           p u b l i c   f u n c t i o n   g e t F i n i s h e d G o o d s D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ C a r t O p e n = f a l s e ) 
 
         3 7 0 :           { 
 
   > >   3 7 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 7 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   3 7 2   [ m a t c h :   e p i c o r ] : 
 
         3 7 0 :           { 
 
         3 7 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 7 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         3 7 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   3 7 8   [ m a t c h :   e p i c o r ] : 
 
         3 7 6 :                   $ R O S h i p m e n t R e q u e s t R e p o   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
         3 7 7 :   
 
   > >   3 7 8 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 7 9 :   
 
         3 8 0 :   
 
 
 
     L i n e   3 8 7   [ m a t c h :   e p i c o r ] : 
 
         3 8 5 :                   f o r e a c h   ( $ D a t a   a s   $ i   = >   $ D a t a R o w )   { 
 
         3 8 6 :                           / / g e t   t h e   r e l e a s e   i d   i f   t h e r e   i s   o n e 
 
   > >   3 8 7 :                           $ D a t a [ $ i ] [ ' S h i p m e n t R e l e a s e I d ' ]   =   $ R O S h i p m e n t R e q u e s t R e p o - > g e t N o n C a n c e l l e d S h i p m e n t R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' V o r t e q P a r t N u m ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         3 8 8 :                   } 
 
         3 8 9 :   
 
 
 
     L i n e   4 1 2   [ m a t c h :   e p i c o r ] : 
 
         4 1 0 :             *   @ p a r a m   $ I n c l u d e S h i p m e n t R e l e a s e I n f o 
 
         4 1 1 :             *   @ r e t u r n   G r i d 
 
   > >   4 1 2 :             *   @ t h r o w s   \ A p p \ E x c e p t i o n s \ N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         4 1 3 :             * / 
 
         4 1 4 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d O t h e r D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ C a r t O p e n = f a l s e ) 
 
 
 
     L i n e   4 1 6   [ m a t c h :   e p i c o r ] : 
 
         4 1 4 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d O t h e r D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ C a r t O p e n = f a l s e ) 
 
         4 1 5 :           { 
 
   > >   4 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 1 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   4 1 7   [ m a t c h :   e p i c o r ] : 
 
         4 1 5 :           { 
 
         4 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 1 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         4 1 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   4 2 3   [ m a t c h :   e p i c o r ] : 
 
         4 2 1 :                   $ R O S h i p m e n t R e q u e s t R e p o   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
         4 2 2 :   
 
   > >   4 2 3 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         4 2 4 :   
 
         4 2 5 :   
 
 
 
     L i n e   4 3 2   [ m a t c h :   e p i c o r ] : 
 
         4 3 0 :                   f o r e a c h   ( $ D a t a   a s   $ i   = >   $ D a t a R o w )   { 
 
         4 3 1 :                           / / g e t   t h e   r e l e a s e   i d   i f   t h e r e   i s   o n e 
 
   > >   4 3 2 :                           $ D a t a [ $ i ] [ ' S h i p m e n t R e l e a s e I d ' ]   =   $ R O S h i p m e n t R e q u e s t R e p o - > g e t N o n C a n c e l l e d S h i p m e n t R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' V o r t e q P a r t N u m ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         4 3 3 :                   } 
 
         4 3 4 :   
 
 
 
     L i n e   4 6 0   [ m a t c h :   e p i c o r ] : 
 
         4 5 8 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d R R D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         4 5 9 :           { 
 
   > >   4 6 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 6 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 6 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   4 6 1   [ m a t c h :   e p i c o r ] : 
 
         4 5 9 :           { 
 
         4 6 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 6 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 6 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         4 6 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   4 6 7   [ m a t c h :   e p i c o r ] : 
 
         4 6 5 :                   $ R O S h i p m e n t R e q u e s t R e p o   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
         4 6 6 :   
 
   > >   4 6 7 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         4 6 8 :   
 
         4 6 9 :                   / / a d d   t h e   r e l e a s e   i d   a n d   c o m b i n e d   j o b   /   s a l e s   n u m b e r 
 
 
 
     L i n e   4 7 2   [ m a t c h :   e p i c o r ] : 
 
         4 7 0 :                   f o r e a c h   ( $ D a t a   a s   $ i   = >   $ D a t a R o w )   { 
 
         4 7 1 :                           / / g e t   t h e   r e l e a s e   i d   i f   t h e r e   i s   o n e 
 
   > >   4 7 2 :                           $ D a t a [ $ i ] [ ' S h i p m e n t R e l e a s e I d ' ]   =   $ R O S h i p m e n t R e q u e s t R e p o - > g e t N o n C a n c e l l e d S h i p m e n t R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' V o r t e q P a r t N u m ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         4 7 3 :                   } 
 
         4 7 4 :   
 
 
 
     L i n e   4 8 7   [ m a t c h :   e p i c o r ] : 
 
         4 8 5 :           p u b l i c   f u n c t i o n   g e t L o t S e a r c h H i s t o r y G r i d ( $ L o t N u m ) 
 
         4 8 6 :           { 
 
   > >   4 8 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 8 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 8 9 :   
 
 
 
     L i n e   4 8 8   [ m a t c h :   e p i c o r ] : 
 
         4 8 6 :           { 
 
         4 8 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 8 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 8 9 :   
 
         4 9 0 :                   $ D a t a   =   $ E p i c o r D B - > g e t L o t S e a r c h H i s t o r y ( $ L o t N u m ) ; 
 
 
 
     L i n e   4 9 0   [ m a t c h :   e p i c o r ] : 
 
         4 8 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 8 9 :   
 
   > >   4 9 0 :                   $ D a t a   =   $ E p i c o r D B - > g e t L o t S e a r c h H i s t o r y ( $ L o t N u m ) ; 
 
         4 9 1 :   
 
         4 9 2 :   
 
 
 
     L i n e   5 1 6   [ m a t c h :   e p i c o r ] : 
 
         5 1 4 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d S u m m a r y E x c e l R e s p o n s e ( ) 
 
         5 1 5 :           { 
 
   > >   5 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 1 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   5 1 7   [ m a t c h :   e p i c o r ] : 
 
         5 1 5 :           { 
 
         5 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 1 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         5 1 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   5 2 1   [ m a t c h :   e p i c o r ] : 
 
         5 1 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         5 2 0 :   
 
   > >   5 2 1 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         5 2 2 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t U n p r o c e s s e d S u m m a r y M e t a d a t a ( f a l s e ) ,   $ D a t a ) ; 
 
         5 2 3 :           } 
 
 
 
     L i n e   5 3 0   [ m a t c h :   e p i c o r ] : 
 
         5 2 8 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d R R S u m m a r y E x c e l R e s p o n s e ( ) 
 
         5 2 9 :           { 
 
   > >   5 3 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 3 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 3 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   5 3 1   [ m a t c h :   e p i c o r ] : 
 
         5 2 9 :           { 
 
         5 3 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 3 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 3 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         5 3 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   5 3 5   [ m a t c h :   e p i c o r ] : 
 
         5 3 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         5 3 4 :   
 
   > >   5 3 5 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         5 3 6 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t U n p r o c e s s e d R R S u m m a r y M e t a d a t a ( f a l s e ) ,   $ D a t a ) ; 
 
         5 3 7 :           } 
 
 
 
     L i n e   5 4 4   [ m a t c h :   e p i c o r ] : 
 
         5 4 2 :           p u b l i c   f u n c t i o n   g e t W o r k I n P r o g r e s s S u m m a r y E x c e l R e s p o n s e ( ) 
 
         5 4 3 :           { 
 
   > >   5 4 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 4 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 4 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   5 4 5   [ m a t c h :   e p i c o r ] : 
 
         5 4 3 :           { 
 
         5 4 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 4 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 4 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         5 4 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   5 4 9   [ m a t c h :   e p i c o r ] : 
 
         5 4 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         5 4 8 :   
 
   > >   5 4 9 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         5 5 0 :   
 
         5 5 1 :   
 
 
 
     L i n e   5 6 4   [ m a t c h :   e p i c o r ] : 
 
         5 6 2 :           p u b l i c   f u n c t i o n   g e t F i n i s h e d G o o d s S u m m a r y E x c e l R e s p o n s e ( ) 
 
         5 6 3 :           { 
 
   > >   5 6 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 6 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 6 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   5 6 5   [ m a t c h :   e p i c o r ] : 
 
         5 6 3 :           { 
 
         5 6 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 6 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 6 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         5 6 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   5 6 9   [ m a t c h :   e p i c o r ] : 
 
         5 6 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         5 6 8 :   
 
   > >   5 6 9 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         5 7 0 :   
 
         5 7 1 :   
 
 
 
     L i n e   5 8 4   [ m a t c h :   e p i c o r ] : 
 
         5 8 2 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d O t h e r S u m m a r y E x c e l R e s p o n s e ( ) 
 
         5 8 3 :           { 
 
   > >   5 8 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 8 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 8 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   5 8 5   [ m a t c h :   e p i c o r ] : 
 
         5 8 3 :           { 
 
         5 8 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 8 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 8 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         5 8 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   5 8 9   [ m a t c h :   e p i c o r ] : 
 
         5 8 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         5 8 8 :   
 
   > >   5 8 9 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         5 9 0 :   
 
         5 9 1 :   
 
 
 
     L i n e   6 0 4   [ m a t c h :   e p i c o r ] : 
 
         6 0 2 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d R R S u m m a r y E x c e l R e s p o n s e ( ) 
 
         6 0 3 :           { 
 
   > >   6 0 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         6 0 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 0 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   6 0 5   [ m a t c h :   e p i c o r ] : 
 
         6 0 3 :           { 
 
         6 0 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   6 0 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 0 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         6 0 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   6 0 9   [ m a t c h :   e p i c o r ] : 
 
         6 0 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         6 0 8 :   
 
   > >   6 0 9 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         6 1 0 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t P r o c e s s e d R R S u m m a r y M e t a d a t a ( f a l s e ) ,   $ D a t a ) ; 
 
         6 1 1 :           } 
 
 
 
     L i n e   6 2 1   [ m a t c h :   e p i c o r ] : 
 
         6 1 9 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d D e t a i l s E x c e l R e s p o n s e ( $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
         6 2 0 :           { 
 
   > >   6 2 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         6 2 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 2 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   6 2 2   [ m a t c h :   e p i c o r ] : 
 
         6 2 0 :           { 
 
         6 2 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   6 2 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 2 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         6 2 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   6 2 9   [ m a t c h :   e p i c o r ] : 
 
         6 2 7 :   
 
         6 2 8 :   
 
   > >   6 2 9 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         6 3 0 :   
 
         6 3 1 :   
 
 
 
     L i n e   6 6 6   [ m a t c h :   e p i c o r ] : 
 
         6 6 4 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d R R D e t a i l s E x c e l R e s p o n s e ( $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
         6 6 5 :           { 
 
   > >   6 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         6 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 6 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   6 6 7   [ m a t c h :   e p i c o r ] : 
 
         6 6 5 :           { 
 
         6 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   6 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 6 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         6 6 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   6 7 1   [ m a t c h :   e p i c o r ] : 
 
         6 6 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         6 7 0 :   
 
   > >   6 7 1 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         6 7 2 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t U n p r o c e s s e d R R D e t a i l s M e t a d a t a ( t r u e ,   f a l s e ,   f a l s e ) ,   $ D a t a ) ; 
 
         6 7 3 :           } 
 
 
 
     L i n e   6 8 5   [ m a t c h :   e p i c o r ] : 
 
         6 8 3 :                   i n i _ s e t ( ' m e m o r y _ l i m i t ' ,   ' 2 G ' ) ; 
 
         6 8 4 :   
 
   > >   6 8 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         6 8 6 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 8 7 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   6 8 6   [ m a t c h :   e p i c o r ] : 
 
         6 8 4 :   
 
         6 8 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   6 8 6 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 8 7 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         6 8 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   6 9 0   [ m a t c h :   e p i c o r ] : 
 
         6 8 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         6 8 9 :   
 
   > >   6 9 0 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         6 9 1 :   
 
         6 9 2 :   
 
 
 
     L i n e   7 3 9   [ m a t c h :   e p i c o r ] : 
 
         7 3 7 :                   i n i _ s e t ( ' m e m o r y _ l i m i t ' ,   ' 2 G ' ) ; 
 
         7 3 8 :   
 
   > >   7 3 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         7 4 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         7 4 1 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   7 4 0   [ m a t c h :   e p i c o r ] : 
 
         7 3 8 :   
 
         7 3 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   7 4 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         7 4 1 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         7 4 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   7 4 4   [ m a t c h :   e p i c o r ] : 
 
         7 4 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         7 4 3 :   
 
   > >   7 4 4 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         7 4 5 :   
 
         7 4 6 :   
 
 
 
     L i n e   7 9 3   [ m a t c h :   e p i c o r ] : 
 
         7 9 1 :                   i n i _ s e t ( ' m e m o r y _ l i m i t ' ,   ' 2 G ' ) ; 
 
         7 9 2 :   
 
   > >   7 9 3 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         7 9 4 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         7 9 5 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   7 9 4   [ m a t c h :   e p i c o r ] : 
 
         7 9 2 :   
 
         7 9 3 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   7 9 4 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         7 9 5 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         7 9 6 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   7 9 8   [ m a t c h :   e p i c o r ] : 
 
         7 9 6 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         7 9 7 :   
 
   > >   7 9 8 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         7 9 9 :   
 
         8 0 0 :   
 
 
 
     L i n e   8 4 5   [ m a t c h :   e p i c o r ] : 
 
         8 4 3 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d R R D e t a i l s E x c e l R e s p o n s e ( $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
         8 4 4 :           { 
 
   > >   8 4 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         8 4 6 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 4 7 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   8 4 6   [ m a t c h :   e p i c o r ] : 
 
         8 4 4 :           { 
 
         8 4 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   8 4 6 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 4 7 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         8 4 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   8 5 0   [ m a t c h :   e p i c o r ] : 
 
         8 4 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         8 4 9 :   
 
   > >   8 5 0 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         8 5 1 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t P r o c e s s e d R R D e t a i l s M e t a d a t a ( t r u e ,   f a l s e ,   f a l s e ,   t r u e ) ,   $ D a t a ) ; 
 
         8 5 2 :           } 
 
 
 
     L i n e   9 5 2   [ m a t c h :   e p i c o r ] : 
 
         9 5 0 :                   } 
 
         9 5 1 :   
 
   > >   9 5 2 :                   r e t u r n   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) )   .   '   -   '   .   $ S o u r c e D i s p l a y   .   '   '   .   d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) ) ; 
 
         9 5 3 :           } 
 
         9 5 4 :   
 
 
 
     L i n e   9 7 0   [ m a t c h :   e p i c o r ] : 
 
         9 6 8 :                   $ P r o c e s s e d R R E x c e l R e s p o n s e   =   $ t h i s - > g e t P r o c e s s e d R R S u m m a r y E x c e l R e s p o n s e ( ) ; 
 
         9 6 9 :   
 
   > >   9 7 0 :                   $ c a c h e K e y   =   ' i n v _ '   .   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( )   .   ' _ '   .   u n i q i d ( ' ' ,   t r u e )   .   ' _ '   .   m i c r o t i m e ( )   .   ' _ '   .   r a n d ( ) ; 
 
         9 7 1 :   
 
         9 7 2 :                   r e t u r n   $ t h i s - > _ g e t E x c e l E x p o r t C o n t e n t s ( $ c a c h e K e y ,   $ U n p r o c e s s e d E x c e l R e s p o n s e ,   $ U n p r o c e s s e d R R E x c e l R e s p o n s e ,   $ W o r k I n P r o g r e s s E x c e l R e s p o n s e ,   $ F i n i s h e d G o o d s E x c e l R e s p o n s e ,   $ P r o c e s s e d O t h e r E x c e l R e s p o n s e ,   $ P r o c e s s e d R R E x c e l R e s p o n s e ) ; 
 
 
 
     L i n e   1 0 0 3   [ m a t c h :   e p i c o r ] : 
 
         1 0 0 1 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 0 0 2 :   
 
   > >   1 0 0 3 :                   $ c a c h e K e y   =   ' i n v _ '   .   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( )   .   ' _ '   .   u n i q i d ( ' ' ,   t r u e )   .   ' _ '   .   m i c r o t i m e ( )   .   ' _ '   .   r a n d ( ) ; 
 
         1 0 0 4 :   
 
         1 0 0 5 :                     $ U n p r o c e s s e d G r i d   =   $ t h i s - > g e t U n p r o c e s s e d S u m m a r y G r i d ( f a l s e ,   f a l s e ,   f a l s e ,   f a l s e ,   t r u e ) ; 
 
 
 
     L i n e   1 1 2 8   [ m a t c h :   e p i c o r ] : 
 
         1 1 2 6 :                   $ c o m p   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 1 2 7 :   
 
   > >   1 1 2 8 :                   $ c u s t o m e r =   $ c o m p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         1 1 2 9 :   
 
         1 1 3 0 :   
 
 
 
     L i n e   1 1 3 3   [ m a t c h :   e p i c o r ] : 
 
         1 1 3 1 :   
 
         1 1 3 2 :   
 
   > >   1 1 3 3 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         1 1 3 4 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 1 3 5 :   
 
 
 
     L i n e   1 1 3 4   [ m a t c h :   e p i c o r ] : 
 
         1 1 3 2 :   
 
         1 1 3 3 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   1 1 3 4 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 1 3 5 :   
 
         1 1 3 6 :   
 
 
 
     L i n e   1 1 3 8   [ m a t c h :   e p i c o r ] : 
 
         1 1 3 6 :   
 
         1 1 3 7 :   
 
   > >   1 1 3 8 :                   r e t u r n     $ E p i c o r D a t a b a s e - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ c u s t o m e r ) ; 
 
         1 1 3 9 :   
 
         1 1 4 0 :           } 
 
 
 
     L i n e   1 2 4 5   [ m a t c h :   e p i c o r ] : 
 
         1 2 4 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 2 4 4 :   
 
   > >   1 2 4 5 :                   $ c a c h e K e y   =   ' i n v _ d e t a i l _ ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' _ ' . u n i q i d ( ' ' , t r u e ) . ' _ ' . m i c r o t i m e ( ) . ' _ ' . r a n d ( ) ; 
 
         1 2 4 6 :   
 
         1 2 4 7 :                   $ U n p r o c e s s e d G r i d   =   $ t h i s - > g e t U n p r o c e s s e d D e t a i l s G r i d ( n u l l ,   n u l l ,   n u l l ,   f a l s e ,   t r u e ,   f a l s e ,   f a l s e ) ; 
 
 
 
     L i n e   1 2 7 4   [ m a t c h :   e p i c o r ] : 
 
         1 2 7 2 :                   $ P r o c e s s e d R R E x c e l R e s p o n s e   =   $ t h i s - > g e t P r o c e s s e d R R D e t a i l s E x c e l R e s p o n s e ( ) ; 
 
         1 2 7 3 :   
 
   > >   1 2 7 4 :                   $ c a c h e K e y   =   ' i n v _ d e t a i l _ ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' _ ' . u n i q i d ( ' ' , t r u e ) . ' _ ' . m i c r o t i m e ( ) . ' _ ' . r a n d ( ) ; 
 
         1 2 7 5 :   
 
         1 2 7 6 :                   r e t u r n   $ t h i s - > _ g e t E x c e l E x p o r t C o n t e n t s ( $ c a c h e K e y ,   $ U n p r o c e s s e d E x c e l R e s p o n s e ,   $ U n p r o c e s s e d R R E x c e l R e s p o n s e ,   $ W o r k I n P r o g r e s s E x c e l R e s p o n s e ,   $ F i n i s h e d G o o d s E x c e l R e s p o n s e ,   $ P r o c e s s e d O t h e r E x c e l R e s p o n s e ,   $ P r o c e s s e d R R E x c e l R e s p o n s e ) ; 
 
 
 
     L i n e   1 3 0 5   [ m a t c h :   e p i c o r ] : 
 
         1 3 0 3 :           } 
 
         1 3 0 4 :   
 
   > >   1 3 0 5 :           p u b l i c   f u n c t i o n   _ s e t u p C o m m o n S u m m a r y G r i d ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) 
 
         1 3 0 6 :           { 
 
         1 3 0 7 :   
 
 
 
     L i n e   1 3 3 5   [ m a t c h :   e p i c o r ] : 
 
         1 3 3 3 :   
 
         1 3 3 4 :                   / * *   @ v a r   G r i d   $ G r i d   * / 
 
   > >   1 3 3 5 :                   $ G r i d   =   $ G r i d F a c t o r y - > c r e a t e ( $ M e t a d a t a ,   ' i n v e n t o r y _ s u m m a r y _ g r i d _ ' . $ M e t a d a t a - > g e t N a m e ( ) . ( $ T r a c k D i s p l a y ? ' _ ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) : ' ' ) ) ; 
 
         1 3 3 6 :   
 
         1 3 3 7 :   
 
 
 
     L i n e   1 4 0 3   [ m a t c h :   e p i c o r ] : 
 
         1 4 0 1 :           } 
 
         1 4 0 2 :   
 
   > >   1 4 0 3 :           p u b l i c   f u n c t i o n   _ s e t u p C o m m o n D e t a i l s G r i d ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ,   $ G r i d P a g i n g ,   $ C a r t O p e n = f a l s e ) 
 
         1 4 0 4 :           { 
 
         1 4 0 5 :                   / * *   @ v a r   G r i d F a c t o r y   $ G r i d F a c t o r y   * / 
 
 
 
     L i n e   1 4 3 3   [ m a t c h :   e p i c o r ] : 
 
         1 4 3 1 :                                   e l s e i f ( ( $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( )   | |   $ C a r t O p e n )   & &   $ S h i p m e n t C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ S h i p m e n t C a r t - > i s D e t a i l I n C a r t ( $ D a t a R o w [ ' V o r t e q P a r t N u m ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   ( i n t ) $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ) 
 
         1 4 3 2 :                                           $ D a t a [ $ i ] [ ' S h i p m e n t S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " ' . a s s e t ( ' i m g / c y c l o n e - p u r p l e . p n g ' ) . ' "   t i t l e = " I n   y o u r   s h i p m e n t "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   s h i p m e n t . 
 
   > >   1 4 3 3 :                                   e l s e i f ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d S h i p m e n t E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' V o r t e q P a r t N u m ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ) 
 
         1 4 3 4 :                                           $ D a t a [ $ i ] [ ' S h i p m e n t S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " ' . a s s e t ( ' i m g / c y c l o n e - g r a y . p n g ' ) . ' "   t i t l e = " A l r e a d y   p a r t   o f   a n o t h e r   s h i p m e n t "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   a l t :   T h i s   i t e m   i s   a l r e a d y   i n   a n o t h e r   s h i p m e n t   r e l e a s e . 
 
         1 4 3 5 :   
 
 
 
     L i n e   1 4 9 5   [ m a t c h :   e p i c o r ] : 
 
         1 4 9 3 :   
 
         1 4 9 4 :           / * * 
 
   > >   1 4 9 5 :             *   @ p a r a m   E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a 
 
         1 4 9 6 :             *   @ p a r a m   a r r a y   $ D a t a 
 
         1 4 9 7 :             *   @ r e t u r n   R e s p o n s e 
 
 
 
     L i n e   1 4 9 9   [ m a t c h :   e p i c o r ] : 
 
         1 4 9 7 :             *   @ r e t u r n   R e s p o n s e 
 
         1 4 9 8 :             * / 
 
   > >   1 4 9 9 :           p u b l i c   f u n c t i o n   _ s e t u p C o m m o n E x c e l ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ) 
 
         1 5 0 0 :           { 
 
         1 5 0 1 :                   / * *   @ v a r   G r i d R e s p o n s e F a c t o r y   $ G r i d R e s p o n s e F a c t o r y   * / 
 
 
 
     L i n e   1 5 9 1   [ m a t c h :   e p i c o r ] : 
 
         1 5 8 9 :           p u b l i c   f u n c t i o n   _ g e t U n p r o c e s s e d S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         1 5 9 0 :           { 
 
   > >   1 5 9 1 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y S u m m a r y ' ) ; 
 
         1 5 9 2 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   f a l s e ) ; 
 
         1 5 9 3 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 5 9 8   [ m a t c h :   e p i c o r ] : 
 
         1 5 9 6 :           p u b l i c   f u n c t i o n   _ g e t U n p r o c e s s e d R R S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         1 5 9 7 :           { 
 
   > >   1 5 9 8 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' ) ; 
 
         1 5 9 9 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   f a l s e ) ; 
 
         1 6 0 0 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 6 0 5   [ m a t c h :   e p i c o r ] : 
 
         1 6 0 3 :           p u b l i c   f u n c t i o n   _ g e t W o r k I n P r o g r e s s S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         1 6 0 4 :           { 
 
   > >   1 6 0 5 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' ) ; 
 
         1 6 0 6 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   t r u e ) ; 
 
         1 6 0 7 :   
 
 
 
     L i n e   1 6 3 4   [ m a t c h :   e p i c o r ] : 
 
         1 6 3 2 :           p u b l i c   f u n c t i o n   _ g e t F i n i s h e d G o o d s S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         1 6 3 3 :           { 
 
   > >   1 6 3 4 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y S u m m a r y ' ) ; 
 
         1 6 3 5 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   t r u e ) ; 
 
         1 6 3 6 :   
 
 
 
     L i n e   1 6 6 3   [ m a t c h :   e p i c o r ] : 
 
         1 6 6 1 :           p u b l i c   f u n c t i o n   _ g e t P r o c e s s e d O t h e r S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         1 6 6 2 :           { 
 
   > >   1 6 6 3 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y ' ) ; 
 
         1 6 6 4 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   t r u e ) ; 
 
         1 6 6 5 :   
 
 
 
     L i n e   1 6 9 2   [ m a t c h :   e p i c o r ] : 
 
         1 6 9 0 :           p u b l i c   f u n c t i o n   _ g e t P r o c e s s e d R R S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         1 6 9 1 :           { 
 
   > >   1 6 9 2 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' ) ; 
 
         1 6 9 3 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   t r u e ) ; 
 
         1 6 9 4 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 6 9 7   [ m a t c h :   e p i c o r ] : 
 
         1 6 9 5 :           } 
 
         1 6 9 6 :   
 
   > >   1 6 9 7 :           p u b l i c   f u n c t i o n   _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   $ I n c l u d e C u s t o m e r P a r t N u m ) 
 
         1 6 9 8 :           { 
 
         1 6 9 9 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P h o n y I D   * / 
 
 
 
     L i n e   1 7 3 0   [ m a t c h :   e p i c o r ] : 
 
         1 7 2 8 :           } 
 
         1 7 2 9 :   
 
   > >   1 7 3 0 :           p u b l i c   f u n c t i o n   _ a p p e n d S h a r e d S u m m a r y M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   / * *   @ n o i n s p e c t i o n   P h p U n u s e d P a r a m e t e r I n s p e c t i o n   * /   $ I n c l u d e L i n k s ,   $ I n c l u d e C u s t o m e r P a r t N u m ) 
 
         1 7 3 1 :           { 
 
         1 7 3 2 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P l a n t   * / 
 
 
 
     L i n e   1 7 8 2   [ m a t c h :   e p i c o r ] : 
 
         1 7 8 0 :           p u b l i c   f u n c t i o n   _ g e t U n p r o c e s s e d D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         1 7 8 1 :           { 
 
   > >   1 7 8 2 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y ' ) ; 
 
         1 7 8 3 :                   $ t h i s - > _ a p p e n d C o m m o n U n p r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ; 
 
         1 7 8 4 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 7 8 9   [ m a t c h :   e p i c o r ] : 
 
         1 7 8 7 :           p u b l i c   f u n c t i o n   _ g e t U n p r o c e s s e d R R D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         1 7 8 8 :           { 
 
   > >   1 7 8 9 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ' ) ; 
 
         1 7 9 0 :                   $ t h i s - > _ a p p e n d C o m m o n U n p r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ; 
 
         1 7 9 1 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 7 9 6   [ m a t c h :   e p i c o r ] : 
 
         1 7 9 4 :           p u b l i c   f u n c t i o n   _ g e t W o r k I n P r o g r e s s D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) 
 
         1 7 9 5 :           { 
 
   > >   1 7 9 6 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y ' ) ; 
 
         1 7 9 7 :                   $ t h i s - > _ a p p e n d C o m m o n P r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) ; 
 
         1 7 9 8 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 8 0 3   [ m a t c h :   e p i c o r ] : 
 
         1 8 0 1 :           p u b l i c   f u n c t i o n   _ g e t F i n i s h e d G o o d s D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) 
 
         1 8 0 2 :           { 
 
   > >   1 8 0 3 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y ' ) ; 
 
         1 8 0 4 :                   $ t h i s - > _ a p p e n d C o m m o n P r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) ; 
 
         1 8 0 5 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 8 1 0   [ m a t c h :   e p i c o r ] : 
 
         1 8 0 8 :           p u b l i c   f u n c t i o n   _ g e t P r o c e s s e d O t h e r D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) 
 
         1 8 0 9 :           { 
 
   > >   1 8 1 0 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y ' ) ; 
 
         1 8 1 1 :                   $ t h i s - > _ a p p e n d C o m m o n P r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) ; 
 
         1 8 1 2 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 8 1 7   [ m a t c h :   e p i c o r ] : 
 
         1 8 1 5 :           p u b l i c   f u n c t i o n   _ g e t P r o c e s s e d R R D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) 
 
         1 8 1 6 :           { 
 
   > >   1 8 1 7 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ' ) ; 
 
         1 8 1 8 :                   $ t h i s - > _ a p p e n d C o m m o n P r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) ; 
 
         1 8 1 9 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 8 2 2   [ m a t c h :   e p i c o r ] : 
 
         1 8 2 0 :           } 
 
         1 8 2 1 :   
 
   > >   1 8 2 2 :           p u b l i c   f u n c t i o n   _ a p p e n d C o m m o n U n p r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         1 8 2 3 :           { 
 
         1 8 2 4 :                   $ t h i s - > _ a p p e n d C o m m o n D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ; 
 
 
 
     L i n e   1 9 2 6   [ m a t c h :   e p i c o r ] : 
 
         1 9 2 4 :           } 
 
         1 9 2 5 :   
 
   > >   1 9 2 6 :           p u b l i c   f u n c t i o n   _ a p p e n d C o m m o n P r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) 
 
         1 9 2 7 :           { 
 
         1 9 2 8 :                   $ t h i s - > _ a p p e n d C o m m o n D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ; 
 
 
 
     L i n e   1 9 7 4   [ m a t c h :   e p i c o r ] : 
 
         1 9 7 2 :                   $ G e t S e s s i o n   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 9 7 3 :   
 
   > >   1 9 7 4 :                   $ C u s t I D   =   $ G e t S e s s i o n - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         1 9 7 5 :   
 
         1 9 7 6 :                   / * *   @ v a r   Q u e s t P a g e V a l u e s   $ Q P V   * / 
 
 
 
     L i n e   2 1 1 6   [ m a t c h :   e p i c o r ] : 
 
         2 1 1 4 :           } 
 
         2 1 1 5 :   
 
   > >   2 1 1 6 :           p u b l i c   f u n c t i o n   _ a p p e n d C o m m o n D e t a i l s M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         2 1 1 7 :           { 
 
         2 1 1 8 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P h o n y I D   * / 
 
 
 
     L i n e   2 4 6 7   [ m a t c h :   e p i c o r ] : 
 
         2 4 6 5 :   
 
         2 4 6 6 :                   $ E x c e l E x p o r t e r   =   n e w   E x c e l ( ) ; 
 
   > >   2 4 6 7 :                   $ E x p o r t N a m e   =   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) . '   I n v e n t o r y   ' . $ T y p e L a b e l . '   ' . d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) ) ; 
 
         2 4 6 8 :                   r e t u r n   $ E x p o r t N a m e . ' . ' . $ E x c e l E x p o r t e r - > g e t F i l e E x t e n s i o n ( ) ; 
 
         2 4 6 9 :           } 
 
 
 
     L i n e   2 5 8 4   [ m a t c h :   e p i c o r ] : 
 
         2 5 8 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 5 8 3 :   
 
   > >   2 5 8 4 :                   r e t u r n   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) . '   I n v e n t o r y   ' . $ T y p e L a b e l . '   ' . d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) ) . ' . p d f ' ; 
 
         2 5 8 5 :           } 
 
         2 5 8 6 :   
 
 
 
     L i n e   2 5 8 9   [ m a t c h :   e p i c o r ] : 
 
         2 5 8 7 :           p u b l i c   f u n c t i o n   _ g e t L o t S e a r c h M e t a d a t a ( ) 
 
         2 5 8 8 :           { 
 
   > >   2 5 8 9 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ L o t S e a r c h ' ) ; 
 
         2 5 9 0 :   
 
         2 5 9 1 :                   / * *   g u t s   * / 
 
 
 
     L i n e   6   [ m a t c h :   E p i c o r ] : 
 
         4 :   u s e   A p p \ M o d e l \ R e p o s \ s h i p _ R e q u e s t   a s   s h i p _ R e q u e s t R e p o ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ A l l o c C a r t ; 
 
   > >   6 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         7 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a ; 
 
         8 :   u s e   A p p \ S e r v i c e s \ G r i d \ S u m m a r y M e n u T e m p l a t e ; 
 
 
 
     L i n e   7   [ m a t c h :   E p i c o r ] : 
 
         5 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ A l l o c C a r t ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
   > >   7 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a ; 
 
         8 :   u s e   A p p \ S e r v i c e s \ G r i d \ S u m m a r y M e n u T e m p l a t e ; 
 
         9 :   u s e   E x c e p t i o n ; 
 
 
 
     L i n e   6 8   [ m a t c h :   E p i c o r ] : 
 
         6 6 :                   $ c o m p a n y   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) ; 
 
         6 7 :   
 
   > >   6 8 :                   i f   ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( )   ! = =   ' H D Q ' )   { 
 
         6 9 :                           $ p a g e s - > a d d P a g e ( $ t h i s - > _ g e t U n p r o c e s s e d P a g e ( $ i s R e m o t e ,   $ r e m o t e _ p a g e _ i d ) ) ; 
 
         7 0 :                           $ p a g e s - > a d d P a g e ( $ t h i s - > _ g e t U n p r o c e s s e d R e j e c t s R e t u r n s P a g e ( $ i s R e m o t e ,   $ r e m o t e _ p a g e _ i d ) ) ; 
 
 
 
     L i n e   7 7   [ m a t c h :   E p i c o r ] : 
 
         7 5 :                   $ p a g e s - > a d d P a g e ( $ t h i s - > _ g e t P r o c e s s e d O t h e r P a g e ( $ i s R e m o t e ,   $ r e m o t e _ p a g e _ i d ) ) ; 
 
         7 6 :   
 
   > >   7 7 :                   i f   ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( )   ! = =   ' H D Q ' )   { 
 
         7 8 :                           $ p a g e s - > a d d P a g e ( $ t h i s - > _ g e t P r o c e s s e d R e j e c t s R e t u r n s P a g e ( $ i s R e m o t e ,   $ r e m o t e _ p a g e _ i d ) ) ; 
 
         7 9 :                   } 
 
 
 
     L i n e   1 0 9   [ m a t c h :   E p i c o r ] : 
 
         1 0 7 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a   =   f a l s e ) 
 
         1 0 8 :           { 
 
   > >   1 0 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 1 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 1 1 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 1 0   [ m a t c h :   E p i c o r ] : 
 
         1 0 8 :           { 
 
         1 0 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 1 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 1 1 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 1 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 1 4   [ m a t c h :   E p i c o r ] : 
 
         1 1 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 1 3 :   
 
   > >   1 1 4 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         1 1 5 :   
 
         1 1 6 :                   / / i f   ( $ r e t u r n D a t a ) 
 
 
 
     L i n e   1 4 1   [ m a t c h :   E p i c o r ] : 
 
         1 3 9 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d R R S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ) 
 
         1 4 0 :           { 
 
   > >   1 4 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 4 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 4 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 4 2   [ m a t c h :   E p i c o r ] : 
 
         1 4 0 :           { 
 
         1 4 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 4 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 4 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 4 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 4 6   [ m a t c h :   E p i c o r ] : 
 
         1 4 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 4 5 :   
 
   > >   1 4 6 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         1 4 7 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n S u m m a r y G r i d ( $ t h i s - > _ g e t U n p r o c e s s e d R R S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) ,   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) ; 
 
         1 4 8 :   
 
 
 
     L i n e   1 6 6   [ m a t c h :   E p i c o r ] : 
 
         1 6 4 :           p u b l i c   f u n c t i o n   g e t W o r k I n P r o g r e s s S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ) 
 
         1 6 5 :           { 
 
   > >   1 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 6 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 6 7   [ m a t c h :   E p i c o r ] : 
 
         1 6 5 :           { 
 
         1 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 6 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 6 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 7 1   [ m a t c h :   E p i c o r ] : 
 
         1 6 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 7 0 :   
 
   > >   1 7 1 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         1 7 2 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n S u m m a r y G r i d ( $ t h i s - > _ g e t W o r k I n P r o g r e s s S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) ,   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) ; 
 
         1 7 3 :   
 
 
 
     L i n e   1 9 1   [ m a t c h :   E p i c o r ] : 
 
         1 8 9 :           p u b l i c   f u n c t i o n   g e t F i n i s h e d G o o d s S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ) 
 
         1 9 0 :           { 
 
   > >   1 9 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 9 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 9 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 9 2   [ m a t c h :   E p i c o r ] : 
 
         1 9 0 :           { 
 
         1 9 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 9 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 9 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 9 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 9 6   [ m a t c h :   E p i c o r ] : 
 
         1 9 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 9 5 :   
 
   > >   1 9 6 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         1 9 7 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n S u m m a r y G r i d ( $ t h i s - > _ g e t F i n i s h e d G o o d s S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) ,   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) ; 
 
         1 9 8 :   
 
 
 
     L i n e   2 1 6   [ m a t c h :   E p i c o r ] : 
 
         2 1 4 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d O t h e r S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ) 
 
         2 1 5 :           { 
 
   > >   2 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 1 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   2 1 7   [ m a t c h :   E p i c o r ] : 
 
         2 1 5 :           { 
 
         2 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 1 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 1 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   2 2 1   [ m a t c h :   E p i c o r ] : 
 
         2 1 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 2 0 :   
 
   > >   2 2 1 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         2 2 2 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n S u m m a r y G r i d ( $ t h i s - > _ g e t P r o c e s s e d O t h e r S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) ,   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) ; 
 
         2 2 3 :   
 
 
 
     L i n e   2 4 1   [ m a t c h :   E p i c o r ] : 
 
         2 3 9 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d R R S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ) 
 
         2 4 0 :           { 
 
   > >   2 4 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 4 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   2 4 2   [ m a t c h :   E p i c o r ] : 
 
         2 4 0 :           { 
 
         2 4 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 4 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 4 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   2 4 6   [ m a t c h :   E p i c o r ] : 
 
         2 4 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 4 5 :   
 
   > >   2 4 6 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         2 4 7 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n S u m m a r y G r i d ( $ t h i s - > _ g e t P r o c e s s e d R R S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) ,   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) ; 
 
         2 4 8 :   
 
 
 
     L i n e   2 6 9   [ m a t c h :   E p i c o r ] : 
 
         2 6 7 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         2 6 8 :           { 
 
   > >   2 6 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 7 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 7 1 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   2 7 0   [ m a t c h :   E p i c o r ] : 
 
         2 6 8 :           { 
 
         2 6 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 7 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 7 1 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 7 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   2 7 4   [ m a t c h :   E p i c o r ] : 
 
         2 7 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 7 3 :   
 
   > >   2 7 4 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         2 7 5 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n D e t a i l s G r i d ( $ t h i s - > _ g e t U n p r o c e s s e d D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ,   $ D a t a ,   $ G r i d P a g i n g ) ; 
 
         2 7 6 :   
 
 
 
     L i n e   2 9 7   [ m a t c h :   E p i c o r ] : 
 
         2 9 5 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d R R D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         2 9 6 :           { 
 
   > >   2 9 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 9 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 9 9 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   2 9 8   [ m a t c h :   E p i c o r ] : 
 
         2 9 6 :           { 
 
         2 9 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 9 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 9 9 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         3 0 0 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   3 0 2   [ m a t c h :   E p i c o r ] : 
 
         3 0 0 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         3 0 1 :   
 
   > >   3 0 2 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 0 3 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n D e t a i l s G r i d ( $ t h i s - > _ g e t U n p r o c e s s e d R R D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ,   $ D a t a ,   $ G r i d P a g i n g ) ; 
 
         3 0 4 :   
 
 
 
     L i n e   3 2 2   [ m a t c h :   E p i c o r ] : 
 
         3 2 0 :             *   @ p a r a m   $ I n c l u d e S h i p m e n t R e l e a s e I n f o 
 
         3 2 1 :             *   @ r e t u r n   G r i d 
 
   > >   3 2 2 :             *   @ t h r o w s   \ A p p \ E x c e p t i o n s \ N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         3 2 3 :             * / 
 
         3 2 4 :           p u b l i c   f u n c t i o n   g e t W o r k I n P r o g r e s s D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ C a r t O p e n = f a l s e ) 
 
 
 
     L i n e   3 2 6   [ m a t c h :   E p i c o r ] : 
 
         3 2 4 :           p u b l i c   f u n c t i o n   g e t W o r k I n P r o g r e s s D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ C a r t O p e n = f a l s e ) 
 
         3 2 5 :           { 
 
   > >   3 2 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 2 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 2 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   3 2 7   [ m a t c h :   E p i c o r ] : 
 
         3 2 5 :           { 
 
         3 2 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 2 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 2 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         3 2 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   3 3 3   [ m a t c h :   E p i c o r ] : 
 
         3 3 1 :                   $ R O S h i p m e n t R e q u e s t R e p o   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
         3 3 2 :   
 
   > >   3 3 3 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 3 4 :   
 
         3 3 5 :   
 
 
 
     L i n e   3 4 2   [ m a t c h :   E p i c o r ] : 
 
         3 4 0 :                   f o r e a c h   ( $ D a t a   a s   $ i   = >   $ D a t a R o w )   { 
 
         3 4 1 :                           / / g e t   t h e   r e l e a s e   i d   i f   t h e r e   i s   o n e 
 
   > >   3 4 2 :                           $ D a t a [ $ i ] [ ' S h i p m e n t R e l e a s e I d ' ]   =   $ R O S h i p m e n t R e q u e s t R e p o - > g e t N o n C a n c e l l e d S h i p m e n t R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' V o r t e q P a r t N u m ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         3 4 3 :                   } 
 
         3 4 4 :   
 
 
 
     L i n e   3 6 7   [ m a t c h :   E p i c o r ] : 
 
         3 6 5 :             *   @ p a r a m   $ I n c l u d e S h i p m e n t R e l e a s e I n f o 
 
         3 6 6 :             *   @ r e t u r n   G r i d 
 
   > >   3 6 7 :             *   @ t h r o w s   \ A p p \ E x c e p t i o n s \ N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         3 6 8 :             * / 
 
         3 6 9 :           p u b l i c   f u n c t i o n   g e t F i n i s h e d G o o d s D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ C a r t O p e n = f a l s e ) 
 
 
 
     L i n e   3 7 1   [ m a t c h :   E p i c o r ] : 
 
         3 6 9 :           p u b l i c   f u n c t i o n   g e t F i n i s h e d G o o d s D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ C a r t O p e n = f a l s e ) 
 
         3 7 0 :           { 
 
   > >   3 7 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 7 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   3 7 2   [ m a t c h :   E p i c o r ] : 
 
         3 7 0 :           { 
 
         3 7 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 7 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         3 7 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   3 7 8   [ m a t c h :   E p i c o r ] : 
 
         3 7 6 :                   $ R O S h i p m e n t R e q u e s t R e p o   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
         3 7 7 :   
 
   > >   3 7 8 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 7 9 :   
 
         3 8 0 :   
 
 
 
     L i n e   3 8 7   [ m a t c h :   E p i c o r ] : 
 
         3 8 5 :                   f o r e a c h   ( $ D a t a   a s   $ i   = >   $ D a t a R o w )   { 
 
         3 8 6 :                           / / g e t   t h e   r e l e a s e   i d   i f   t h e r e   i s   o n e 
 
   > >   3 8 7 :                           $ D a t a [ $ i ] [ ' S h i p m e n t R e l e a s e I d ' ]   =   $ R O S h i p m e n t R e q u e s t R e p o - > g e t N o n C a n c e l l e d S h i p m e n t R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' V o r t e q P a r t N u m ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         3 8 8 :                   } 
 
         3 8 9 :   
 
 
 
     L i n e   4 1 2   [ m a t c h :   E p i c o r ] : 
 
         4 1 0 :             *   @ p a r a m   $ I n c l u d e S h i p m e n t R e l e a s e I n f o 
 
         4 1 1 :             *   @ r e t u r n   G r i d 
 
   > >   4 1 2 :             *   @ t h r o w s   \ A p p \ E x c e p t i o n s \ N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         4 1 3 :             * / 
 
         4 1 4 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d O t h e r D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ C a r t O p e n = f a l s e ) 
 
 
 
     L i n e   4 1 6   [ m a t c h :   E p i c o r ] : 
 
         4 1 4 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d O t h e r D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ C a r t O p e n = f a l s e ) 
 
         4 1 5 :           { 
 
   > >   4 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 1 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   4 1 7   [ m a t c h :   E p i c o r ] : 
 
         4 1 5 :           { 
 
         4 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 1 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         4 1 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   4 2 3   [ m a t c h :   E p i c o r ] : 
 
         4 2 1 :                   $ R O S h i p m e n t R e q u e s t R e p o   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
         4 2 2 :   
 
   > >   4 2 3 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         4 2 4 :   
 
         4 2 5 :   
 
 
 
     L i n e   4 3 2   [ m a t c h :   E p i c o r ] : 
 
         4 3 0 :                   f o r e a c h   ( $ D a t a   a s   $ i   = >   $ D a t a R o w )   { 
 
         4 3 1 :                           / / g e t   t h e   r e l e a s e   i d   i f   t h e r e   i s   o n e 
 
   > >   4 3 2 :                           $ D a t a [ $ i ] [ ' S h i p m e n t R e l e a s e I d ' ]   =   $ R O S h i p m e n t R e q u e s t R e p o - > g e t N o n C a n c e l l e d S h i p m e n t R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' V o r t e q P a r t N u m ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         4 3 3 :                   } 
 
         4 3 4 :   
 
 
 
     L i n e   4 6 0   [ m a t c h :   E p i c o r ] : 
 
         4 5 8 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d R R D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         4 5 9 :           { 
 
   > >   4 6 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 6 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 6 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   4 6 1   [ m a t c h :   E p i c o r ] : 
 
         4 5 9 :           { 
 
         4 6 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 6 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 6 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         4 6 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   4 6 7   [ m a t c h :   E p i c o r ] : 
 
         4 6 5 :                   $ R O S h i p m e n t R e q u e s t R e p o   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
         4 6 6 :   
 
   > >   4 6 7 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         4 6 8 :   
 
         4 6 9 :                   / / a d d   t h e   r e l e a s e   i d   a n d   c o m b i n e d   j o b   /   s a l e s   n u m b e r 
 
 
 
     L i n e   4 7 2   [ m a t c h :   E p i c o r ] : 
 
         4 7 0 :                   f o r e a c h   ( $ D a t a   a s   $ i   = >   $ D a t a R o w )   { 
 
         4 7 1 :                           / / g e t   t h e   r e l e a s e   i d   i f   t h e r e   i s   o n e 
 
   > >   4 7 2 :                           $ D a t a [ $ i ] [ ' S h i p m e n t R e l e a s e I d ' ]   =   $ R O S h i p m e n t R e q u e s t R e p o - > g e t N o n C a n c e l l e d S h i p m e n t R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' V o r t e q P a r t N u m ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         4 7 3 :                   } 
 
         4 7 4 :   
 
 
 
     L i n e   4 8 7   [ m a t c h :   E p i c o r ] : 
 
         4 8 5 :           p u b l i c   f u n c t i o n   g e t L o t S e a r c h H i s t o r y G r i d ( $ L o t N u m ) 
 
         4 8 6 :           { 
 
   > >   4 8 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 8 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 8 9 :   
 
 
 
     L i n e   4 8 8   [ m a t c h :   E p i c o r ] : 
 
         4 8 6 :           { 
 
         4 8 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 8 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 8 9 :   
 
         4 9 0 :                   $ D a t a   =   $ E p i c o r D B - > g e t L o t S e a r c h H i s t o r y ( $ L o t N u m ) ; 
 
 
 
     L i n e   4 9 0   [ m a t c h :   E p i c o r ] : 
 
         4 8 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 8 9 :   
 
   > >   4 9 0 :                   $ D a t a   =   $ E p i c o r D B - > g e t L o t S e a r c h H i s t o r y ( $ L o t N u m ) ; 
 
         4 9 1 :   
 
         4 9 2 :   
 
 
 
     L i n e   5 1 6   [ m a t c h :   E p i c o r ] : 
 
         5 1 4 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d S u m m a r y E x c e l R e s p o n s e ( ) 
 
         5 1 5 :           { 
 
   > >   5 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 1 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   5 1 7   [ m a t c h :   E p i c o r ] : 
 
         5 1 5 :           { 
 
         5 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 1 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         5 1 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   5 2 1   [ m a t c h :   E p i c o r ] : 
 
         5 1 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         5 2 0 :   
 
   > >   5 2 1 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         5 2 2 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t U n p r o c e s s e d S u m m a r y M e t a d a t a ( f a l s e ) ,   $ D a t a ) ; 
 
         5 2 3 :           } 
 
 
 
     L i n e   5 3 0   [ m a t c h :   E p i c o r ] : 
 
         5 2 8 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d R R S u m m a r y E x c e l R e s p o n s e ( ) 
 
         5 2 9 :           { 
 
   > >   5 3 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 3 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 3 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   5 3 1   [ m a t c h :   E p i c o r ] : 
 
         5 2 9 :           { 
 
         5 3 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 3 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 3 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         5 3 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   5 3 5   [ m a t c h :   E p i c o r ] : 
 
         5 3 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         5 3 4 :   
 
   > >   5 3 5 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         5 3 6 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t U n p r o c e s s e d R R S u m m a r y M e t a d a t a ( f a l s e ) ,   $ D a t a ) ; 
 
         5 3 7 :           } 
 
 
 
     L i n e   5 4 4   [ m a t c h :   E p i c o r ] : 
 
         5 4 2 :           p u b l i c   f u n c t i o n   g e t W o r k I n P r o g r e s s S u m m a r y E x c e l R e s p o n s e ( ) 
 
         5 4 3 :           { 
 
   > >   5 4 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 4 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 4 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   5 4 5   [ m a t c h :   E p i c o r ] : 
 
         5 4 3 :           { 
 
         5 4 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 4 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 4 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         5 4 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   5 4 9   [ m a t c h :   E p i c o r ] : 
 
         5 4 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         5 4 8 :   
 
   > >   5 4 9 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         5 5 0 :   
 
         5 5 1 :   
 
 
 
     L i n e   5 6 4   [ m a t c h :   E p i c o r ] : 
 
         5 6 2 :           p u b l i c   f u n c t i o n   g e t F i n i s h e d G o o d s S u m m a r y E x c e l R e s p o n s e ( ) 
 
         5 6 3 :           { 
 
   > >   5 6 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 6 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 6 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   5 6 5   [ m a t c h :   E p i c o r ] : 
 
         5 6 3 :           { 
 
         5 6 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 6 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 6 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         5 6 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   5 6 9   [ m a t c h :   E p i c o r ] : 
 
         5 6 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         5 6 8 :   
 
   > >   5 6 9 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         5 7 0 :   
 
         5 7 1 :   
 
 
 
     L i n e   5 8 4   [ m a t c h :   E p i c o r ] : 
 
         5 8 2 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d O t h e r S u m m a r y E x c e l R e s p o n s e ( ) 
 
         5 8 3 :           { 
 
   > >   5 8 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 8 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 8 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   5 8 5   [ m a t c h :   E p i c o r ] : 
 
         5 8 3 :           { 
 
         5 8 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 8 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 8 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         5 8 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   5 8 9   [ m a t c h :   E p i c o r ] : 
 
         5 8 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         5 8 8 :   
 
   > >   5 8 9 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         5 9 0 :   
 
         5 9 1 :   
 
 
 
     L i n e   6 0 4   [ m a t c h :   E p i c o r ] : 
 
         6 0 2 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d R R S u m m a r y E x c e l R e s p o n s e ( ) 
 
         6 0 3 :           { 
 
   > >   6 0 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         6 0 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 0 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   6 0 5   [ m a t c h :   E p i c o r ] : 
 
         6 0 3 :           { 
 
         6 0 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   6 0 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 0 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         6 0 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   6 0 9   [ m a t c h :   E p i c o r ] : 
 
         6 0 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         6 0 8 :   
 
   > >   6 0 9 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         6 1 0 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t P r o c e s s e d R R S u m m a r y M e t a d a t a ( f a l s e ) ,   $ D a t a ) ; 
 
         6 1 1 :           } 
 
 
 
     L i n e   6 2 1   [ m a t c h :   E p i c o r ] : 
 
         6 1 9 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d D e t a i l s E x c e l R e s p o n s e ( $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
         6 2 0 :           { 
 
   > >   6 2 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         6 2 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 2 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   6 2 2   [ m a t c h :   E p i c o r ] : 
 
         6 2 0 :           { 
 
         6 2 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   6 2 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 2 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         6 2 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   6 2 9   [ m a t c h :   E p i c o r ] : 
 
         6 2 7 :   
 
         6 2 8 :   
 
   > >   6 2 9 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         6 3 0 :   
 
         6 3 1 :   
 
 
 
     L i n e   6 6 6   [ m a t c h :   E p i c o r ] : 
 
         6 6 4 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d R R D e t a i l s E x c e l R e s p o n s e ( $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
         6 6 5 :           { 
 
   > >   6 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         6 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 6 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   6 6 7   [ m a t c h :   E p i c o r ] : 
 
         6 6 5 :           { 
 
         6 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   6 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 6 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         6 6 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   6 7 1   [ m a t c h :   E p i c o r ] : 
 
         6 6 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         6 7 0 :   
 
   > >   6 7 1 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         6 7 2 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t U n p r o c e s s e d R R D e t a i l s M e t a d a t a ( t r u e ,   f a l s e ,   f a l s e ) ,   $ D a t a ) ; 
 
         6 7 3 :           } 
 
 
 
     L i n e   6 8 5   [ m a t c h :   E p i c o r ] : 
 
         6 8 3 :                   i n i _ s e t ( ' m e m o r y _ l i m i t ' ,   ' 2 G ' ) ; 
 
         6 8 4 :   
 
   > >   6 8 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         6 8 6 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 8 7 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   6 8 6   [ m a t c h :   E p i c o r ] : 
 
         6 8 4 :   
 
         6 8 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   6 8 6 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 8 7 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         6 8 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   6 9 0   [ m a t c h :   E p i c o r ] : 
 
         6 8 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         6 8 9 :   
 
   > >   6 9 0 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         6 9 1 :   
 
         6 9 2 :   
 
 
 
     L i n e   7 3 9   [ m a t c h :   E p i c o r ] : 
 
         7 3 7 :                   i n i _ s e t ( ' m e m o r y _ l i m i t ' ,   ' 2 G ' ) ; 
 
         7 3 8 :   
 
   > >   7 3 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         7 4 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         7 4 1 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   7 4 0   [ m a t c h :   E p i c o r ] : 
 
         7 3 8 :   
 
         7 3 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   7 4 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         7 4 1 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         7 4 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   7 4 4   [ m a t c h :   E p i c o r ] : 
 
         7 4 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         7 4 3 :   
 
   > >   7 4 4 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         7 4 5 :   
 
         7 4 6 :   
 
 
 
     L i n e   7 9 3   [ m a t c h :   E p i c o r ] : 
 
         7 9 1 :                   i n i _ s e t ( ' m e m o r y _ l i m i t ' ,   ' 2 G ' ) ; 
 
         7 9 2 :   
 
   > >   7 9 3 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         7 9 4 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         7 9 5 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   7 9 4   [ m a t c h :   E p i c o r ] : 
 
         7 9 2 :   
 
         7 9 3 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   7 9 4 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         7 9 5 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         7 9 6 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   7 9 8   [ m a t c h :   E p i c o r ] : 
 
         7 9 6 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         7 9 7 :   
 
   > >   7 9 8 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         7 9 9 :   
 
         8 0 0 :   
 
 
 
     L i n e   8 4 5   [ m a t c h :   E p i c o r ] : 
 
         8 4 3 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d R R D e t a i l s E x c e l R e s p o n s e ( $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
         8 4 4 :           { 
 
   > >   8 4 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         8 4 6 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 4 7 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   8 4 6   [ m a t c h :   E p i c o r ] : 
 
         8 4 4 :           { 
 
         8 4 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   8 4 6 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 4 7 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         8 4 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   8 5 0   [ m a t c h :   E p i c o r ] : 
 
         8 4 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         8 4 9 :   
 
   > >   8 5 0 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         8 5 1 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t P r o c e s s e d R R D e t a i l s M e t a d a t a ( t r u e ,   f a l s e ,   f a l s e ,   t r u e ) ,   $ D a t a ) ; 
 
         8 5 2 :           } 
 
 
 
     L i n e   9 5 2   [ m a t c h :   E p i c o r ] : 
 
         9 5 0 :                   } 
 
         9 5 1 :   
 
   > >   9 5 2 :                   r e t u r n   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) )   .   '   -   '   .   $ S o u r c e D i s p l a y   .   '   '   .   d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) ) ; 
 
         9 5 3 :           } 
 
         9 5 4 :   
 
 
 
     L i n e   9 7 0   [ m a t c h :   E p i c o r ] : 
 
         9 6 8 :                   $ P r o c e s s e d R R E x c e l R e s p o n s e   =   $ t h i s - > g e t P r o c e s s e d R R S u m m a r y E x c e l R e s p o n s e ( ) ; 
 
         9 6 9 :   
 
   > >   9 7 0 :                   $ c a c h e K e y   =   ' i n v _ '   .   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( )   .   ' _ '   .   u n i q i d ( ' ' ,   t r u e )   .   ' _ '   .   m i c r o t i m e ( )   .   ' _ '   .   r a n d ( ) ; 
 
         9 7 1 :   
 
         9 7 2 :                   r e t u r n   $ t h i s - > _ g e t E x c e l E x p o r t C o n t e n t s ( $ c a c h e K e y ,   $ U n p r o c e s s e d E x c e l R e s p o n s e ,   $ U n p r o c e s s e d R R E x c e l R e s p o n s e ,   $ W o r k I n P r o g r e s s E x c e l R e s p o n s e ,   $ F i n i s h e d G o o d s E x c e l R e s p o n s e ,   $ P r o c e s s e d O t h e r E x c e l R e s p o n s e ,   $ P r o c e s s e d R R E x c e l R e s p o n s e ) ; 
 
 
 
     L i n e   1 0 0 3   [ m a t c h :   E p i c o r ] : 
 
         1 0 0 1 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 0 0 2 :   
 
   > >   1 0 0 3 :                   $ c a c h e K e y   =   ' i n v _ '   .   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( )   .   ' _ '   .   u n i q i d ( ' ' ,   t r u e )   .   ' _ '   .   m i c r o t i m e ( )   .   ' _ '   .   r a n d ( ) ; 
 
         1 0 0 4 :   
 
         1 0 0 5 :                     $ U n p r o c e s s e d G r i d   =   $ t h i s - > g e t U n p r o c e s s e d S u m m a r y G r i d ( f a l s e ,   f a l s e ,   f a l s e ,   f a l s e ,   t r u e ) ; 
 
 
 
     L i n e   1 1 2 8   [ m a t c h :   E p i c o r ] : 
 
         1 1 2 6 :                   $ c o m p   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 1 2 7 :   
 
   > >   1 1 2 8 :                   $ c u s t o m e r =   $ c o m p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         1 1 2 9 :   
 
         1 1 3 0 :   
 
 
 
     L i n e   1 1 3 3   [ m a t c h :   E p i c o r ] : 
 
         1 1 3 1 :   
 
         1 1 3 2 :   
 
   > >   1 1 3 3 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         1 1 3 4 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 1 3 5 :   
 
 
 
     L i n e   1 1 3 4   [ m a t c h :   E p i c o r ] : 
 
         1 1 3 2 :   
 
         1 1 3 3 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   1 1 3 4 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 1 3 5 :   
 
         1 1 3 6 :   
 
 
 
     L i n e   1 1 3 8   [ m a t c h :   E p i c o r ] : 
 
         1 1 3 6 :   
 
         1 1 3 7 :   
 
   > >   1 1 3 8 :                   r e t u r n     $ E p i c o r D a t a b a s e - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ c u s t o m e r ) ; 
 
         1 1 3 9 :   
 
         1 1 4 0 :           } 
 
 
 
     L i n e   1 2 4 5   [ m a t c h :   E p i c o r ] : 
 
         1 2 4 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 2 4 4 :   
 
   > >   1 2 4 5 :                   $ c a c h e K e y   =   ' i n v _ d e t a i l _ ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' _ ' . u n i q i d ( ' ' , t r u e ) . ' _ ' . m i c r o t i m e ( ) . ' _ ' . r a n d ( ) ; 
 
         1 2 4 6 :   
 
         1 2 4 7 :                   $ U n p r o c e s s e d G r i d   =   $ t h i s - > g e t U n p r o c e s s e d D e t a i l s G r i d ( n u l l ,   n u l l ,   n u l l ,   f a l s e ,   t r u e ,   f a l s e ,   f a l s e ) ; 
 
 
 
     L i n e   1 2 7 4   [ m a t c h :   E p i c o r ] : 
 
         1 2 7 2 :                   $ P r o c e s s e d R R E x c e l R e s p o n s e   =   $ t h i s - > g e t P r o c e s s e d R R D e t a i l s E x c e l R e s p o n s e ( ) ; 
 
         1 2 7 3 :   
 
   > >   1 2 7 4 :                   $ c a c h e K e y   =   ' i n v _ d e t a i l _ ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' _ ' . u n i q i d ( ' ' , t r u e ) . ' _ ' . m i c r o t i m e ( ) . ' _ ' . r a n d ( ) ; 
 
         1 2 7 5 :   
 
         1 2 7 6 :                   r e t u r n   $ t h i s - > _ g e t E x c e l E x p o r t C o n t e n t s ( $ c a c h e K e y ,   $ U n p r o c e s s e d E x c e l R e s p o n s e ,   $ U n p r o c e s s e d R R E x c e l R e s p o n s e ,   $ W o r k I n P r o g r e s s E x c e l R e s p o n s e ,   $ F i n i s h e d G o o d s E x c e l R e s p o n s e ,   $ P r o c e s s e d O t h e r E x c e l R e s p o n s e ,   $ P r o c e s s e d R R E x c e l R e s p o n s e ) ; 
 
 
 
     L i n e   1 3 0 5   [ m a t c h :   E p i c o r ] : 
 
         1 3 0 3 :           } 
 
         1 3 0 4 :   
 
   > >   1 3 0 5 :           p u b l i c   f u n c t i o n   _ s e t u p C o m m o n S u m m a r y G r i d ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) 
 
         1 3 0 6 :           { 
 
         1 3 0 7 :   
 
 
 
     L i n e   1 3 3 5   [ m a t c h :   E p i c o r ] : 
 
         1 3 3 3 :   
 
         1 3 3 4 :                   / * *   @ v a r   G r i d   $ G r i d   * / 
 
   > >   1 3 3 5 :                   $ G r i d   =   $ G r i d F a c t o r y - > c r e a t e ( $ M e t a d a t a ,   ' i n v e n t o r y _ s u m m a r y _ g r i d _ ' . $ M e t a d a t a - > g e t N a m e ( ) . ( $ T r a c k D i s p l a y ? ' _ ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) : ' ' ) ) ; 
 
         1 3 3 6 :   
 
         1 3 3 7 :   
 
 
 
     L i n e   1 4 0 3   [ m a t c h :   E p i c o r ] : 
 
         1 4 0 1 :           } 
 
         1 4 0 2 :   
 
   > >   1 4 0 3 :           p u b l i c   f u n c t i o n   _ s e t u p C o m m o n D e t a i l s G r i d ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ,   $ G r i d P a g i n g ,   $ C a r t O p e n = f a l s e ) 
 
         1 4 0 4 :           { 
 
         1 4 0 5 :                   / * *   @ v a r   G r i d F a c t o r y   $ G r i d F a c t o r y   * / 
 
 
 
     L i n e   1 4 3 3   [ m a t c h :   E p i c o r ] : 
 
         1 4 3 1 :                                   e l s e i f ( ( $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( )   | |   $ C a r t O p e n )   & &   $ S h i p m e n t C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ S h i p m e n t C a r t - > i s D e t a i l I n C a r t ( $ D a t a R o w [ ' V o r t e q P a r t N u m ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   ( i n t ) $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ) 
 
         1 4 3 2 :                                           $ D a t a [ $ i ] [ ' S h i p m e n t S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " ' . a s s e t ( ' i m g / c y c l o n e - p u r p l e . p n g ' ) . ' "   t i t l e = " I n   y o u r   s h i p m e n t "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   s h i p m e n t . 
 
   > >   1 4 3 3 :                                   e l s e i f ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d S h i p m e n t E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' V o r t e q P a r t N u m ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ) 
 
         1 4 3 4 :                                           $ D a t a [ $ i ] [ ' S h i p m e n t S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " ' . a s s e t ( ' i m g / c y c l o n e - g r a y . p n g ' ) . ' "   t i t l e = " A l r e a d y   p a r t   o f   a n o t h e r   s h i p m e n t "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   a l t :   T h i s   i t e m   i s   a l r e a d y   i n   a n o t h e r   s h i p m e n t   r e l e a s e . 
 
         1 4 3 5 :   
 
 
 
     L i n e   1 4 9 5   [ m a t c h :   E p i c o r ] : 
 
         1 4 9 3 :   
 
         1 4 9 4 :           / * * 
 
   > >   1 4 9 5 :             *   @ p a r a m   E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a 
 
         1 4 9 6 :             *   @ p a r a m   a r r a y   $ D a t a 
 
         1 4 9 7 :             *   @ r e t u r n   R e s p o n s e 
 
 
 
     L i n e   1 4 9 9   [ m a t c h :   E p i c o r ] : 
 
         1 4 9 7 :             *   @ r e t u r n   R e s p o n s e 
 
         1 4 9 8 :             * / 
 
   > >   1 4 9 9 :           p u b l i c   f u n c t i o n   _ s e t u p C o m m o n E x c e l ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ) 
 
         1 5 0 0 :           { 
 
         1 5 0 1 :                   / * *   @ v a r   G r i d R e s p o n s e F a c t o r y   $ G r i d R e s p o n s e F a c t o r y   * / 
 
 
 
     L i n e   1 5 9 1   [ m a t c h :   E p i c o r ] : 
 
         1 5 8 9 :           p u b l i c   f u n c t i o n   _ g e t U n p r o c e s s e d S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         1 5 9 0 :           { 
 
   > >   1 5 9 1 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y S u m m a r y ' ) ; 
 
         1 5 9 2 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   f a l s e ) ; 
 
         1 5 9 3 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 5 9 8   [ m a t c h :   E p i c o r ] : 
 
         1 5 9 6 :           p u b l i c   f u n c t i o n   _ g e t U n p r o c e s s e d R R S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         1 5 9 7 :           { 
 
   > >   1 5 9 8 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' ) ; 
 
         1 5 9 9 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   f a l s e ) ; 
 
         1 6 0 0 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 6 0 5   [ m a t c h :   E p i c o r ] : 
 
         1 6 0 3 :           p u b l i c   f u n c t i o n   _ g e t W o r k I n P r o g r e s s S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         1 6 0 4 :           { 
 
   > >   1 6 0 5 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' ) ; 
 
         1 6 0 6 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   t r u e ) ; 
 
         1 6 0 7 :   
 
 
 
     L i n e   1 6 3 4   [ m a t c h :   E p i c o r ] : 
 
         1 6 3 2 :           p u b l i c   f u n c t i o n   _ g e t F i n i s h e d G o o d s S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         1 6 3 3 :           { 
 
   > >   1 6 3 4 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y S u m m a r y ' ) ; 
 
         1 6 3 5 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   t r u e ) ; 
 
         1 6 3 6 :   
 
 
 
     L i n e   1 6 6 3   [ m a t c h :   E p i c o r ] : 
 
         1 6 6 1 :           p u b l i c   f u n c t i o n   _ g e t P r o c e s s e d O t h e r S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         1 6 6 2 :           { 
 
   > >   1 6 6 3 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y ' ) ; 
 
         1 6 6 4 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   t r u e ) ; 
 
         1 6 6 5 :   
 
 
 
     L i n e   1 6 9 2   [ m a t c h :   E p i c o r ] : 
 
         1 6 9 0 :           p u b l i c   f u n c t i o n   _ g e t P r o c e s s e d R R S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         1 6 9 1 :           { 
 
   > >   1 6 9 2 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' ) ; 
 
         1 6 9 3 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   t r u e ) ; 
 
         1 6 9 4 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 6 9 7   [ m a t c h :   E p i c o r ] : 
 
         1 6 9 5 :           } 
 
         1 6 9 6 :   
 
   > >   1 6 9 7 :           p u b l i c   f u n c t i o n   _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   $ I n c l u d e C u s t o m e r P a r t N u m ) 
 
         1 6 9 8 :           { 
 
         1 6 9 9 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P h o n y I D   * / 
 
 
 
     L i n e   1 7 3 0   [ m a t c h :   E p i c o r ] : 
 
         1 7 2 8 :           } 
 
         1 7 2 9 :   
 
   > >   1 7 3 0 :           p u b l i c   f u n c t i o n   _ a p p e n d S h a r e d S u m m a r y M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   / * *   @ n o i n s p e c t i o n   P h p U n u s e d P a r a m e t e r I n s p e c t i o n   * /   $ I n c l u d e L i n k s ,   $ I n c l u d e C u s t o m e r P a r t N u m ) 
 
         1 7 3 1 :           { 
 
         1 7 3 2 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P l a n t   * / 
 
 
 
     L i n e   1 7 8 2   [ m a t c h :   E p i c o r ] : 
 
         1 7 8 0 :           p u b l i c   f u n c t i o n   _ g e t U n p r o c e s s e d D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         1 7 8 1 :           { 
 
   > >   1 7 8 2 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y ' ) ; 
 
         1 7 8 3 :                   $ t h i s - > _ a p p e n d C o m m o n U n p r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ; 
 
         1 7 8 4 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 7 8 9   [ m a t c h :   E p i c o r ] : 
 
         1 7 8 7 :           p u b l i c   f u n c t i o n   _ g e t U n p r o c e s s e d R R D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         1 7 8 8 :           { 
 
   > >   1 7 8 9 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ' ) ; 
 
         1 7 9 0 :                   $ t h i s - > _ a p p e n d C o m m o n U n p r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ; 
 
         1 7 9 1 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 7 9 6   [ m a t c h :   E p i c o r ] : 
 
         1 7 9 4 :           p u b l i c   f u n c t i o n   _ g e t W o r k I n P r o g r e s s D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) 
 
         1 7 9 5 :           { 
 
   > >   1 7 9 6 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y ' ) ; 
 
         1 7 9 7 :                   $ t h i s - > _ a p p e n d C o m m o n P r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) ; 
 
         1 7 9 8 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 8 0 3   [ m a t c h :   E p i c o r ] : 
 
         1 8 0 1 :           p u b l i c   f u n c t i o n   _ g e t F i n i s h e d G o o d s D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) 
 
         1 8 0 2 :           { 
 
   > >   1 8 0 3 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y ' ) ; 
 
         1 8 0 4 :                   $ t h i s - > _ a p p e n d C o m m o n P r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) ; 
 
         1 8 0 5 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 8 1 0   [ m a t c h :   E p i c o r ] : 
 
         1 8 0 8 :           p u b l i c   f u n c t i o n   _ g e t P r o c e s s e d O t h e r D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) 
 
         1 8 0 9 :           { 
 
   > >   1 8 1 0 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y ' ) ; 
 
         1 8 1 1 :                   $ t h i s - > _ a p p e n d C o m m o n P r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) ; 
 
         1 8 1 2 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 8 1 7   [ m a t c h :   E p i c o r ] : 
 
         1 8 1 5 :           p u b l i c   f u n c t i o n   _ g e t P r o c e s s e d R R D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) 
 
         1 8 1 6 :           { 
 
   > >   1 8 1 7 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ' ) ; 
 
         1 8 1 8 :                   $ t h i s - > _ a p p e n d C o m m o n P r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) ; 
 
         1 8 1 9 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 8 2 2   [ m a t c h :   E p i c o r ] : 
 
         1 8 2 0 :           } 
 
         1 8 2 1 :   
 
   > >   1 8 2 2 :           p u b l i c   f u n c t i o n   _ a p p e n d C o m m o n U n p r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         1 8 2 3 :           { 
 
         1 8 2 4 :                   $ t h i s - > _ a p p e n d C o m m o n D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ; 
 
 
 
     L i n e   1 9 2 6   [ m a t c h :   E p i c o r ] : 
 
         1 9 2 4 :           } 
 
         1 9 2 5 :   
 
   > >   1 9 2 6 :           p u b l i c   f u n c t i o n   _ a p p e n d C o m m o n P r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) 
 
         1 9 2 7 :           { 
 
         1 9 2 8 :                   $ t h i s - > _ a p p e n d C o m m o n D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ; 
 
 
 
     L i n e   1 9 7 4   [ m a t c h :   E p i c o r ] : 
 
         1 9 7 2 :                   $ G e t S e s s i o n   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 9 7 3 :   
 
   > >   1 9 7 4 :                   $ C u s t I D   =   $ G e t S e s s i o n - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         1 9 7 5 :   
 
         1 9 7 6 :                   / * *   @ v a r   Q u e s t P a g e V a l u e s   $ Q P V   * / 
 
 
 
     L i n e   2 1 1 6   [ m a t c h :   E p i c o r ] : 
 
         2 1 1 4 :           } 
 
         2 1 1 5 :   
 
   > >   2 1 1 6 :           p u b l i c   f u n c t i o n   _ a p p e n d C o m m o n D e t a i l s M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         2 1 1 7 :           { 
 
         2 1 1 8 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P h o n y I D   * / 
 
 
 
     L i n e   2 4 6 7   [ m a t c h :   E p i c o r ] : 
 
         2 4 6 5 :   
 
         2 4 6 6 :                   $ E x c e l E x p o r t e r   =   n e w   E x c e l ( ) ; 
 
   > >   2 4 6 7 :                   $ E x p o r t N a m e   =   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) . '   I n v e n t o r y   ' . $ T y p e L a b e l . '   ' . d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) ) ; 
 
         2 4 6 8 :                   r e t u r n   $ E x p o r t N a m e . ' . ' . $ E x c e l E x p o r t e r - > g e t F i l e E x t e n s i o n ( ) ; 
 
         2 4 6 9 :           } 
 
 
 
     L i n e   2 5 8 4   [ m a t c h :   E p i c o r ] : 
 
         2 5 8 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 5 8 3 :   
 
   > >   2 5 8 4 :                   r e t u r n   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) . '   I n v e n t o r y   ' . $ T y p e L a b e l . '   ' . d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) ) . ' . p d f ' ; 
 
         2 5 8 5 :           } 
 
         2 5 8 6 :   
 
 
 
     L i n e   2 5 8 9   [ m a t c h :   E p i c o r ] : 
 
         2 5 8 7 :           p u b l i c   f u n c t i o n   _ g e t L o t S e a r c h M e t a d a t a ( ) 
 
         2 5 8 8 :           { 
 
   > >   2 5 8 9 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ L o t S e a r c h ' ) ; 
 
         2 5 9 0 :   
 
         2 5 9 1 :                   / * *   g u t s   * / 
 
 
 
     L i n e   6   [ m a t c h :   E P I C O R ] : 
 
         4 :   u s e   A p p \ M o d e l \ R e p o s \ s h i p _ R e q u e s t   a s   s h i p _ R e q u e s t R e p o ; 
 
         5 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ A l l o c C a r t ; 
 
   > >   6 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         7 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a ; 
 
         8 :   u s e   A p p \ S e r v i c e s \ G r i d \ S u m m a r y M e n u T e m p l a t e ; 
 
 
 
     L i n e   7   [ m a t c h :   E P I C O R ] : 
 
         5 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ A l l o c C a r t ; 
 
         6 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
   > >   7 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a ; 
 
         8 :   u s e   A p p \ S e r v i c e s \ G r i d \ S u m m a r y M e n u T e m p l a t e ; 
 
         9 :   u s e   E x c e p t i o n ; 
 
 
 
     L i n e   6 8   [ m a t c h :   E P I C O R ] : 
 
         6 6 :                   $ c o m p a n y   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) ; 
 
         6 7 :   
 
   > >   6 8 :                   i f   ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( )   ! = =   ' H D Q ' )   { 
 
         6 9 :                           $ p a g e s - > a d d P a g e ( $ t h i s - > _ g e t U n p r o c e s s e d P a g e ( $ i s R e m o t e ,   $ r e m o t e _ p a g e _ i d ) ) ; 
 
         7 0 :                           $ p a g e s - > a d d P a g e ( $ t h i s - > _ g e t U n p r o c e s s e d R e j e c t s R e t u r n s P a g e ( $ i s R e m o t e ,   $ r e m o t e _ p a g e _ i d ) ) ; 
 
 
 
     L i n e   7 7   [ m a t c h :   E P I C O R ] : 
 
         7 5 :                   $ p a g e s - > a d d P a g e ( $ t h i s - > _ g e t P r o c e s s e d O t h e r P a g e ( $ i s R e m o t e ,   $ r e m o t e _ p a g e _ i d ) ) ; 
 
         7 6 :   
 
   > >   7 7 :                   i f   ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( )   ! = =   ' H D Q ' )   { 
 
         7 8 :                           $ p a g e s - > a d d P a g e ( $ t h i s - > _ g e t P r o c e s s e d R e j e c t s R e t u r n s P a g e ( $ i s R e m o t e ,   $ r e m o t e _ p a g e _ i d ) ) ; 
 
         7 9 :                   } 
 
 
 
     L i n e   1 0 9   [ m a t c h :   E P I C O R ] : 
 
         1 0 7 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ,   $ r e t u r n D a t a   =   f a l s e ) 
 
         1 0 8 :           { 
 
   > >   1 0 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 1 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 1 1 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 1 0   [ m a t c h :   E P I C O R ] : 
 
         1 0 8 :           { 
 
         1 0 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 1 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 1 1 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 1 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 1 4   [ m a t c h :   E P I C O R ] : 
 
         1 1 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 1 3 :   
 
   > >   1 1 4 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         1 1 5 :   
 
         1 1 6 :                   / / i f   ( $ r e t u r n D a t a ) 
 
 
 
     L i n e   1 4 1   [ m a t c h :   E P I C O R ] : 
 
         1 3 9 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d R R S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ) 
 
         1 4 0 :           { 
 
   > >   1 4 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 4 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 4 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 4 2   [ m a t c h :   E P I C O R ] : 
 
         1 4 0 :           { 
 
         1 4 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 4 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 4 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 4 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 4 6   [ m a t c h :   E P I C O R ] : 
 
         1 4 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 4 5 :   
 
   > >   1 4 6 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         1 4 7 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n S u m m a r y G r i d ( $ t h i s - > _ g e t U n p r o c e s s e d R R S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) ,   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) ; 
 
         1 4 8 :   
 
 
 
     L i n e   1 6 6   [ m a t c h :   E P I C O R ] : 
 
         1 6 4 :           p u b l i c   f u n c t i o n   g e t W o r k I n P r o g r e s s S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ) 
 
         1 6 5 :           { 
 
   > >   1 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 6 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 6 7   [ m a t c h :   E P I C O R ] : 
 
         1 6 5 :           { 
 
         1 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 6 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 6 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 7 1   [ m a t c h :   E P I C O R ] : 
 
         1 6 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 7 0 :   
 
   > >   1 7 1 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         1 7 2 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n S u m m a r y G r i d ( $ t h i s - > _ g e t W o r k I n P r o g r e s s S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) ,   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) ; 
 
         1 7 3 :   
 
 
 
     L i n e   1 9 1   [ m a t c h :   E P I C O R ] : 
 
         1 8 9 :           p u b l i c   f u n c t i o n   g e t F i n i s h e d G o o d s S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ) 
 
         1 9 0 :           { 
 
   > >   1 9 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         1 9 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 9 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   1 9 2   [ m a t c h :   E P I C O R ] : 
 
         1 9 0 :           { 
 
         1 9 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   1 9 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 9 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         1 9 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   1 9 6   [ m a t c h :   E P I C O R ] : 
 
         1 9 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 9 5 :   
 
   > >   1 9 6 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         1 9 7 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n S u m m a r y G r i d ( $ t h i s - > _ g e t F i n i s h e d G o o d s S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) ,   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) ; 
 
         1 9 8 :   
 
 
 
     L i n e   2 1 6   [ m a t c h :   E P I C O R ] : 
 
         2 1 4 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d O t h e r S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ) 
 
         2 1 5 :           { 
 
   > >   2 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 1 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   2 1 7   [ m a t c h :   E P I C O R ] : 
 
         2 1 5 :           { 
 
         2 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 1 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 1 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   2 2 1   [ m a t c h :   E P I C O R ] : 
 
         2 1 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 2 0 :   
 
   > >   2 2 1 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         2 2 2 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n S u m m a r y G r i d ( $ t h i s - > _ g e t P r o c e s s e d O t h e r S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) ,   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) ; 
 
         2 2 3 :   
 
 
 
     L i n e   2 4 1   [ m a t c h :   E P I C O R ] : 
 
         2 3 9 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d R R S u m m a r y G r i d ( $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ I n c l u d e L i n k s ,   $ T r a c k D i s p l a y ) 
 
         2 4 0 :           { 
 
   > >   2 4 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 4 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   2 4 2   [ m a t c h :   E P I C O R ] : 
 
         2 4 0 :           { 
 
         2 4 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 4 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 4 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 4 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   2 4 6   [ m a t c h :   E P I C O R ] : 
 
         2 4 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 4 5 :   
 
   > >   2 4 6 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         2 4 7 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n S u m m a r y G r i d ( $ t h i s - > _ g e t P r o c e s s e d R R S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) ,   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) ; 
 
         2 4 8 :   
 
 
 
     L i n e   2 6 9   [ m a t c h :   E P I C O R ] : 
 
         2 6 7 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         2 6 8 :           { 
 
   > >   2 6 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 7 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 7 1 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   2 7 0   [ m a t c h :   E P I C O R ] : 
 
         2 6 8 :           { 
 
         2 6 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 7 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 7 1 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         2 7 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   2 7 4   [ m a t c h :   E P I C O R ] : 
 
         2 7 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 7 3 :   
 
   > >   2 7 4 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         2 7 5 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n D e t a i l s G r i d ( $ t h i s - > _ g e t U n p r o c e s s e d D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ,   $ D a t a ,   $ G r i d P a g i n g ) ; 
 
         2 7 6 :   
 
 
 
     L i n e   2 9 7   [ m a t c h :   E P I C O R ] : 
 
         2 9 5 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d R R D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         2 9 6 :           { 
 
   > >   2 9 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         2 9 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 9 9 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   2 9 8   [ m a t c h :   E P I C O R ] : 
 
         2 9 6 :           { 
 
         2 9 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   2 9 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         2 9 9 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         3 0 0 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   3 0 2   [ m a t c h :   E P I C O R ] : 
 
         3 0 0 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         3 0 1 :   
 
   > >   3 0 2 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 0 3 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n D e t a i l s G r i d ( $ t h i s - > _ g e t U n p r o c e s s e d R R D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ,   $ D a t a ,   $ G r i d P a g i n g ) ; 
 
         3 0 4 :   
 
 
 
     L i n e   3 2 2   [ m a t c h :   E P I C O R ] : 
 
         3 2 0 :             *   @ p a r a m   $ I n c l u d e S h i p m e n t R e l e a s e I n f o 
 
         3 2 1 :             *   @ r e t u r n   G r i d 
 
   > >   3 2 2 :             *   @ t h r o w s   \ A p p \ E x c e p t i o n s \ N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         3 2 3 :             * / 
 
         3 2 4 :           p u b l i c   f u n c t i o n   g e t W o r k I n P r o g r e s s D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ C a r t O p e n = f a l s e ) 
 
 
 
     L i n e   3 2 6   [ m a t c h :   E P I C O R ] : 
 
         3 2 4 :           p u b l i c   f u n c t i o n   g e t W o r k I n P r o g r e s s D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ C a r t O p e n = f a l s e ) 
 
         3 2 5 :           { 
 
   > >   3 2 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 2 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 2 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   3 2 7   [ m a t c h :   E P I C O R ] : 
 
         3 2 5 :           { 
 
         3 2 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 2 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 2 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         3 2 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   3 3 3   [ m a t c h :   E P I C O R ] : 
 
         3 3 1 :                   $ R O S h i p m e n t R e q u e s t R e p o   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
         3 3 2 :   
 
   > >   3 3 3 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 3 4 :   
 
         3 3 5 :   
 
 
 
     L i n e   3 4 2   [ m a t c h :   E P I C O R ] : 
 
         3 4 0 :                   f o r e a c h   ( $ D a t a   a s   $ i   = >   $ D a t a R o w )   { 
 
         3 4 1 :                           / / g e t   t h e   r e l e a s e   i d   i f   t h e r e   i s   o n e 
 
   > >   3 4 2 :                           $ D a t a [ $ i ] [ ' S h i p m e n t R e l e a s e I d ' ]   =   $ R O S h i p m e n t R e q u e s t R e p o - > g e t N o n C a n c e l l e d S h i p m e n t R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' V o r t e q P a r t N u m ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         3 4 3 :                   } 
 
         3 4 4 :   
 
 
 
     L i n e   3 6 7   [ m a t c h :   E P I C O R ] : 
 
         3 6 5 :             *   @ p a r a m   $ I n c l u d e S h i p m e n t R e l e a s e I n f o 
 
         3 6 6 :             *   @ r e t u r n   G r i d 
 
   > >   3 6 7 :             *   @ t h r o w s   \ A p p \ E x c e p t i o n s \ N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         3 6 8 :             * / 
 
         3 6 9 :           p u b l i c   f u n c t i o n   g e t F i n i s h e d G o o d s D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ C a r t O p e n = f a l s e ) 
 
 
 
     L i n e   3 7 1   [ m a t c h :   E P I C O R ] : 
 
         3 6 9 :           p u b l i c   f u n c t i o n   g e t F i n i s h e d G o o d s D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ C a r t O p e n = f a l s e ) 
 
         3 7 0 :           { 
 
   > >   3 7 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 7 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   3 7 2   [ m a t c h :   E P I C O R ] : 
 
         3 7 0 :           { 
 
         3 7 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 7 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 7 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         3 7 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   3 7 8   [ m a t c h :   E P I C O R ] : 
 
         3 7 6 :                   $ R O S h i p m e n t R e q u e s t R e p o   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
         3 7 7 :   
 
   > >   3 7 8 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         3 7 9 :   
 
         3 8 0 :   
 
 
 
     L i n e   3 8 7   [ m a t c h :   E P I C O R ] : 
 
         3 8 5 :                   f o r e a c h   ( $ D a t a   a s   $ i   = >   $ D a t a R o w )   { 
 
         3 8 6 :                           / / g e t   t h e   r e l e a s e   i d   i f   t h e r e   i s   o n e 
 
   > >   3 8 7 :                           $ D a t a [ $ i ] [ ' S h i p m e n t R e l e a s e I d ' ]   =   $ R O S h i p m e n t R e q u e s t R e p o - > g e t N o n C a n c e l l e d S h i p m e n t R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' V o r t e q P a r t N u m ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         3 8 8 :                   } 
 
         3 8 9 :   
 
 
 
     L i n e   4 1 2   [ m a t c h :   E P I C O R ] : 
 
         4 1 0 :             *   @ p a r a m   $ I n c l u d e S h i p m e n t R e l e a s e I n f o 
 
         4 1 1 :             *   @ r e t u r n   G r i d 
 
   > >   4 1 2 :             *   @ t h r o w s   \ A p p \ E x c e p t i o n s \ N o D e t a i l D a t a F o r E p i c o r M u l t i K e y 
 
         4 1 3 :             * / 
 
         4 1 4 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d O t h e r D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ C a r t O p e n = f a l s e ) 
 
 
 
     L i n e   4 1 6   [ m a t c h :   E P I C O R ] : 
 
         4 1 4 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d O t h e r D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ C a r t O p e n = f a l s e ) 
 
         4 1 5 :           { 
 
   > >   4 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 1 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   4 1 7   [ m a t c h :   E P I C O R ] : 
 
         4 1 5 :           { 
 
         4 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 1 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         4 1 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   4 2 3   [ m a t c h :   E P I C O R ] : 
 
         4 2 1 :                   $ R O S h i p m e n t R e q u e s t R e p o   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
         4 2 2 :   
 
   > >   4 2 3 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         4 2 4 :   
 
         4 2 5 :   
 
 
 
     L i n e   4 3 2   [ m a t c h :   E P I C O R ] : 
 
         4 3 0 :                   f o r e a c h   ( $ D a t a   a s   $ i   = >   $ D a t a R o w )   { 
 
         4 3 1 :                           / / g e t   t h e   r e l e a s e   i d   i f   t h e r e   i s   o n e 
 
   > >   4 3 2 :                           $ D a t a [ $ i ] [ ' S h i p m e n t R e l e a s e I d ' ]   =   $ R O S h i p m e n t R e q u e s t R e p o - > g e t N o n C a n c e l l e d S h i p m e n t R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' V o r t e q P a r t N u m ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         4 3 3 :                   } 
 
         4 3 4 :   
 
 
 
     L i n e   4 6 0   [ m a t c h :   E P I C O R ] : 
 
         4 5 8 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d R R D e t a i l s G r i d ( $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ,   $ G r i d P a g i n g ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         4 5 9 :           { 
 
   > >   4 6 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 6 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 6 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   4 6 1   [ m a t c h :   E P I C O R ] : 
 
         4 5 9 :           { 
 
         4 6 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 6 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 6 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         4 6 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   4 6 7   [ m a t c h :   E P I C O R ] : 
 
         4 6 5 :                   $ R O S h i p m e n t R e q u e s t R e p o   =   a p p ( s h i p _ R e q u e s t R e p o : : c l a s s ) ; 
 
         4 6 6 :   
 
   > >   4 6 7 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         4 6 8 :   
 
         4 6 9 :                   / / a d d   t h e   r e l e a s e   i d   a n d   c o m b i n e d   j o b   /   s a l e s   n u m b e r 
 
 
 
     L i n e   4 7 2   [ m a t c h :   E P I C O R ] : 
 
         4 7 0 :                   f o r e a c h   ( $ D a t a   a s   $ i   = >   $ D a t a R o w )   { 
 
         4 7 1 :                           / / g e t   t h e   r e l e a s e   i d   i f   t h e r e   i s   o n e 
 
   > >   4 7 2 :                           $ D a t a [ $ i ] [ ' S h i p m e n t R e l e a s e I d ' ]   =   $ R O S h i p m e n t R e q u e s t R e p o - > g e t N o n C a n c e l l e d S h i p m e n t R e q u e s t I D F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' V o r t e q P a r t N u m ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         4 7 3 :                   } 
 
         4 7 4 :   
 
 
 
     L i n e   4 8 7   [ m a t c h :   E P I C O R ] : 
 
         4 8 5 :           p u b l i c   f u n c t i o n   g e t L o t S e a r c h H i s t o r y G r i d ( $ L o t N u m ) 
 
         4 8 6 :           { 
 
   > >   4 8 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 8 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 8 9 :   
 
 
 
     L i n e   4 8 8   [ m a t c h :   E P I C O R ] : 
 
         4 8 6 :           { 
 
         4 8 7 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 8 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 8 9 :   
 
         4 9 0 :                   $ D a t a   =   $ E p i c o r D B - > g e t L o t S e a r c h H i s t o r y ( $ L o t N u m ) ; 
 
 
 
     L i n e   4 9 0   [ m a t c h :   E P I C O R ] : 
 
         4 8 8 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 8 9 :   
 
   > >   4 9 0 :                   $ D a t a   =   $ E p i c o r D B - > g e t L o t S e a r c h H i s t o r y ( $ L o t N u m ) ; 
 
         4 9 1 :   
 
         4 9 2 :   
 
 
 
     L i n e   5 1 6   [ m a t c h :   E P I C O R ] : 
 
         5 1 4 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d S u m m a r y E x c e l R e s p o n s e ( ) 
 
         5 1 5 :           { 
 
   > >   5 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 1 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   5 1 7   [ m a t c h :   E P I C O R ] : 
 
         5 1 5 :           { 
 
         5 1 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 1 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 1 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         5 1 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   5 2 1   [ m a t c h :   E P I C O R ] : 
 
         5 1 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         5 2 0 :   
 
   > >   5 2 1 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         5 2 2 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t U n p r o c e s s e d S u m m a r y M e t a d a t a ( f a l s e ) ,   $ D a t a ) ; 
 
         5 2 3 :           } 
 
 
 
     L i n e   5 3 0   [ m a t c h :   E P I C O R ] : 
 
         5 2 8 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d R R S u m m a r y E x c e l R e s p o n s e ( ) 
 
         5 2 9 :           { 
 
   > >   5 3 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 3 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 3 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   5 3 1   [ m a t c h :   E P I C O R ] : 
 
         5 2 9 :           { 
 
         5 3 0 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 3 1 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 3 2 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         5 3 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   5 3 5   [ m a t c h :   E P I C O R ] : 
 
         5 3 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         5 3 4 :   
 
   > >   5 3 5 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         5 3 6 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t U n p r o c e s s e d R R S u m m a r y M e t a d a t a ( f a l s e ) ,   $ D a t a ) ; 
 
         5 3 7 :           } 
 
 
 
     L i n e   5 4 4   [ m a t c h :   E P I C O R ] : 
 
         5 4 2 :           p u b l i c   f u n c t i o n   g e t W o r k I n P r o g r e s s S u m m a r y E x c e l R e s p o n s e ( ) 
 
         5 4 3 :           { 
 
   > >   5 4 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 4 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 4 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   5 4 5   [ m a t c h :   E P I C O R ] : 
 
         5 4 3 :           { 
 
         5 4 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 4 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 4 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         5 4 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   5 4 9   [ m a t c h :   E P I C O R ] : 
 
         5 4 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         5 4 8 :   
 
   > >   5 4 9 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         5 5 0 :   
 
         5 5 1 :   
 
 
 
     L i n e   5 6 4   [ m a t c h :   E P I C O R ] : 
 
         5 6 2 :           p u b l i c   f u n c t i o n   g e t F i n i s h e d G o o d s S u m m a r y E x c e l R e s p o n s e ( ) 
 
         5 6 3 :           { 
 
   > >   5 6 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 6 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 6 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   5 6 5   [ m a t c h :   E P I C O R ] : 
 
         5 6 3 :           { 
 
         5 6 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 6 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 6 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         5 6 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   5 6 9   [ m a t c h :   E P I C O R ] : 
 
         5 6 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         5 6 8 :   
 
   > >   5 6 9 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         5 7 0 :   
 
         5 7 1 :   
 
 
 
     L i n e   5 8 4   [ m a t c h :   E P I C O R ] : 
 
         5 8 2 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d O t h e r S u m m a r y E x c e l R e s p o n s e ( ) 
 
         5 8 3 :           { 
 
   > >   5 8 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         5 8 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 8 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   5 8 5   [ m a t c h :   E P I C O R ] : 
 
         5 8 3 :           { 
 
         5 8 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   5 8 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         5 8 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         5 8 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   5 8 9   [ m a t c h :   E P I C O R ] : 
 
         5 8 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         5 8 8 :   
 
   > >   5 8 9 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         5 9 0 :   
 
         5 9 1 :   
 
 
 
     L i n e   6 0 4   [ m a t c h :   E P I C O R ] : 
 
         6 0 2 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d R R S u m m a r y E x c e l R e s p o n s e ( ) 
 
         6 0 3 :           { 
 
   > >   6 0 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         6 0 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 0 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   6 0 5   [ m a t c h :   E P I C O R ] : 
 
         6 0 3 :           { 
 
         6 0 4 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   6 0 5 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 0 6 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         6 0 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   6 0 9   [ m a t c h :   E P I C O R ] : 
 
         6 0 7 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         6 0 8 :   
 
   > >   6 0 9 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R S u m m a r y D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         6 1 0 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t P r o c e s s e d R R S u m m a r y M e t a d a t a ( f a l s e ) ,   $ D a t a ) ; 
 
         6 1 1 :           } 
 
 
 
     L i n e   6 2 1   [ m a t c h :   E P I C O R ] : 
 
         6 1 9 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d D e t a i l s E x c e l R e s p o n s e ( $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
         6 2 0 :           { 
 
   > >   6 2 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         6 2 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 2 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   6 2 2   [ m a t c h :   E P I C O R ] : 
 
         6 2 0 :           { 
 
         6 2 1 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   6 2 2 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 2 3 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         6 2 4 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   6 2 9   [ m a t c h :   E P I C O R ] : 
 
         6 2 7 :   
 
         6 2 8 :   
 
   > >   6 2 9 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         6 3 0 :   
 
         6 3 1 :   
 
 
 
     L i n e   6 6 6   [ m a t c h :   E P I C O R ] : 
 
         6 6 4 :           p u b l i c   f u n c t i o n   g e t U n p r o c e s s e d R R D e t a i l s E x c e l R e s p o n s e ( $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
         6 6 5 :           { 
 
   > >   6 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         6 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 6 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   6 6 7   [ m a t c h :   E P I C O R ] : 
 
         6 6 5 :           { 
 
         6 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   6 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 6 8 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         6 6 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   6 7 1   [ m a t c h :   E P I C O R ] : 
 
         6 6 9 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         6 7 0 :   
 
   > >   6 7 1 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y U n p r o c e s s e d R R D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         6 7 2 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t U n p r o c e s s e d R R D e t a i l s M e t a d a t a ( t r u e ,   f a l s e ,   f a l s e ) ,   $ D a t a ) ; 
 
         6 7 3 :           } 
 
 
 
     L i n e   6 8 5   [ m a t c h :   E P I C O R ] : 
 
         6 8 3 :                   i n i _ s e t ( ' m e m o r y _ l i m i t ' ,   ' 2 G ' ) ; 
 
         6 8 4 :   
 
   > >   6 8 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         6 8 6 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 8 7 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   6 8 6   [ m a t c h :   E P I C O R ] : 
 
         6 8 4 :   
 
         6 8 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   6 8 6 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         6 8 7 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         6 8 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   6 9 0   [ m a t c h :   E P I C O R ] : 
 
         6 8 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         6 8 9 :   
 
   > >   6 9 0 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y W o r k I n P r o g r e s s D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         6 9 1 :   
 
         6 9 2 :   
 
 
 
     L i n e   7 3 9   [ m a t c h :   E P I C O R ] : 
 
         7 3 7 :                   i n i _ s e t ( ' m e m o r y _ l i m i t ' ,   ' 2 G ' ) ; 
 
         7 3 8 :   
 
   > >   7 3 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         7 4 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         7 4 1 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   7 4 0   [ m a t c h :   E P I C O R ] : 
 
         7 3 8 :   
 
         7 3 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   7 4 0 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         7 4 1 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         7 4 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   7 4 4   [ m a t c h :   E P I C O R ] : 
 
         7 4 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         7 4 3 :   
 
   > >   7 4 4 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y F i n i s h e d G o o d s D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         7 4 5 :   
 
         7 4 6 :   
 
 
 
     L i n e   7 9 3   [ m a t c h :   E P I C O R ] : 
 
         7 9 1 :                   i n i _ s e t ( ' m e m o r y _ l i m i t ' ,   ' 2 G ' ) ; 
 
         7 9 2 :   
 
   > >   7 9 3 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         7 9 4 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         7 9 5 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   7 9 4   [ m a t c h :   E P I C O R ] : 
 
         7 9 2 :   
 
         7 9 3 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   7 9 4 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         7 9 5 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         7 9 6 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   7 9 8   [ m a t c h :   E P I C O R ] : 
 
         7 9 6 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         7 9 7 :   
 
   > >   7 9 8 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d O t h e r D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         7 9 9 :   
 
         8 0 0 :   
 
 
 
     L i n e   8 4 5   [ m a t c h :   E P I C O R ] : 
 
         8 4 3 :           p u b l i c   f u n c t i o n   g e t P r o c e s s e d R R D e t a i l s E x c e l R e s p o n s e ( $ P a r t   =   n u l l ,   $ P l a n t   =   n u l l ,   $ W a r e h o u s e   =   n u l l ) 
 
         8 4 4 :           { 
 
   > >   8 4 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         8 4 6 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 4 7 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
 
 
     L i n e   8 4 6   [ m a t c h :   E P I C O R ] : 
 
         8 4 4 :           { 
 
         8 4 5 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   8 4 6 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         8 4 7 :                   / * *   @ v a r   S e l e c t e d C o m p a n y P r o v i d e r   $ S e l e c t e d C o m p a n y P r o v i d e r   * / 
 
         8 4 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
 
 
     L i n e   8 5 0   [ m a t c h :   E P I C O R ] : 
 
         8 4 8 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         8 4 9 :   
 
   > >   8 5 0 :                   $ D a t a   =   $ E p i c o r D B - > g e t I n v e n t o r y P r o c e s s e d R R D e t a i l s D a t a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ,   $ P a r t ,   $ P l a n t ,   $ W a r e h o u s e ) ; 
 
         8 5 1 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t P r o c e s s e d R R D e t a i l s M e t a d a t a ( t r u e ,   f a l s e ,   f a l s e ,   t r u e ) ,   $ D a t a ) ; 
 
         8 5 2 :           } 
 
 
 
     L i n e   9 5 2   [ m a t c h :   E P I C O R ] : 
 
         9 5 0 :                   } 
 
         9 5 1 :   
 
   > >   9 5 2 :                   r e t u r n   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) )   .   '   -   '   .   $ S o u r c e D i s p l a y   .   '   '   .   d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) ) ; 
 
         9 5 3 :           } 
 
         9 5 4 :   
 
 
 
     L i n e   9 7 0   [ m a t c h :   E P I C O R ] : 
 
         9 6 8 :                   $ P r o c e s s e d R R E x c e l R e s p o n s e   =   $ t h i s - > g e t P r o c e s s e d R R S u m m a r y E x c e l R e s p o n s e ( ) ; 
 
         9 6 9 :   
 
   > >   9 7 0 :                   $ c a c h e K e y   =   ' i n v _ '   .   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( )   .   ' _ '   .   u n i q i d ( ' ' ,   t r u e )   .   ' _ '   .   m i c r o t i m e ( )   .   ' _ '   .   r a n d ( ) ; 
 
         9 7 1 :   
 
         9 7 2 :                   r e t u r n   $ t h i s - > _ g e t E x c e l E x p o r t C o n t e n t s ( $ c a c h e K e y ,   $ U n p r o c e s s e d E x c e l R e s p o n s e ,   $ U n p r o c e s s e d R R E x c e l R e s p o n s e ,   $ W o r k I n P r o g r e s s E x c e l R e s p o n s e ,   $ F i n i s h e d G o o d s E x c e l R e s p o n s e ,   $ P r o c e s s e d O t h e r E x c e l R e s p o n s e ,   $ P r o c e s s e d R R E x c e l R e s p o n s e ) ; 
 
 
 
     L i n e   1 0 0 3   [ m a t c h :   E P I C O R ] : 
 
         1 0 0 1 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 0 0 2 :   
 
   > >   1 0 0 3 :                   $ c a c h e K e y   =   ' i n v _ '   .   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( )   .   ' _ '   .   u n i q i d ( ' ' ,   t r u e )   .   ' _ '   .   m i c r o t i m e ( )   .   ' _ '   .   r a n d ( ) ; 
 
         1 0 0 4 :   
 
         1 0 0 5 :                     $ U n p r o c e s s e d G r i d   =   $ t h i s - > g e t U n p r o c e s s e d S u m m a r y G r i d ( f a l s e ,   f a l s e ,   f a l s e ,   f a l s e ,   t r u e ) ; 
 
 
 
     L i n e   1 1 2 8   [ m a t c h :   E P I C O R ] : 
 
         1 1 2 6 :                   $ c o m p   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 1 2 7 :   
 
   > >   1 1 2 8 :                   $ c u s t o m e r =   $ c o m p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         1 1 2 9 :   
 
         1 1 3 0 :   
 
 
 
     L i n e   1 1 3 3   [ m a t c h :   E P I C O R ] : 
 
         1 1 3 1 :   
 
         1 1 3 2 :   
 
   > >   1 1 3 3 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
         1 1 3 4 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 1 3 5 :   
 
 
 
     L i n e   1 1 3 4   [ m a t c h :   E P I C O R ] : 
 
         1 1 3 2 :   
 
         1 1 3 3 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D a t a b a s e   * / 
 
   > >   1 1 3 4 :                   $ E p i c o r D a t a b a s e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 1 3 5 :   
 
         1 1 3 6 :   
 
 
 
     L i n e   1 1 3 8   [ m a t c h :   E P I C O R ] : 
 
         1 1 3 6 :   
 
         1 1 3 7 :   
 
   > >   1 1 3 8 :                   r e t u r n     $ E p i c o r D a t a b a s e - > g e t J o b S t a t u s B y P l a n B y C u s t o m e r ( $ c u s t o m e r ) ; 
 
         1 1 3 9 :   
 
         1 1 4 0 :           } 
 
 
 
     L i n e   1 2 4 5   [ m a t c h :   E P I C O R ] : 
 
         1 2 4 3 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 2 4 4 :   
 
   > >   1 2 4 5 :                   $ c a c h e K e y   =   ' i n v _ d e t a i l _ ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' _ ' . u n i q i d ( ' ' , t r u e ) . ' _ ' . m i c r o t i m e ( ) . ' _ ' . r a n d ( ) ; 
 
         1 2 4 6 :   
 
         1 2 4 7 :                   $ U n p r o c e s s e d G r i d   =   $ t h i s - > g e t U n p r o c e s s e d D e t a i l s G r i d ( n u l l ,   n u l l ,   n u l l ,   f a l s e ,   t r u e ,   f a l s e ,   f a l s e ) ; 
 
 
 
     L i n e   1 2 7 4   [ m a t c h :   E P I C O R ] : 
 
         1 2 7 2 :                   $ P r o c e s s e d R R E x c e l R e s p o n s e   =   $ t h i s - > g e t P r o c e s s e d R R D e t a i l s E x c e l R e s p o n s e ( ) ; 
 
         1 2 7 3 :   
 
   > >   1 2 7 4 :                   $ c a c h e K e y   =   ' i n v _ d e t a i l _ ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) . ' _ ' . u n i q i d ( ' ' , t r u e ) . ' _ ' . m i c r o t i m e ( ) . ' _ ' . r a n d ( ) ; 
 
         1 2 7 5 :   
 
         1 2 7 6 :                   r e t u r n   $ t h i s - > _ g e t E x c e l E x p o r t C o n t e n t s ( $ c a c h e K e y ,   $ U n p r o c e s s e d E x c e l R e s p o n s e ,   $ U n p r o c e s s e d R R E x c e l R e s p o n s e ,   $ W o r k I n P r o g r e s s E x c e l R e s p o n s e ,   $ F i n i s h e d G o o d s E x c e l R e s p o n s e ,   $ P r o c e s s e d O t h e r E x c e l R e s p o n s e ,   $ P r o c e s s e d R R E x c e l R e s p o n s e ) ; 
 
 
 
     L i n e   1 3 0 5   [ m a t c h :   E P I C O R ] : 
 
         1 3 0 3 :           } 
 
         1 3 0 4 :   
 
   > >   1 3 0 5 :           p u b l i c   f u n c t i o n   _ s e t u p C o m m o n S u m m a r y G r i d ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) 
 
         1 3 0 6 :           { 
 
         1 3 0 7 :   
 
 
 
     L i n e   1 3 3 5   [ m a t c h :   E P I C O R ] : 
 
         1 3 3 3 :   
 
         1 3 3 4 :                   / * *   @ v a r   G r i d   $ G r i d   * / 
 
   > >   1 3 3 5 :                   $ G r i d   =   $ G r i d F a c t o r y - > c r e a t e ( $ M e t a d a t a ,   ' i n v e n t o r y _ s u m m a r y _ g r i d _ ' . $ M e t a d a t a - > g e t N a m e ( ) . ( $ T r a c k D i s p l a y ? ' _ ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) : ' ' ) ) ; 
 
         1 3 3 6 :   
 
         1 3 3 7 :   
 
 
 
     L i n e   1 4 0 3   [ m a t c h :   E P I C O R ] : 
 
         1 4 0 1 :           } 
 
         1 4 0 2 :   
 
   > >   1 4 0 3 :           p u b l i c   f u n c t i o n   _ s e t u p C o m m o n D e t a i l s G r i d ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ,   $ G r i d P a g i n g ,   $ C a r t O p e n = f a l s e ) 
 
         1 4 0 4 :           { 
 
         1 4 0 5 :                   / * *   @ v a r   G r i d F a c t o r y   $ G r i d F a c t o r y   * / 
 
 
 
     L i n e   1 4 3 3   [ m a t c h :   E P I C O R ] : 
 
         1 4 3 1 :                                   e l s e i f ( ( $ S h i p m e n t C a r t - > g e t I s C a r t O p e n ( )   | |   $ C a r t O p e n )   & &   $ S h i p m e n t C a r t - > g e t S e l e c t i o n C o u n t ( )   & &   $ S h i p m e n t C a r t - > i s D e t a i l I n C a r t ( $ D a t a R o w [ ' V o r t e q P a r t N u m ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   ( i n t ) $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ) 
 
         1 4 3 2 :                                           $ D a t a [ $ i ] [ ' S h i p m e n t S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " ' . a s s e t ( ' i m g / c y c l o n e - p u r p l e . p n g ' ) . ' "   t i t l e = " I n   y o u r   s h i p m e n t "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   s h i p m e n t . 
 
   > >   1 4 3 3 :                                   e l s e i f ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d S h i p m e n t E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' V o r t e q P a r t N u m ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ) 
 
         1 4 3 4 :                                           $ D a t a [ $ i ] [ ' S h i p m e n t S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " ' . a s s e t ( ' i m g / c y c l o n e - g r a y . p n g ' ) . ' "   t i t l e = " A l r e a d y   p a r t   o f   a n o t h e r   s h i p m e n t "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   a l t :   T h i s   i t e m   i s   a l r e a d y   i n   a n o t h e r   s h i p m e n t   r e l e a s e . 
 
         1 4 3 5 :   
 
 
 
     L i n e   1 4 9 5   [ m a t c h :   E P I C O R ] : 
 
         1 4 9 3 :   
 
         1 4 9 4 :           / * * 
 
   > >   1 4 9 5 :             *   @ p a r a m   E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a 
 
         1 4 9 6 :             *   @ p a r a m   a r r a y   $ D a t a 
 
         1 4 9 7 :             *   @ r e t u r n   R e s p o n s e 
 
 
 
     L i n e   1 4 9 9   [ m a t c h :   E P I C O R ] : 
 
         1 4 9 7 :             *   @ r e t u r n   R e s p o n s e 
 
         1 4 9 8 :             * / 
 
   > >   1 4 9 9 :           p u b l i c   f u n c t i o n   _ s e t u p C o m m o n E x c e l ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ) 
 
         1 5 0 0 :           { 
 
         1 5 0 1 :                   / * *   @ v a r   G r i d R e s p o n s e F a c t o r y   $ G r i d R e s p o n s e F a c t o r y   * / 
 
 
 
     L i n e   1 5 9 1   [ m a t c h :   E P I C O R ] : 
 
         1 5 8 9 :           p u b l i c   f u n c t i o n   _ g e t U n p r o c e s s e d S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         1 5 9 0 :           { 
 
   > >   1 5 9 1 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y S u m m a r y ' ) ; 
 
         1 5 9 2 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   f a l s e ) ; 
 
         1 5 9 3 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 5 9 8   [ m a t c h :   E P I C O R ] : 
 
         1 5 9 6 :           p u b l i c   f u n c t i o n   _ g e t U n p r o c e s s e d R R S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         1 5 9 7 :           { 
 
   > >   1 5 9 8 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' ) ; 
 
         1 5 9 9 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   f a l s e ) ; 
 
         1 6 0 0 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 6 0 5   [ m a t c h :   E P I C O R ] : 
 
         1 6 0 3 :           p u b l i c   f u n c t i o n   _ g e t W o r k I n P r o g r e s s S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         1 6 0 4 :           { 
 
   > >   1 6 0 5 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y S u m m a r y ' ) ; 
 
         1 6 0 6 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   t r u e ) ; 
 
         1 6 0 7 :   
 
 
 
     L i n e   1 6 3 4   [ m a t c h :   E P I C O R ] : 
 
         1 6 3 2 :           p u b l i c   f u n c t i o n   _ g e t F i n i s h e d G o o d s S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         1 6 3 3 :           { 
 
   > >   1 6 3 4 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y S u m m a r y ' ) ; 
 
         1 6 3 5 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   t r u e ) ; 
 
         1 6 3 6 :   
 
 
 
     L i n e   1 6 6 3   [ m a t c h :   E P I C O R ] : 
 
         1 6 6 1 :           p u b l i c   f u n c t i o n   _ g e t P r o c e s s e d O t h e r S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         1 6 6 2 :           { 
 
   > >   1 6 6 3 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y S u m m a r y ' ) ; 
 
         1 6 6 4 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   t r u e ) ; 
 
         1 6 6 5 :   
 
 
 
     L i n e   1 6 9 2   [ m a t c h :   E P I C O R ] : 
 
         1 6 9 0 :           p u b l i c   f u n c t i o n   _ g e t P r o c e s s e d R R S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         1 6 9 1 :           { 
 
   > >   1 6 9 2 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s S u m m a r y ' ) ; 
 
         1 6 9 3 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   t r u e ) ; 
 
         1 6 9 4 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 6 9 7   [ m a t c h :   E P I C O R ] : 
 
         1 6 9 5 :           } 
 
         1 6 9 6 :   
 
   > >   1 6 9 7 :           p u b l i c   f u n c t i o n   _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   $ I n c l u d e C u s t o m e r P a r t N u m ) 
 
         1 6 9 8 :           { 
 
         1 6 9 9 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P h o n y I D   * / 
 
 
 
     L i n e   1 7 3 0   [ m a t c h :   E P I C O R ] : 
 
         1 7 2 8 :           } 
 
         1 7 2 9 :   
 
   > >   1 7 3 0 :           p u b l i c   f u n c t i o n   _ a p p e n d S h a r e d S u m m a r y M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   / * *   @ n o i n s p e c t i o n   P h p U n u s e d P a r a m e t e r I n s p e c t i o n   * /   $ I n c l u d e L i n k s ,   $ I n c l u d e C u s t o m e r P a r t N u m ) 
 
         1 7 3 1 :           { 
 
         1 7 3 2 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P l a n t   * / 
 
 
 
     L i n e   1 7 8 2   [ m a t c h :   E P I C O R ] : 
 
         1 7 8 0 :           p u b l i c   f u n c t i o n   _ g e t U n p r o c e s s e d D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         1 7 8 1 :           { 
 
   > >   1 7 8 2 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y ' ) ; 
 
         1 7 8 3 :                   $ t h i s - > _ a p p e n d C o m m o n U n p r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ; 
 
         1 7 8 4 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 7 8 9   [ m a t c h :   E P I C O R ] : 
 
         1 7 8 7 :           p u b l i c   f u n c t i o n   _ g e t U n p r o c e s s e d R R D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         1 7 8 8 :           { 
 
   > >   1 7 8 9 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ U n p r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ' ) ; 
 
         1 7 9 0 :                   $ t h i s - > _ a p p e n d C o m m o n U n p r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ; 
 
         1 7 9 1 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 7 9 6   [ m a t c h :   E P I C O R ] : 
 
         1 7 9 4 :           p u b l i c   f u n c t i o n   _ g e t W o r k I n P r o g r e s s D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) 
 
         1 7 9 5 :           { 
 
   > >   1 7 9 6 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ W o r k I n P r o g r e s s I n v e n t o r y ' ) ; 
 
         1 7 9 7 :                   $ t h i s - > _ a p p e n d C o m m o n P r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) ; 
 
         1 7 9 8 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 8 0 3   [ m a t c h :   E P I C O R ] : 
 
         1 8 0 1 :           p u b l i c   f u n c t i o n   _ g e t F i n i s h e d G o o d s D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) 
 
         1 8 0 2 :           { 
 
   > >   1 8 0 3 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ F i n i s h e d G o o d s I n v e n t o r y ' ) ; 
 
         1 8 0 4 :                   $ t h i s - > _ a p p e n d C o m m o n P r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) ; 
 
         1 8 0 5 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 8 1 0   [ m a t c h :   E P I C O R ] : 
 
         1 8 0 8 :           p u b l i c   f u n c t i o n   _ g e t P r o c e s s e d O t h e r D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) 
 
         1 8 0 9 :           { 
 
   > >   1 8 1 0 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ P r o c e s s e d O t h e r I n v e n t o r y ' ) ; 
 
         1 8 1 1 :                   $ t h i s - > _ a p p e n d C o m m o n P r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) ; 
 
         1 8 1 2 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 8 1 7   [ m a t c h :   E P I C O R ] : 
 
         1 8 1 5 :           p u b l i c   f u n c t i o n   _ g e t P r o c e s s e d R R D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) 
 
         1 8 1 6 :           { 
 
   > >   1 8 1 7 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ P r o c e s s e d I n v e n t o r y R e j e c t s A n d R e t u r n s ' ) ; 
 
         1 8 1 8 :                   $ t h i s - > _ a p p e n d C o m m o n P r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) ; 
 
         1 8 1 9 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   1 8 2 2   [ m a t c h :   E P I C O R ] : 
 
         1 8 2 0 :           } 
 
         1 8 2 1 :   
 
   > >   1 8 2 2 :           p u b l i c   f u n c t i o n   _ a p p e n d C o m m o n U n p r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         1 8 2 3 :           { 
 
         1 8 2 4 :                   $ t h i s - > _ a p p e n d C o m m o n D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ; 
 
 
 
     L i n e   1 9 2 6   [ m a t c h :   E P I C O R ] : 
 
         1 9 2 4 :           } 
 
         1 9 2 5 :   
 
   > >   1 9 2 6 :           p u b l i c   f u n c t i o n   _ a p p e n d C o m m o n P r o c e s s e d D e t a i l s M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ,   $ M o v e A l l o c a t i o n A f t e r S a l e s J o b ) 
 
         1 9 2 7 :           { 
 
         1 9 2 8 :                   $ t h i s - > _ a p p e n d C o m m o n D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ; 
 
 
 
     L i n e   1 9 7 4   [ m a t c h :   E P I C O R ] : 
 
         1 9 7 2 :                   $ G e t S e s s i o n   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         1 9 7 3 :   
 
   > >   1 9 7 4 :                   $ C u s t I D   =   $ G e t S e s s i o n - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         1 9 7 5 :   
 
         1 9 7 6 :                   / * *   @ v a r   Q u e s t P a g e V a l u e s   $ Q P V   * / 
 
 
 
     L i n e   2 1 1 6   [ m a t c h :   E P I C O R ] : 
 
         2 1 1 4 :           } 
 
         2 1 1 5 :   
 
   > >   2 1 1 6 :           p u b l i c   f u n c t i o n   _ a p p e n d C o m m o n D e t a i l s M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         2 1 1 7 :           { 
 
         2 1 1 8 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P h o n y I D   * / 
 
 
 
     L i n e   2 4 6 7   [ m a t c h :   E P I C O R ] : 
 
         2 4 6 5 :   
 
         2 4 6 6 :                   $ E x c e l E x p o r t e r   =   n e w   E x c e l ( ) ; 
 
   > >   2 4 6 7 :                   $ E x p o r t N a m e   =   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) . '   I n v e n t o r y   ' . $ T y p e L a b e l . '   ' . d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) ) ; 
 
         2 4 6 8 :                   r e t u r n   $ E x p o r t N a m e . ' . ' . $ E x c e l E x p o r t e r - > g e t F i l e E x t e n s i o n ( ) ; 
 
         2 4 6 9 :           } 
 
 
 
     L i n e   2 5 8 4   [ m a t c h :   E P I C O R ] : 
 
         2 5 8 2 :                   $ S e l e c t e d C o m p a n y P r o v i d e r   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         2 5 8 3 :   
 
   > >   2 5 8 4 :                   r e t u r n   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ) . '   I n v e n t o r y   ' . $ T y p e L a b e l . '   ' . d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) ) . ' . p d f ' ; 
 
         2 5 8 5 :           } 
 
         2 5 8 6 :   
 
 
 
     L i n e   2 5 8 9   [ m a t c h :   E P I C O R ] : 
 
         2 5 8 7 :           p u b l i c   f u n c t i o n   _ g e t L o t S e a r c h M e t a d a t a ( ) 
 
         2 5 8 8 :           { 
 
   > >   2 5 8 9 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ L o t S e a r c h ' ) ; 
 
         2 5 9 0 :   
 
         2 5 9 1 :                   / * *   g u t s   * / 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ O r d e r A c k n o w l e d g e m e n t E m a i l s S e r v i c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 9   [ m a t c h :   e p i c o r ] : 
 
         6 7 :   
 
         6 8 :                           f o r e a c h ( $ o r d e r s   a s   $ i   = >   $ o r d e r I n f o ) 
 
   > >   6 9 :                                   $ o r d e r s [ $ i ] [ ' P d f S t r i n g ' ]   =   $ a c k P d f S e r v i c e - > g e t P d f S t r i n g ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ,   n u l l ,   $ o r d e r I n f o [ ' O r d e r N u m ' ] ) ; 
 
         7 0 :   
 
         7 1 :                           i f ( s t r l e n ( $ c o m p a n y E m a i l S t r i n g ) ) 
 
 
 
     L i n e   7 3   [ m a t c h :   e p i c o r ] : 
 
         7 1 :                           i f ( s t r l e n ( $ c o m p a n y E m a i l S t r i n g ) ) 
 
         7 2 :                           { 
 
   > >   7 3 :                                   $ O r d e r A c k n o w l e d g e m e n t N o t i f i c a t i o n   =   n e w   O r d e r A c k n o w l e d g e m e n t ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ,   $ c o m p a n y - > g e t C a l c D i s p l a y N a m e ( ) ,   $ o r d e r s ) ; 
 
         7 4 :                                   f o r e a c h ( $ C o m p a n y E m a i l s   a s   $ C o m p a n y E m a i l ) 
 
         7 5 :                                           N o t i f i c a t i o n : : r o u t e ( ' m a i l ' , $ C o m p a n y E m a i l ) - > n o t i f y ( $ O r d e r A c k n o w l e d g e m e n t N o t i f i c a t i o n ) ; 
 
 
 
     L i n e   9 9   [ m a t c h :   e p i c o r ] : 
 
         9 7 :                   / * *   @ v a r   q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o   * / 
 
         9 8 :                   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o   =   a p p ( q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l : : c l a s s ) ; 
 
   > >   9 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r D a t a b a s e S e r v i c e   * / 
 
         1 0 0 :                   $ e p i c o r D a t a b a s e S e r v i c e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 1 :   
 
 
 
     L i n e   1 0 0   [ m a t c h :   e p i c o r ] : 
 
         9 8 :                   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o   =   a p p ( q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l : : c l a s s ) ; 
 
         9 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r D a t a b a s e S e r v i c e   * / 
 
   > >   1 0 0 :                   $ e p i c o r D a t a b a s e S e r v i c e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 1 :   
 
         1 0 2 :                   $ m o s t R e c e n t l y P r o c e s s e d O r d e r D a t e F o r C u s t o m e r   =   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o - > g e t M o s t R e c e n t l y P r o c e s s e d O r d e r D a t e F o r C u s t o m e r ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ) ; 
 
 
 
     L i n e   1 0 2   [ m a t c h :   e p i c o r ] : 
 
         1 0 0 :                   $ e p i c o r D a t a b a s e S e r v i c e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 1 :   
 
   > >   1 0 2 :                   $ m o s t R e c e n t l y P r o c e s s e d O r d e r D a t e F o r C u s t o m e r   =   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o - > g e t M o s t R e c e n t l y P r o c e s s e d O r d e r D a t e F o r C u s t o m e r ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         1 0 3 :   
 
         1 0 4 :                   i f ( i s _ n u l l ( $ m o s t R e c e n t l y P r o c e s s e d O r d e r D a t e F o r C u s t o m e r ) )   { 
 
 
 
     L i n e   1 1 0   [ m a t c h :   e p i c o r ] : 
 
         1 0 8 :                   $ d a y B e f o r e   =   d a t e ( ' Y - m - d ' ,   s t r t o t i m e (   $ m o s t R e c e n t l y P r o c e s s e d O r d e r D a t e F o r C u s t o m e r   .   '   - 1   d a y ' ) ) ; 
 
         1 0 9 :   
 
   > >   1 1 0 :                   $ s e n t O r d e r N u m b e r s   =   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o - > g e t P r o c e s s e d O r d e r N u m b e r s F o r C u s t o m e r O n O r A f t e r D a t e ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ,   $ d a y B e f o r e ) ; 
 
         1 1 1 :   
 
         1 1 2 :                   r e t u r n   $ e p i c o r D a t a b a s e S e r v i c e - > g e t O r d e r s F o r C u s t o m e r O n O r A f t e r D a t e ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ,   $ d a y B e f o r e ,   $ s e n t O r d e r N u m b e r s ) ; 
 
 
 
     L i n e   1 1 2   [ m a t c h :   e p i c o r ] : 
 
         1 1 0 :                   $ s e n t O r d e r N u m b e r s   =   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o - > g e t P r o c e s s e d O r d e r N u m b e r s F o r C u s t o m e r O n O r A f t e r D a t e ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ,   $ d a y B e f o r e ) ; 
 
         1 1 1 :   
 
   > >   1 1 2 :                   r e t u r n   $ e p i c o r D a t a b a s e S e r v i c e - > g e t O r d e r s F o r C u s t o m e r O n O r A f t e r D a t e ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ,   $ d a y B e f o r e ,   $ s e n t O r d e r N u m b e r s ) ; 
 
         1 1 3 :           } 
 
         1 1 4 :   } 
 
 
 
     L i n e   6 9   [ m a t c h :   E p i c o r ] : 
 
         6 7 :   
 
         6 8 :                           f o r e a c h ( $ o r d e r s   a s   $ i   = >   $ o r d e r I n f o ) 
 
   > >   6 9 :                                   $ o r d e r s [ $ i ] [ ' P d f S t r i n g ' ]   =   $ a c k P d f S e r v i c e - > g e t P d f S t r i n g ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ,   n u l l ,   $ o r d e r I n f o [ ' O r d e r N u m ' ] ) ; 
 
         7 0 :   
 
         7 1 :                           i f ( s t r l e n ( $ c o m p a n y E m a i l S t r i n g ) ) 
 
 
 
     L i n e   7 3   [ m a t c h :   E p i c o r ] : 
 
         7 1 :                           i f ( s t r l e n ( $ c o m p a n y E m a i l S t r i n g ) ) 
 
         7 2 :                           { 
 
   > >   7 3 :                                   $ O r d e r A c k n o w l e d g e m e n t N o t i f i c a t i o n   =   n e w   O r d e r A c k n o w l e d g e m e n t ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ,   $ c o m p a n y - > g e t C a l c D i s p l a y N a m e ( ) ,   $ o r d e r s ) ; 
 
         7 4 :                                   f o r e a c h ( $ C o m p a n y E m a i l s   a s   $ C o m p a n y E m a i l ) 
 
         7 5 :                                           N o t i f i c a t i o n : : r o u t e ( ' m a i l ' , $ C o m p a n y E m a i l ) - > n o t i f y ( $ O r d e r A c k n o w l e d g e m e n t N o t i f i c a t i o n ) ; 
 
 
 
     L i n e   9 9   [ m a t c h :   E p i c o r ] : 
 
         9 7 :                   / * *   @ v a r   q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o   * / 
 
         9 8 :                   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o   =   a p p ( q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l : : c l a s s ) ; 
 
   > >   9 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r D a t a b a s e S e r v i c e   * / 
 
         1 0 0 :                   $ e p i c o r D a t a b a s e S e r v i c e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 1 :   
 
 
 
     L i n e   1 0 0   [ m a t c h :   E p i c o r ] : 
 
         9 8 :                   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o   =   a p p ( q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l : : c l a s s ) ; 
 
         9 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r D a t a b a s e S e r v i c e   * / 
 
   > >   1 0 0 :                   $ e p i c o r D a t a b a s e S e r v i c e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 1 :   
 
         1 0 2 :                   $ m o s t R e c e n t l y P r o c e s s e d O r d e r D a t e F o r C u s t o m e r   =   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o - > g e t M o s t R e c e n t l y P r o c e s s e d O r d e r D a t e F o r C u s t o m e r ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ) ; 
 
 
 
     L i n e   1 0 2   [ m a t c h :   E p i c o r ] : 
 
         1 0 0 :                   $ e p i c o r D a t a b a s e S e r v i c e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 1 :   
 
   > >   1 0 2 :                   $ m o s t R e c e n t l y P r o c e s s e d O r d e r D a t e F o r C u s t o m e r   =   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o - > g e t M o s t R e c e n t l y P r o c e s s e d O r d e r D a t e F o r C u s t o m e r ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         1 0 3 :   
 
         1 0 4 :                   i f ( i s _ n u l l ( $ m o s t R e c e n t l y P r o c e s s e d O r d e r D a t e F o r C u s t o m e r ) )   { 
 
 
 
     L i n e   1 1 0   [ m a t c h :   E p i c o r ] : 
 
         1 0 8 :                   $ d a y B e f o r e   =   d a t e ( ' Y - m - d ' ,   s t r t o t i m e (   $ m o s t R e c e n t l y P r o c e s s e d O r d e r D a t e F o r C u s t o m e r   .   '   - 1   d a y ' ) ) ; 
 
         1 0 9 :   
 
   > >   1 1 0 :                   $ s e n t O r d e r N u m b e r s   =   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o - > g e t P r o c e s s e d O r d e r N u m b e r s F o r C u s t o m e r O n O r A f t e r D a t e ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ,   $ d a y B e f o r e ) ; 
 
         1 1 1 :   
 
         1 1 2 :                   r e t u r n   $ e p i c o r D a t a b a s e S e r v i c e - > g e t O r d e r s F o r C u s t o m e r O n O r A f t e r D a t e ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ,   $ d a y B e f o r e ,   $ s e n t O r d e r N u m b e r s ) ; 
 
 
 
     L i n e   1 1 2   [ m a t c h :   E p i c o r ] : 
 
         1 1 0 :                   $ s e n t O r d e r N u m b e r s   =   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o - > g e t P r o c e s s e d O r d e r N u m b e r s F o r C u s t o m e r O n O r A f t e r D a t e ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ,   $ d a y B e f o r e ) ; 
 
         1 1 1 :   
 
   > >   1 1 2 :                   r e t u r n   $ e p i c o r D a t a b a s e S e r v i c e - > g e t O r d e r s F o r C u s t o m e r O n O r A f t e r D a t e ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ,   $ d a y B e f o r e ,   $ s e n t O r d e r N u m b e r s ) ; 
 
         1 1 3 :           } 
 
         1 1 4 :   } 
 
 
 
     L i n e   6 9   [ m a t c h :   E P I C O R ] : 
 
         6 7 :   
 
         6 8 :                           f o r e a c h ( $ o r d e r s   a s   $ i   = >   $ o r d e r I n f o ) 
 
   > >   6 9 :                                   $ o r d e r s [ $ i ] [ ' P d f S t r i n g ' ]   =   $ a c k P d f S e r v i c e - > g e t P d f S t r i n g ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ,   n u l l ,   $ o r d e r I n f o [ ' O r d e r N u m ' ] ) ; 
 
         7 0 :   
 
         7 1 :                           i f ( s t r l e n ( $ c o m p a n y E m a i l S t r i n g ) ) 
 
 
 
     L i n e   7 3   [ m a t c h :   E P I C O R ] : 
 
         7 1 :                           i f ( s t r l e n ( $ c o m p a n y E m a i l S t r i n g ) ) 
 
         7 2 :                           { 
 
   > >   7 3 :                                   $ O r d e r A c k n o w l e d g e m e n t N o t i f i c a t i o n   =   n e w   O r d e r A c k n o w l e d g e m e n t ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ,   $ c o m p a n y - > g e t C a l c D i s p l a y N a m e ( ) ,   $ o r d e r s ) ; 
 
         7 4 :                                   f o r e a c h ( $ C o m p a n y E m a i l s   a s   $ C o m p a n y E m a i l ) 
 
         7 5 :                                           N o t i f i c a t i o n : : r o u t e ( ' m a i l ' , $ C o m p a n y E m a i l ) - > n o t i f y ( $ O r d e r A c k n o w l e d g e m e n t N o t i f i c a t i o n ) ; 
 
 
 
     L i n e   9 9   [ m a t c h :   E P I C O R ] : 
 
         9 7 :                   / * *   @ v a r   q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o   * / 
 
         9 8 :                   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o   =   a p p ( q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l : : c l a s s ) ; 
 
   > >   9 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r D a t a b a s e S e r v i c e   * / 
 
         1 0 0 :                   $ e p i c o r D a t a b a s e S e r v i c e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 1 :   
 
 
 
     L i n e   1 0 0   [ m a t c h :   E P I C O R ] : 
 
         9 8 :                   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o   =   a p p ( q u e s t _ P r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l : : c l a s s ) ; 
 
         9 9 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ e p i c o r D a t a b a s e S e r v i c e   * / 
 
   > >   1 0 0 :                   $ e p i c o r D a t a b a s e S e r v i c e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 1 :   
 
         1 0 2 :                   $ m o s t R e c e n t l y P r o c e s s e d O r d e r D a t e F o r C u s t o m e r   =   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o - > g e t M o s t R e c e n t l y P r o c e s s e d O r d e r D a t e F o r C u s t o m e r ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ) ; 
 
 
 
     L i n e   1 0 2   [ m a t c h :   E P I C O R ] : 
 
         1 0 0 :                   $ e p i c o r D a t a b a s e S e r v i c e   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         1 0 1 :   
 
   > >   1 0 2 :                   $ m o s t R e c e n t l y P r o c e s s e d O r d e r D a t e F o r C u s t o m e r   =   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o - > g e t M o s t R e c e n t l y P r o c e s s e d O r d e r D a t e F o r C u s t o m e r ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         1 0 3 :   
 
         1 0 4 :                   i f ( i s _ n u l l ( $ m o s t R e c e n t l y P r o c e s s e d O r d e r D a t e F o r C u s t o m e r ) )   { 
 
 
 
     L i n e   1 1 0   [ m a t c h :   E P I C O R ] : 
 
         1 0 8 :                   $ d a y B e f o r e   =   d a t e ( ' Y - m - d ' ,   s t r t o t i m e (   $ m o s t R e c e n t l y P r o c e s s e d O r d e r D a t e F o r C u s t o m e r   .   '   - 1   d a y ' ) ) ; 
 
         1 0 9 :   
 
   > >   1 1 0 :                   $ s e n t O r d e r N u m b e r s   =   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o - > g e t P r o c e s s e d O r d e r N u m b e r s F o r C u s t o m e r O n O r A f t e r D a t e ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ,   $ d a y B e f o r e ) ; 
 
         1 1 1 :   
 
         1 1 2 :                   r e t u r n   $ e p i c o r D a t a b a s e S e r v i c e - > g e t O r d e r s F o r C u s t o m e r O n O r A f t e r D a t e ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ,   $ d a y B e f o r e ,   $ s e n t O r d e r N u m b e r s ) ; 
 
 
 
     L i n e   1 1 2   [ m a t c h :   E P I C O R ] : 
 
         1 1 0 :                   $ s e n t O r d e r N u m b e r s   =   $ p r o c e s s e d O r d e r A c k n o w l e d g e m e n t E m a i l s R e p o - > g e t P r o c e s s e d O r d e r N u m b e r s F o r C u s t o m e r O n O r A f t e r D a t e ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ,   $ d a y B e f o r e ) ; 
 
         1 1 1 :   
 
   > >   1 1 2 :                   r e t u r n   $ e p i c o r D a t a b a s e S e r v i c e - > g e t O r d e r s F o r C u s t o m e r O n O r A f t e r D a t e ( $ c o m p a n y - > g e t E p i c o r C u s t I D ( ) ,   $ d a y B e f o r e ,   $ s e n t O r d e r N u m b e r s ) ; 
 
         1 1 3 :           } 
 
         1 1 4 :   } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ O r d e r H e l p e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 2   [ m a t c h :   e p i c o r ] : 
 
         1 0 :   u s e   R o u t e H e l p e r ; 
 
         1 1 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ A l l o c C a r t ; 
 
   > >   1 2 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         1 3 :   u s e   A p p \ S e r v i c e s \ G r i d \ S u m m a r y M e n u T e m p l a t e ; 
 
         1 4 :   u s e   S a v v i o r \ C o m m o n \ K e n d o H e l p e r ; 
 
 
 
     L i n e   3 2   [ m a t c h :   e p i c o r ] : 
 
         3 0 :           p u b l i c   f u n c t i o n   g e t C o i l A l l o c a t i o n s F o r O r d e r ( $ J o b N u m ,   $ I n c l u d e L i n k s   =   t r u e ,   $ G r i d P a g i n g   =   t r u e ,   $ G r i d M e n u   =   t r u e ,   $ T r a c k D i s p l a y   =   t r u e ) 
 
         3 1 :           { 
 
   > >   3 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 4 :   
 
 
 
     L i n e   3 3   [ m a t c h :   e p i c o r ] : 
 
         3 1 :           { 
 
         3 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 4 :   
 
         3 5 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ J o b N u m ) ; 
 
 
 
     L i n e   3 5   [ m a t c h :   e p i c o r ] : 
 
         3 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 4 :   
 
   > >   3 5 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ J o b N u m ) ; 
 
         3 6 :   
 
         3 7 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n D e t a i l s G r i d ( $ t h i s - > _ g e t O p e n O r d e r D e t a i l s M e t a d a t a ( t r u e ,   $ I n c l u d e L i n k s ,   t r u e ) ,   $ D a t a ,   $ G r i d P a g i n g ) ; 
 
 
 
     L i n e   5 3   [ m a t c h :   e p i c o r ] : 
 
         5 1 :           p u b l i c   f u n c t i o n   _ g e t O p e n O r d e r D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         5 2 :           { 
 
   > >   5 3 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ O p e n O r d e r s ' ) ; 
 
         5 4 :                   $ t h i s - > _ a p p e n d O p e n O r d e r D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ; 
 
         5 5 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   5 8   [ m a t c h :   e p i c o r ] : 
 
         5 6 :           } 
 
         5 7 :   
 
   > >   5 8 :           p r o t e c t e d   f u n c t i o n   _ a p p e n d O p e n O r d e r D e t a i l s M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         5 9 :           { 
 
         6 0 :                   $ t h i s - > _ a p p e n d C o m m o n D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ; 
 
 
 
     L i n e   6 3   [ m a t c h :   e p i c o r ] : 
 
         6 1 :           } 
 
         6 2 :   
 
   > >   6 3 :           p r o t e c t e d   f u n c t i o n   _ a p p e n d C o m m o n D e t a i l s M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         6 4 :           { 
 
         6 5 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P h o n y I D   * / 
 
 
 
     L i n e   2 4 4   [ m a t c h :   e p i c o r ] : 
 
         2 4 2 :           } 
 
         2 4 3 :   
 
   > >   2 4 4 :           p r o t e c t e d   f u n c t i o n   _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   $ I n c l u d e C u s t o m e r P a r t N u m ) 
 
         2 4 5 :           { 
 
         2 4 6 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P h o n y I D   * / 
 
 
 
     L i n e   2 7 2   [ m a t c h :   e p i c o r ] : 
 
         2 7 0 :           } 
 
         2 7 1 :   
 
   > >   2 7 2 :           p r o t e c t e d   f u n c t i o n   _ a p p e n d S h a r e d S u m m a r y M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   / * *   @ n o i n s p e c t i o n   P h p U n u s e d P a r a m e t e r I n s p e c t i o n   * /   $ I n c l u d e L i n k s ,   $ I n c l u d e C u s t o m e r P a r t N u m ) 
 
         2 7 3 :           { 
 
         2 7 4 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P l a n t   * / 
 
 
 
     L i n e   3 1 5   [ m a t c h :   e p i c o r ] : 
 
         3 1 3 :           p r o t e c t e d   f u n c t i o n   _ g e t J o b S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         3 1 4 :           { 
 
   > >   3 1 5 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ O p e n O r d e r S u m m a r y ' ) ; 
 
         3 1 6 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   f a l s e ) ; 
 
         3 1 7 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   3 2 0   [ m a t c h :   e p i c o r ] : 
 
         3 1 8 :           } 
 
         3 1 9 :   
 
   > >   3 2 0 :           p r o t e c t e d   f u n c t i o n   _ s e t u p C o m m o n S u m m a r y G r i d ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) 
 
         3 2 1 :           { 
 
         3 2 2 :                   / * *   @ v a r   G r i d F a c t o r y   $ G r i d F a c t o r y   * / 
 
 
 
     L i n e   3 3 2   [ m a t c h :   e p i c o r ] : 
 
         3 3 0 :                   $ M e t a d a t a - > g e t F i e l d ( ' Q t y   o n   H a n d ' ) - > s e t I s F i l t e r a b l e I n R e c o r d L i s t s ( f a l s e ) ; 
 
         3 3 1 :   
 
   > >   3 3 2 :                   $ G r i d   =   $ G r i d F a c t o r y - > c r e a t e ( $ M e t a d a t a ,   ' o r d e r _ s u m m a r y _ g r i d _ ' . $ M e t a d a t a - > g e t N a m e ( ) . ( $ T r a c k D i s p l a y ? ' _ ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) : ' ' ) ) ; 
 
         3 3 3 :   
 
         3 3 4 :                   $ R e c o r d C o u n t   =   s i z e o f ( $ D a t a ) ; 
 
 
 
     L i n e   3 5 7   [ m a t c h :   e p i c o r ] : 
 
         3 5 5 :           } 
 
         3 5 6 :   
 
   > >   3 5 7 :           p u b l i c   f u n c t i o n   _ s e t u p C o m m o n D e t a i l s G r i d ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   & $ D a t a ,   $ G r i d P a g i n g ) 
 
         3 5 8 :           { 
 
         3 5 9 :                   / * *   @ v a r   G r i d F a c t o r y   $ G r i d F a c t o r y   * / 
 
 
 
     L i n e   3 9 8   [ m a t c h :   e p i c o r ] : 
 
         3 9 6 :                                           $ D a t a [ $ i ] [ ' A l l o c a t i o n S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " '   .   a s s e t ( ' i m g / v o r t e q - q - m a r k - p u r p l e . p n g ' )   .   ' "   t i t l e = " I n   y o u r   a l l o c a t i o n "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   s h i p m e n t . 
 
         3 9 7 :                                   } 
 
   > >   3 9 8 :                                   e l s e i f   ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] )   & &   $ A l l o c C a r t - > g e t C a r t J o b N u m ( )   = = =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m ' ) ) )   { 
 
         3 9 9 :                                           $ D a t a [ $ i ] [ ' A l l o c a t i o n S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " '   .   a s s e t ( ' i m g / v o r t e q - q - m a r k - g r a y . p n g ' )   .   ' "   t i t l e = " A l r e a d y   p a r t   o f   a n o t h e r   a l l o c a t i o n "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   a l t :   T h i s   i t e m   i s   a l r e a d y   i n   a n o t h e r   s h i p m e n t   r e l e a s e . 
 
         4 0 0 :                                           $ D a t a [ $ i ] [ ' a l l o c _ R e q u e s t _ I D ' ]   =   ( S t r i n g )   $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
 
 
     L i n e   4 0 0   [ m a t c h :   e p i c o r ] : 
 
         3 9 8 :                                   e l s e i f   ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] )   & &   $ A l l o c C a r t - > g e t C a r t J o b N u m ( )   = = =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m ' ) ) )   { 
 
         3 9 9 :                                           $ D a t a [ $ i ] [ ' A l l o c a t i o n S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " '   .   a s s e t ( ' i m g / v o r t e q - q - m a r k - g r a y . p n g ' )   .   ' "   t i t l e = " A l r e a d y   p a r t   o f   a n o t h e r   a l l o c a t i o n "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   a l t :   T h i s   i t e m   i s   a l r e a d y   i n   a n o t h e r   s h i p m e n t   r e l e a s e . 
 
   > >   4 0 0 :                                           $ D a t a [ $ i ] [ ' a l l o c _ R e q u e s t _ I D ' ]   =   ( S t r i n g )   $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         4 0 1 :                                   } 
 
         4 0 2 :                                   e l s e i f   ( $ A l l o c C a r t - > g e t I s C a r t O p e n ( )   & &   $ A l l o c C a r t - > g e t C a r t J o b N u m ( )   = = =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m ' ) ) )   { 
 
 
 
     L i n e   4 1 0   [ m a t c h :   e p i c o r ] : 
 
         4 0 8 :   
 
         4 0 9 :                                   e l s e i f ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( 
 
   > >   4 1 0 :                                           $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) , 
 
         4 1 1 :                                           $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] , 
 
         4 1 2 :                                           $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] , 
 
 
 
     L i n e   4 1 5   [ m a t c h :   e p i c o r ] : 
 
         4 1 3 :                                           $ D a t a R o w [ ' O n H a n d Q t y ' ] ) )   { 
 
         4 1 4 :                                           $ D a t a [ $ i ] [ ' A l l o c a t i o n S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " '   .   a s s e t ( ' i m g / v o r t e q - q - m a r k - g r a y . p n g ' )   .   ' "   t i t l e = " A l r e a d y   p a r t   o f   a n o t h e r   a l l o c a t i o n "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   a l t :   T h i s   i t e m   i s   a l r e a d y   i n   a n o t h e r   s h i p m e n t   r e l e a s e . 
 
   > >   4 1 5 :                                           $ D a t a [ $ i ] [ ' a l l o c _ R e q u e s t _ I D ' ]   =   ( S t r i n g )   $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         4 1 6 :                                           #     d d ( $ D a t a [ $ i ] ) ; 
 
         4 1 7 :                                   }   e l s e   { 
 
 
 
     L i n e   4 2 2   [ m a t c h :   e p i c o r ] : 
 
         4 2 0 :                           }   e l s e   { 
 
         4 2 1 :                                   i f ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( 
 
   > >   4 2 2 :                                           $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) , 
 
         4 2 3 :                                           $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] , 
 
         4 2 4 :                                           $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] , 
 
 
 
     L i n e   4 2 8   [ m a t c h :   e p i c o r ] : 
 
         4 2 6 :                                   { 
 
         4 2 7 :                                           $ D a t a [ $ i ] [ ' A l l o c a t i o n S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " '   .   a s s e t ( ' i m g / v o r t e q - q - m a r k - g r a y . p n g ' )   .   ' "   t i t l e = " A l r e a d y   p a r t   o f   a n o t h e r   a l l o c a t i o n "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   a l t :   T h i s   i t e m   i s   a l r e a d y   i n   a n o t h e r   s h i p m e n t   r e l e a s e . 
 
   > >   4 2 8 :                                           $ D a t a [ $ i ] [ ' a l l o c _ R e q u e s t _ I D ' ]   =   ( S t r i n g )   $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         4 2 9 :                                       #     d d ( $ D a t a [ $ i ] ) ; 
 
         4 3 0 :                                   }   e l s e   { 
 
 
 
     L i n e   4 6 6   [ m a t c h :   e p i c o r ] : 
 
         4 6 4 :           p u b l i c   f u n c t i o n   g e t C o i l A l l o c a t i o n s E x c e l R e s p o n s e ( $ J o b N u m ) 
 
         4 6 5 :           { 
 
   > >   4 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 6 8 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ J o b N u m ) ; 
 
 
 
     L i n e   4 6 7   [ m a t c h :   e p i c o r ] : 
 
         4 6 5 :           { 
 
         4 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 6 8 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ J o b N u m ) ; 
 
         4 6 9 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t O p e n O r d e r D e t a i l s M e t a d a t a ( t r u e ,   f a l s e ,   f a l s e ) ,   $ D a t a ) ; 
 
 
 
     L i n e   4 6 8   [ m a t c h :   e p i c o r ] : 
 
         4 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   4 6 8 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ J o b N u m ) ; 
 
         4 6 9 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t O p e n O r d e r D e t a i l s M e t a d a t a ( t r u e ,   f a l s e ,   f a l s e ) ,   $ D a t a ) ; 
 
         4 7 0 :           } 
 
 
 
     L i n e   4 7 2   [ m a t c h :   e p i c o r ] : 
 
         4 7 0 :           } 
 
         4 7 1 :   
 
   > >   4 7 2 :           p r o t e c t e d   f u n c t i o n   _ s e t u p C o m m o n E x c e l ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ) 
 
         4 7 3 :           { 
 
         4 7 4 :                   / * *   @ v a r   G r i d R e s p o n s e F a c t o r y   $ G r i d R e s p o n s e F a c t o r y   * / 
 
 
 
     L i n e   5 9 0   [ m a t c h :   e p i c o r ] : 
 
         5 8 8 :                   } 
 
         5 8 9 :   
 
   > >   5 9 0 :                   r e t u r n   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) )   .   '   -   '   .   $ S o u r c e D i s p l a y   .   '   '   .   d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) ) ; 
 
         5 9 1 :           } 
 
         5 9 2 :   } 
 
 
 
     L i n e   1 2   [ m a t c h :   E p i c o r ] : 
 
         1 0 :   u s e   R o u t e H e l p e r ; 
 
         1 1 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ A l l o c C a r t ; 
 
   > >   1 2 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         1 3 :   u s e   A p p \ S e r v i c e s \ G r i d \ S u m m a r y M e n u T e m p l a t e ; 
 
         1 4 :   u s e   S a v v i o r \ C o m m o n \ K e n d o H e l p e r ; 
 
 
 
     L i n e   3 2   [ m a t c h :   E p i c o r ] : 
 
         3 0 :           p u b l i c   f u n c t i o n   g e t C o i l A l l o c a t i o n s F o r O r d e r ( $ J o b N u m ,   $ I n c l u d e L i n k s   =   t r u e ,   $ G r i d P a g i n g   =   t r u e ,   $ G r i d M e n u   =   t r u e ,   $ T r a c k D i s p l a y   =   t r u e ) 
 
         3 1 :           { 
 
   > >   3 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 4 :   
 
 
 
     L i n e   3 3   [ m a t c h :   E p i c o r ] : 
 
         3 1 :           { 
 
         3 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 4 :   
 
         3 5 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ J o b N u m ) ; 
 
 
 
     L i n e   3 5   [ m a t c h :   E p i c o r ] : 
 
         3 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 4 :   
 
   > >   3 5 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ J o b N u m ) ; 
 
         3 6 :   
 
         3 7 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n D e t a i l s G r i d ( $ t h i s - > _ g e t O p e n O r d e r D e t a i l s M e t a d a t a ( t r u e ,   $ I n c l u d e L i n k s ,   t r u e ) ,   $ D a t a ,   $ G r i d P a g i n g ) ; 
 
 
 
     L i n e   5 3   [ m a t c h :   E p i c o r ] : 
 
         5 1 :           p u b l i c   f u n c t i o n   _ g e t O p e n O r d e r D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         5 2 :           { 
 
   > >   5 3 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ O p e n O r d e r s ' ) ; 
 
         5 4 :                   $ t h i s - > _ a p p e n d O p e n O r d e r D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ; 
 
         5 5 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   5 8   [ m a t c h :   E p i c o r ] : 
 
         5 6 :           } 
 
         5 7 :   
 
   > >   5 8 :           p r o t e c t e d   f u n c t i o n   _ a p p e n d O p e n O r d e r D e t a i l s M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         5 9 :           { 
 
         6 0 :                   $ t h i s - > _ a p p e n d C o m m o n D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ; 
 
 
 
     L i n e   6 3   [ m a t c h :   E p i c o r ] : 
 
         6 1 :           } 
 
         6 2 :   
 
   > >   6 3 :           p r o t e c t e d   f u n c t i o n   _ a p p e n d C o m m o n D e t a i l s M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         6 4 :           { 
 
         6 5 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P h o n y I D   * / 
 
 
 
     L i n e   2 4 4   [ m a t c h :   E p i c o r ] : 
 
         2 4 2 :           } 
 
         2 4 3 :   
 
   > >   2 4 4 :           p r o t e c t e d   f u n c t i o n   _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   $ I n c l u d e C u s t o m e r P a r t N u m ) 
 
         2 4 5 :           { 
 
         2 4 6 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P h o n y I D   * / 
 
 
 
     L i n e   2 7 2   [ m a t c h :   E p i c o r ] : 
 
         2 7 0 :           } 
 
         2 7 1 :   
 
   > >   2 7 2 :           p r o t e c t e d   f u n c t i o n   _ a p p e n d S h a r e d S u m m a r y M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   / * *   @ n o i n s p e c t i o n   P h p U n u s e d P a r a m e t e r I n s p e c t i o n   * /   $ I n c l u d e L i n k s ,   $ I n c l u d e C u s t o m e r P a r t N u m ) 
 
         2 7 3 :           { 
 
         2 7 4 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P l a n t   * / 
 
 
 
     L i n e   3 1 5   [ m a t c h :   E p i c o r ] : 
 
         3 1 3 :           p r o t e c t e d   f u n c t i o n   _ g e t J o b S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         3 1 4 :           { 
 
   > >   3 1 5 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ O p e n O r d e r S u m m a r y ' ) ; 
 
         3 1 6 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   f a l s e ) ; 
 
         3 1 7 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   3 2 0   [ m a t c h :   E p i c o r ] : 
 
         3 1 8 :           } 
 
         3 1 9 :   
 
   > >   3 2 0 :           p r o t e c t e d   f u n c t i o n   _ s e t u p C o m m o n S u m m a r y G r i d ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) 
 
         3 2 1 :           { 
 
         3 2 2 :                   / * *   @ v a r   G r i d F a c t o r y   $ G r i d F a c t o r y   * / 
 
 
 
     L i n e   3 3 2   [ m a t c h :   E p i c o r ] : 
 
         3 3 0 :                   $ M e t a d a t a - > g e t F i e l d ( ' Q t y   o n   H a n d ' ) - > s e t I s F i l t e r a b l e I n R e c o r d L i s t s ( f a l s e ) ; 
 
         3 3 1 :   
 
   > >   3 3 2 :                   $ G r i d   =   $ G r i d F a c t o r y - > c r e a t e ( $ M e t a d a t a ,   ' o r d e r _ s u m m a r y _ g r i d _ ' . $ M e t a d a t a - > g e t N a m e ( ) . ( $ T r a c k D i s p l a y ? ' _ ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) : ' ' ) ) ; 
 
         3 3 3 :   
 
         3 3 4 :                   $ R e c o r d C o u n t   =   s i z e o f ( $ D a t a ) ; 
 
 
 
     L i n e   3 5 7   [ m a t c h :   E p i c o r ] : 
 
         3 5 5 :           } 
 
         3 5 6 :   
 
   > >   3 5 7 :           p u b l i c   f u n c t i o n   _ s e t u p C o m m o n D e t a i l s G r i d ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   & $ D a t a ,   $ G r i d P a g i n g ) 
 
         3 5 8 :           { 
 
         3 5 9 :                   / * *   @ v a r   G r i d F a c t o r y   $ G r i d F a c t o r y   * / 
 
 
 
     L i n e   3 9 8   [ m a t c h :   E p i c o r ] : 
 
         3 9 6 :                                           $ D a t a [ $ i ] [ ' A l l o c a t i o n S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " '   .   a s s e t ( ' i m g / v o r t e q - q - m a r k - p u r p l e . p n g ' )   .   ' "   t i t l e = " I n   y o u r   a l l o c a t i o n "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   s h i p m e n t . 
 
         3 9 7 :                                   } 
 
   > >   3 9 8 :                                   e l s e i f   ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] )   & &   $ A l l o c C a r t - > g e t C a r t J o b N u m ( )   = = =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m ' ) ) )   { 
 
         3 9 9 :                                           $ D a t a [ $ i ] [ ' A l l o c a t i o n S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " '   .   a s s e t ( ' i m g / v o r t e q - q - m a r k - g r a y . p n g ' )   .   ' "   t i t l e = " A l r e a d y   p a r t   o f   a n o t h e r   a l l o c a t i o n "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   a l t :   T h i s   i t e m   i s   a l r e a d y   i n   a n o t h e r   s h i p m e n t   r e l e a s e . 
 
         4 0 0 :                                           $ D a t a [ $ i ] [ ' a l l o c _ R e q u e s t _ I D ' ]   =   ( S t r i n g )   $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
 
 
     L i n e   4 0 0   [ m a t c h :   E p i c o r ] : 
 
         3 9 8 :                                   e l s e i f   ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] )   & &   $ A l l o c C a r t - > g e t C a r t J o b N u m ( )   = = =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m ' ) ) )   { 
 
         3 9 9 :                                           $ D a t a [ $ i ] [ ' A l l o c a t i o n S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " '   .   a s s e t ( ' i m g / v o r t e q - q - m a r k - g r a y . p n g ' )   .   ' "   t i t l e = " A l r e a d y   p a r t   o f   a n o t h e r   a l l o c a t i o n "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   a l t :   T h i s   i t e m   i s   a l r e a d y   i n   a n o t h e r   s h i p m e n t   r e l e a s e . 
 
   > >   4 0 0 :                                           $ D a t a [ $ i ] [ ' a l l o c _ R e q u e s t _ I D ' ]   =   ( S t r i n g )   $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         4 0 1 :                                   } 
 
         4 0 2 :                                   e l s e i f   ( $ A l l o c C a r t - > g e t I s C a r t O p e n ( )   & &   $ A l l o c C a r t - > g e t C a r t J o b N u m ( )   = = =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m ' ) ) )   { 
 
 
 
     L i n e   4 1 0   [ m a t c h :   E p i c o r ] : 
 
         4 0 8 :   
 
         4 0 9 :                                   e l s e i f ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( 
 
   > >   4 1 0 :                                           $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) , 
 
         4 1 1 :                                           $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] , 
 
         4 1 2 :                                           $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] , 
 
 
 
     L i n e   4 1 5   [ m a t c h :   E p i c o r ] : 
 
         4 1 3 :                                           $ D a t a R o w [ ' O n H a n d Q t y ' ] ) )   { 
 
         4 1 4 :                                           $ D a t a [ $ i ] [ ' A l l o c a t i o n S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " '   .   a s s e t ( ' i m g / v o r t e q - q - m a r k - g r a y . p n g ' )   .   ' "   t i t l e = " A l r e a d y   p a r t   o f   a n o t h e r   a l l o c a t i o n "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   a l t :   T h i s   i t e m   i s   a l r e a d y   i n   a n o t h e r   s h i p m e n t   r e l e a s e . 
 
   > >   4 1 5 :                                           $ D a t a [ $ i ] [ ' a l l o c _ R e q u e s t _ I D ' ]   =   ( S t r i n g )   $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         4 1 6 :                                           #     d d ( $ D a t a [ $ i ] ) ; 
 
         4 1 7 :                                   }   e l s e   { 
 
 
 
     L i n e   4 2 2   [ m a t c h :   E p i c o r ] : 
 
         4 2 0 :                           }   e l s e   { 
 
         4 2 1 :                                   i f ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( 
 
   > >   4 2 2 :                                           $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) , 
 
         4 2 3 :                                           $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] , 
 
         4 2 4 :                                           $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] , 
 
 
 
     L i n e   4 2 8   [ m a t c h :   E p i c o r ] : 
 
         4 2 6 :                                   { 
 
         4 2 7 :                                           $ D a t a [ $ i ] [ ' A l l o c a t i o n S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " '   .   a s s e t ( ' i m g / v o r t e q - q - m a r k - g r a y . p n g ' )   .   ' "   t i t l e = " A l r e a d y   p a r t   o f   a n o t h e r   a l l o c a t i o n "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   a l t :   T h i s   i t e m   i s   a l r e a d y   i n   a n o t h e r   s h i p m e n t   r e l e a s e . 
 
   > >   4 2 8 :                                           $ D a t a [ $ i ] [ ' a l l o c _ R e q u e s t _ I D ' ]   =   ( S t r i n g )   $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         4 2 9 :                                       #     d d ( $ D a t a [ $ i ] ) ; 
 
         4 3 0 :                                   }   e l s e   { 
 
 
 
     L i n e   4 6 6   [ m a t c h :   E p i c o r ] : 
 
         4 6 4 :           p u b l i c   f u n c t i o n   g e t C o i l A l l o c a t i o n s E x c e l R e s p o n s e ( $ J o b N u m ) 
 
         4 6 5 :           { 
 
   > >   4 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 6 8 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ J o b N u m ) ; 
 
 
 
     L i n e   4 6 7   [ m a t c h :   E p i c o r ] : 
 
         4 6 5 :           { 
 
         4 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 6 8 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ J o b N u m ) ; 
 
         4 6 9 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t O p e n O r d e r D e t a i l s M e t a d a t a ( t r u e ,   f a l s e ,   f a l s e ) ,   $ D a t a ) ; 
 
 
 
     L i n e   4 6 8   [ m a t c h :   E p i c o r ] : 
 
         4 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   4 6 8 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ J o b N u m ) ; 
 
         4 6 9 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t O p e n O r d e r D e t a i l s M e t a d a t a ( t r u e ,   f a l s e ,   f a l s e ) ,   $ D a t a ) ; 
 
         4 7 0 :           } 
 
 
 
     L i n e   4 7 2   [ m a t c h :   E p i c o r ] : 
 
         4 7 0 :           } 
 
         4 7 1 :   
 
   > >   4 7 2 :           p r o t e c t e d   f u n c t i o n   _ s e t u p C o m m o n E x c e l ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ) 
 
         4 7 3 :           { 
 
         4 7 4 :                   / * *   @ v a r   G r i d R e s p o n s e F a c t o r y   $ G r i d R e s p o n s e F a c t o r y   * / 
 
 
 
     L i n e   5 9 0   [ m a t c h :   E p i c o r ] : 
 
         5 8 8 :                   } 
 
         5 8 9 :   
 
   > >   5 9 0 :                   r e t u r n   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) )   .   '   -   '   .   $ S o u r c e D i s p l a y   .   '   '   .   d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) ) ; 
 
         5 9 1 :           } 
 
         5 9 2 :   } 
 
 
 
     L i n e   1 2   [ m a t c h :   E P I C O R ] : 
 
         1 0 :   u s e   R o u t e H e l p e r ; 
 
         1 1 :   u s e   A p p \ S e r v i c e s \ C o i l A l l o c a t i o n \ A l l o c C a r t ; 
 
   > >   1 2 :   u s e   A p p \ S e r v i c e s \ E p i c o r M e t a d a t a \ E n t i t y M e t a d a t a   a s   E p i c o r E n t i t y M e t a d a t a ; 
 
         1 3 :   u s e   A p p \ S e r v i c e s \ G r i d \ S u m m a r y M e n u T e m p l a t e ; 
 
         1 4 :   u s e   S a v v i o r \ C o m m o n \ K e n d o H e l p e r ; 
 
 
 
     L i n e   3 2   [ m a t c h :   E P I C O R ] : 
 
         3 0 :           p u b l i c   f u n c t i o n   g e t C o i l A l l o c a t i o n s F o r O r d e r ( $ J o b N u m ,   $ I n c l u d e L i n k s   =   t r u e ,   $ G r i d P a g i n g   =   t r u e ,   $ G r i d M e n u   =   t r u e ,   $ T r a c k D i s p l a y   =   t r u e ) 
 
         3 1 :           { 
 
   > >   3 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         3 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 4 :   
 
 
 
     L i n e   3 3   [ m a t c h :   E P I C O R ] : 
 
         3 1 :           { 
 
         3 2 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   3 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 4 :   
 
         3 5 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ J o b N u m ) ; 
 
 
 
     L i n e   3 5   [ m a t c h :   E P I C O R ] : 
 
         3 3 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         3 4 :   
 
   > >   3 5 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ J o b N u m ) ; 
 
         3 6 :   
 
         3 7 :                   $ G r i d   =   $ t h i s - > _ s e t u p C o m m o n D e t a i l s G r i d ( $ t h i s - > _ g e t O p e n O r d e r D e t a i l s M e t a d a t a ( t r u e ,   $ I n c l u d e L i n k s ,   t r u e ) ,   $ D a t a ,   $ G r i d P a g i n g ) ; 
 
 
 
     L i n e   5 3   [ m a t c h :   E P I C O R ] : 
 
         5 1 :           p u b l i c   f u n c t i o n   _ g e t O p e n O r d e r D e t a i l s M e t a d a t a ( $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         5 2 :           { 
 
   > >   5 3 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ O p e n O r d e r s ' ) ; 
 
         5 4 :                   $ t h i s - > _ a p p e n d O p e n O r d e r D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ; 
 
         5 5 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   5 8   [ m a t c h :   E P I C O R ] : 
 
         5 6 :           } 
 
         5 7 :   
 
   > >   5 8 :           p r o t e c t e d   f u n c t i o n   _ a p p e n d O p e n O r d e r D e t a i l s M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         5 9 :           { 
 
         6 0 :                   $ t h i s - > _ a p p e n d C o m m o n D e t a i l s M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) ; 
 
 
 
     L i n e   6 3   [ m a t c h :   E P I C O R ] : 
 
         6 1 :           } 
 
         6 2 :   
 
   > >   6 3 :           p r o t e c t e d   f u n c t i o n   _ a p p e n d C o m m o n D e t a i l s M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e S h a r e d S u m m a r y F i e l d s ,   $ I n c l u d e L i n k s ,   $ I n c l u d e S h i p m e n t R e l e a s e I n f o ) 
 
         6 4 :           { 
 
         6 5 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P h o n y I D   * / 
 
 
 
     L i n e   2 4 4   [ m a t c h :   E P I C O R ] : 
 
         2 4 2 :           } 
 
         2 4 3 :   
 
   > >   2 4 4 :           p r o t e c t e d   f u n c t i o n   _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   $ I n c l u d e C u s t o m e r P a r t N u m ) 
 
         2 4 5 :           { 
 
         2 4 6 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P h o n y I D   * / 
 
 
 
     L i n e   2 7 2   [ m a t c h :   E P I C O R ] : 
 
         2 7 0 :           } 
 
         2 7 1 :   
 
   > >   2 7 2 :           p r o t e c t e d   f u n c t i o n   _ a p p e n d S h a r e d S u m m a r y M e t a d a t a E l e m e n t s ( E p i c o r E n t i t y M e t a d a t a   $ E n t i t y M e t a d a t a ,   / * *   @ n o i n s p e c t i o n   P h p U n u s e d P a r a m e t e r I n s p e c t i o n   * /   $ I n c l u d e L i n k s ,   $ I n c l u d e C u s t o m e r P a r t N u m ) 
 
         2 7 3 :           { 
 
         2 7 4 :                   / * *   @ v a r   F i e l d M e t a d a t a F i e l d   $ P l a n t   * / 
 
 
 
     L i n e   3 1 5   [ m a t c h :   E P I C O R ] : 
 
         3 1 3 :           p r o t e c t e d   f u n c t i o n   _ g e t J o b S u m m a r y M e t a d a t a ( $ I n c l u d e L i n k s ) 
 
         3 1 4 :           { 
 
   > >   3 1 5 :                   $ E n t i t y M e t a d a t a   =   n e w   E p i c o r E n t i t y M e t a d a t a ( ' p o r t a l _ O p e n O r d e r S u m m a r y ' ) ; 
 
         3 1 6 :                   $ t h i s - > _ a p p e n d C o m m o n S u m m a r y M e t a d a t a E l e m e n t s ( $ E n t i t y M e t a d a t a ,   $ I n c l u d e L i n k s ,   f a l s e ) ; 
 
         3 1 7 :                   r e t u r n   $ E n t i t y M e t a d a t a ; 
 
 
 
     L i n e   3 2 0   [ m a t c h :   E P I C O R ] : 
 
         3 1 8 :           } 
 
         3 1 9 :   
 
   > >   3 2 0 :           p r o t e c t e d   f u n c t i o n   _ s e t u p C o m m o n S u m m a r y G r i d ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ,   $ G r i d P a g i n g ,   $ G r i d M e n u ,   $ T r a c k D i s p l a y ) 
 
         3 2 1 :           { 
 
         3 2 2 :                   / * *   @ v a r   G r i d F a c t o r y   $ G r i d F a c t o r y   * / 
 
 
 
     L i n e   3 3 2   [ m a t c h :   E P I C O R ] : 
 
         3 3 0 :                   $ M e t a d a t a - > g e t F i e l d ( ' Q t y   o n   H a n d ' ) - > s e t I s F i l t e r a b l e I n R e c o r d L i s t s ( f a l s e ) ; 
 
         3 3 1 :   
 
   > >   3 3 2 :                   $ G r i d   =   $ G r i d F a c t o r y - > c r e a t e ( $ M e t a d a t a ,   ' o r d e r _ s u m m a r y _ g r i d _ ' . $ M e t a d a t a - > g e t N a m e ( ) . ( $ T r a c k D i s p l a y ? ' _ ' . $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) : ' ' ) ) ; 
 
         3 3 3 :   
 
         3 3 4 :                   $ R e c o r d C o u n t   =   s i z e o f ( $ D a t a ) ; 
 
 
 
     L i n e   3 5 7   [ m a t c h :   E P I C O R ] : 
 
         3 5 5 :           } 
 
         3 5 6 :   
 
   > >   3 5 7 :           p u b l i c   f u n c t i o n   _ s e t u p C o m m o n D e t a i l s G r i d ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   & $ D a t a ,   $ G r i d P a g i n g ) 
 
         3 5 8 :           { 
 
         3 5 9 :                   / * *   @ v a r   G r i d F a c t o r y   $ G r i d F a c t o r y   * / 
 
 
 
     L i n e   3 9 8   [ m a t c h :   E P I C O R ] : 
 
         3 9 6 :                                           $ D a t a [ $ i ] [ ' A l l o c a t i o n S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " '   .   a s s e t ( ' i m g / v o r t e q - q - m a r k - p u r p l e . p n g ' )   .   ' "   t i t l e = " I n   y o u r   a l l o c a t i o n "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   T h i s   i t e m   i s   a l r e a d y   i n   y o u r   c u r r e n t   s h i p m e n t . 
 
         3 9 7 :                                   } 
 
   > >   3 9 8 :                                   e l s e i f   ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] )   & &   $ A l l o c C a r t - > g e t C a r t J o b N u m ( )   = = =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m ' ) ) )   { 
 
         3 9 9 :                                           $ D a t a [ $ i ] [ ' A l l o c a t i o n S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " '   .   a s s e t ( ' i m g / v o r t e q - q - m a r k - g r a y . p n g ' )   .   ' "   t i t l e = " A l r e a d y   p a r t   o f   a n o t h e r   a l l o c a t i o n "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   a l t :   T h i s   i t e m   i s   a l r e a d y   i n   a n o t h e r   s h i p m e n t   r e l e a s e . 
 
         4 0 0 :                                           $ D a t a [ $ i ] [ ' a l l o c _ R e q u e s t _ I D ' ]   =   ( S t r i n g )   $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
 
 
     L i n e   4 0 0   [ m a t c h :   E P I C O R ] : 
 
         3 9 8 :                                   e l s e i f   ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] )   & &   $ A l l o c C a r t - > g e t C a r t J o b N u m ( )   = = =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m ' ) ) )   { 
 
         3 9 9 :                                           $ D a t a [ $ i ] [ ' A l l o c a t i o n S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " '   .   a s s e t ( ' i m g / v o r t e q - q - m a r k - g r a y . p n g ' )   .   ' "   t i t l e = " A l r e a d y   p a r t   o f   a n o t h e r   a l l o c a t i o n "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   a l t :   T h i s   i t e m   i s   a l r e a d y   i n   a n o t h e r   s h i p m e n t   r e l e a s e . 
 
   > >   4 0 0 :                                           $ D a t a [ $ i ] [ ' a l l o c _ R e q u e s t _ I D ' ]   =   ( S t r i n g )   $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         4 0 1 :                                   } 
 
         4 0 2 :                                   e l s e i f   ( $ A l l o c C a r t - > g e t I s C a r t O p e n ( )   & &   $ A l l o c C a r t - > g e t C a r t J o b N u m ( )   = = =   b a s e 6 4 _ d e c o d e ( r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' j o b _ n u m ' ) ) )   { 
 
 
 
     L i n e   4 1 0   [ m a t c h :   E P I C O R ] : 
 
         4 0 8 :   
 
         4 0 9 :                                   e l s e i f ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( 
 
   > >   4 1 0 :                                           $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) , 
 
         4 1 1 :                                           $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] , 
 
         4 1 2 :                                           $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] , 
 
 
 
     L i n e   4 1 5   [ m a t c h :   E P I C O R ] : 
 
         4 1 3 :                                           $ D a t a R o w [ ' O n H a n d Q t y ' ] ) )   { 
 
         4 1 4 :                                           $ D a t a [ $ i ] [ ' A l l o c a t i o n S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " '   .   a s s e t ( ' i m g / v o r t e q - q - m a r k - g r a y . p n g ' )   .   ' "   t i t l e = " A l r e a d y   p a r t   o f   a n o t h e r   a l l o c a t i o n "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   a l t :   T h i s   i t e m   i s   a l r e a d y   i n   a n o t h e r   s h i p m e n t   r e l e a s e . 
 
   > >   4 1 5 :                                           $ D a t a [ $ i ] [ ' a l l o c _ R e q u e s t _ I D ' ]   =   ( S t r i n g )   $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         4 1 6 :                                           #     d d ( $ D a t a [ $ i ] ) ; 
 
         4 1 7 :                                   }   e l s e   { 
 
 
 
     L i n e   4 2 2   [ m a t c h :   E P I C O R ] : 
 
         4 2 0 :                           }   e l s e   { 
 
         4 2 1 :                                   i f ( $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( 
 
   > >   4 2 2 :                                           $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) , 
 
         4 2 3 :                                           $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] , 
 
         4 2 4 :                                           $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] , 
 
 
 
     L i n e   4 2 8   [ m a t c h :   E P I C O R ] : 
 
         4 2 6 :                                   { 
 
         4 2 7 :                                           $ D a t a [ $ i ] [ ' A l l o c a t i o n S e l e c t i o n F i e l d ' ]   =   ' < i m g   s r c = " '   .   a s s e t ( ' i m g / v o r t e q - q - m a r k - g r a y . p n g ' )   .   ' "   t i t l e = " A l r e a d y   p a r t   o f   a n o t h e r   a l l o c a t i o n "   s t y l e = " w i d t h : 7 5 % ; "   / > ' ;   / /   a l t :   T h i s   i t e m   i s   a l r e a d y   i n   a n o t h e r   s h i p m e n t   r e l e a s e . 
 
   > >   4 2 8 :                                           $ D a t a [ $ i ] [ ' a l l o c _ R e q u e s t _ I D ' ]   =   ( S t r i n g )   $ R O S h i p m e n t R e q u e s t R e p o - > d o e s N o n C a n c e l l e d A l l o c a t i o n E x i s t F o r C o m p a n y W i t h P l a n t A n d D e t a i l L i n e ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ,   $ D a t a R o w [ ' P l a n t ' ] ,   $ D a t a R o w [ ' F i n i s h e d P a r t N u m b e r ' ] ,   $ D a t a R o w [ ' W a r e h o u s e ' ] ,   $ D a t a R o w [ ' L o t N u m ' ] ,   $ D a t a R o w [ ' O n H a n d Q t y ' ] ) ; 
 
         4 2 9 :                                       #     d d ( $ D a t a [ $ i ] ) ; 
 
         4 3 0 :                                   }   e l s e   { 
 
 
 
     L i n e   4 6 6   [ m a t c h :   E P I C O R ] : 
 
         4 6 4 :           p u b l i c   f u n c t i o n   g e t C o i l A l l o c a t i o n s E x c e l R e s p o n s e ( $ J o b N u m ) 
 
         4 6 5 :           { 
 
   > >   4 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 6 8 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ J o b N u m ) ; 
 
 
 
     L i n e   4 6 7   [ m a t c h :   E P I C O R ] : 
 
         4 6 5 :           { 
 
         4 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
   > >   4 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
         4 6 8 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ J o b N u m ) ; 
 
         4 6 9 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t O p e n O r d e r D e t a i l s M e t a d a t a ( t r u e ,   f a l s e ,   f a l s e ) ,   $ D a t a ) ; 
 
 
 
     L i n e   4 6 8   [ m a t c h :   E P I C O R ] : 
 
         4 6 6 :                   / * *   @ v a r   E p i c o r D a t a b a s e   $ E p i c o r D B   * / 
 
         4 6 7 :                   $ E p i c o r D B   =   a p p ( E p i c o r D a t a b a s e : : c l a s s ) ; 
 
   > >   4 6 8 :                   $ D a t a   =   $ E p i c o r D B - > g e t C o i l A l l o c a t i o n s B y J o b N u m b e r ( $ J o b N u m ) ; 
 
         4 6 9 :                   r e t u r n   $ t h i s - > _ s e t u p C o m m o n E x c e l ( $ t h i s - > _ g e t O p e n O r d e r D e t a i l s M e t a d a t a ( t r u e ,   f a l s e ,   f a l s e ) ,   $ D a t a ) ; 
 
         4 7 0 :           } 
 
 
 
     L i n e   4 7 2   [ m a t c h :   E P I C O R ] : 
 
         4 7 0 :           } 
 
         4 7 1 :   
 
   > >   4 7 2 :           p r o t e c t e d   f u n c t i o n   _ s e t u p C o m m o n E x c e l ( E p i c o r E n t i t y M e t a d a t a   $ M e t a d a t a ,   a r r a y   $ D a t a ) 
 
         4 7 3 :           { 
 
         4 7 4 :                   / * *   @ v a r   G r i d R e s p o n s e F a c t o r y   $ G r i d R e s p o n s e F a c t o r y   * / 
 
 
 
     L i n e   5 9 0   [ m a t c h :   E P I C O R ] : 
 
         5 8 8 :                   } 
 
         5 8 9 :   
 
   > >   5 9 0 :                   r e t u r n   S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) )   .   '   -   '   .   $ S o u r c e D i s p l a y   .   '   '   .   d a t e ( c o n f i g ( ' a p p . d a t e _ f o r m a t ' ) ) ; 
 
         5 9 1 :           } 
 
         5 9 2 :   } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ P a c k i n g S l i p H e l p e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 8   [ m a t c h :   F R O M   ] : 
 
         1 6 :   
 
         1 7 :                   $ U s e r s T o N o t i f y   =   " 
 
   > >   1 8 :                   S E L E C T   *   F R O M   a u t h _ U s e r   W H E R E   I D   I N   ( 
 
         1 9 :                           S E L E C T 
 
         2 0 :                           a u t h _ U s e r _ I D 
 
 
 
     L i n e   2 1   [ m a t c h :   F R O M   ] : 
 
         1 9 :                           S E L E C T 
 
         2 0 :                           a u t h _ U s e r _ I D 
 
   > >   2 1 :                           F R O M   q u e s t _ U s e r 
 
         2 2 :                           W H E R E   I D   I N   ( 
 
         2 3 :                                   S E L E C T 
 
 
 
     L i n e   2 5   [ m a t c h :   F R O M   ] : 
 
         2 3 :                                   S E L E C T 
 
         2 4 :                                   q u e s t _ U s e r _ I D 
 
   > >   2 5 :                                   F R O M   q u e s t _ U s e r E m a i l E v e n t 
 
         2 6 :                                   W H E R E   q u e s t _ E m a i l E v e n t _ I D   I N   ( 
 
         2 7 :                                           S E L E C T 
 
 
 
     L i n e   2 9   [ m a t c h :   F R O M   ] : 
 
         2 7 :                                           S E L E C T 
 
         2 8 :                                           I D 
 
   > >   2 9 :                                           F R O M   q u e s t _ E m a i l E v e n t 
 
         3 0 :                                           W H E R E   C o d i n g K e y   =   ' P A C K I N G _ S L I P _ U P L O A D E D ' 
 
         3 1 :                                   ) 
 
 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :                                   S E L E C T 
 
         3 5 :                                   q u e s t _ U s e r _ I D 
 
   > >   3 6 :                                   F R O M   q u e s t _ U s e r P l a n t 
 
         3 7 :                                   W H E R E   p a i n t _ P l a n t _ I D   I N   ( 
 
         3 8 :                                           S E L E C T 
 
 
 
     L i n e   4 0   [ m a t c h :   F R O M   ] : 
 
         3 8 :                                           S E L E C T 
 
         3 9 :                                           I D 
 
   > >   4 0 :                                           F R O M   p a i n t _ P l a n t 
 
         4 1 :                                           W H E R E   E p i c o r K e y   =   ' "   .   $ E p i c o r P l a n t I D   .   " ' 
 
         4 2 :                                   ) 
 
 
 
     L i n e   1 8   [ m a t c h :   S E L E C T   ] : 
 
         1 6 :   
 
         1 7 :                   $ U s e r s T o N o t i f y   =   " 
 
   > >   1 8 :                   S E L E C T   *   F R O M   a u t h _ U s e r   W H E R E   I D   I N   ( 
 
         1 9 :                           S E L E C T 
 
         2 0 :                           a u t h _ U s e r _ I D 
 
 
 
     L i n e   1 2   [ m a t c h :   e p i c o r ] : 
 
         1 0 :   c l a s s   P a c k i n g S l i p H e l p e r 
 
         1 1 :   { 
 
   > >   1 2 :           p u b l i c   f u n c t i o n   g e t U s e r s F o r U p l o a d N o t i f y ( $ E p i c o r P l a n t I D ) 
 
         1 3 :           { 
 
         1 4 :                   / * *   @ v a r   E M C o n t a i n e r   $ E M s   * / 
 
 
 
     L i n e   4 1   [ m a t c h :   e p i c o r ] : 
 
         3 9 :                                           I D 
 
         4 0 :                                           F R O M   p a i n t _ P l a n t 
 
   > >   4 1 :                                           W H E R E   E p i c o r K e y   =   ' "   .   $ E p i c o r P l a n t I D   .   " ' 
 
         4 2 :                                   ) 
 
         4 3 :                           ) 
 
 
 
     L i n e   6 2   [ m a t c h :   e p i c o r ] : 
 
         6 0 :                   r e t u r n   o b _ g e t _ c l e a n ( ) ; 
 
         6 1 :           } 
 
   > >   6 2 :           p u b l i c   f u n c t i o n   n o t i f y U s e r s O f U p l o a d ( $ E p i c o r P l a n t I D ,   $ F i l e ) 
 
         6 3 :           { 
 
         6 4 :                   f o r e a c h ( $ t h i s - > g e t U s e r s F o r U p l o a d N o t i f y ( $ E p i c o r P l a n t I D )   a s   $ U s e r ) 
 
 
 
     L i n e   6 4   [ m a t c h :   e p i c o r ] : 
 
         6 2 :           p u b l i c   f u n c t i o n   n o t i f y U s e r s O f U p l o a d ( $ E p i c o r P l a n t I D ,   $ F i l e ) 
 
         6 3 :           { 
 
   > >   6 4 :                   f o r e a c h ( $ t h i s - > g e t U s e r s F o r U p l o a d N o t i f y ( $ E p i c o r P l a n t I D )   a s   $ U s e r ) 
 
         6 5 :                   { 
 
         6 6 :                           \ L o g : : d e b u g ( " M a i l   p a c k i n g   s l i p   " . $ U s e r [ ' E m a i l ' ] ) ; 
 
 
 
     L i n e   1 2   [ m a t c h :   E p i c o r ] : 
 
         1 0 :   c l a s s   P a c k i n g S l i p H e l p e r 
 
         1 1 :   { 
 
   > >   1 2 :           p u b l i c   f u n c t i o n   g e t U s e r s F o r U p l o a d N o t i f y ( $ E p i c o r P l a n t I D ) 
 
         1 3 :           { 
 
         1 4 :                   / * *   @ v a r   E M C o n t a i n e r   $ E M s   * / 
 
 
 
     L i n e   4 1   [ m a t c h :   E p i c o r ] : 
 
         3 9 :                                           I D 
 
         4 0 :                                           F R O M   p a i n t _ P l a n t 
 
   > >   4 1 :                                           W H E R E   E p i c o r K e y   =   ' "   .   $ E p i c o r P l a n t I D   .   " ' 
 
         4 2 :                                   ) 
 
         4 3 :                           ) 
 
 
 
     L i n e   6 2   [ m a t c h :   E p i c o r ] : 
 
         6 0 :                   r e t u r n   o b _ g e t _ c l e a n ( ) ; 
 
         6 1 :           } 
 
   > >   6 2 :           p u b l i c   f u n c t i o n   n o t i f y U s e r s O f U p l o a d ( $ E p i c o r P l a n t I D ,   $ F i l e ) 
 
         6 3 :           { 
 
         6 4 :                   f o r e a c h ( $ t h i s - > g e t U s e r s F o r U p l o a d N o t i f y ( $ E p i c o r P l a n t I D )   a s   $ U s e r ) 
 
 
 
     L i n e   6 4   [ m a t c h :   E p i c o r ] : 
 
         6 2 :           p u b l i c   f u n c t i o n   n o t i f y U s e r s O f U p l o a d ( $ E p i c o r P l a n t I D ,   $ F i l e ) 
 
         6 3 :           { 
 
   > >   6 4 :                   f o r e a c h ( $ t h i s - > g e t U s e r s F o r U p l o a d N o t i f y ( $ E p i c o r P l a n t I D )   a s   $ U s e r ) 
 
         6 5 :                   { 
 
         6 6 :                           \ L o g : : d e b u g ( " M a i l   p a c k i n g   s l i p   " . $ U s e r [ ' E m a i l ' ] ) ; 
 
 
 
     L i n e   1 2   [ m a t c h :   E P I C O R ] : 
 
         1 0 :   c l a s s   P a c k i n g S l i p H e l p e r 
 
         1 1 :   { 
 
   > >   1 2 :           p u b l i c   f u n c t i o n   g e t U s e r s F o r U p l o a d N o t i f y ( $ E p i c o r P l a n t I D ) 
 
         1 3 :           { 
 
         1 4 :                   / * *   @ v a r   E M C o n t a i n e r   $ E M s   * / 
 
 
 
     L i n e   4 1   [ m a t c h :   E P I C O R ] : 
 
         3 9 :                                           I D 
 
         4 0 :                                           F R O M   p a i n t _ P l a n t 
 
   > >   4 1 :                                           W H E R E   E p i c o r K e y   =   ' "   .   $ E p i c o r P l a n t I D   .   " ' 
 
         4 2 :                                   ) 
 
         4 3 :                           ) 
 
 
 
     L i n e   6 2   [ m a t c h :   E P I C O R ] : 
 
         6 0 :                   r e t u r n   o b _ g e t _ c l e a n ( ) ; 
 
         6 1 :           } 
 
   > >   6 2 :           p u b l i c   f u n c t i o n   n o t i f y U s e r s O f U p l o a d ( $ E p i c o r P l a n t I D ,   $ F i l e ) 
 
         6 3 :           { 
 
         6 4 :                   f o r e a c h ( $ t h i s - > g e t U s e r s F o r U p l o a d N o t i f y ( $ E p i c o r P l a n t I D )   a s   $ U s e r ) 
 
 
 
     L i n e   6 4   [ m a t c h :   E P I C O R ] : 
 
         6 2 :           p u b l i c   f u n c t i o n   n o t i f y U s e r s O f U p l o a d ( $ E p i c o r P l a n t I D ,   $ F i l e ) 
 
         6 3 :           { 
 
   > >   6 4 :                   f o r e a c h ( $ t h i s - > g e t U s e r s F o r U p l o a d N o t i f y ( $ E p i c o r P l a n t I D )   a s   $ U s e r ) 
 
         6 5 :                   { 
 
         6 6 :                           \ L o g : : d e b u g ( " M a i l   p a c k i n g   s l i p   " . $ U s e r [ ' E m a i l ' ] ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ P a i n t S c h e d u l e S e r v i c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 4   [ m a t c h :   e p i c o r ] : 
 
         4 2 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t   $ P a i n t P l a n t   * / 
 
         4 3 :                   f o r e a c h   ( $ u s e r - > g e t P a i n t P l a n t ( )   A S   $ P a i n t P l a n t ) 
 
   > >   4 4 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ]   =   $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ; 
 
         4 5 :   
 
         4 6 :   
 
 
 
     L i n e   5 4   [ m a t c h :   e p i c o r ] : 
 
         5 2 :                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t L i n e   $ P a i n t L i n e   * / 
 
         5 3 :                           f o r e a c h   ( $ P a i n t P l a n t - > g e t P a i n t P l a n t L i n e ( )   A S   $ P a i n t L i n e ) 
 
   > >   5 4 :                                   $ L i n e s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( )   .   ' - '   .   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ]   =   [ ' i d '   = >   $ P a i n t P l a n t - > g e t E p i c o r K e y ( )   .   ' - '   .   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ,   ' n a m e '   = >   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t N a m e ( ) ,   ' c a t e g o r y '   = >   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t P a i n t L i n e T y p e ( ) - > g e t T y p e ( ) ] ; 
 
         5 5 :   
 
         5 6 :                           a r r a y _ m u l t i s o r t ( a r r a y _ m a p ( f u n c t i o n ( $ e l e m e n t )   { 
 
 
 
     L i n e   6 0   [ m a t c h :   e p i c o r ] : 
 
         5 8 :                           } ,   $ L i n e s ) ,   S O R T _ A S C ,   $ L i n e s ) ; 
 
         5 9 :   
 
   > >   6 0 :                           $ p l a n t s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ]   =   [ ' i d '   = >   $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ,   ' o f f s e t '   = >   $ P a i n t P l a n t - > g e t T i m e Z o n e M o d i f i e r ( ) ,   ' c a n _ e d i t '   = >   i s s e t ( $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ] ) ,   ' n a m e '   = >   $ P a i n t P l a n t - > g e t N a m e ( ) ,   ' l i n e s '   = >   $ L i n e s ] ; 
 
         6 1 :                   } 
 
         6 2 :   
 
 
 
     L i n e   6 7   [ m a t c h :   e p i c o r ] : 
 
         6 5 :                   / * *   @ v a r   p a i n t _ P l a n t L i n e   $ P a i n t P l a n t L i n e   * / 
 
         6 6 :                   f o r e a c h ( $ u s e r - > g e t P a i n t P l a n t L i n e ( )   A S   $ P a i n t P l a n t L i n e ) 
 
   > >   6 7 :                           $ p l a n t s [ $ P a i n t P l a n t L i n e - > g e t P a i n t P l a n t ( ) - > g e t E p i c o r K e y ( ) . " - " . $ P a i n t P l a n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ]   =   [ " c a n _ e d i t "   = >   t r u e ] ; 
 
         6 8 :   
 
         6 9 :   
 
 
 
     L i n e   9 2   [ m a t c h :   e p i c o r ] : 
 
         9 0 :                           $ a l l o w e d P l a n t L i n e s   =   [ ] ; 
 
         9 1 :                           f o r e a c h ( $ a s s i g n e d P l a n t L i n e s   a s   $ p a i n t _ P l a n t L i n e ) 
 
   > >   9 2 :                                   a r r a y _ p u s h ( $ a l l o w e d P l a n t L i n e s ,   $ p a i n t _ P l a n t L i n e - > g e t P a i n t P l a n t ( ) - > g e t E p i c o r K e y ( )   .   ' - '   .   $ p a i n t _ P l a n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ) ; 
 
         9 3 :   
 
         9 4 :                           / /   L o o p   t h r o u g h   t h e   g e n e r a t e d   I D s   a n d   s e e 
 
 
 
     L i n e   1 2 1   [ m a t c h :   e p i c o r ] : 
 
         1 1 9 :           { 
 
         1 2 0 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t   $ P l a n t   * / 
 
   > >   1 2 1 :                   $ P l a n t   =   $ R O P a i n t P l a n t R e p o - > f i n d O n e B y ( [ ' E p i c o r K e y '   = >   e x p l o d e ( ' - ' ,   $ l i n e I D ) [ 0 ] ] ) ; 
 
         1 2 2 :                   $ t a b l e R o w s   =   $ R O P a i n t S c h e d u l e R e p o - > g e t P a i n t S c h e d u l e ( $ l i n e I D ) ; 
 
         1 2 3 :                   $ s t a r t T i m e   =   n u l l ; 
 
 
 
     L i n e   4 4   [ m a t c h :   E p i c o r ] : 
 
         4 2 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t   $ P a i n t P l a n t   * / 
 
         4 3 :                   f o r e a c h   ( $ u s e r - > g e t P a i n t P l a n t ( )   A S   $ P a i n t P l a n t ) 
 
   > >   4 4 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ]   =   $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ; 
 
         4 5 :   
 
         4 6 :   
 
 
 
     L i n e   5 4   [ m a t c h :   E p i c o r ] : 
 
         5 2 :                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t L i n e   $ P a i n t L i n e   * / 
 
         5 3 :                           f o r e a c h   ( $ P a i n t P l a n t - > g e t P a i n t P l a n t L i n e ( )   A S   $ P a i n t L i n e ) 
 
   > >   5 4 :                                   $ L i n e s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( )   .   ' - '   .   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ]   =   [ ' i d '   = >   $ P a i n t P l a n t - > g e t E p i c o r K e y ( )   .   ' - '   .   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ,   ' n a m e '   = >   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t N a m e ( ) ,   ' c a t e g o r y '   = >   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t P a i n t L i n e T y p e ( ) - > g e t T y p e ( ) ] ; 
 
         5 5 :   
 
         5 6 :                           a r r a y _ m u l t i s o r t ( a r r a y _ m a p ( f u n c t i o n ( $ e l e m e n t )   { 
 
 
 
     L i n e   6 0   [ m a t c h :   E p i c o r ] : 
 
         5 8 :                           } ,   $ L i n e s ) ,   S O R T _ A S C ,   $ L i n e s ) ; 
 
         5 9 :   
 
   > >   6 0 :                           $ p l a n t s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ]   =   [ ' i d '   = >   $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ,   ' o f f s e t '   = >   $ P a i n t P l a n t - > g e t T i m e Z o n e M o d i f i e r ( ) ,   ' c a n _ e d i t '   = >   i s s e t ( $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ] ) ,   ' n a m e '   = >   $ P a i n t P l a n t - > g e t N a m e ( ) ,   ' l i n e s '   = >   $ L i n e s ] ; 
 
         6 1 :                   } 
 
         6 2 :   
 
 
 
     L i n e   6 7   [ m a t c h :   E p i c o r ] : 
 
         6 5 :                   / * *   @ v a r   p a i n t _ P l a n t L i n e   $ P a i n t P l a n t L i n e   * / 
 
         6 6 :                   f o r e a c h ( $ u s e r - > g e t P a i n t P l a n t L i n e ( )   A S   $ P a i n t P l a n t L i n e ) 
 
   > >   6 7 :                           $ p l a n t s [ $ P a i n t P l a n t L i n e - > g e t P a i n t P l a n t ( ) - > g e t E p i c o r K e y ( ) . " - " . $ P a i n t P l a n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ]   =   [ " c a n _ e d i t "   = >   t r u e ] ; 
 
         6 8 :   
 
         6 9 :   
 
 
 
     L i n e   9 2   [ m a t c h :   E p i c o r ] : 
 
         9 0 :                           $ a l l o w e d P l a n t L i n e s   =   [ ] ; 
 
         9 1 :                           f o r e a c h ( $ a s s i g n e d P l a n t L i n e s   a s   $ p a i n t _ P l a n t L i n e ) 
 
   > >   9 2 :                                   a r r a y _ p u s h ( $ a l l o w e d P l a n t L i n e s ,   $ p a i n t _ P l a n t L i n e - > g e t P a i n t P l a n t ( ) - > g e t E p i c o r K e y ( )   .   ' - '   .   $ p a i n t _ P l a n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ) ; 
 
         9 3 :   
 
         9 4 :                           / /   L o o p   t h r o u g h   t h e   g e n e r a t e d   I D s   a n d   s e e 
 
 
 
     L i n e   1 2 1   [ m a t c h :   E p i c o r ] : 
 
         1 1 9 :           { 
 
         1 2 0 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t   $ P l a n t   * / 
 
   > >   1 2 1 :                   $ P l a n t   =   $ R O P a i n t P l a n t R e p o - > f i n d O n e B y ( [ ' E p i c o r K e y '   = >   e x p l o d e ( ' - ' ,   $ l i n e I D ) [ 0 ] ] ) ; 
 
         1 2 2 :                   $ t a b l e R o w s   =   $ R O P a i n t S c h e d u l e R e p o - > g e t P a i n t S c h e d u l e ( $ l i n e I D ) ; 
 
         1 2 3 :                   $ s t a r t T i m e   =   n u l l ; 
 
 
 
     L i n e   4 4   [ m a t c h :   E P I C O R ] : 
 
         4 2 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t   $ P a i n t P l a n t   * / 
 
         4 3 :                   f o r e a c h   ( $ u s e r - > g e t P a i n t P l a n t ( )   A S   $ P a i n t P l a n t ) 
 
   > >   4 4 :                           $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ]   =   $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ; 
 
         4 5 :   
 
         4 6 :   
 
 
 
     L i n e   5 4   [ m a t c h :   E P I C O R ] : 
 
         5 2 :                           / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t L i n e   $ P a i n t L i n e   * / 
 
         5 3 :                           f o r e a c h   ( $ P a i n t P l a n t - > g e t P a i n t P l a n t L i n e ( )   A S   $ P a i n t L i n e ) 
 
   > >   5 4 :                                   $ L i n e s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( )   .   ' - '   .   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ]   =   [ ' i d '   = >   $ P a i n t P l a n t - > g e t E p i c o r K e y ( )   .   ' - '   .   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ,   ' n a m e '   = >   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t N a m e ( ) ,   ' c a t e g o r y '   = >   $ P a i n t L i n e - > g e t P a i n t L i n e ( ) - > g e t P a i n t L i n e T y p e ( ) - > g e t T y p e ( ) ] ; 
 
         5 5 :   
 
         5 6 :                           a r r a y _ m u l t i s o r t ( a r r a y _ m a p ( f u n c t i o n ( $ e l e m e n t )   { 
 
 
 
     L i n e   6 0   [ m a t c h :   E P I C O R ] : 
 
         5 8 :                           } ,   $ L i n e s ) ,   S O R T _ A S C ,   $ L i n e s ) ; 
 
         5 9 :   
 
   > >   6 0 :                           $ p l a n t s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ]   =   [ ' i d '   = >   $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ,   ' o f f s e t '   = >   $ P a i n t P l a n t - > g e t T i m e Z o n e M o d i f i e r ( ) ,   ' c a n _ e d i t '   = >   i s s e t ( $ P l a n t E d i t A c c e s s [ $ P a i n t P l a n t - > g e t E p i c o r K e y ( ) ] ) ,   ' n a m e '   = >   $ P a i n t P l a n t - > g e t N a m e ( ) ,   ' l i n e s '   = >   $ L i n e s ] ; 
 
         6 1 :                   } 
 
         6 2 :   
 
 
 
     L i n e   6 7   [ m a t c h :   E P I C O R ] : 
 
         6 5 :                   / * *   @ v a r   p a i n t _ P l a n t L i n e   $ P a i n t P l a n t L i n e   * / 
 
         6 6 :                   f o r e a c h ( $ u s e r - > g e t P a i n t P l a n t L i n e ( )   A S   $ P a i n t P l a n t L i n e ) 
 
   > >   6 7 :                           $ p l a n t s [ $ P a i n t P l a n t L i n e - > g e t P a i n t P l a n t ( ) - > g e t E p i c o r K e y ( ) . " - " . $ P a i n t P l a n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ]   =   [ " c a n _ e d i t "   = >   t r u e ] ; 
 
         6 8 :   
 
         6 9 :   
 
 
 
     L i n e   9 2   [ m a t c h :   E P I C O R ] : 
 
         9 0 :                           $ a l l o w e d P l a n t L i n e s   =   [ ] ; 
 
         9 1 :                           f o r e a c h ( $ a s s i g n e d P l a n t L i n e s   a s   $ p a i n t _ P l a n t L i n e ) 
 
   > >   9 2 :                                   a r r a y _ p u s h ( $ a l l o w e d P l a n t L i n e s ,   $ p a i n t _ P l a n t L i n e - > g e t P a i n t P l a n t ( ) - > g e t E p i c o r K e y ( )   .   ' - '   .   $ p a i n t _ P l a n t L i n e - > g e t P a i n t L i n e ( ) - > g e t E p i c o r K e y ( ) ) ; 
 
         9 3 :   
 
         9 4 :                           / /   L o o p   t h r o u g h   t h e   g e n e r a t e d   I D s   a n d   s e e 
 
 
 
     L i n e   1 2 1   [ m a t c h :   E P I C O R ] : 
 
         1 1 9 :           { 
 
         1 2 0 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ p a i n t _ P l a n t   $ P l a n t   * / 
 
   > >   1 2 1 :                   $ P l a n t   =   $ R O P a i n t P l a n t R e p o - > f i n d O n e B y ( [ ' E p i c o r K e y '   = >   e x p l o d e ( ' - ' ,   $ l i n e I D ) [ 0 ] ] ) ; 
 
         1 2 2 :                   $ t a b l e R o w s   =   $ R O P a i n t S c h e d u l e R e p o - > g e t P a i n t S c h e d u l e ( $ l i n e I D ) ; 
 
         1 2 3 :                   $ s t a r t T i m e   =   n u l l ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ P D F H e l p e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 2 3   [ m a t c h :   F R O M   ] : 
 
         1 2 1 :   
 
         1 2 2 :   
 
   > >   1 2 3 :                           / * * *   g e t   a l l   r o w s   f r o m   t h e   t a b l e   * * * / 
 
         1 2 4 :                           $ t a b l e   =   $ t a b l e s - > i t e m ( 0 ) ; 
 
         1 2 5 :                           / * * *   l o o p   o v e r   t h e   t a b l e   r o w s   * * * / 
 
 
 
     L i n e   1 4 6   [ m a t c h :   F R O M   ] : 
 
         1 4 4 :   
 
         1 4 5 :                           f o r e a c h ( $ t a b l e - > g e t E l e m e n t s B y T a g N a m e ( ' t r ' )   a s   $ r o w )   { 
 
   > >   1 4 6 :                                   / /   i n i t i a l i z e   a r r a y   t o   s t o r e   t h e   c e l l   d a t a   f r o m   e a c h   r o w 
 
         1 4 7 :                                   $ f l i g h t   =   a r r a y ( ) ; 
 
         1 4 8 :                                   f o r e a c h ( $ r o w - > g e t E l e m e n t s B y T a g N a m e ( ' t d ' )   a s   $ c e l l )   { 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ P r o v i d e s A c t i v e U s e r C o m p a n i e s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 3   [ m a t c h :   e p i c o r ] : 
 
         1 1 :             *   @ r e t u r n   q u e s t _ C o m p a n y [ ] 
 
         1 2 :             * / 
 
   > >   1 3 :           p r o t e c t e d   f u n c t i o n   _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( q u e s t _ U s e r   $ Q u e s t U s e r ) 
 
         1 4 :           { 
 
         1 5 :                   / * *   @ v a r   U s e r P e r m i s s i o n C h e c k e r   $ U s e r P e r m i s s i o n C h e c k e r   * / 
 
 
 
     L i n e   2 2   [ m a t c h :   e p i c o r ] : 
 
         2 0 :                   i f ( $ U s e r P e r m i s s i o n C h e c k e r - > c h e c k P e r m i s s i o n s ( ' C A N _ A C C E S S _ A L L _ A C T I V E _ C O M P A N I E S ' ,   U s e r P e r m i s s i o n C h e c k e r : : T Y P E _ A L L ,   $ Q u e s t U s e r - > g e t A u t h U s e r ( ) - > g e t I D ( ) ) ) 
 
         2 1 :                   { 
 
   > >   2 2 :                           r e t u r n   $ A c t i v e C o m p a n y M a n a g e r - > g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
         2 3 :                   } 
 
         2 4 :                   e l s e 
 
 
 
     L i n e   2 6   [ m a t c h :   e p i c o r ] : 
 
         2 4 :                   e l s e 
 
         2 5 :                   { 
 
   > >   2 6 :                           $ D i r e c t A s s i g n e d E p i c o r C u s t I D s   =   [ ] ; 
 
         2 7 :                           f o r e a c h ( $ Q u e s t U s e r - > g e t Q u e s t C o m p a n y ( )   a s   $ C o m p a n y ) 
 
         2 8 :                                   a r r a y _ p u s h ( $ D i r e c t A s s i g n e d E p i c o r C u s t I D s ,   $ C o m p a n y - > g e t E p i c o r C u s t I D ( ) ) ; 
 
 
 
     L i n e   2 8   [ m a t c h :   e p i c o r ] : 
 
         2 6 :                           $ D i r e c t A s s i g n e d E p i c o r C u s t I D s   =   [ ] ; 
 
         2 7 :                           f o r e a c h ( $ Q u e s t U s e r - > g e t Q u e s t C o m p a n y ( )   a s   $ C o m p a n y ) 
 
   > >   2 8 :                                   a r r a y _ p u s h ( $ D i r e c t A s s i g n e d E p i c o r C u s t I D s ,   $ C o m p a n y - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         2 9 :                           r e t u r n   $ A c t i v e C o m p a n y M a n a g e r - > g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D s ( $ D i r e c t A s s i g n e d E p i c o r C u s t I D s ) ; 
 
         3 0 :                   } 
 
 
 
     L i n e   2 9   [ m a t c h :   e p i c o r ] : 
 
         2 7 :                           f o r e a c h ( $ Q u e s t U s e r - > g e t Q u e s t C o m p a n y ( )   a s   $ C o m p a n y ) 
 
         2 8 :                                   a r r a y _ p u s h ( $ D i r e c t A s s i g n e d E p i c o r C u s t I D s ,   $ C o m p a n y - > g e t E p i c o r C u s t I D ( ) ) ; 
 
   > >   2 9 :                           r e t u r n   $ A c t i v e C o m p a n y M a n a g e r - > g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D s ( $ D i r e c t A s s i g n e d E p i c o r C u s t I D s ) ; 
 
         3 0 :                   } 
 
         3 1 :           } 
 
 
 
     L i n e   1 3   [ m a t c h :   E p i c o r ] : 
 
         1 1 :             *   @ r e t u r n   q u e s t _ C o m p a n y [ ] 
 
         1 2 :             * / 
 
   > >   1 3 :           p r o t e c t e d   f u n c t i o n   _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( q u e s t _ U s e r   $ Q u e s t U s e r ) 
 
         1 4 :           { 
 
         1 5 :                   / * *   @ v a r   U s e r P e r m i s s i o n C h e c k e r   $ U s e r P e r m i s s i o n C h e c k e r   * / 
 
 
 
     L i n e   2 2   [ m a t c h :   E p i c o r ] : 
 
         2 0 :                   i f ( $ U s e r P e r m i s s i o n C h e c k e r - > c h e c k P e r m i s s i o n s ( ' C A N _ A C C E S S _ A L L _ A C T I V E _ C O M P A N I E S ' ,   U s e r P e r m i s s i o n C h e c k e r : : T Y P E _ A L L ,   $ Q u e s t U s e r - > g e t A u t h U s e r ( ) - > g e t I D ( ) ) ) 
 
         2 1 :                   { 
 
   > >   2 2 :                           r e t u r n   $ A c t i v e C o m p a n y M a n a g e r - > g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
         2 3 :                   } 
 
         2 4 :                   e l s e 
 
 
 
     L i n e   2 6   [ m a t c h :   E p i c o r ] : 
 
         2 4 :                   e l s e 
 
         2 5 :                   { 
 
   > >   2 6 :                           $ D i r e c t A s s i g n e d E p i c o r C u s t I D s   =   [ ] ; 
 
         2 7 :                           f o r e a c h ( $ Q u e s t U s e r - > g e t Q u e s t C o m p a n y ( )   a s   $ C o m p a n y ) 
 
         2 8 :                                   a r r a y _ p u s h ( $ D i r e c t A s s i g n e d E p i c o r C u s t I D s ,   $ C o m p a n y - > g e t E p i c o r C u s t I D ( ) ) ; 
 
 
 
     L i n e   2 8   [ m a t c h :   E p i c o r ] : 
 
         2 6 :                           $ D i r e c t A s s i g n e d E p i c o r C u s t I D s   =   [ ] ; 
 
         2 7 :                           f o r e a c h ( $ Q u e s t U s e r - > g e t Q u e s t C o m p a n y ( )   a s   $ C o m p a n y ) 
 
   > >   2 8 :                                   a r r a y _ p u s h ( $ D i r e c t A s s i g n e d E p i c o r C u s t I D s ,   $ C o m p a n y - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         2 9 :                           r e t u r n   $ A c t i v e C o m p a n y M a n a g e r - > g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D s ( $ D i r e c t A s s i g n e d E p i c o r C u s t I D s ) ; 
 
         3 0 :                   } 
 
 
 
     L i n e   2 9   [ m a t c h :   E p i c o r ] : 
 
         2 7 :                           f o r e a c h ( $ Q u e s t U s e r - > g e t Q u e s t C o m p a n y ( )   a s   $ C o m p a n y ) 
 
         2 8 :                                   a r r a y _ p u s h ( $ D i r e c t A s s i g n e d E p i c o r C u s t I D s ,   $ C o m p a n y - > g e t E p i c o r C u s t I D ( ) ) ; 
 
   > >   2 9 :                           r e t u r n   $ A c t i v e C o m p a n y M a n a g e r - > g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D s ( $ D i r e c t A s s i g n e d E p i c o r C u s t I D s ) ; 
 
         3 0 :                   } 
 
         3 1 :           } 
 
 
 
     L i n e   1 3   [ m a t c h :   E P I C O R ] : 
 
         1 1 :             *   @ r e t u r n   q u e s t _ C o m p a n y [ ] 
 
         1 2 :             * / 
 
   > >   1 3 :           p r o t e c t e d   f u n c t i o n   _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( q u e s t _ U s e r   $ Q u e s t U s e r ) 
 
         1 4 :           { 
 
         1 5 :                   / * *   @ v a r   U s e r P e r m i s s i o n C h e c k e r   $ U s e r P e r m i s s i o n C h e c k e r   * / 
 
 
 
     L i n e   2 2   [ m a t c h :   E P I C O R ] : 
 
         2 0 :                   i f ( $ U s e r P e r m i s s i o n C h e c k e r - > c h e c k P e r m i s s i o n s ( ' C A N _ A C C E S S _ A L L _ A C T I V E _ C O M P A N I E S ' ,   U s e r P e r m i s s i o n C h e c k e r : : T Y P E _ A L L ,   $ Q u e s t U s e r - > g e t A u t h U s e r ( ) - > g e t I D ( ) ) ) 
 
         2 1 :                   { 
 
   > >   2 2 :                           r e t u r n   $ A c t i v e C o m p a n y M a n a g e r - > g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) ; 
 
         2 3 :                   } 
 
         2 4 :                   e l s e 
 
 
 
     L i n e   2 6   [ m a t c h :   E P I C O R ] : 
 
         2 4 :                   e l s e 
 
         2 5 :                   { 
 
   > >   2 6 :                           $ D i r e c t A s s i g n e d E p i c o r C u s t I D s   =   [ ] ; 
 
         2 7 :                           f o r e a c h ( $ Q u e s t U s e r - > g e t Q u e s t C o m p a n y ( )   a s   $ C o m p a n y ) 
 
         2 8 :                                   a r r a y _ p u s h ( $ D i r e c t A s s i g n e d E p i c o r C u s t I D s ,   $ C o m p a n y - > g e t E p i c o r C u s t I D ( ) ) ; 
 
 
 
     L i n e   2 8   [ m a t c h :   E P I C O R ] : 
 
         2 6 :                           $ D i r e c t A s s i g n e d E p i c o r C u s t I D s   =   [ ] ; 
 
         2 7 :                           f o r e a c h ( $ Q u e s t U s e r - > g e t Q u e s t C o m p a n y ( )   a s   $ C o m p a n y ) 
 
   > >   2 8 :                                   a r r a y _ p u s h ( $ D i r e c t A s s i g n e d E p i c o r C u s t I D s ,   $ C o m p a n y - > g e t E p i c o r C u s t I D ( ) ) ; 
 
         2 9 :                           r e t u r n   $ A c t i v e C o m p a n y M a n a g e r - > g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D s ( $ D i r e c t A s s i g n e d E p i c o r C u s t I D s ) ; 
 
         3 0 :                   } 
 
 
 
     L i n e   2 9   [ m a t c h :   E P I C O R ] : 
 
         2 7 :                           f o r e a c h ( $ Q u e s t U s e r - > g e t Q u e s t C o m p a n y ( )   a s   $ C o m p a n y ) 
 
         2 8 :                                   a r r a y _ p u s h ( $ D i r e c t A s s i g n e d E p i c o r C u s t I D s ,   $ C o m p a n y - > g e t E p i c o r C u s t I D ( ) ) ; 
 
   > >   2 9 :                           r e t u r n   $ A c t i v e C o m p a n y M a n a g e r - > g e t A c t i v e C o m p a n i e s B y E p i c o r C u s t I D s ( $ D i r e c t A s s i g n e d E p i c o r C u s t I D s ) ; 
 
         3 0 :                   } 
 
         3 1 :           } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ Q u e s t I n v e n t o r y S e r v i c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 9   [ m a t c h :   - > q u e r y ( ] : 
 
         5 7 :                           $ r o u t e   =   R o u t e : : c u r r e n t ( ) ; 
 
         5 8 :                           $ p a r a m e t e r s   =   $ r o u t e - > p a r a m e t e r s ( ) ; 
 
   > >   5 9 :                           $ q u e r y   =   $ t h i s - > r e q u e s t - > q u e r y ( ) ; 
 
         6 0 :   
 
         6 1 :                           $ l a s t V i s i t e d D e t a i l s P a g e   =   [ 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ Q u e s t P a g e V a l u e s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 5   [ m a t c h :   e p i c o r ] : 
 
         1 3 :           p r i v a t e   $ q u e s t U s e r   =   n u l l ; 
 
         1 4 :           / * *   @ v a r   q u e s t _ C o m p a n y [ ]   * / 
 
   > >   1 5 :           p r i v a t e   $ q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D   =   [ ] ; 
 
         1 6 :           p r i v a t e   $ q u e s t U s e r C o m p a n y C u s t I D s W i t h I n v o i c i n g A c c e s s   =   [ ] ; 
 
         1 7 :   
 
 
 
     L i n e   3 6   [ m a t c h :   e p i c o r ] : 
 
         3 4 :   
 
         3 5 :   
 
   > >   3 6 :                   $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D   =   [ ] ; 
 
         3 7 :                   i f   ( ! i s _ n u l l ( $ t h i s - > q u e s t U s e r ) )   { 
 
         3 8 :                           $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ t h i s - > q u e s t U s e r ) ; 
 
 
 
     L i n e   3 8   [ m a t c h :   e p i c o r ] : 
 
         3 6 :                   $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D   =   [ ] ; 
 
         3 7 :                   i f   ( ! i s _ n u l l ( $ t h i s - > q u e s t U s e r ) )   { 
 
   > >   3 8 :                           $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ t h i s - > q u e s t U s e r ) ; 
 
         3 9 :                           $ t h i s - > q u e s t U s e r C o m p a n y C u s t I D s W i t h I n v o i c i n g A c c e s s   =   a r r a y _ k e y s ( a r r a y _ f i l t e r ( $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D ,   f u n c t i o n   ( q u e s t _ C o m p a n y   $ v a l )   { 
 
         4 0 :                                   r e t u r n   $ v a l - > g e t C a n A c c e s s I n v o i c e s ( ) ; 
 
 
 
     L i n e   3 9   [ m a t c h :   e p i c o r ] : 
 
         3 7 :                   i f   ( ! i s _ n u l l ( $ t h i s - > q u e s t U s e r ) )   { 
 
         3 8 :                           $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ t h i s - > q u e s t U s e r ) ; 
 
   > >   3 9 :                           $ t h i s - > q u e s t U s e r C o m p a n y C u s t I D s W i t h I n v o i c i n g A c c e s s   =   a r r a y _ k e y s ( a r r a y _ f i l t e r ( $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D ,   f u n c t i o n   ( q u e s t _ C o m p a n y   $ v a l )   { 
 
         4 0 :                                   r e t u r n   $ v a l - > g e t C a n A c c e s s I n v o i c e s ( ) ; 
 
         4 1 :                           } ) ) ; 
 
 
 
     L i n e   8 0   [ m a t c h :   e p i c o r ] : 
 
         7 8 :                   $ s c p   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         7 9 :   
 
   > >   8 0 :                   $ c o m p a n y   =   $ s c p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         8 1 :                   i f   ( s t r t o u p p e r ( $ c o m p a n y )   ! = ' M W M ' ) 
 
         8 2 :                           r e t u r n   0 ; 
 
 
 
     L i n e   1 0 0   [ m a t c h :   e p i c o r ] : 
 
         9 8 :                   $ t h i s - > _ i n i t ( ) ; 
 
         9 9 :   
 
   > >   1 0 0 :                   r e t u r n   ! s i z e o f ( $ t h i s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) ) ; 
 
         1 0 1 :           } 
 
         1 0 2 :   
 
 
 
     L i n e   1 1 0   [ m a t c h :   e p i c o r ] : 
 
         1 0 8 :                   $ t h i s - > _ i n i t ( ) ; 
 
         1 0 9 :   
 
   > >   1 1 0 :                   r e t u r n   ( s i z e o f ( $ t h i s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) )   = = =   1 ) ; 
 
         1 1 1 :           } 
 
         1 1 2 :   
 
 
 
     L i n e   1 1 6   [ m a t c h :   e p i c o r ] : 
 
         1 1 4 :             *   @ r e t u r n   s t r i n g [ ] 
 
         1 1 5 :             * / 
 
   > >   1 1 6 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) 
 
         1 1 7 :           { 
 
         1 1 8 :                   $ t h i s - > _ i n i t ( ) ; 
 
 
 
     L i n e   1 2 0   [ m a t c h :   e p i c o r ] : 
 
         1 1 8 :                   $ t h i s - > _ i n i t ( ) ; 
 
         1 1 9 :   
 
   > >   1 2 0 :                   r e t u r n   a r r a y _ k e y s ( $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D ) ; 
 
         1 2 1 :           } 
 
         1 2 2 :   
 
 
 
     L i n e   1 2 6   [ m a t c h :   e p i c o r ] : 
 
         1 2 4 :             *   @ r e t u r n   s t r i n g [ ] 
 
         1 2 5 :             * / 
 
   > >   1 2 6 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n y E p i c o r C u s t I D s W i t h I n v o i c i n g A c c e s s ( ) 
 
         1 2 7 :           { 
 
         1 2 8 :                   $ t h i s - > _ i n i t ( ) ; 
 
 
 
     L i n e   1 3 4   [ m a t c h :   e p i c o r ] : 
 
         1 3 2 :   
 
         1 3 3 :           / * * 
 
   > >   1 3 4 :             *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         1 3 5 :             *   @ r e t u r n   q u e s t _ C o m p a n y | n u l l 
 
         1 3 6 :             * / 
 
 
 
     L i n e   1 3 7   [ m a t c h :   e p i c o r ] : 
 
         1 3 5 :             *   @ r e t u r n   q u e s t _ C o m p a n y | n u l l 
 
         1 3 6 :             * / 
 
   > >   1 3 7 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ E p i c o r C u s t I D ) 
 
         1 3 8 :           { 
 
         1 3 9 :                   $ t h i s - > _ i n i t ( ) ; 
 
 
 
     L i n e   1 4 1   [ m a t c h :   e p i c o r ] : 
 
         1 3 9 :                   $ t h i s - > _ i n i t ( ) ; 
 
         1 4 0 :   
 
   > >   1 4 1 :                   r e t u r n   ( i s s e t ( $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] )   ?   $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ]   :   n u l l ) ; 
 
         1 4 2 :           } 
 
         1 4 3 :   
 
 
 
     L i n e   1 4 7   [ m a t c h :   e p i c o r ] : 
 
         1 4 5 :             *   @ r e t u r n   q u e s t _ C o m p a n y [ ] 
 
         1 4 6 :             * / 
 
   > >   1 4 7 :           p u b l i c   f u n c t i o n   g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) 
 
         1 4 8 :           { 
 
         1 4 9 :                   $ t h i s - > _ i n i t ( ) ; 
 
 
 
     L i n e   1 5 1   [ m a t c h :   e p i c o r ] : 
 
         1 4 9 :                   $ t h i s - > _ i n i t ( ) ; 
 
         1 5 0 :   
 
   > >   1 5 1 :                   r e t u r n   $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D ; 
 
         1 5 2 :           } 
 
         1 5 3 :   } 
 
 
 
     L i n e   1 5   [ m a t c h :   E p i c o r ] : 
 
         1 3 :           p r i v a t e   $ q u e s t U s e r   =   n u l l ; 
 
         1 4 :           / * *   @ v a r   q u e s t _ C o m p a n y [ ]   * / 
 
   > >   1 5 :           p r i v a t e   $ q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D   =   [ ] ; 
 
         1 6 :           p r i v a t e   $ q u e s t U s e r C o m p a n y C u s t I D s W i t h I n v o i c i n g A c c e s s   =   [ ] ; 
 
         1 7 :   
 
 
 
     L i n e   3 6   [ m a t c h :   E p i c o r ] : 
 
         3 4 :   
 
         3 5 :   
 
   > >   3 6 :                   $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D   =   [ ] ; 
 
         3 7 :                   i f   ( ! i s _ n u l l ( $ t h i s - > q u e s t U s e r ) )   { 
 
         3 8 :                           $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ t h i s - > q u e s t U s e r ) ; 
 
 
 
     L i n e   3 8   [ m a t c h :   E p i c o r ] : 
 
         3 6 :                   $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D   =   [ ] ; 
 
         3 7 :                   i f   ( ! i s _ n u l l ( $ t h i s - > q u e s t U s e r ) )   { 
 
   > >   3 8 :                           $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ t h i s - > q u e s t U s e r ) ; 
 
         3 9 :                           $ t h i s - > q u e s t U s e r C o m p a n y C u s t I D s W i t h I n v o i c i n g A c c e s s   =   a r r a y _ k e y s ( a r r a y _ f i l t e r ( $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D ,   f u n c t i o n   ( q u e s t _ C o m p a n y   $ v a l )   { 
 
         4 0 :                                   r e t u r n   $ v a l - > g e t C a n A c c e s s I n v o i c e s ( ) ; 
 
 
 
     L i n e   3 9   [ m a t c h :   E p i c o r ] : 
 
         3 7 :                   i f   ( ! i s _ n u l l ( $ t h i s - > q u e s t U s e r ) )   { 
 
         3 8 :                           $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ t h i s - > q u e s t U s e r ) ; 
 
   > >   3 9 :                           $ t h i s - > q u e s t U s e r C o m p a n y C u s t I D s W i t h I n v o i c i n g A c c e s s   =   a r r a y _ k e y s ( a r r a y _ f i l t e r ( $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D ,   f u n c t i o n   ( q u e s t _ C o m p a n y   $ v a l )   { 
 
         4 0 :                                   r e t u r n   $ v a l - > g e t C a n A c c e s s I n v o i c e s ( ) ; 
 
         4 1 :                           } ) ) ; 
 
 
 
     L i n e   8 0   [ m a t c h :   E p i c o r ] : 
 
         7 8 :                   $ s c p   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         7 9 :   
 
   > >   8 0 :                   $ c o m p a n y   =   $ s c p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         8 1 :                   i f   ( s t r t o u p p e r ( $ c o m p a n y )   ! = ' M W M ' ) 
 
         8 2 :                           r e t u r n   0 ; 
 
 
 
     L i n e   1 0 0   [ m a t c h :   E p i c o r ] : 
 
         9 8 :                   $ t h i s - > _ i n i t ( ) ; 
 
         9 9 :   
 
   > >   1 0 0 :                   r e t u r n   ! s i z e o f ( $ t h i s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) ) ; 
 
         1 0 1 :           } 
 
         1 0 2 :   
 
 
 
     L i n e   1 1 0   [ m a t c h :   E p i c o r ] : 
 
         1 0 8 :                   $ t h i s - > _ i n i t ( ) ; 
 
         1 0 9 :   
 
   > >   1 1 0 :                   r e t u r n   ( s i z e o f ( $ t h i s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) )   = = =   1 ) ; 
 
         1 1 1 :           } 
 
         1 1 2 :   
 
 
 
     L i n e   1 1 6   [ m a t c h :   E p i c o r ] : 
 
         1 1 4 :             *   @ r e t u r n   s t r i n g [ ] 
 
         1 1 5 :             * / 
 
   > >   1 1 6 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) 
 
         1 1 7 :           { 
 
         1 1 8 :                   $ t h i s - > _ i n i t ( ) ; 
 
 
 
     L i n e   1 2 0   [ m a t c h :   E p i c o r ] : 
 
         1 1 8 :                   $ t h i s - > _ i n i t ( ) ; 
 
         1 1 9 :   
 
   > >   1 2 0 :                   r e t u r n   a r r a y _ k e y s ( $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D ) ; 
 
         1 2 1 :           } 
 
         1 2 2 :   
 
 
 
     L i n e   1 2 6   [ m a t c h :   E p i c o r ] : 
 
         1 2 4 :             *   @ r e t u r n   s t r i n g [ ] 
 
         1 2 5 :             * / 
 
   > >   1 2 6 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n y E p i c o r C u s t I D s W i t h I n v o i c i n g A c c e s s ( ) 
 
         1 2 7 :           { 
 
         1 2 8 :                   $ t h i s - > _ i n i t ( ) ; 
 
 
 
     L i n e   1 3 4   [ m a t c h :   E p i c o r ] : 
 
         1 3 2 :   
 
         1 3 3 :           / * * 
 
   > >   1 3 4 :             *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         1 3 5 :             *   @ r e t u r n   q u e s t _ C o m p a n y | n u l l 
 
         1 3 6 :             * / 
 
 
 
     L i n e   1 3 7   [ m a t c h :   E p i c o r ] : 
 
         1 3 5 :             *   @ r e t u r n   q u e s t _ C o m p a n y | n u l l 
 
         1 3 6 :             * / 
 
   > >   1 3 7 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ E p i c o r C u s t I D ) 
 
         1 3 8 :           { 
 
         1 3 9 :                   $ t h i s - > _ i n i t ( ) ; 
 
 
 
     L i n e   1 4 1   [ m a t c h :   E p i c o r ] : 
 
         1 3 9 :                   $ t h i s - > _ i n i t ( ) ; 
 
         1 4 0 :   
 
   > >   1 4 1 :                   r e t u r n   ( i s s e t ( $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] )   ?   $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ]   :   n u l l ) ; 
 
         1 4 2 :           } 
 
         1 4 3 :   
 
 
 
     L i n e   1 4 7   [ m a t c h :   E p i c o r ] : 
 
         1 4 5 :             *   @ r e t u r n   q u e s t _ C o m p a n y [ ] 
 
         1 4 6 :             * / 
 
   > >   1 4 7 :           p u b l i c   f u n c t i o n   g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) 
 
         1 4 8 :           { 
 
         1 4 9 :                   $ t h i s - > _ i n i t ( ) ; 
 
 
 
     L i n e   1 5 1   [ m a t c h :   E p i c o r ] : 
 
         1 4 9 :                   $ t h i s - > _ i n i t ( ) ; 
 
         1 5 0 :   
 
   > >   1 5 1 :                   r e t u r n   $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D ; 
 
         1 5 2 :           } 
 
         1 5 3 :   } 
 
 
 
     L i n e   1 5   [ m a t c h :   E P I C O R ] : 
 
         1 3 :           p r i v a t e   $ q u e s t U s e r   =   n u l l ; 
 
         1 4 :           / * *   @ v a r   q u e s t _ C o m p a n y [ ]   * / 
 
   > >   1 5 :           p r i v a t e   $ q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D   =   [ ] ; 
 
         1 6 :           p r i v a t e   $ q u e s t U s e r C o m p a n y C u s t I D s W i t h I n v o i c i n g A c c e s s   =   [ ] ; 
 
         1 7 :   
 
 
 
     L i n e   3 6   [ m a t c h :   E P I C O R ] : 
 
         3 4 :   
 
         3 5 :   
 
   > >   3 6 :                   $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D   =   [ ] ; 
 
         3 7 :                   i f   ( ! i s _ n u l l ( $ t h i s - > q u e s t U s e r ) )   { 
 
         3 8 :                           $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ t h i s - > q u e s t U s e r ) ; 
 
 
 
     L i n e   3 8   [ m a t c h :   E P I C O R ] : 
 
         3 6 :                   $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D   =   [ ] ; 
 
         3 7 :                   i f   ( ! i s _ n u l l ( $ t h i s - > q u e s t U s e r ) )   { 
 
   > >   3 8 :                           $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ t h i s - > q u e s t U s e r ) ; 
 
         3 9 :                           $ t h i s - > q u e s t U s e r C o m p a n y C u s t I D s W i t h I n v o i c i n g A c c e s s   =   a r r a y _ k e y s ( a r r a y _ f i l t e r ( $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D ,   f u n c t i o n   ( q u e s t _ C o m p a n y   $ v a l )   { 
 
         4 0 :                                   r e t u r n   $ v a l - > g e t C a n A c c e s s I n v o i c e s ( ) ; 
 
 
 
     L i n e   3 9   [ m a t c h :   E P I C O R ] : 
 
         3 7 :                   i f   ( ! i s _ n u l l ( $ t h i s - > q u e s t U s e r ) )   { 
 
         3 8 :                           $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D   =   $ t h i s - > _ g e t A c t i v e U s e r C o m p a n i e s B y E p i c o r C u s t I D ( $ t h i s - > q u e s t U s e r ) ; 
 
   > >   3 9 :                           $ t h i s - > q u e s t U s e r C o m p a n y C u s t I D s W i t h I n v o i c i n g A c c e s s   =   a r r a y _ k e y s ( a r r a y _ f i l t e r ( $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D ,   f u n c t i o n   ( q u e s t _ C o m p a n y   $ v a l )   { 
 
         4 0 :                                   r e t u r n   $ v a l - > g e t C a n A c c e s s I n v o i c e s ( ) ; 
 
         4 1 :                           } ) ) ; 
 
 
 
     L i n e   8 0   [ m a t c h :   E P I C O R ] : 
 
         7 8 :                   $ s c p   =   a p p ( S e l e c t e d C o m p a n y P r o v i d e r : : c l a s s ) ; 
 
         7 9 :   
 
   > >   8 0 :                   $ c o m p a n y   =   $ s c p - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         8 1 :                   i f   ( s t r t o u p p e r ( $ c o m p a n y )   ! = ' M W M ' ) 
 
         8 2 :                           r e t u r n   0 ; 
 
 
 
     L i n e   1 0 0   [ m a t c h :   E P I C O R ] : 
 
         9 8 :                   $ t h i s - > _ i n i t ( ) ; 
 
         9 9 :   
 
   > >   1 0 0 :                   r e t u r n   ! s i z e o f ( $ t h i s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) ) ; 
 
         1 0 1 :           } 
 
         1 0 2 :   
 
 
 
     L i n e   1 1 0   [ m a t c h :   E P I C O R ] : 
 
         1 0 8 :                   $ t h i s - > _ i n i t ( ) ; 
 
         1 0 9 :   
 
   > >   1 1 0 :                   r e t u r n   ( s i z e o f ( $ t h i s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) )   = = =   1 ) ; 
 
         1 1 1 :           } 
 
         1 1 2 :   
 
 
 
     L i n e   1 1 6   [ m a t c h :   E P I C O R ] : 
 
         1 1 4 :             *   @ r e t u r n   s t r i n g [ ] 
 
         1 1 5 :             * / 
 
   > >   1 1 6 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) 
 
         1 1 7 :           { 
 
         1 1 8 :                   $ t h i s - > _ i n i t ( ) ; 
 
 
 
     L i n e   1 2 0   [ m a t c h :   E P I C O R ] : 
 
         1 1 8 :                   $ t h i s - > _ i n i t ( ) ; 
 
         1 1 9 :   
 
   > >   1 2 0 :                   r e t u r n   a r r a y _ k e y s ( $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D ) ; 
 
         1 2 1 :           } 
 
         1 2 2 :   
 
 
 
     L i n e   1 2 6   [ m a t c h :   E P I C O R ] : 
 
         1 2 4 :             *   @ r e t u r n   s t r i n g [ ] 
 
         1 2 5 :             * / 
 
   > >   1 2 6 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n y E p i c o r C u s t I D s W i t h I n v o i c i n g A c c e s s ( ) 
 
         1 2 7 :           { 
 
         1 2 8 :                   $ t h i s - > _ i n i t ( ) ; 
 
 
 
     L i n e   1 3 4   [ m a t c h :   E P I C O R ] : 
 
         1 3 2 :   
 
         1 3 3 :           / * * 
 
   > >   1 3 4 :             *   @ p a r a m   s t r i n g   $ E p i c o r C u s t I D 
 
         1 3 5 :             *   @ r e t u r n   q u e s t _ C o m p a n y | n u l l 
 
         1 3 6 :             * / 
 
 
 
     L i n e   1 3 7   [ m a t c h :   E P I C O R ] : 
 
         1 3 5 :             *   @ r e t u r n   q u e s t _ C o m p a n y | n u l l 
 
         1 3 6 :             * / 
 
   > >   1 3 7 :           p u b l i c   f u n c t i o n   g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ E p i c o r C u s t I D ) 
 
         1 3 8 :           { 
 
         1 3 9 :                   $ t h i s - > _ i n i t ( ) ; 
 
 
 
     L i n e   1 4 1   [ m a t c h :   E P I C O R ] : 
 
         1 3 9 :                   $ t h i s - > _ i n i t ( ) ; 
 
         1 4 0 :   
 
   > >   1 4 1 :                   r e t u r n   ( i s s e t ( $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ] )   ?   $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D [ $ E p i c o r C u s t I D ]   :   n u l l ) ; 
 
         1 4 2 :           } 
 
         1 4 3 :   
 
 
 
     L i n e   1 4 7   [ m a t c h :   E P I C O R ] : 
 
         1 4 5 :             *   @ r e t u r n   q u e s t _ C o m p a n y [ ] 
 
         1 4 6 :             * / 
 
   > >   1 4 7 :           p u b l i c   f u n c t i o n   g e t A l l A c t i v e C o m p a n i e s B y E p i c o r C u s t I D ( ) 
 
         1 4 8 :           { 
 
         1 4 9 :                   $ t h i s - > _ i n i t ( ) ; 
 
 
 
     L i n e   1 5 1   [ m a t c h :   E P I C O R ] : 
 
         1 4 9 :                   $ t h i s - > _ i n i t ( ) ; 
 
         1 5 0 :   
 
   > >   1 5 1 :                   r e t u r n   $ t h i s - > q u e s t U s e r C o m p a n y B y E p i c o r C u s t I D ; 
 
         1 5 2 :           } 
 
         1 5 3 :   } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ S e l e c t e d C o m p a n y P r o v i d e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   e p i c o r ] : 
 
         7 :   c l a s s   S e l e c t e d C o m p a n y P r o v i d e r 
 
         8 :   { 
 
   > >   9 :           p r i v a t e   $ c o n s o l e C o m p a n y E p i c o r C u s t I D   =   n u l l ; 
 
         1 0 :   
 
         1 1 :           p u b l i c   f u n c t i o n   g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) 
 
 
 
     L i n e   1 1   [ m a t c h :   e p i c o r ] : 
 
         9 :           p r i v a t e   $ c o n s o l e C o m p a n y E p i c o r C u s t I D   =   n u l l ; 
 
         1 0 :   
 
   > >   1 1 :           p u b l i c   f u n c t i o n   g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) 
 
         1 2 :           { 
 
         1 3 :   
 
 
 
     L i n e   2 8   [ m a t c h :   e p i c o r ] : 
 
         2 6 :                                   $ a l l o c e n   =   $ a l l o c r o - > f i n d ( $ a l l o c ) ; 
 
         2 7 :   
 
   > >   2 8 :                                   $ c o m p a n y   =   $ a l l o c e n - > g e t Q u e s t C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         2 9 :   
 
         3 0 :                           } 
 
 
 
     L i n e   4 1   [ m a t c h :   e p i c o r ] : 
 
         3 9 :                                   $ r e l e a s e   =   $ s h i p R e l e a s e R o - > f i n d ( $ s h i p R e l e a s e ) ; 
 
         4 0 :   
 
   > >   4 1 :                                   $ c o m p a n y   =   $ r e l e a s e - > g e t Q u e s t C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         4 2 :                           } 
 
         4 3 :   
 
 
 
     L i n e   5 0   [ m a t c h :   e p i c o r ] : 
 
         4 8 :                   i f ( a p p ( ) - > r u n n i n g I n C o n s o l e ( ) ) 
 
         4 9 :                   { 
 
   > >   5 0 :                           $ E p i c o r C u s t I D   =   $ t h i s - > c o n s o l e C o m p a n y E p i c o r C u s t I D ; 
 
         5 1 :   
 
         5 2 :                           / * *   @ v a r   A c t i v e C o m p a n y M a n a g e r   $ A c t i v e C o m p a n y M a n a g e r   * / 
 
 
 
     L i n e   5 5   [ m a t c h :   e p i c o r ] : 
 
         5 3 :                           $ A c t i v e C o m p a n y M a n a g e r   =   a p p ( A c t i v e C o m p a n y M a n a g e r : : c l a s s ) ; 
 
         5 4 :   
 
   > >   5 5 :                           i f ( ! i s _ n u l l ( $ E p i c o r C u s t I D )   & &   ! i n _ a r r a y ( $ E p i c o r C u s t I D ,   $ A c t i v e C o m p a n y M a n a g e r - > g e t A l l A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) ) ) 
 
         5 6 :                           { 
 
         5 7 :                                   $ E p i c o r C u s t I D   =   n u l l ; 
 
 
 
     L i n e   5 7   [ m a t c h :   e p i c o r ] : 
 
         5 5 :                           i f ( ! i s _ n u l l ( $ E p i c o r C u s t I D )   & &   ! i n _ a r r a y ( $ E p i c o r C u s t I D ,   $ A c t i v e C o m p a n y M a n a g e r - > g e t A l l A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) ) ) 
 
         5 6 :                           { 
 
   > >   5 7 :                                   $ E p i c o r C u s t I D   =   n u l l ; 
 
         5 8 :                                   $ t h i s - > c o n s o l e C o m p a n y E p i c o r C u s t I D   =   n u l l ; 
 
         5 9 :                           } 
 
 
 
     L i n e   5 8   [ m a t c h :   e p i c o r ] : 
 
         5 6 :                           { 
 
         5 7 :                                   $ E p i c o r C u s t I D   =   n u l l ; 
 
   > >   5 8 :                                   $ t h i s - > c o n s o l e C o m p a n y E p i c o r C u s t I D   =   n u l l ; 
 
         5 9 :                           } 
 
         6 0 :   
 
 
 
     L i n e   6 1   [ m a t c h :   e p i c o r ] : 
 
         5 9 :                           } 
 
         6 0 :   
 
   > >   6 1 :                           r e t u r n   $ E p i c o r C u s t I D ; 
 
         6 2 :                   } 
 
         6 3 :   
 
 
 
     L i n e   6 7   [ m a t c h :   e p i c o r ] : 
 
         6 5 :                   $ Q u e s t P a g e V a l u e s   =   a p p ( Q u e s t P a g e V a l u e s : : c l a s s ) ; 
 
         6 6 :                   i f ( $ Q u e s t P a g e V a l u e s - > d o e s U s e r B e l o n g T o S i n g l e A c t i v e C o m p a n y ( ) ) 
 
   > >   6 7 :                           r e t u r n   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) [ 0 ] ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         6 8 :   
 
         6 9 :                   $ E p i c o r C u s t I D   =   n u l l ; 
 
 
 
     L i n e   6 9   [ m a t c h :   e p i c o r ] : 
 
         6 7 :                           r e t u r n   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) [ 0 ] ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         6 8 :   
 
   > >   6 9 :                   $ E p i c o r C u s t I D   =   n u l l ; 
 
         7 0 :   
 
         7 1 :                     / * *   @ v a r   S e s s i o n S t o r e   $ S e s s i o n M a n a g e r   * / 
 
 
 
     L i n e   7 3   [ m a t c h :   e p i c o r ] : 
 
         7 1 :                     / * *   @ v a r   S e s s i o n S t o r e   $ S e s s i o n M a n a g e r   * / 
 
         7 2 :                   $ S e s s i o n   =   a p p ( ' s e s s i o n ' ) ; 
 
   > >   7 3 :                   i f ( $ S e s s i o n - > h a s ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ) 
 
         7 4 :                           $ E p i c o r C u s t I D   =   $ S e s s i o n - > g e t ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ; 
 
         7 5 :   
 
 
 
     L i n e   7 4   [ m a t c h :   e p i c o r ] : 
 
         7 2 :                   $ S e s s i o n   =   a p p ( ' s e s s i o n ' ) ; 
 
         7 3 :                   i f ( $ S e s s i o n - > h a s ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ) 
 
   > >   7 4 :                           $ E p i c o r C u s t I D   =   $ S e s s i o n - > g e t ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ; 
 
         7 5 :   
 
         7 6 :                   i f ( ! i s _ n u l l ( $ E p i c o r C u s t I D )   & &   ! i n _ a r r a y ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) ) ) 
 
 
 
     L i n e   7 6   [ m a t c h :   e p i c o r ] : 
 
         7 4 :                           $ E p i c o r C u s t I D   =   $ S e s s i o n - > g e t ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ; 
 
         7 5 :   
 
   > >   7 6 :                   i f ( ! i s _ n u l l ( $ E p i c o r C u s t I D )   & &   ! i n _ a r r a y ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) ) ) 
 
         7 7 :                   { 
 
         7 8 :                           $ E p i c o r C u s t I D   =   n u l l ; 
 
 
 
     L i n e   7 8   [ m a t c h :   e p i c o r ] : 
 
         7 6 :                   i f ( ! i s _ n u l l ( $ E p i c o r C u s t I D )   & &   ! i n _ a r r a y ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) ) ) 
 
         7 7 :                   { 
 
   > >   7 8 :                           $ E p i c o r C u s t I D   =   n u l l ; 
 
         7 9 :                           $ S e s s i o n - > f o r g e t ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ; 
 
         8 0 :                   } 
 
 
 
     L i n e   7 9   [ m a t c h :   e p i c o r ] : 
 
         7 7 :                   { 
 
         7 8 :                           $ E p i c o r C u s t I D   =   n u l l ; 
 
   > >   7 9 :                           $ S e s s i o n - > f o r g e t ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ; 
 
         8 0 :                   } 
 
         8 1 :   
 
 
 
     L i n e   8 2   [ m a t c h :   e p i c o r ] : 
 
         8 0 :                   } 
 
         8 1 :   
 
   > >   8 2 :                   i f ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         8 3 :                   { 
 
         8 4 :                           $ E p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   8 4   [ m a t c h :   e p i c o r ] : 
 
         8 2 :                   i f ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         8 3 :                   { 
 
   > >   8 4 :                           $ E p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         8 5 :                   } 
 
         8 6 :   
 
 
 
     L i n e   8 7   [ m a t c h :   e p i c o r ] : 
 
         8 5 :                   } 
 
         8 6 :   
 
   > >   8 7 :                   r e t u r n   $ E p i c o r C u s t I D ; 
 
         8 8 :           } 
 
         8 9 :   
 
 
 
     L i n e   1 0 9   [ m a t c h :   e p i c o r ] : 
 
         1 0 7 :                                   $ a l l o c e n   =   $ a l l o c r o - > f i n d ( $ a l l o c ) ; 
 
         1 0 8 :   
 
   > >   1 0 9 :                                   $ c o m p a n y   =   $ a l l o c e n - > g e t Q u e s t C o m p a n y ( ) ; / / - > g e t E p i c o r C u s t I D ( ) ; 
 
         1 1 0 :   
 
         1 1 1 :   
 
 
 
     L i n e   1 2 4   [ m a t c h :   e p i c o r ] : 
 
         1 2 2 :                                   $ r e l e a s e   =   $ s h i p R e l e a s e R o - > f i n d ( $ s h i p R e l e a s e ) ; 
 
         1 2 3 :   
 
   > >   1 2 4 :                                   $ c o m p a n y   =   $ r e l e a s e - > g e t Q u e s t C o m p a n y ( ) ; / / - > g e t E p i c o r C u s t I D ( ) ; 
 
         1 2 5 :                           } 
 
         1 2 6 :   
 
 
 
     L i n e   1 3 7   [ m a t c h :   e p i c o r ] : 
 
         1 3 5 :                           $ Q u e s t P a g e V a l u e s   =   a p p ( Q u e s t P a g e V a l u e s : : c l a s s ) ; 
 
         1 3 6 :                           i f ( $ Q u e s t P a g e V a l u e s - > d o e s U s e r B e l o n g T o S i n g l e A c t i v e C o m p a n y ( ) ) 
 
   > >   1 3 7 :                                   r e t u r n   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) [ 0 ] ) ; 
 
         1 3 8 :                   } 
 
         1 3 9 :   
 
 
 
     L i n e   1 4 3   [ m a t c h :   e p i c o r ] : 
 
         1 4 1 :                   $ A c t i v e C o m p a n y M a n a g e r   =   a p p ( A c t i v e C o m p a n y M a n a g e r : : c l a s s ) ; 
 
         1 4 2 :   
 
   > >   1 4 3 :                   i f ( ! i s _ n u l l ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ t h i s - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) 
 
         1 4 4 :                           r e t u r n   $ A c t i v e C o m p a n y M a n a g e r - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ) ; 
 
         1 4 5 :   
 
 
 
     L i n e   1 4 4   [ m a t c h :   e p i c o r ] : 
 
         1 4 2 :   
 
         1 4 3 :                   i f ( ! i s _ n u l l ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ t h i s - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) 
 
   > >   1 4 4 :                           r e t u r n   $ A c t i v e C o m p a n y M a n a g e r - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ) ; 
 
         1 4 5 :   
 
         1 4 6 :                   r e t u r n   n u l l ; 
 
 
 
     L i n e   1 4 9   [ m a t c h :   e p i c o r ] : 
 
         1 4 7 :           } 
 
         1 4 8 :   
 
   > >   1 4 9 :           p u b l i c   f u n c t i o n   s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ E p i c o r C u s t I D ) 
 
         1 5 0 :           { 
 
         1 5 1 :                   i f ( a p p ( ) - > r u n n i n g I n C o n s o l e ( ) ) 
 
 
 
     L i n e   1 5 3   [ m a t c h :   e p i c o r ] : 
 
         1 5 1 :                   i f ( a p p ( ) - > r u n n i n g I n C o n s o l e ( ) ) 
 
         1 5 2 :                   { 
 
   > >   1 5 3 :                           $ t h i s - > c o n s o l e C o m p a n y E p i c o r C u s t I D   =   $ E p i c o r C u s t I D ; 
 
         1 5 4 :                           r e t u r n   t r u e ; 
 
         1 5 5 :                   } 
 
 
 
     L i n e   1 6 4   [ m a t c h :   e p i c o r ] : 
 
         1 6 2 :                   / * *   @ v a r   S e s s i o n S t o r e   $ S e s s i o n M a n a g e r   * / 
 
         1 6 3 :                   $ S e s s i o n   =   a p p ( ' s e s s i o n ' ) ; 
 
   > >   1 6 4 :                   $ S e s s i o n - > p u t ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ,   $ E p i c o r C u s t I D ) ; 
 
         1 6 5 :                   r e t u r n   t r u e ; 
 
         1 6 6 :           } 
 
 
 
     L i n e   9   [ m a t c h :   E p i c o r ] : 
 
         7 :   c l a s s   S e l e c t e d C o m p a n y P r o v i d e r 
 
         8 :   { 
 
   > >   9 :           p r i v a t e   $ c o n s o l e C o m p a n y E p i c o r C u s t I D   =   n u l l ; 
 
         1 0 :   
 
         1 1 :           p u b l i c   f u n c t i o n   g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) 
 
 
 
     L i n e   1 1   [ m a t c h :   E p i c o r ] : 
 
         9 :           p r i v a t e   $ c o n s o l e C o m p a n y E p i c o r C u s t I D   =   n u l l ; 
 
         1 0 :   
 
   > >   1 1 :           p u b l i c   f u n c t i o n   g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) 
 
         1 2 :           { 
 
         1 3 :   
 
 
 
     L i n e   2 8   [ m a t c h :   E p i c o r ] : 
 
         2 6 :                                   $ a l l o c e n   =   $ a l l o c r o - > f i n d ( $ a l l o c ) ; 
 
         2 7 :   
 
   > >   2 8 :                                   $ c o m p a n y   =   $ a l l o c e n - > g e t Q u e s t C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         2 9 :   
 
         3 0 :                           } 
 
 
 
     L i n e   4 1   [ m a t c h :   E p i c o r ] : 
 
         3 9 :                                   $ r e l e a s e   =   $ s h i p R e l e a s e R o - > f i n d ( $ s h i p R e l e a s e ) ; 
 
         4 0 :   
 
   > >   4 1 :                                   $ c o m p a n y   =   $ r e l e a s e - > g e t Q u e s t C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         4 2 :                           } 
 
         4 3 :   
 
 
 
     L i n e   5 0   [ m a t c h :   E p i c o r ] : 
 
         4 8 :                   i f ( a p p ( ) - > r u n n i n g I n C o n s o l e ( ) ) 
 
         4 9 :                   { 
 
   > >   5 0 :                           $ E p i c o r C u s t I D   =   $ t h i s - > c o n s o l e C o m p a n y E p i c o r C u s t I D ; 
 
         5 1 :   
 
         5 2 :                           / * *   @ v a r   A c t i v e C o m p a n y M a n a g e r   $ A c t i v e C o m p a n y M a n a g e r   * / 
 
 
 
     L i n e   5 5   [ m a t c h :   E p i c o r ] : 
 
         5 3 :                           $ A c t i v e C o m p a n y M a n a g e r   =   a p p ( A c t i v e C o m p a n y M a n a g e r : : c l a s s ) ; 
 
         5 4 :   
 
   > >   5 5 :                           i f ( ! i s _ n u l l ( $ E p i c o r C u s t I D )   & &   ! i n _ a r r a y ( $ E p i c o r C u s t I D ,   $ A c t i v e C o m p a n y M a n a g e r - > g e t A l l A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) ) ) 
 
         5 6 :                           { 
 
         5 7 :                                   $ E p i c o r C u s t I D   =   n u l l ; 
 
 
 
     L i n e   5 7   [ m a t c h :   E p i c o r ] : 
 
         5 5 :                           i f ( ! i s _ n u l l ( $ E p i c o r C u s t I D )   & &   ! i n _ a r r a y ( $ E p i c o r C u s t I D ,   $ A c t i v e C o m p a n y M a n a g e r - > g e t A l l A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) ) ) 
 
         5 6 :                           { 
 
   > >   5 7 :                                   $ E p i c o r C u s t I D   =   n u l l ; 
 
         5 8 :                                   $ t h i s - > c o n s o l e C o m p a n y E p i c o r C u s t I D   =   n u l l ; 
 
         5 9 :                           } 
 
 
 
     L i n e   5 8   [ m a t c h :   E p i c o r ] : 
 
         5 6 :                           { 
 
         5 7 :                                   $ E p i c o r C u s t I D   =   n u l l ; 
 
   > >   5 8 :                                   $ t h i s - > c o n s o l e C o m p a n y E p i c o r C u s t I D   =   n u l l ; 
 
         5 9 :                           } 
 
         6 0 :   
 
 
 
     L i n e   6 1   [ m a t c h :   E p i c o r ] : 
 
         5 9 :                           } 
 
         6 0 :   
 
   > >   6 1 :                           r e t u r n   $ E p i c o r C u s t I D ; 
 
         6 2 :                   } 
 
         6 3 :   
 
 
 
     L i n e   6 7   [ m a t c h :   E p i c o r ] : 
 
         6 5 :                   $ Q u e s t P a g e V a l u e s   =   a p p ( Q u e s t P a g e V a l u e s : : c l a s s ) ; 
 
         6 6 :                   i f ( $ Q u e s t P a g e V a l u e s - > d o e s U s e r B e l o n g T o S i n g l e A c t i v e C o m p a n y ( ) ) 
 
   > >   6 7 :                           r e t u r n   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) [ 0 ] ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         6 8 :   
 
         6 9 :                   $ E p i c o r C u s t I D   =   n u l l ; 
 
 
 
     L i n e   6 9   [ m a t c h :   E p i c o r ] : 
 
         6 7 :                           r e t u r n   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) [ 0 ] ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         6 8 :   
 
   > >   6 9 :                   $ E p i c o r C u s t I D   =   n u l l ; 
 
         7 0 :   
 
         7 1 :                     / * *   @ v a r   S e s s i o n S t o r e   $ S e s s i o n M a n a g e r   * / 
 
 
 
     L i n e   7 3   [ m a t c h :   E p i c o r ] : 
 
         7 1 :                     / * *   @ v a r   S e s s i o n S t o r e   $ S e s s i o n M a n a g e r   * / 
 
         7 2 :                   $ S e s s i o n   =   a p p ( ' s e s s i o n ' ) ; 
 
   > >   7 3 :                   i f ( $ S e s s i o n - > h a s ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ) 
 
         7 4 :                           $ E p i c o r C u s t I D   =   $ S e s s i o n - > g e t ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ; 
 
         7 5 :   
 
 
 
     L i n e   7 4   [ m a t c h :   E p i c o r ] : 
 
         7 2 :                   $ S e s s i o n   =   a p p ( ' s e s s i o n ' ) ; 
 
         7 3 :                   i f ( $ S e s s i o n - > h a s ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ) 
 
   > >   7 4 :                           $ E p i c o r C u s t I D   =   $ S e s s i o n - > g e t ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ; 
 
         7 5 :   
 
         7 6 :                   i f ( ! i s _ n u l l ( $ E p i c o r C u s t I D )   & &   ! i n _ a r r a y ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) ) ) 
 
 
 
     L i n e   7 6   [ m a t c h :   E p i c o r ] : 
 
         7 4 :                           $ E p i c o r C u s t I D   =   $ S e s s i o n - > g e t ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ; 
 
         7 5 :   
 
   > >   7 6 :                   i f ( ! i s _ n u l l ( $ E p i c o r C u s t I D )   & &   ! i n _ a r r a y ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) ) ) 
 
         7 7 :                   { 
 
         7 8 :                           $ E p i c o r C u s t I D   =   n u l l ; 
 
 
 
     L i n e   7 8   [ m a t c h :   E p i c o r ] : 
 
         7 6 :                   i f ( ! i s _ n u l l ( $ E p i c o r C u s t I D )   & &   ! i n _ a r r a y ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) ) ) 
 
         7 7 :                   { 
 
   > >   7 8 :                           $ E p i c o r C u s t I D   =   n u l l ; 
 
         7 9 :                           $ S e s s i o n - > f o r g e t ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ; 
 
         8 0 :                   } 
 
 
 
     L i n e   7 9   [ m a t c h :   E p i c o r ] : 
 
         7 7 :                   { 
 
         7 8 :                           $ E p i c o r C u s t I D   =   n u l l ; 
 
   > >   7 9 :                           $ S e s s i o n - > f o r g e t ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ; 
 
         8 0 :                   } 
 
         8 1 :   
 
 
 
     L i n e   8 2   [ m a t c h :   E p i c o r ] : 
 
         8 0 :                   } 
 
         8 1 :   
 
   > >   8 2 :                   i f ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         8 3 :                   { 
 
         8 4 :                           $ E p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   8 4   [ m a t c h :   E p i c o r ] : 
 
         8 2 :                   i f ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         8 3 :                   { 
 
   > >   8 4 :                           $ E p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         8 5 :                   } 
 
         8 6 :   
 
 
 
     L i n e   8 7   [ m a t c h :   E p i c o r ] : 
 
         8 5 :                   } 
 
         8 6 :   
 
   > >   8 7 :                   r e t u r n   $ E p i c o r C u s t I D ; 
 
         8 8 :           } 
 
         8 9 :   
 
 
 
     L i n e   1 0 9   [ m a t c h :   E p i c o r ] : 
 
         1 0 7 :                                   $ a l l o c e n   =   $ a l l o c r o - > f i n d ( $ a l l o c ) ; 
 
         1 0 8 :   
 
   > >   1 0 9 :                                   $ c o m p a n y   =   $ a l l o c e n - > g e t Q u e s t C o m p a n y ( ) ; / / - > g e t E p i c o r C u s t I D ( ) ; 
 
         1 1 0 :   
 
         1 1 1 :   
 
 
 
     L i n e   1 2 4   [ m a t c h :   E p i c o r ] : 
 
         1 2 2 :                                   $ r e l e a s e   =   $ s h i p R e l e a s e R o - > f i n d ( $ s h i p R e l e a s e ) ; 
 
         1 2 3 :   
 
   > >   1 2 4 :                                   $ c o m p a n y   =   $ r e l e a s e - > g e t Q u e s t C o m p a n y ( ) ; / / - > g e t E p i c o r C u s t I D ( ) ; 
 
         1 2 5 :                           } 
 
         1 2 6 :   
 
 
 
     L i n e   1 3 7   [ m a t c h :   E p i c o r ] : 
 
         1 3 5 :                           $ Q u e s t P a g e V a l u e s   =   a p p ( Q u e s t P a g e V a l u e s : : c l a s s ) ; 
 
         1 3 6 :                           i f ( $ Q u e s t P a g e V a l u e s - > d o e s U s e r B e l o n g T o S i n g l e A c t i v e C o m p a n y ( ) ) 
 
   > >   1 3 7 :                                   r e t u r n   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) [ 0 ] ) ; 
 
         1 3 8 :                   } 
 
         1 3 9 :   
 
 
 
     L i n e   1 4 3   [ m a t c h :   E p i c o r ] : 
 
         1 4 1 :                   $ A c t i v e C o m p a n y M a n a g e r   =   a p p ( A c t i v e C o m p a n y M a n a g e r : : c l a s s ) ; 
 
         1 4 2 :   
 
   > >   1 4 3 :                   i f ( ! i s _ n u l l ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ t h i s - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) 
 
         1 4 4 :                           r e t u r n   $ A c t i v e C o m p a n y M a n a g e r - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ) ; 
 
         1 4 5 :   
 
 
 
     L i n e   1 4 4   [ m a t c h :   E p i c o r ] : 
 
         1 4 2 :   
 
         1 4 3 :                   i f ( ! i s _ n u l l ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ t h i s - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) 
 
   > >   1 4 4 :                           r e t u r n   $ A c t i v e C o m p a n y M a n a g e r - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ) ; 
 
         1 4 5 :   
 
         1 4 6 :                   r e t u r n   n u l l ; 
 
 
 
     L i n e   1 4 9   [ m a t c h :   E p i c o r ] : 
 
         1 4 7 :           } 
 
         1 4 8 :   
 
   > >   1 4 9 :           p u b l i c   f u n c t i o n   s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ E p i c o r C u s t I D ) 
 
         1 5 0 :           { 
 
         1 5 1 :                   i f ( a p p ( ) - > r u n n i n g I n C o n s o l e ( ) ) 
 
 
 
     L i n e   1 5 3   [ m a t c h :   E p i c o r ] : 
 
         1 5 1 :                   i f ( a p p ( ) - > r u n n i n g I n C o n s o l e ( ) ) 
 
         1 5 2 :                   { 
 
   > >   1 5 3 :                           $ t h i s - > c o n s o l e C o m p a n y E p i c o r C u s t I D   =   $ E p i c o r C u s t I D ; 
 
         1 5 4 :                           r e t u r n   t r u e ; 
 
         1 5 5 :                   } 
 
 
 
     L i n e   1 6 4   [ m a t c h :   E p i c o r ] : 
 
         1 6 2 :                   / * *   @ v a r   S e s s i o n S t o r e   $ S e s s i o n M a n a g e r   * / 
 
         1 6 3 :                   $ S e s s i o n   =   a p p ( ' s e s s i o n ' ) ; 
 
   > >   1 6 4 :                   $ S e s s i o n - > p u t ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ,   $ E p i c o r C u s t I D ) ; 
 
         1 6 5 :                   r e t u r n   t r u e ; 
 
         1 6 6 :           } 
 
 
 
     L i n e   9   [ m a t c h :   E P I C O R ] : 
 
         7 :   c l a s s   S e l e c t e d C o m p a n y P r o v i d e r 
 
         8 :   { 
 
   > >   9 :           p r i v a t e   $ c o n s o l e C o m p a n y E p i c o r C u s t I D   =   n u l l ; 
 
         1 0 :   
 
         1 1 :           p u b l i c   f u n c t i o n   g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) 
 
 
 
     L i n e   1 1   [ m a t c h :   E P I C O R ] : 
 
         9 :           p r i v a t e   $ c o n s o l e C o m p a n y E p i c o r C u s t I D   =   n u l l ; 
 
         1 0 :   
 
   > >   1 1 :           p u b l i c   f u n c t i o n   g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) 
 
         1 2 :           { 
 
         1 3 :   
 
 
 
     L i n e   2 8   [ m a t c h :   E P I C O R ] : 
 
         2 6 :                                   $ a l l o c e n   =   $ a l l o c r o - > f i n d ( $ a l l o c ) ; 
 
         2 7 :   
 
   > >   2 8 :                                   $ c o m p a n y   =   $ a l l o c e n - > g e t Q u e s t C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         2 9 :   
 
         3 0 :                           } 
 
 
 
     L i n e   4 1   [ m a t c h :   E P I C O R ] : 
 
         3 9 :                                   $ r e l e a s e   =   $ s h i p R e l e a s e R o - > f i n d ( $ s h i p R e l e a s e ) ; 
 
         4 0 :   
 
   > >   4 1 :                                   $ c o m p a n y   =   $ r e l e a s e - > g e t Q u e s t C o m p a n y ( ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         4 2 :                           } 
 
         4 3 :   
 
 
 
     L i n e   5 0   [ m a t c h :   E P I C O R ] : 
 
         4 8 :                   i f ( a p p ( ) - > r u n n i n g I n C o n s o l e ( ) ) 
 
         4 9 :                   { 
 
   > >   5 0 :                           $ E p i c o r C u s t I D   =   $ t h i s - > c o n s o l e C o m p a n y E p i c o r C u s t I D ; 
 
         5 1 :   
 
         5 2 :                           / * *   @ v a r   A c t i v e C o m p a n y M a n a g e r   $ A c t i v e C o m p a n y M a n a g e r   * / 
 
 
 
     L i n e   5 5   [ m a t c h :   E P I C O R ] : 
 
         5 3 :                           $ A c t i v e C o m p a n y M a n a g e r   =   a p p ( A c t i v e C o m p a n y M a n a g e r : : c l a s s ) ; 
 
         5 4 :   
 
   > >   5 5 :                           i f ( ! i s _ n u l l ( $ E p i c o r C u s t I D )   & &   ! i n _ a r r a y ( $ E p i c o r C u s t I D ,   $ A c t i v e C o m p a n y M a n a g e r - > g e t A l l A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) ) ) 
 
         5 6 :                           { 
 
         5 7 :                                   $ E p i c o r C u s t I D   =   n u l l ; 
 
 
 
     L i n e   5 7   [ m a t c h :   E P I C O R ] : 
 
         5 5 :                           i f ( ! i s _ n u l l ( $ E p i c o r C u s t I D )   & &   ! i n _ a r r a y ( $ E p i c o r C u s t I D ,   $ A c t i v e C o m p a n y M a n a g e r - > g e t A l l A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) ) ) 
 
         5 6 :                           { 
 
   > >   5 7 :                                   $ E p i c o r C u s t I D   =   n u l l ; 
 
         5 8 :                                   $ t h i s - > c o n s o l e C o m p a n y E p i c o r C u s t I D   =   n u l l ; 
 
         5 9 :                           } 
 
 
 
     L i n e   5 8   [ m a t c h :   E P I C O R ] : 
 
         5 6 :                           { 
 
         5 7 :                                   $ E p i c o r C u s t I D   =   n u l l ; 
 
   > >   5 8 :                                   $ t h i s - > c o n s o l e C o m p a n y E p i c o r C u s t I D   =   n u l l ; 
 
         5 9 :                           } 
 
         6 0 :   
 
 
 
     L i n e   6 1   [ m a t c h :   E P I C O R ] : 
 
         5 9 :                           } 
 
         6 0 :   
 
   > >   6 1 :                           r e t u r n   $ E p i c o r C u s t I D ; 
 
         6 2 :                   } 
 
         6 3 :   
 
 
 
     L i n e   6 7   [ m a t c h :   E P I C O R ] : 
 
         6 5 :                   $ Q u e s t P a g e V a l u e s   =   a p p ( Q u e s t P a g e V a l u e s : : c l a s s ) ; 
 
         6 6 :                   i f ( $ Q u e s t P a g e V a l u e s - > d o e s U s e r B e l o n g T o S i n g l e A c t i v e C o m p a n y ( ) ) 
 
   > >   6 7 :                           r e t u r n   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) [ 0 ] ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         6 8 :   
 
         6 9 :                   $ E p i c o r C u s t I D   =   n u l l ; 
 
 
 
     L i n e   6 9   [ m a t c h :   E P I C O R ] : 
 
         6 7 :                           r e t u r n   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) [ 0 ] ) - > g e t E p i c o r C u s t I D ( ) ; 
 
         6 8 :   
 
   > >   6 9 :                   $ E p i c o r C u s t I D   =   n u l l ; 
 
         7 0 :   
 
         7 1 :                     / * *   @ v a r   S e s s i o n S t o r e   $ S e s s i o n M a n a g e r   * / 
 
 
 
     L i n e   7 3   [ m a t c h :   E P I C O R ] : 
 
         7 1 :                     / * *   @ v a r   S e s s i o n S t o r e   $ S e s s i o n M a n a g e r   * / 
 
         7 2 :                   $ S e s s i o n   =   a p p ( ' s e s s i o n ' ) ; 
 
   > >   7 3 :                   i f ( $ S e s s i o n - > h a s ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ) 
 
         7 4 :                           $ E p i c o r C u s t I D   =   $ S e s s i o n - > g e t ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ; 
 
         7 5 :   
 
 
 
     L i n e   7 4   [ m a t c h :   E P I C O R ] : 
 
         7 2 :                   $ S e s s i o n   =   a p p ( ' s e s s i o n ' ) ; 
 
         7 3 :                   i f ( $ S e s s i o n - > h a s ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ) 
 
   > >   7 4 :                           $ E p i c o r C u s t I D   =   $ S e s s i o n - > g e t ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ; 
 
         7 5 :   
 
         7 6 :                   i f ( ! i s _ n u l l ( $ E p i c o r C u s t I D )   & &   ! i n _ a r r a y ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) ) ) 
 
 
 
     L i n e   7 6   [ m a t c h :   E P I C O R ] : 
 
         7 4 :                           $ E p i c o r C u s t I D   =   $ S e s s i o n - > g e t ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ; 
 
         7 5 :   
 
   > >   7 6 :                   i f ( ! i s _ n u l l ( $ E p i c o r C u s t I D )   & &   ! i n _ a r r a y ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) ) ) 
 
         7 7 :                   { 
 
         7 8 :                           $ E p i c o r C u s t I D   =   n u l l ; 
 
 
 
     L i n e   7 8   [ m a t c h :   E P I C O R ] : 
 
         7 6 :                   i f ( ! i s _ n u l l ( $ E p i c o r C u s t I D )   & &   ! i n _ a r r a y ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) ) ) 
 
         7 7 :                   { 
 
   > >   7 8 :                           $ E p i c o r C u s t I D   =   n u l l ; 
 
         7 9 :                           $ S e s s i o n - > f o r g e t ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ; 
 
         8 0 :                   } 
 
 
 
     L i n e   7 9   [ m a t c h :   E P I C O R ] : 
 
         7 7 :                   { 
 
         7 8 :                           $ E p i c o r C u s t I D   =   n u l l ; 
 
   > >   7 9 :                           $ S e s s i o n - > f o r g e t ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ) ; 
 
         8 0 :                   } 
 
         8 1 :   
 
 
 
     L i n e   8 2   [ m a t c h :   E P I C O R ] : 
 
         8 0 :                   } 
 
         8 1 :   
 
   > >   8 2 :                   i f ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         8 3 :                   { 
 
         8 4 :                           $ E p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
 
 
     L i n e   8 4   [ m a t c h :   E P I C O R ] : 
 
         8 2 :                   i f ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         8 3 :                   { 
 
   > >   8 4 :                           $ E p i c o r C u s t I D   =   r e q u e s t ( ) - > r o u t e ( ) - > p a r a m e t e r ( ' e p i c o r _ c u s t _ i d ' ) ; 
 
         8 5 :                   } 
 
         8 6 :   
 
 
 
     L i n e   8 7   [ m a t c h :   E P I C O R ] : 
 
         8 5 :                   } 
 
         8 6 :   
 
   > >   8 7 :                   r e t u r n   $ E p i c o r C u s t I D ; 
 
         8 8 :           } 
 
         8 9 :   
 
 
 
     L i n e   1 0 9   [ m a t c h :   E P I C O R ] : 
 
         1 0 7 :                                   $ a l l o c e n   =   $ a l l o c r o - > f i n d ( $ a l l o c ) ; 
 
         1 0 8 :   
 
   > >   1 0 9 :                                   $ c o m p a n y   =   $ a l l o c e n - > g e t Q u e s t C o m p a n y ( ) ; / / - > g e t E p i c o r C u s t I D ( ) ; 
 
         1 1 0 :   
 
         1 1 1 :   
 
 
 
     L i n e   1 2 4   [ m a t c h :   E P I C O R ] : 
 
         1 2 2 :                                   $ r e l e a s e   =   $ s h i p R e l e a s e R o - > f i n d ( $ s h i p R e l e a s e ) ; 
 
         1 2 3 :   
 
   > >   1 2 4 :                                   $ c o m p a n y   =   $ r e l e a s e - > g e t Q u e s t C o m p a n y ( ) ; / / - > g e t E p i c o r C u s t I D ( ) ; 
 
         1 2 5 :                           } 
 
         1 2 6 :   
 
 
 
     L i n e   1 3 7   [ m a t c h :   E P I C O R ] : 
 
         1 3 5 :                           $ Q u e s t P a g e V a l u e s   =   a p p ( Q u e s t P a g e V a l u e s : : c l a s s ) ; 
 
         1 3 6 :                           i f ( $ Q u e s t P a g e V a l u e s - > d o e s U s e r B e l o n g T o S i n g l e A c t i v e C o m p a n y ( ) ) 
 
   > >   1 3 7 :                                   r e t u r n   $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ Q u e s t P a g e V a l u e s - > g e t A c t i v e C o m p a n y E p i c o r C u s t I D s ( ) [ 0 ] ) ; 
 
         1 3 8 :                   } 
 
         1 3 9 :   
 
 
 
     L i n e   1 4 3   [ m a t c h :   E P I C O R ] : 
 
         1 4 1 :                   $ A c t i v e C o m p a n y M a n a g e r   =   a p p ( A c t i v e C o m p a n y M a n a g e r : : c l a s s ) ; 
 
         1 4 2 :   
 
   > >   1 4 3 :                   i f ( ! i s _ n u l l ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ t h i s - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) 
 
         1 4 4 :                           r e t u r n   $ A c t i v e C o m p a n y M a n a g e r - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ) ; 
 
         1 4 5 :   
 
 
 
     L i n e   1 4 4   [ m a t c h :   E P I C O R ] : 
 
         1 4 2 :   
 
         1 4 3 :                   i f ( ! i s _ n u l l ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D   =   $ t h i s - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ) ) 
 
   > >   1 4 4 :                           r e t u r n   $ A c t i v e C o m p a n y M a n a g e r - > g e t A c t i v e C o m p a n y B y E p i c o r C u s t I D ( $ S e l e c t e d C o m p a n y E p i c o r C u s t I D ) ; 
 
         1 4 5 :   
 
         1 4 6 :                   r e t u r n   n u l l ; 
 
 
 
     L i n e   1 4 9   [ m a t c h :   E P I C O R ] : 
 
         1 4 7 :           } 
 
         1 4 8 :   
 
   > >   1 4 9 :           p u b l i c   f u n c t i o n   s e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( $ E p i c o r C u s t I D ) 
 
         1 5 0 :           { 
 
         1 5 1 :                   i f ( a p p ( ) - > r u n n i n g I n C o n s o l e ( ) ) 
 
 
 
     L i n e   1 5 3   [ m a t c h :   E P I C O R ] : 
 
         1 5 1 :                   i f ( a p p ( ) - > r u n n i n g I n C o n s o l e ( ) ) 
 
         1 5 2 :                   { 
 
   > >   1 5 3 :                           $ t h i s - > c o n s o l e C o m p a n y E p i c o r C u s t I D   =   $ E p i c o r C u s t I D ; 
 
         1 5 4 :                           r e t u r n   t r u e ; 
 
         1 5 5 :                   } 
 
 
 
     L i n e   1 6 4   [ m a t c h :   E P I C O R ] : 
 
         1 6 2 :                   / * *   @ v a r   S e s s i o n S t o r e   $ S e s s i o n M a n a g e r   * / 
 
         1 6 3 :                   $ S e s s i o n   =   a p p ( ' s e s s i o n ' ) ; 
 
   > >   1 6 4 :                   $ S e s s i o n - > p u t ( ' _ _ S E L E C T E D _ C O M P A N Y _ E P I C O R _ C U S T _ I D _ _ ' ,   $ E p i c o r C u s t I D ) ; 
 
         1 6 5 :                   r e t u r n   t r u e ; 
 
         1 6 6 :           } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ S h i p m e n t C a r t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 5   [ m a t c h :   e p i c o r ] : 
 
         7 3 :                                   } 
 
         7 4 :                                   e l s e   { 
 
   > >   7 5 :                                           $ E p i c o r C u s t I D   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         7 6 :                                           i f   ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         7 7 :                                                   r e t u r n ; 
 
 
 
     L i n e   7 6   [ m a t c h :   e p i c o r ] : 
 
         7 4 :                                   e l s e   { 
 
         7 5 :                                           $ E p i c o r C u s t I D   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
   > >   7 6 :                                           i f   ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         7 7 :                                                   r e t u r n ; 
 
         7 8 :                                           $ t h i s - > d b S h i p m e n t   =   $ R O S h i p R e q u e s t R e p o - > g e t O p e n S h i p m e n t W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ) ; 
 
 
 
     L i n e   7 8   [ m a t c h :   e p i c o r ] : 
 
         7 6 :                                           i f   ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         7 7 :                                                   r e t u r n ; 
 
   > >   7 8 :                                           $ t h i s - > d b S h i p m e n t   =   $ R O S h i p R e q u e s t R e p o - > g e t O p e n S h i p m e n t W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ) ; 
 
         7 9 :                                   } 
 
         8 0 :   
 
 
 
     L i n e   7 5   [ m a t c h :   E p i c o r ] : 
 
         7 3 :                                   } 
 
         7 4 :                                   e l s e   { 
 
   > >   7 5 :                                           $ E p i c o r C u s t I D   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         7 6 :                                           i f   ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         7 7 :                                                   r e t u r n ; 
 
 
 
     L i n e   7 6   [ m a t c h :   E p i c o r ] : 
 
         7 4 :                                   e l s e   { 
 
         7 5 :                                           $ E p i c o r C u s t I D   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
   > >   7 6 :                                           i f   ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         7 7 :                                                   r e t u r n ; 
 
         7 8 :                                           $ t h i s - > d b S h i p m e n t   =   $ R O S h i p R e q u e s t R e p o - > g e t O p e n S h i p m e n t W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ) ; 
 
 
 
     L i n e   7 8   [ m a t c h :   E p i c o r ] : 
 
         7 6 :                                           i f   ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         7 7 :                                                   r e t u r n ; 
 
   > >   7 8 :                                           $ t h i s - > d b S h i p m e n t   =   $ R O S h i p R e q u e s t R e p o - > g e t O p e n S h i p m e n t W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ) ; 
 
         7 9 :                                   } 
 
         8 0 :   
 
 
 
     L i n e   7 5   [ m a t c h :   E P I C O R ] : 
 
         7 3 :                                   } 
 
         7 4 :                                   e l s e   { 
 
   > >   7 5 :                                           $ E p i c o r C u s t I D   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
         7 6 :                                           i f   ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         7 7 :                                                   r e t u r n ; 
 
 
 
     L i n e   7 6   [ m a t c h :   E P I C O R ] : 
 
         7 4 :                                   e l s e   { 
 
         7 5 :                                           $ E p i c o r C u s t I D   =   $ S e l e c t e d C o m p a n y P r o v i d e r - > g e t S e l e c t e d C o m p a n y E p i c o r C u s t I D ( ) ; 
 
   > >   7 6 :                                           i f   ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         7 7 :                                                   r e t u r n ; 
 
         7 8 :                                           $ t h i s - > d b S h i p m e n t   =   $ R O S h i p R e q u e s t R e p o - > g e t O p e n S h i p m e n t W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ) ; 
 
 
 
     L i n e   7 8   [ m a t c h :   E P I C O R ] : 
 
         7 6 :                                           i f   ( i s _ n u l l ( $ E p i c o r C u s t I D ) ) 
 
         7 7 :                                                   r e t u r n ; 
 
   > >   7 8 :                                           $ t h i s - > d b S h i p m e n t   =   $ R O S h i p R e q u e s t R e p o - > g e t O p e n S h i p m e n t W i t h A l l D e t a i l L i n e s F o r E p i c o r C u s t o m e r A n d Q u e s t U s e r ( $ E p i c o r C u s t I D ,   $ Q u e s t P a g e V a l u e s - > g e t Q u e s t U s e r I D ( ) ) ; 
 
         7 9 :                                   } 
 
         8 0 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ a p p \ S e r v i c e s \ S h i p m e n t R e l e a s e H e l p e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   8 2   [ m a t c h :   F R O M   ] : 
 
         8 0 :                   $ p d o   =   $ e m - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; 
 
         8 1 :   
 
   > >   8 2 :                   $ s q l   =   " S E L E C T   S U M ( O n H a n d Q u a n t i t y )   A S   S   F R O M   d b o . s h i p _ R e q u e s t D e t a i l   W H E R E   s h i p _ R e q u e s t _ I D   =   : S I D " ; 
 
         8 3 :                   $ s t h   =   $ p d o - > p r e p a r e ( $ s q l ) ; 
 
         8 4 :                   $ s t h - > e x e c u t e ( [ ' : S I D '   = >   $ d a t a [ " S h i p m e n t R e l e a s e R e f e r e n c e " ] ] ) ; 
 
 
 
     L i n e   8 9   [ m a t c h :   F R O M   ] : 
 
         8 7 :                   $ d a t a [ " T o t a l S e l e c t e d " ]   =   $ r e s u l t s [ 0 ] [ ' S ' ] ; 
 
         8 8 :   
 
   > >   8 9 :                   $ d q l   =   " s e l e c t   s h i p _ R e q u e s t D e t a i l   f r o m   A p p \ \ M o d e l \ \ E n t i t i e s \ \ s h i p _ R e q u e s t D e t a i l   s h i p _ R e q u e s t D e t a i l   w h e r e 
 
         9 0 :                                   s h i p _ R e q u e s t D e t a i l . s h i p _ R e q u e s t   =   : S I D   O R D E R   B Y   s h i p _ R e q u e s t D e t a i l . S k i d ,   s h i p _ R e q u e s t D e t a i l . L o t N u m " ; 
 
         9 1 :   
 
 
 
     L i n e   8 2   [ m a t c h :   S E L E C T   ] : 
 
         8 0 :                   $ p d o   =   $ e m - > g e t C o n n e c t i o n ( ) - > g e t N a t i v e C o n n e c t i o n ( ) ; 
 
         8 1 :   
 
   > >   8 2 :                   $ s q l   =   " S E L E C T   S U M ( O n H a n d Q u a n t i t y )   A S   S   F R O M   d b o . s h i p _ R e q u e s t D e t a i l   W H E R E   s h i p _ R e q u e s t _ I D   =   : S I D " ; 
 
         8 3 :                   $ s t h   =   $ p d o - > p r e p a r e ( $ s q l ) ; 
 
         8 4 :                   $ s t h - > e x e c u t e ( [ ' : S I D '   = >   $ d a t a [ " S h i p m e n t R e l e a s e R e f e r e n c e " ] ] ) ; 
 
 
 
     L i n e   8 9   [ m a t c h :   S E L E C T   ] : 
 
         8 7 :                   $ d a t a [ " T o t a l S e l e c t e d " ]   =   $ r e s u l t s [ 0 ] [ ' S ' ] ; 
 
         8 8 :   
 
   > >   8 9 :                   $ d q l   =   " s e l e c t   s h i p _ R e q u e s t D e t a i l   f r o m   A p p \ \ M o d e l \ \ E n t i t i e s \ \ s h i p _ R e q u e s t D e t a i l   s h i p _ R e q u e s t D e t a i l   w h e r e 
 
         9 0 :                                   s h i p _ R e q u e s t D e t a i l . s h i p _ R e q u e s t   =   : S I D   O R D E R   B Y   s h i p _ R e q u e s t D e t a i l . S k i d ,   s h i p _ R e q u e s t D e t a i l . L o t N u m " ; 
 
         9 1 :   
 
 
 
     L i n e   4 1 9   [ m a t c h :   S E L E C T   ] : 
 
         4 1 7 :                                   ( n e w   B u t t o n ( ' C o m p l e t e   R e l e a s e ' ,   t r u e ) ) 
 
         4 1 8 :                                           - > s e t T y p e ( B u t t o n I n t e r f a c e : : T Y P E _ P R I M A R Y ) , 
 
   > >   4 1 9 :                                   ( n e w   B u t t o n ( ' S e l e c t   M o r e   I t e m s ' ,   f a l s e ) ) 
 
         4 2 0 :                                           - > s e t T y p e ( B u t t o n I n t e r f a c e : : T Y P E _ D E F A U L T ) 
 
         4 2 1 :                                           - > s e t A t t r i b u t e ( ' o n c l i c k ' ,   ' q u e s t S h i p m e n t R e q u e s t R e d i r e c t T o I n v e n t o r y ( ) ' ) , 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ r o u t e s \ a p i . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 3   [ m a t c h :   e p i c o r ] : 
 
         6 1 :         / / h t t p s : / / p o r t a l - u a t . v o r t e q c o i l . c o m / a p i / w s / c o m p a n y / M W M / i n v e n t o r y - p o s t / d e t a i l s 
 
         6 2 :   
 
   > >   6 3 :           R o u t e : : g r o u p ( [ ' p r e f i x '   = >   ' c o m p a n y / { e p i c o r _ c u s t _ i d } ' ,   ' m i d d l e w a r e '   = >   ' w e b _ s e r v i c e s _ c o m p a n y ' ] ,   f u n c t i o n ( ) { 
 
         6 4 :   
 
         6 5 :                   R o u t e : : p o s t ( ' s h i p m e n t - r e l e a s e - a d d r e s s ' ,   ' A P I \ W e b A p p A P I @ p o s t S h i p T o A d d r e s s I n q u i r y ' ) ; 
 
 
 
     L i n e   6 3   [ m a t c h :   E p i c o r ] : 
 
         6 1 :         / / h t t p s : / / p o r t a l - u a t . v o r t e q c o i l . c o m / a p i / w s / c o m p a n y / M W M / i n v e n t o r y - p o s t / d e t a i l s 
 
         6 2 :   
 
   > >   6 3 :           R o u t e : : g r o u p ( [ ' p r e f i x '   = >   ' c o m p a n y / { e p i c o r _ c u s t _ i d } ' ,   ' m i d d l e w a r e '   = >   ' w e b _ s e r v i c e s _ c o m p a n y ' ] ,   f u n c t i o n ( ) { 
 
         6 4 :   
 
         6 5 :                   R o u t e : : p o s t ( ' s h i p m e n t - r e l e a s e - a d d r e s s ' ,   ' A P I \ W e b A p p A P I @ p o s t S h i p T o A d d r e s s I n q u i r y ' ) ; 
 
 
 
     L i n e   6 3   [ m a t c h :   E P I C O R ] : 
 
         6 1 :         / / h t t p s : / / p o r t a l - u a t . v o r t e q c o i l . c o m / a p i / w s / c o m p a n y / M W M / i n v e n t o r y - p o s t / d e t a i l s 
 
         6 2 :   
 
   > >   6 3 :           R o u t e : : g r o u p ( [ ' p r e f i x '   = >   ' c o m p a n y / { e p i c o r _ c u s t _ i d } ' ,   ' m i d d l e w a r e '   = >   ' w e b _ s e r v i c e s _ c o m p a n y ' ] ,   f u n c t i o n ( ) { 
 
         6 4 :   
 
         6 5 :                   R o u t e : : p o s t ( ' s h i p m e n t - r e l e a s e - a d d r e s s ' ,   ' A P I \ W e b A p p A P I @ p o s t S h i p T o A d d r e s s I n q u i r y ' ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ r o u t e s \ w e b . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 1 1   [ m a t c h :   w a v e ] : 
 
         2 0 9 :   
 
         2 1 0 :   
 
   > >   2 1 1 :           R o u t e : : g r o u p ( [ ' p r e f i x '   = >   ' a d m i n ' ,   ' m i d d l e w a r e '   = >   [   ' p e r m i s s i o n s . r e q u i r e d . a n y : A D M I N _ A C C E S S , A D M I N _ C U S T O M E R S , A D M I N _ U S E R S , A D M I N _ A C C O U N T _ R E Q U E S T S , A D M I N _ N O T I F I C A T I O N S , A D M I N _ S H I P M E N T _ R E L E A S E S , A D M I N _ P A S S W O R D _ R E S E T _ L I N K S , A D M I N _ E M A I L _ L O G S , A D M I N _ D O C U M E N T A T I O N , A D M I N _ W A V E _ E D I , M A N A G E _ A P _ C H E C K _ P R O C E S S I N G , M A N A G E _ I N V O I C E _ U P L O A D S , M A N A G E _ C O I L _ A L L O C A T I O N _ R E Q U E S T S ' ] ] ,   f u n c t i o n   ( )   { 
 
         2 1 2 :   
 
         2 1 3 :                   R o u t e : : g e t ( ' p a i n t b a c k s ' ,   ' Q u e s t \ A d m i n \ P a i n t B a c k u p s @ g e t I n d e x ' ) ; 
 
 
 
     L i n e   3 2 7   [ m a t c h :   w a v e ] : 
 
         3 2 5 :                           R o u t e : : p o s t ( ' r e p l a c e - e n t r y ' , ' Q u e s t \ A d m i n \ I n v o i c e U p l o a d C o n t r o l l e r @ p o s t R e p l a c e S i n g l e E n t r y ' ) ; 
 
         3 2 6 :                   } ) ; 
 
   > >   3 2 7 :                   R o u t e : : g r o u p ( [ ' p r e f i x '   = >   ' w a v e ' ,   ' m i d d l e w a r e '   = >   [ ' p e r m i s s i o n s . r e q u i r e d . a l l : A D M I N _ W A V E _ E D I ' ] ] ,   f u n c t i o n   ( )   { 
 
         3 2 8 :                           \ S a v v i o r \ L C r u d B a s e \ C o n t r o l l e r s \ C r u d B a s e : : m a k e R o u t e s ( ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r ' ) ; 
 
         3 2 9 :                           R o u t e : : p o s t ( ' / r e p r o c e s s ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ r e p r o c e s s S t e p ' ) ; 
 
 
 
     L i n e   3 2 8   [ m a t c h :   w a v e ] : 
 
         3 2 6 :                   } ) ; 
 
         3 2 7 :                   R o u t e : : g r o u p ( [ ' p r e f i x '   = >   ' w a v e ' ,   ' m i d d l e w a r e '   = >   [ ' p e r m i s s i o n s . r e q u i r e d . a l l : A D M I N _ W A V E _ E D I ' ] ] ,   f u n c t i o n   ( )   { 
 
   > >   3 2 8 :                           \ S a v v i o r \ L C r u d B a s e \ C o n t r o l l e r s \ C r u d B a s e : : m a k e R o u t e s ( ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r ' ) ; 
 
         3 2 9 :                           R o u t e : : p o s t ( ' / r e p r o c e s s ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ r e p r o c e s s S t e p ' ) ; 
 
         3 3 0 :                           R o u t e : : g e t ( ' / d o w n l o a d / { p k } ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ d o w n l o a d R e s u l t s ' ) ; 
 
 
 
     L i n e   3 2 9   [ m a t c h :   w a v e ] : 
 
         3 2 7 :                   R o u t e : : g r o u p ( [ ' p r e f i x '   = >   ' w a v e ' ,   ' m i d d l e w a r e '   = >   [ ' p e r m i s s i o n s . r e q u i r e d . a l l : A D M I N _ W A V E _ E D I ' ] ] ,   f u n c t i o n   ( )   { 
 
         3 2 8 :                           \ S a v v i o r \ L C r u d B a s e \ C o n t r o l l e r s \ C r u d B a s e : : m a k e R o u t e s ( ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r ' ) ; 
 
   > >   3 2 9 :                           R o u t e : : p o s t ( ' / r e p r o c e s s ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ r e p r o c e s s S t e p ' ) ; 
 
         3 3 0 :                           R o u t e : : g e t ( ' / d o w n l o a d / { p k } ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ d o w n l o a d R e s u l t s ' ) ; 
 
         3 3 1 :                   } ) ; 
 
 
 
     L i n e   3 3 0   [ m a t c h :   w a v e ] : 
 
         3 2 8 :                           \ S a v v i o r \ L C r u d B a s e \ C o n t r o l l e r s \ C r u d B a s e : : m a k e R o u t e s ( ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r ' ) ; 
 
         3 2 9 :                           R o u t e : : p o s t ( ' / r e p r o c e s s ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ r e p r o c e s s S t e p ' ) ; 
 
   > >   3 3 0 :                           R o u t e : : g e t ( ' / d o w n l o a d / { p k } ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ d o w n l o a d R e s u l t s ' ) ; 
 
         3 3 1 :                   } ) ; 
 
         3 3 2 :           } ) ; 
 
 
 
     L i n e   2 1 1   [ m a t c h :   W a v e ] : 
 
         2 0 9 :   
 
         2 1 0 :   
 
   > >   2 1 1 :           R o u t e : : g r o u p ( [ ' p r e f i x '   = >   ' a d m i n ' ,   ' m i d d l e w a r e '   = >   [   ' p e r m i s s i o n s . r e q u i r e d . a n y : A D M I N _ A C C E S S , A D M I N _ C U S T O M E R S , A D M I N _ U S E R S , A D M I N _ A C C O U N T _ R E Q U E S T S , A D M I N _ N O T I F I C A T I O N S , A D M I N _ S H I P M E N T _ R E L E A S E S , A D M I N _ P A S S W O R D _ R E S E T _ L I N K S , A D M I N _ E M A I L _ L O G S , A D M I N _ D O C U M E N T A T I O N , A D M I N _ W A V E _ E D I , M A N A G E _ A P _ C H E C K _ P R O C E S S I N G , M A N A G E _ I N V O I C E _ U P L O A D S , M A N A G E _ C O I L _ A L L O C A T I O N _ R E Q U E S T S ' ] ] ,   f u n c t i o n   ( )   { 
 
         2 1 2 :   
 
         2 1 3 :                   R o u t e : : g e t ( ' p a i n t b a c k s ' ,   ' Q u e s t \ A d m i n \ P a i n t B a c k u p s @ g e t I n d e x ' ) ; 
 
 
 
     L i n e   3 2 7   [ m a t c h :   W a v e ] : 
 
         3 2 5 :                           R o u t e : : p o s t ( ' r e p l a c e - e n t r y ' , ' Q u e s t \ A d m i n \ I n v o i c e U p l o a d C o n t r o l l e r @ p o s t R e p l a c e S i n g l e E n t r y ' ) ; 
 
         3 2 6 :                   } ) ; 
 
   > >   3 2 7 :                   R o u t e : : g r o u p ( [ ' p r e f i x '   = >   ' w a v e ' ,   ' m i d d l e w a r e '   = >   [ ' p e r m i s s i o n s . r e q u i r e d . a l l : A D M I N _ W A V E _ E D I ' ] ] ,   f u n c t i o n   ( )   { 
 
         3 2 8 :                           \ S a v v i o r \ L C r u d B a s e \ C o n t r o l l e r s \ C r u d B a s e : : m a k e R o u t e s ( ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r ' ) ; 
 
         3 2 9 :                           R o u t e : : p o s t ( ' / r e p r o c e s s ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ r e p r o c e s s S t e p ' ) ; 
 
 
 
     L i n e   3 2 8   [ m a t c h :   W a v e ] : 
 
         3 2 6 :                   } ) ; 
 
         3 2 7 :                   R o u t e : : g r o u p ( [ ' p r e f i x '   = >   ' w a v e ' ,   ' m i d d l e w a r e '   = >   [ ' p e r m i s s i o n s . r e q u i r e d . a l l : A D M I N _ W A V E _ E D I ' ] ] ,   f u n c t i o n   ( )   { 
 
   > >   3 2 8 :                           \ S a v v i o r \ L C r u d B a s e \ C o n t r o l l e r s \ C r u d B a s e : : m a k e R o u t e s ( ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r ' ) ; 
 
         3 2 9 :                           R o u t e : : p o s t ( ' / r e p r o c e s s ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ r e p r o c e s s S t e p ' ) ; 
 
         3 3 0 :                           R o u t e : : g e t ( ' / d o w n l o a d / { p k } ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ d o w n l o a d R e s u l t s ' ) ; 
 
 
 
     L i n e   3 2 9   [ m a t c h :   W a v e ] : 
 
         3 2 7 :                   R o u t e : : g r o u p ( [ ' p r e f i x '   = >   ' w a v e ' ,   ' m i d d l e w a r e '   = >   [ ' p e r m i s s i o n s . r e q u i r e d . a l l : A D M I N _ W A V E _ E D I ' ] ] ,   f u n c t i o n   ( )   { 
 
         3 2 8 :                           \ S a v v i o r \ L C r u d B a s e \ C o n t r o l l e r s \ C r u d B a s e : : m a k e R o u t e s ( ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r ' ) ; 
 
   > >   3 2 9 :                           R o u t e : : p o s t ( ' / r e p r o c e s s ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ r e p r o c e s s S t e p ' ) ; 
 
         3 3 0 :                           R o u t e : : g e t ( ' / d o w n l o a d / { p k } ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ d o w n l o a d R e s u l t s ' ) ; 
 
         3 3 1 :                   } ) ; 
 
 
 
     L i n e   3 3 0   [ m a t c h :   W a v e ] : 
 
         3 2 8 :                           \ S a v v i o r \ L C r u d B a s e \ C o n t r o l l e r s \ C r u d B a s e : : m a k e R o u t e s ( ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r ' ) ; 
 
         3 2 9 :                           R o u t e : : p o s t ( ' / r e p r o c e s s ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ r e p r o c e s s S t e p ' ) ; 
 
   > >   3 3 0 :                           R o u t e : : g e t ( ' / d o w n l o a d / { p k } ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ d o w n l o a d R e s u l t s ' ) ; 
 
         3 3 1 :                   } ) ; 
 
         3 3 2 :           } ) ; 
 
 
 
     L i n e   2 1 1   [ m a t c h :   W A V E ] : 
 
         2 0 9 :   
 
         2 1 0 :   
 
   > >   2 1 1 :           R o u t e : : g r o u p ( [ ' p r e f i x '   = >   ' a d m i n ' ,   ' m i d d l e w a r e '   = >   [   ' p e r m i s s i o n s . r e q u i r e d . a n y : A D M I N _ A C C E S S , A D M I N _ C U S T O M E R S , A D M I N _ U S E R S , A D M I N _ A C C O U N T _ R E Q U E S T S , A D M I N _ N O T I F I C A T I O N S , A D M I N _ S H I P M E N T _ R E L E A S E S , A D M I N _ P A S S W O R D _ R E S E T _ L I N K S , A D M I N _ E M A I L _ L O G S , A D M I N _ D O C U M E N T A T I O N , A D M I N _ W A V E _ E D I , M A N A G E _ A P _ C H E C K _ P R O C E S S I N G , M A N A G E _ I N V O I C E _ U P L O A D S , M A N A G E _ C O I L _ A L L O C A T I O N _ R E Q U E S T S ' ] ] ,   f u n c t i o n   ( )   { 
 
         2 1 2 :   
 
         2 1 3 :                   R o u t e : : g e t ( ' p a i n t b a c k s ' ,   ' Q u e s t \ A d m i n \ P a i n t B a c k u p s @ g e t I n d e x ' ) ; 
 
 
 
     L i n e   3 2 7   [ m a t c h :   W A V E ] : 
 
         3 2 5 :                           R o u t e : : p o s t ( ' r e p l a c e - e n t r y ' , ' Q u e s t \ A d m i n \ I n v o i c e U p l o a d C o n t r o l l e r @ p o s t R e p l a c e S i n g l e E n t r y ' ) ; 
 
         3 2 6 :                   } ) ; 
 
   > >   3 2 7 :                   R o u t e : : g r o u p ( [ ' p r e f i x '   = >   ' w a v e ' ,   ' m i d d l e w a r e '   = >   [ ' p e r m i s s i o n s . r e q u i r e d . a l l : A D M I N _ W A V E _ E D I ' ] ] ,   f u n c t i o n   ( )   { 
 
         3 2 8 :                           \ S a v v i o r \ L C r u d B a s e \ C o n t r o l l e r s \ C r u d B a s e : : m a k e R o u t e s ( ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r ' ) ; 
 
         3 2 9 :                           R o u t e : : p o s t ( ' / r e p r o c e s s ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ r e p r o c e s s S t e p ' ) ; 
 
 
 
     L i n e   3 2 8   [ m a t c h :   W A V E ] : 
 
         3 2 6 :                   } ) ; 
 
         3 2 7 :                   R o u t e : : g r o u p ( [ ' p r e f i x '   = >   ' w a v e ' ,   ' m i d d l e w a r e '   = >   [ ' p e r m i s s i o n s . r e q u i r e d . a l l : A D M I N _ W A V E _ E D I ' ] ] ,   f u n c t i o n   ( )   { 
 
   > >   3 2 8 :                           \ S a v v i o r \ L C r u d B a s e \ C o n t r o l l e r s \ C r u d B a s e : : m a k e R o u t e s ( ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r ' ) ; 
 
         3 2 9 :                           R o u t e : : p o s t ( ' / r e p r o c e s s ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ r e p r o c e s s S t e p ' ) ; 
 
         3 3 0 :                           R o u t e : : g e t ( ' / d o w n l o a d / { p k } ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ d o w n l o a d R e s u l t s ' ) ; 
 
 
 
     L i n e   3 2 9   [ m a t c h :   W A V E ] : 
 
         3 2 7 :                   R o u t e : : g r o u p ( [ ' p r e f i x '   = >   ' w a v e ' ,   ' m i d d l e w a r e '   = >   [ ' p e r m i s s i o n s . r e q u i r e d . a l l : A D M I N _ W A V E _ E D I ' ] ] ,   f u n c t i o n   ( )   { 
 
         3 2 8 :                           \ S a v v i o r \ L C r u d B a s e \ C o n t r o l l e r s \ C r u d B a s e : : m a k e R o u t e s ( ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r ' ) ; 
 
   > >   3 2 9 :                           R o u t e : : p o s t ( ' / r e p r o c e s s ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ r e p r o c e s s S t e p ' ) ; 
 
         3 3 0 :                           R o u t e : : g e t ( ' / d o w n l o a d / { p k } ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ d o w n l o a d R e s u l t s ' ) ; 
 
         3 3 1 :                   } ) ; 
 
 
 
     L i n e   3 3 0   [ m a t c h :   W A V E ] : 
 
         3 2 8 :                           \ S a v v i o r \ L C r u d B a s e \ C o n t r o l l e r s \ C r u d B a s e : : m a k e R o u t e s ( ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r ' ) ; 
 
         3 2 9 :                           R o u t e : : p o s t ( ' / r e p r o c e s s ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ r e p r o c e s s S t e p ' ) ; 
 
   > >   3 3 0 :                           R o u t e : : g e t ( ' / d o w n l o a d / { p k } ' ,   ' Q u e s t \ A d m i n \ W a v e P r o c e s s C o n t r o l l e r @ d o w n l o a d R e s u l t s ' ) ; 
 
         3 3 1 :                   } ) ; 
 
         3 3 2 :           } ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ c o n f i g \ d a t a b a s e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 0 4   [ m a t c h :   e p i c o r ] : 
 
         1 0 2 :   	 	 ] , 
 
         1 0 3 :   
 
   > >   1 0 4 :                   ' e p i c o r _ r o '   = >   [ 
 
         1 0 5 :                           ' d r i v e r '         = >   e n v ( ' E P I C O R _ D B _ D R I V E R ' ) , 
 
         1 0 6 :                           ' h o s t '             = >   e n v ( ' E P I C O R _ D B _ H O S T ' ) , 
 
 
 
     L i n e   1 0 5   [ m a t c h :   e p i c o r ] : 
 
         1 0 3 :   
 
         1 0 4 :                   ' e p i c o r _ r o '   = >   [ 
 
   > >   1 0 5 :                           ' d r i v e r '         = >   e n v ( ' E P I C O R _ D B _ D R I V E R ' ) , 
 
         1 0 6 :                           ' h o s t '             = >   e n v ( ' E P I C O R _ D B _ H O S T ' ) , 
 
         1 0 7 :                           ' p o r t '             = >   e n v ( ' E P I C O R _ D B _ P O R T ' ) , 
 
 
 
     L i n e   1 0 6   [ m a t c h :   e p i c o r ] : 
 
         1 0 4 :                   ' e p i c o r _ r o '   = >   [ 
 
         1 0 5 :                           ' d r i v e r '         = >   e n v ( ' E P I C O R _ D B _ D R I V E R ' ) , 
 
   > >   1 0 6 :                           ' h o s t '             = >   e n v ( ' E P I C O R _ D B _ H O S T ' ) , 
 
         1 0 7 :                           ' p o r t '             = >   e n v ( ' E P I C O R _ D B _ P O R T ' ) , 
 
         1 0 8 :                           ' d a t a b a s e '     = >   e n v ( ' E P I C O R _ D B _ D A T A B A S E ' ) , 
 
 
 
     L i n e   1 0 7   [ m a t c h :   e p i c o r ] : 
 
         1 0 5 :                           ' d r i v e r '         = >   e n v ( ' E P I C O R _ D B _ D R I V E R ' ) , 
 
         1 0 6 :                           ' h o s t '             = >   e n v ( ' E P I C O R _ D B _ H O S T ' ) , 
 
   > >   1 0 7 :                           ' p o r t '             = >   e n v ( ' E P I C O R _ D B _ P O R T ' ) , 
 
         1 0 8 :                           ' d a t a b a s e '     = >   e n v ( ' E P I C O R _ D B _ D A T A B A S E ' ) , 
 
         1 0 9 :                           ' u s e r n a m e '     = >   e n v ( ' E P I C O R _ D B _ U S E R N A M E _ R O ' ) , 
 
 
 
     L i n e   1 0 8   [ m a t c h :   e p i c o r ] : 
 
         1 0 6 :                           ' h o s t '             = >   e n v ( ' E P I C O R _ D B _ H O S T ' ) , 
 
         1 0 7 :                           ' p o r t '             = >   e n v ( ' E P I C O R _ D B _ P O R T ' ) , 
 
   > >   1 0 8 :                           ' d a t a b a s e '     = >   e n v ( ' E P I C O R _ D B _ D A T A B A S E ' ) , 
 
         1 0 9 :                           ' u s e r n a m e '     = >   e n v ( ' E P I C O R _ D B _ U S E R N A M E _ R O ' ) , 
 
         1 1 0 :                           ' p a s s w o r d '     = >   e n v ( ' E P I C O R _ D B _ P A S S W O R D _ R O ' ) , 
 
 
 
     L i n e   1 0 9   [ m a t c h :   e p i c o r ] : 
 
         1 0 7 :                           ' p o r t '             = >   e n v ( ' E P I C O R _ D B _ P O R T ' ) , 
 
         1 0 8 :                           ' d a t a b a s e '     = >   e n v ( ' E P I C O R _ D B _ D A T A B A S E ' ) , 
 
   > >   1 0 9 :                           ' u s e r n a m e '     = >   e n v ( ' E P I C O R _ D B _ U S E R N A M E _ R O ' ) , 
 
         1 1 0 :                           ' p a s s w o r d '     = >   e n v ( ' E P I C O R _ D B _ P A S S W O R D _ R O ' ) , 
 
         1 1 1 :                           ' c h a r s e t '       = >   ' u t f 8 m b 4 ' , 
 
 
 
     L i n e   1 1 0   [ m a t c h :   e p i c o r ] : 
 
         1 0 8 :                           ' d a t a b a s e '     = >   e n v ( ' E P I C O R _ D B _ D A T A B A S E ' ) , 
 
         1 0 9 :                           ' u s e r n a m e '     = >   e n v ( ' E P I C O R _ D B _ U S E R N A M E _ R O ' ) , 
 
   > >   1 1 0 :                           ' p a s s w o r d '     = >   e n v ( ' E P I C O R _ D B _ P A S S W O R D _ R O ' ) , 
 
         1 1 1 :                           ' c h a r s e t '       = >   ' u t f 8 m b 4 ' , 
 
         1 1 2 :                           ' c o l l a t i o n '   = >   ' u t f 8 m b 4 _ u n i c o d e _ c i ' , 
 
 
 
     L i n e   2 5 9   [ m a t c h :   e p i c o r ] : 
 
         2 5 7 :           u n s e t ( $ c o n f [ ' c o n n e c t i o n s ' ] [ ' a d m ' ] ) ; 
 
         2 5 8 :   } 
 
   > >   2 5 9 :   i f ( i s _ n u l l ( e n v ( ' E P I C O R _ D B _ H O S T ' ) ) ) 
 
         2 6 0 :   { 
 
         2 6 1 :           u n s e t ( $ c o n f [ ' c o n n e c t i o n s ' ] [ ' e p i c o r _ r o ' ] ) ; 
 
 
 
     L i n e   2 6 1   [ m a t c h :   e p i c o r ] : 
 
         2 5 9 :   i f ( i s _ n u l l ( e n v ( ' E P I C O R _ D B _ H O S T ' ) ) ) 
 
         2 6 0 :   { 
 
   > >   2 6 1 :           u n s e t ( $ c o n f [ ' c o n n e c t i o n s ' ] [ ' e p i c o r _ r o ' ] ) ; 
 
         2 6 2 :   } 
 
         2 6 3 :   i f ( i s _ n u l l ( e n v ( ' W A V E _ D B _ H O S T ' ) ) ) 
 
 
 
     L i n e   1 0 4   [ m a t c h :   E p i c o r ] : 
 
         1 0 2 :   	 	 ] , 
 
         1 0 3 :   
 
   > >   1 0 4 :                   ' e p i c o r _ r o '   = >   [ 
 
         1 0 5 :                           ' d r i v e r '         = >   e n v ( ' E P I C O R _ D B _ D R I V E R ' ) , 
 
         1 0 6 :                           ' h o s t '             = >   e n v ( ' E P I C O R _ D B _ H O S T ' ) , 
 
 
 
     L i n e   1 0 5   [ m a t c h :   E p i c o r ] : 
 
         1 0 3 :   
 
         1 0 4 :                   ' e p i c o r _ r o '   = >   [ 
 
   > >   1 0 5 :                           ' d r i v e r '         = >   e n v ( ' E P I C O R _ D B _ D R I V E R ' ) , 
 
         1 0 6 :                           ' h o s t '             = >   e n v ( ' E P I C O R _ D B _ H O S T ' ) , 
 
         1 0 7 :                           ' p o r t '             = >   e n v ( ' E P I C O R _ D B _ P O R T ' ) , 
 
 
 
     L i n e   1 0 6   [ m a t c h :   E p i c o r ] : 
 
         1 0 4 :                   ' e p i c o r _ r o '   = >   [ 
 
         1 0 5 :                           ' d r i v e r '         = >   e n v ( ' E P I C O R _ D B _ D R I V E R ' ) , 
 
   > >   1 0 6 :                           ' h o s t '             = >   e n v ( ' E P I C O R _ D B _ H O S T ' ) , 
 
         1 0 7 :                           ' p o r t '             = >   e n v ( ' E P I C O R _ D B _ P O R T ' ) , 
 
         1 0 8 :                           ' d a t a b a s e '     = >   e n v ( ' E P I C O R _ D B _ D A T A B A S E ' ) , 
 
 
 
     L i n e   1 0 7   [ m a t c h :   E p i c o r ] : 
 
         1 0 5 :                           ' d r i v e r '         = >   e n v ( ' E P I C O R _ D B _ D R I V E R ' ) , 
 
         1 0 6 :                           ' h o s t '             = >   e n v ( ' E P I C O R _ D B _ H O S T ' ) , 
 
   > >   1 0 7 :                           ' p o r t '             = >   e n v ( ' E P I C O R _ D B _ P O R T ' ) , 
 
         1 0 8 :                           ' d a t a b a s e '     = >   e n v ( ' E P I C O R _ D B _ D A T A B A S E ' ) , 
 
         1 0 9 :                           ' u s e r n a m e '     = >   e n v ( ' E P I C O R _ D B _ U S E R N A M E _ R O ' ) , 
 
 
 
     L i n e   1 0 8   [ m a t c h :   E p i c o r ] : 
 
         1 0 6 :                           ' h o s t '             = >   e n v ( ' E P I C O R _ D B _ H O S T ' ) , 
 
         1 0 7 :                           ' p o r t '             = >   e n v ( ' E P I C O R _ D B _ P O R T ' ) , 
 
   > >   1 0 8 :                           ' d a t a b a s e '     = >   e n v ( ' E P I C O R _ D B _ D A T A B A S E ' ) , 
 
         1 0 9 :                           ' u s e r n a m e '     = >   e n v ( ' E P I C O R _ D B _ U S E R N A M E _ R O ' ) , 
 
         1 1 0 :                           ' p a s s w o r d '     = >   e n v ( ' E P I C O R _ D B _ P A S S W O R D _ R O ' ) , 
 
 
 
     L i n e   1 0 9   [ m a t c h :   E p i c o r ] : 
 
         1 0 7 :                           ' p o r t '             = >   e n v ( ' E P I C O R _ D B _ P O R T ' ) , 
 
         1 0 8 :                           ' d a t a b a s e '     = >   e n v ( ' E P I C O R _ D B _ D A T A B A S E ' ) , 
 
   > >   1 0 9 :                           ' u s e r n a m e '     = >   e n v ( ' E P I C O R _ D B _ U S E R N A M E _ R O ' ) , 
 
         1 1 0 :                           ' p a s s w o r d '     = >   e n v ( ' E P I C O R _ D B _ P A S S W O R D _ R O ' ) , 
 
         1 1 1 :                           ' c h a r s e t '       = >   ' u t f 8 m b 4 ' , 
 
 
 
     L i n e   1 1 0   [ m a t c h :   E p i c o r ] : 
 
         1 0 8 :                           ' d a t a b a s e '     = >   e n v ( ' E P I C O R _ D B _ D A T A B A S E ' ) , 
 
         1 0 9 :                           ' u s e r n a m e '     = >   e n v ( ' E P I C O R _ D B _ U S E R N A M E _ R O ' ) , 
 
   > >   1 1 0 :                           ' p a s s w o r d '     = >   e n v ( ' E P I C O R _ D B _ P A S S W O R D _ R O ' ) , 
 
         1 1 1 :                           ' c h a r s e t '       = >   ' u t f 8 m b 4 ' , 
 
         1 1 2 :                           ' c o l l a t i o n '   = >   ' u t f 8 m b 4 _ u n i c o d e _ c i ' , 
 
 
 
     L i n e   2 5 9   [ m a t c h :   E p i c o r ] : 
 
         2 5 7 :           u n s e t ( $ c o n f [ ' c o n n e c t i o n s ' ] [ ' a d m ' ] ) ; 
 
         2 5 8 :   } 
 
   > >   2 5 9 :   i f ( i s _ n u l l ( e n v ( ' E P I C O R _ D B _ H O S T ' ) ) ) 
 
         2 6 0 :   { 
 
         2 6 1 :           u n s e t ( $ c o n f [ ' c o n n e c t i o n s ' ] [ ' e p i c o r _ r o ' ] ) ; 
 
 
 
     L i n e   2 6 1   [ m a t c h :   E p i c o r ] : 
 
         2 5 9 :   i f ( i s _ n u l l ( e n v ( ' E P I C O R _ D B _ H O S T ' ) ) ) 
 
         2 6 0 :   { 
 
   > >   2 6 1 :           u n s e t ( $ c o n f [ ' c o n n e c t i o n s ' ] [ ' e p i c o r _ r o ' ] ) ; 
 
         2 6 2 :   } 
 
         2 6 3 :   i f ( i s _ n u l l ( e n v ( ' W A V E _ D B _ H O S T ' ) ) ) 
 
 
 
     L i n e   1 0 4   [ m a t c h :   E P I C O R ] : 
 
         1 0 2 :   	 	 ] , 
 
         1 0 3 :   
 
   > >   1 0 4 :                   ' e p i c o r _ r o '   = >   [ 
 
         1 0 5 :                           ' d r i v e r '         = >   e n v ( ' E P I C O R _ D B _ D R I V E R ' ) , 
 
         1 0 6 :                           ' h o s t '             = >   e n v ( ' E P I C O R _ D B _ H O S T ' ) , 
 
 
 
     L i n e   1 0 5   [ m a t c h :   E P I C O R ] : 
 
         1 0 3 :   
 
         1 0 4 :                   ' e p i c o r _ r o '   = >   [ 
 
   > >   1 0 5 :                           ' d r i v e r '         = >   e n v ( ' E P I C O R _ D B _ D R I V E R ' ) , 
 
         1 0 6 :                           ' h o s t '             = >   e n v ( ' E P I C O R _ D B _ H O S T ' ) , 
 
         1 0 7 :                           ' p o r t '             = >   e n v ( ' E P I C O R _ D B _ P O R T ' ) , 
 
 
 
     L i n e   1 0 6   [ m a t c h :   E P I C O R ] : 
 
         1 0 4 :                   ' e p i c o r _ r o '   = >   [ 
 
         1 0 5 :                           ' d r i v e r '         = >   e n v ( ' E P I C O R _ D B _ D R I V E R ' ) , 
 
   > >   1 0 6 :                           ' h o s t '             = >   e n v ( ' E P I C O R _ D B _ H O S T ' ) , 
 
         1 0 7 :                           ' p o r t '             = >   e n v ( ' E P I C O R _ D B _ P O R T ' ) , 
 
         1 0 8 :                           ' d a t a b a s e '     = >   e n v ( ' E P I C O R _ D B _ D A T A B A S E ' ) , 
 
 
 
     L i n e   1 0 7   [ m a t c h :   E P I C O R ] : 
 
         1 0 5 :                           ' d r i v e r '         = >   e n v ( ' E P I C O R _ D B _ D R I V E R ' ) , 
 
         1 0 6 :                           ' h o s t '             = >   e n v ( ' E P I C O R _ D B _ H O S T ' ) , 
 
   > >   1 0 7 :                           ' p o r t '             = >   e n v ( ' E P I C O R _ D B _ P O R T ' ) , 
 
         1 0 8 :                           ' d a t a b a s e '     = >   e n v ( ' E P I C O R _ D B _ D A T A B A S E ' ) , 
 
         1 0 9 :                           ' u s e r n a m e '     = >   e n v ( ' E P I C O R _ D B _ U S E R N A M E _ R O ' ) , 
 
 
 
     L i n e   1 0 8   [ m a t c h :   E P I C O R ] : 
 
         1 0 6 :                           ' h o s t '             = >   e n v ( ' E P I C O R _ D B _ H O S T ' ) , 
 
         1 0 7 :                           ' p o r t '             = >   e n v ( ' E P I C O R _ D B _ P O R T ' ) , 
 
   > >   1 0 8 :                           ' d a t a b a s e '     = >   e n v ( ' E P I C O R _ D B _ D A T A B A S E ' ) , 
 
         1 0 9 :                           ' u s e r n a m e '     = >   e n v ( ' E P I C O R _ D B _ U S E R N A M E _ R O ' ) , 
 
         1 1 0 :                           ' p a s s w o r d '     = >   e n v ( ' E P I C O R _ D B _ P A S S W O R D _ R O ' ) , 
 
 
 
     L i n e   1 0 9   [ m a t c h :   E P I C O R ] : 
 
         1 0 7 :                           ' p o r t '             = >   e n v ( ' E P I C O R _ D B _ P O R T ' ) , 
 
         1 0 8 :                           ' d a t a b a s e '     = >   e n v ( ' E P I C O R _ D B _ D A T A B A S E ' ) , 
 
   > >   1 0 9 :                           ' u s e r n a m e '     = >   e n v ( ' E P I C O R _ D B _ U S E R N A M E _ R O ' ) , 
 
         1 1 0 :                           ' p a s s w o r d '     = >   e n v ( ' E P I C O R _ D B _ P A S S W O R D _ R O ' ) , 
 
         1 1 1 :                           ' c h a r s e t '       = >   ' u t f 8 m b 4 ' , 
 
 
 
     L i n e   1 1 0   [ m a t c h :   E P I C O R ] : 
 
         1 0 8 :                           ' d a t a b a s e '     = >   e n v ( ' E P I C O R _ D B _ D A T A B A S E ' ) , 
 
         1 0 9 :                           ' u s e r n a m e '     = >   e n v ( ' E P I C O R _ D B _ U S E R N A M E _ R O ' ) , 
 
   > >   1 1 0 :                           ' p a s s w o r d '     = >   e n v ( ' E P I C O R _ D B _ P A S S W O R D _ R O ' ) , 
 
         1 1 1 :                           ' c h a r s e t '       = >   ' u t f 8 m b 4 ' , 
 
         1 1 2 :                           ' c o l l a t i o n '   = >   ' u t f 8 m b 4 _ u n i c o d e _ c i ' , 
 
 
 
     L i n e   2 5 9   [ m a t c h :   E P I C O R ] : 
 
         2 5 7 :           u n s e t ( $ c o n f [ ' c o n n e c t i o n s ' ] [ ' a d m ' ] ) ; 
 
         2 5 8 :   } 
 
   > >   2 5 9 :   i f ( i s _ n u l l ( e n v ( ' E P I C O R _ D B _ H O S T ' ) ) ) 
 
         2 6 0 :   { 
 
         2 6 1 :           u n s e t ( $ c o n f [ ' c o n n e c t i o n s ' ] [ ' e p i c o r _ r o ' ] ) ; 
 
 
 
     L i n e   2 6 1   [ m a t c h :   E P I C O R ] : 
 
         2 5 9 :   i f ( i s _ n u l l ( e n v ( ' E P I C O R _ D B _ H O S T ' ) ) ) 
 
         2 6 0 :   { 
 
   > >   2 6 1 :           u n s e t ( $ c o n f [ ' c o n n e c t i o n s ' ] [ ' e p i c o r _ r o ' ] ) ; 
 
         2 6 2 :   } 
 
         2 6 3 :   i f ( i s _ n u l l ( e n v ( ' W A V E _ D B _ H O S T ' ) ) ) 
 
 
 
     L i n e   1 1 9   [ m a t c h :   w a v e ] : 
 
         1 1 7 :   	 	 ] , 
 
         1 1 8 :   
 
   > >   1 1 9 :                   ' w a v e _ r o '   = >   [ 
 
         1 2 0 :                           ' d r i v e r '         = >   e n v ( ' W A V E _ D B _ D R I V E R ' ) , 
 
         1 2 1 :                           ' h o s t '             = >   e n v ( ' W A V E _ D B _ H O S T ' ) , 
 
 
 
     L i n e   1 2 0   [ m a t c h :   w a v e ] : 
 
         1 1 8 :   
 
         1 1 9 :                   ' w a v e _ r o '   = >   [ 
 
   > >   1 2 0 :                           ' d r i v e r '         = >   e n v ( ' W A V E _ D B _ D R I V E R ' ) , 
 
         1 2 1 :                           ' h o s t '             = >   e n v ( ' W A V E _ D B _ H O S T ' ) , 
 
         1 2 2 :                           ' p o r t '             = >   e n v ( ' W A V E _ D B _ P O R T ' ) , 
 
 
 
     L i n e   1 2 1   [ m a t c h :   w a v e ] : 
 
         1 1 9 :                   ' w a v e _ r o '   = >   [ 
 
         1 2 0 :                           ' d r i v e r '         = >   e n v ( ' W A V E _ D B _ D R I V E R ' ) , 
 
   > >   1 2 1 :                           ' h o s t '             = >   e n v ( ' W A V E _ D B _ H O S T ' ) , 
 
         1 2 2 :                           ' p o r t '             = >   e n v ( ' W A V E _ D B _ P O R T ' ) , 
 
         1 2 3 :                           ' d a t a b a s e '     = >   e n v ( ' W A V E _ D B _ D A T A B A S E ' ) , 
 
 
 
     L i n e   1 2 2   [ m a t c h :   w a v e ] : 
 
         1 2 0 :                           ' d r i v e r '         = >   e n v ( ' W A V E _ D B _ D R I V E R ' ) , 
 
         1 2 1 :                           ' h o s t '             = >   e n v ( ' W A V E _ D B _ H O S T ' ) , 
 
   > >   1 2 2 :                           ' p o r t '             = >   e n v ( ' W A V E _ D B _ P O R T ' ) , 
 
         1 2 3 :                           ' d a t a b a s e '     = >   e n v ( ' W A V E _ D B _ D A T A B A S E ' ) , 
 
         1 2 4 :                           ' u s e r n a m e '     = >   e n v ( ' W A V E _ D B _ U S E R N A M E _ R O ' ) , 
 
 
 
     L i n e   1 2 3   [ m a t c h :   w a v e ] : 
 
         1 2 1 :                           ' h o s t '             = >   e n v ( ' W A V E _ D B _ H O S T ' ) , 
 
         1 2 2 :                           ' p o r t '             = >   e n v ( ' W A V E _ D B _ P O R T ' ) , 
 
   > >   1 2 3 :                           ' d a t a b a s e '     = >   e n v ( ' W A V E _ D B _ D A T A B A S E ' ) , 
 
         1 2 4 :                           ' u s e r n a m e '     = >   e n v ( ' W A V E _ D B _ U S E R N A M E _ R O ' ) , 
 
         1 2 5 :                           ' p a s s w o r d '     = >   e n v ( ' W A V E _ D B _ P A S S W O R D _ R O ' ) , 
 
 
 
     L i n e   1 2 4   [ m a t c h :   w a v e ] : 
 
         1 2 2 :                           ' p o r t '             = >   e n v ( ' W A V E _ D B _ P O R T ' ) , 
 
         1 2 3 :                           ' d a t a b a s e '     = >   e n v ( ' W A V E _ D B _ D A T A B A S E ' ) , 
 
   > >   1 2 4 :                           ' u s e r n a m e '     = >   e n v ( ' W A V E _ D B _ U S E R N A M E _ R O ' ) , 
 
         1 2 5 :                           ' p a s s w o r d '     = >   e n v ( ' W A V E _ D B _ P A S S W O R D _ R O ' ) , 
 
         1 2 6 :                           ' c h a r s e t '       = >   ' u t f 8 m b 4 ' , 
 
 
 
     L i n e   1 2 5   [ m a t c h :   w a v e ] : 
 
         1 2 3 :                           ' d a t a b a s e '     = >   e n v ( ' W A V E _ D B _ D A T A B A S E ' ) , 
 
         1 2 4 :                           ' u s e r n a m e '     = >   e n v ( ' W A V E _ D B _ U S E R N A M E _ R O ' ) , 
 
   > >   1 2 5 :                           ' p a s s w o r d '     = >   e n v ( ' W A V E _ D B _ P A S S W O R D _ R O ' ) , 
 
         1 2 6 :                           ' c h a r s e t '       = >   ' u t f 8 m b 4 ' , 
 
         1 2 7 :                           ' c o l l a t i o n '   = >   ' u t f 8 m b 4 _ u n i c o d e _ c i ' , 
 
 
 
     L i n e   2 6 3   [ m a t c h :   w a v e ] : 
 
         2 6 1 :           u n s e t ( $ c o n f [ ' c o n n e c t i o n s ' ] [ ' e p i c o r _ r o ' ] ) ; 
 
         2 6 2 :   } 
 
   > >   2 6 3 :   i f ( i s _ n u l l ( e n v ( ' W A V E _ D B _ H O S T ' ) ) ) 
 
         2 6 4 :   { 
 
         2 6 5 :           u n s e t ( $ c o n f [ ' c o n n e c t i o n s ' ] [ ' w a v e _ r o ' ] ) ; 
 
 
 
     L i n e   2 6 5   [ m a t c h :   w a v e ] : 
 
         2 6 3 :   i f ( i s _ n u l l ( e n v ( ' W A V E _ D B _ H O S T ' ) ) ) 
 
         2 6 4 :   { 
 
   > >   2 6 5 :           u n s e t ( $ c o n f [ ' c o n n e c t i o n s ' ] [ ' w a v e _ r o ' ] ) ; 
 
         2 6 6 :   } 
 
         2 6 7 :   
 
 
 
     L i n e   1 1 9   [ m a t c h :   W a v e ] : 
 
         1 1 7 :   	 	 ] , 
 
         1 1 8 :   
 
   > >   1 1 9 :                   ' w a v e _ r o '   = >   [ 
 
         1 2 0 :                           ' d r i v e r '         = >   e n v ( ' W A V E _ D B _ D R I V E R ' ) , 
 
         1 2 1 :                           ' h o s t '             = >   e n v ( ' W A V E _ D B _ H O S T ' ) , 
 
 
 
     L i n e   1 2 0   [ m a t c h :   W a v e ] : 
 
         1 1 8 :   
 
         1 1 9 :                   ' w a v e _ r o '   = >   [ 
 
   > >   1 2 0 :                           ' d r i v e r '         = >   e n v ( ' W A V E _ D B _ D R I V E R ' ) , 
 
         1 2 1 :                           ' h o s t '             = >   e n v ( ' W A V E _ D B _ H O S T ' ) , 
 
         1 2 2 :                           ' p o r t '             = >   e n v ( ' W A V E _ D B _ P O R T ' ) , 
 
 
 
     L i n e   1 2 1   [ m a t c h :   W a v e ] : 
 
         1 1 9 :                   ' w a v e _ r o '   = >   [ 
 
         1 2 0 :                           ' d r i v e r '         = >   e n v ( ' W A V E _ D B _ D R I V E R ' ) , 
 
   > >   1 2 1 :                           ' h o s t '             = >   e n v ( ' W A V E _ D B _ H O S T ' ) , 
 
         1 2 2 :                           ' p o r t '             = >   e n v ( ' W A V E _ D B _ P O R T ' ) , 
 
         1 2 3 :                           ' d a t a b a s e '     = >   e n v ( ' W A V E _ D B _ D A T A B A S E ' ) , 
 
 
 
     L i n e   1 2 2   [ m a t c h :   W a v e ] : 
 
         1 2 0 :                           ' d r i v e r '         = >   e n v ( ' W A V E _ D B _ D R I V E R ' ) , 
 
         1 2 1 :                           ' h o s t '             = >   e n v ( ' W A V E _ D B _ H O S T ' ) , 
 
   > >   1 2 2 :                           ' p o r t '             = >   e n v ( ' W A V E _ D B _ P O R T ' ) , 
 
         1 2 3 :                           ' d a t a b a s e '     = >   e n v ( ' W A V E _ D B _ D A T A B A S E ' ) , 
 
         1 2 4 :                           ' u s e r n a m e '     = >   e n v ( ' W A V E _ D B _ U S E R N A M E _ R O ' ) , 
 
 
 
     L i n e   1 2 3   [ m a t c h :   W a v e ] : 
 
         1 2 1 :                           ' h o s t '             = >   e n v ( ' W A V E _ D B _ H O S T ' ) , 
 
         1 2 2 :                           ' p o r t '             = >   e n v ( ' W A V E _ D B _ P O R T ' ) , 
 
   > >   1 2 3 :                           ' d a t a b a s e '     = >   e n v ( ' W A V E _ D B _ D A T A B A S E ' ) , 
 
         1 2 4 :                           ' u s e r n a m e '     = >   e n v ( ' W A V E _ D B _ U S E R N A M E _ R O ' ) , 
 
         1 2 5 :                           ' p a s s w o r d '     = >   e n v ( ' W A V E _ D B _ P A S S W O R D _ R O ' ) , 
 
 
 
     L i n e   1 2 4   [ m a t c h :   W a v e ] : 
 
         1 2 2 :                           ' p o r t '             = >   e n v ( ' W A V E _ D B _ P O R T ' ) , 
 
         1 2 3 :                           ' d a t a b a s e '     = >   e n v ( ' W A V E _ D B _ D A T A B A S E ' ) , 
 
   > >   1 2 4 :                           ' u s e r n a m e '     = >   e n v ( ' W A V E _ D B _ U S E R N A M E _ R O ' ) , 
 
         1 2 5 :                           ' p a s s w o r d '     = >   e n v ( ' W A V E _ D B _ P A S S W O R D _ R O ' ) , 
 
         1 2 6 :                           ' c h a r s e t '       = >   ' u t f 8 m b 4 ' , 
 
 
 
     L i n e   1 2 5   [ m a t c h :   W a v e ] : 
 
         1 2 3 :                           ' d a t a b a s e '     = >   e n v ( ' W A V E _ D B _ D A T A B A S E ' ) , 
 
         1 2 4 :                           ' u s e r n a m e '     = >   e n v ( ' W A V E _ D B _ U S E R N A M E _ R O ' ) , 
 
   > >   1 2 5 :                           ' p a s s w o r d '     = >   e n v ( ' W A V E _ D B _ P A S S W O R D _ R O ' ) , 
 
         1 2 6 :                           ' c h a r s e t '       = >   ' u t f 8 m b 4 ' , 
 
         1 2 7 :                           ' c o l l a t i o n '   = >   ' u t f 8 m b 4 _ u n i c o d e _ c i ' , 
 
 
 
     L i n e   2 6 3   [ m a t c h :   W a v e ] : 
 
         2 6 1 :           u n s e t ( $ c o n f [ ' c o n n e c t i o n s ' ] [ ' e p i c o r _ r o ' ] ) ; 
 
         2 6 2 :   } 
 
   > >   2 6 3 :   i f ( i s _ n u l l ( e n v ( ' W A V E _ D B _ H O S T ' ) ) ) 
 
         2 6 4 :   { 
 
         2 6 5 :           u n s e t ( $ c o n f [ ' c o n n e c t i o n s ' ] [ ' w a v e _ r o ' ] ) ; 
 
 
 
     L i n e   2 6 5   [ m a t c h :   W a v e ] : 
 
         2 6 3 :   i f ( i s _ n u l l ( e n v ( ' W A V E _ D B _ H O S T ' ) ) ) 
 
         2 6 4 :   { 
 
   > >   2 6 5 :           u n s e t ( $ c o n f [ ' c o n n e c t i o n s ' ] [ ' w a v e _ r o ' ] ) ; 
 
         2 6 6 :   } 
 
         2 6 7 :   
 
 
 
     L i n e   1 1 9   [ m a t c h :   W A V E ] : 
 
         1 1 7 :   	 	 ] , 
 
         1 1 8 :   
 
   > >   1 1 9 :                   ' w a v e _ r o '   = >   [ 
 
         1 2 0 :                           ' d r i v e r '         = >   e n v ( ' W A V E _ D B _ D R I V E R ' ) , 
 
         1 2 1 :                           ' h o s t '             = >   e n v ( ' W A V E _ D B _ H O S T ' ) , 
 
 
 
     L i n e   1 2 0   [ m a t c h :   W A V E ] : 
 
         1 1 8 :   
 
         1 1 9 :                   ' w a v e _ r o '   = >   [ 
 
   > >   1 2 0 :                           ' d r i v e r '         = >   e n v ( ' W A V E _ D B _ D R I V E R ' ) , 
 
         1 2 1 :                           ' h o s t '             = >   e n v ( ' W A V E _ D B _ H O S T ' ) , 
 
         1 2 2 :                           ' p o r t '             = >   e n v ( ' W A V E _ D B _ P O R T ' ) , 
 
 
 
     L i n e   1 2 1   [ m a t c h :   W A V E ] : 
 
         1 1 9 :                   ' w a v e _ r o '   = >   [ 
 
         1 2 0 :                           ' d r i v e r '         = >   e n v ( ' W A V E _ D B _ D R I V E R ' ) , 
 
   > >   1 2 1 :                           ' h o s t '             = >   e n v ( ' W A V E _ D B _ H O S T ' ) , 
 
         1 2 2 :                           ' p o r t '             = >   e n v ( ' W A V E _ D B _ P O R T ' ) , 
 
         1 2 3 :                           ' d a t a b a s e '     = >   e n v ( ' W A V E _ D B _ D A T A B A S E ' ) , 
 
 
 
     L i n e   1 2 2   [ m a t c h :   W A V E ] : 
 
         1 2 0 :                           ' d r i v e r '         = >   e n v ( ' W A V E _ D B _ D R I V E R ' ) , 
 
         1 2 1 :                           ' h o s t '             = >   e n v ( ' W A V E _ D B _ H O S T ' ) , 
 
   > >   1 2 2 :                           ' p o r t '             = >   e n v ( ' W A V E _ D B _ P O R T ' ) , 
 
         1 2 3 :                           ' d a t a b a s e '     = >   e n v ( ' W A V E _ D B _ D A T A B A S E ' ) , 
 
         1 2 4 :                           ' u s e r n a m e '     = >   e n v ( ' W A V E _ D B _ U S E R N A M E _ R O ' ) , 
 
 
 
     L i n e   1 2 3   [ m a t c h :   W A V E ] : 
 
         1 2 1 :                           ' h o s t '             = >   e n v ( ' W A V E _ D B _ H O S T ' ) , 
 
         1 2 2 :                           ' p o r t '             = >   e n v ( ' W A V E _ D B _ P O R T ' ) , 
 
   > >   1 2 3 :                           ' d a t a b a s e '     = >   e n v ( ' W A V E _ D B _ D A T A B A S E ' ) , 
 
         1 2 4 :                           ' u s e r n a m e '     = >   e n v ( ' W A V E _ D B _ U S E R N A M E _ R O ' ) , 
 
         1 2 5 :                           ' p a s s w o r d '     = >   e n v ( ' W A V E _ D B _ P A S S W O R D _ R O ' ) , 
 
 
 
     L i n e   1 2 4   [ m a t c h :   W A V E ] : 
 
         1 2 2 :                           ' p o r t '             = >   e n v ( ' W A V E _ D B _ P O R T ' ) , 
 
         1 2 3 :                           ' d a t a b a s e '     = >   e n v ( ' W A V E _ D B _ D A T A B A S E ' ) , 
 
   > >   1 2 4 :                           ' u s e r n a m e '     = >   e n v ( ' W A V E _ D B _ U S E R N A M E _ R O ' ) , 
 
         1 2 5 :                           ' p a s s w o r d '     = >   e n v ( ' W A V E _ D B _ P A S S W O R D _ R O ' ) , 
 
         1 2 6 :                           ' c h a r s e t '       = >   ' u t f 8 m b 4 ' , 
 
 
 
     L i n e   1 2 5   [ m a t c h :   W A V E ] : 
 
         1 2 3 :                           ' d a t a b a s e '     = >   e n v ( ' W A V E _ D B _ D A T A B A S E ' ) , 
 
         1 2 4 :                           ' u s e r n a m e '     = >   e n v ( ' W A V E _ D B _ U S E R N A M E _ R O ' ) , 
 
   > >   1 2 5 :                           ' p a s s w o r d '     = >   e n v ( ' W A V E _ D B _ P A S S W O R D _ R O ' ) , 
 
         1 2 6 :                           ' c h a r s e t '       = >   ' u t f 8 m b 4 ' , 
 
         1 2 7 :                           ' c o l l a t i o n '   = >   ' u t f 8 m b 4 _ u n i c o d e _ c i ' , 
 
 
 
     L i n e   2 6 3   [ m a t c h :   W A V E ] : 
 
         2 6 1 :           u n s e t ( $ c o n f [ ' c o n n e c t i o n s ' ] [ ' e p i c o r _ r o ' ] ) ; 
 
         2 6 2 :   } 
 
   > >   2 6 3 :   i f ( i s _ n u l l ( e n v ( ' W A V E _ D B _ H O S T ' ) ) ) 
 
         2 6 4 :   { 
 
         2 6 5 :           u n s e t ( $ c o n f [ ' c o n n e c t i o n s ' ] [ ' w a v e _ r o ' ] ) ; 
 
 
 
     L i n e   2 6 5   [ m a t c h :   W A V E ] : 
 
         2 6 3 :   i f ( i s _ n u l l ( e n v ( ' W A V E _ D B _ H O S T ' ) ) ) 
 
         2 6 4 :   { 
 
   > >   2 6 5 :           u n s e t ( $ c o n f [ ' c o n n e c t i o n s ' ] [ ' w a v e _ r o ' ] ) ; 
 
         2 6 6 :   } 
 
         2 6 7 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ c o n f i g \ d e b u g b a r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 0 9   [ m a t c h :   F R O M   ] : 
 
         1 0 7 :                   ' m e m o r y '                     = >   t r u e ,     / /   M e m o r y   u s a g e 
 
         1 0 8 :                   ' e x c e p t i o n s '             = >   t r u e ,     / /   E x c e p t i o n   d i s p l a y e r 
 
   > >   1 0 9 :                   ' l o g '                           = >   t r u e ,     / /   L o g s   f r o m   M o n o l o g   ( m e r g e d   i n   m e s s a g e s   i f   e n a b l e d ) 
 
         1 1 0 :                   ' d b '                             = >   t r u e ,     / /   S h o w   d a t a b a s e   ( P D O )   q u e r i e s   a n d   b i n d i n g s 
 
         1 1 1 :                   ' v i e w s '                       = >   t r u e ,     / /   V i e w s   w i t h   t h e i r   d a t a 
 
 
 
     L i n e   1 8 7   [ m a t c h :   F R O M   ] : 
 
         1 8 5 :             | 
 
         1 8 6 :             |   S o m e t i m e s   y o u   w a n t   t o   s e t   r o u t e   p r e f i x   t o   b e   u s e d   b y   D e b u g B a r   t o   l o a d 
 
   > >   1 8 7 :             |   i t s   r e s o u r c e s   f r o m .   U s u a l l y   t h e   n e e d   c o m e s   f r o m   m i s c o n f i g u r e d   w e b   s e r v e r   o r 
 
         1 8 8 :             |   f r o m   t r y i n g   t o   o v e r c o m e   b u g s   l i k e   t h i s :   h t t p : / / t r a c . n g i n x . o r g / n g i n x / t i c k e t / 9 7 
 
         1 8 9 :             | 
 
 
 
     L i n e   1 8 8   [ m a t c h :   F R O M   ] : 
 
         1 8 6 :             |   S o m e t i m e s   y o u   w a n t   t o   s e t   r o u t e   p r e f i x   t o   b e   u s e d   b y   D e b u g B a r   t o   l o a d 
 
         1 8 7 :             |   i t s   r e s o u r c e s   f r o m .   U s u a l l y   t h e   n e e d   c o m e s   f r o m   m i s c o n f i g u r e d   w e b   s e r v e r   o r 
 
   > >   1 8 8 :             |   f r o m   t r y i n g   t o   o v e r c o m e   b u g s   l i k e   t h i s :   h t t p : / / t r a c . n g i n x . o r g / n g i n x / t i c k e t / 9 7 
 
         1 8 9 :             | 
 
         1 9 0 :             * / 
 
 
 
     L i n e   1 9 8   [ m a t c h :   F R O M   ] : 
 
         1 9 6 :             | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
         1 9 7 :             | 
 
   > >   1 9 8 :             |   B y   d e f a u l t   D e b u g B a r   r o u t e   s e r v e d   f r o m   t h e   s a m e   d o m a i n   t h a t   r e q u e s t   s e r v e d . 
 
         1 9 9 :             |   T o   o v e r r i d e   d e f a u l t   d o m a i n ,   s p e c i f y   i t   a s   a   n o n - e m p t y   v a l u e . 
 
         2 0 0 :             * / 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ c o n f i g \ d o c t r i n e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7   [ m a t c h :   e p i c o r ] : 
 
         5 :           ' g e n e r a t e E M '   = >   ' a d m ' , 
 
         6 :           ' e x t e r n a l E n t i t i e s '   = >   [ 
 
   > >   7 :                     ' e p i _ I n v c H e a d '   = >   e n v ( ' E P I C O R _ D B _ D A T A B A S E ' ) . ' . E r p . I n v c H e a d ' 
 
         8 :           ] 
 
         9 :   ] ; 
 
 
 
     L i n e   7   [ m a t c h :   E p i c o r ] : 
 
         5 :           ' g e n e r a t e E M '   = >   ' a d m ' , 
 
         6 :           ' e x t e r n a l E n t i t i e s '   = >   [ 
 
   > >   7 :                     ' e p i _ I n v c H e a d '   = >   e n v ( ' E P I C O R _ D B _ D A T A B A S E ' ) . ' . E r p . I n v c H e a d ' 
 
         8 :           ] 
 
         9 :   ] ; 
 
 
 
     L i n e   7   [ m a t c h :   E P I C O R ] : 
 
         5 :           ' g e n e r a t e E M '   = >   ' a d m ' , 
 
         6 :           ' e x t e r n a l E n t i t i e s '   = >   [ 
 
   > >   7 :                     ' e p i _ I n v c H e a d '   = >   e n v ( ' E P I C O R _ D B _ D A T A B A S E ' ) . ' . E r p . I n v c H e a d ' 
 
         8 :           ] 
 
         9 :   ] ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ c o n f i g \ f i l e s y s t e m s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 4   [ m a t c h :   w a v e ] : 
 
         6 2 :                   ] , 
 
         6 3 :   
 
   > >   6 4 :                   ' w a v e '   = >   [ 
 
         6 5 :                           ' d r i v e r '   = >   ' l o c a l ' , 
 
         6 6 :                           ' r o o t '       = >   ' X : \ W a v e \ i a n ' , 
 
 
 
     L i n e   6 6   [ m a t c h :   w a v e ] : 
 
         6 4 :                   ' w a v e '   = >   [ 
 
         6 5 :                           ' d r i v e r '   = >   ' l o c a l ' , 
 
   > >   6 6 :                           ' r o o t '       = >   ' X : \ W a v e \ i a n ' , 
 
         6 7 :                           ' t h r o w '   = >   f a l s e , 
 
         6 8 :                   ] 
 
 
 
     L i n e   6 4   [ m a t c h :   W a v e ] : 
 
         6 2 :                   ] , 
 
         6 3 :   
 
   > >   6 4 :                   ' w a v e '   = >   [ 
 
         6 5 :                           ' d r i v e r '   = >   ' l o c a l ' , 
 
         6 6 :                           ' r o o t '       = >   ' X : \ W a v e \ i a n ' , 
 
 
 
     L i n e   6 6   [ m a t c h :   W a v e ] : 
 
         6 4 :                   ' w a v e '   = >   [ 
 
         6 5 :                           ' d r i v e r '   = >   ' l o c a l ' , 
 
   > >   6 6 :                           ' r o o t '       = >   ' X : \ W a v e \ i a n ' , 
 
         6 7 :                           ' t h r o w '   = >   f a l s e , 
 
         6 8 :                   ] 
 
 
 
     L i n e   6 4   [ m a t c h :   W A V E ] : 
 
         6 2 :                   ] , 
 
         6 3 :   
 
   > >   6 4 :                   ' w a v e '   = >   [ 
 
         6 5 :                           ' d r i v e r '   = >   ' l o c a l ' , 
 
         6 6 :                           ' r o o t '       = >   ' X : \ W a v e \ i a n ' , 
 
 
 
     L i n e   6 6   [ m a t c h :   W A V E ] : 
 
         6 4 :                   ' w a v e '   = >   [ 
 
         6 5 :                           ' d r i v e r '   = >   ' l o c a l ' , 
 
   > >   6 6 :                           ' r o o t '       = >   ' X : \ W a v e \ i a n ' , 
 
         6 7 :                           ' t h r o w '   = >   f a l s e , 
 
         6 8 :                   ] 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ c o n f i g \ i d e - h e l p e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 4 4   [ m a t c h :   F R O M   ] : 
 
         1 4 2 :           | 
 
         1 4 3 :           |   T h e   v a l u e   o f   t h e   a r r a y   i s   a n   a r r a y   o f   t y p e   m a p p i n g s .   K e y   i s   t h e   n a m e   o f   t h e   c u s t o m   t y p e , 
 
   > >   1 4 4 :           |   ( f o r   e x a m p l e ,   " j s o n b "   f r o m   P o s t g r e s   9 . 4 )   a n d   t h e   v a l u e   i s   t h e   n a m e   o f   t h e   c o r r e s p o n d i n g   D o c t r i n e 2   t y p e   ( i n 
 
         1 4 5 :           |   o u r   c a s e   i t   i s   ' j s o n _ a r r a y ' .   D o c t r i n e   t y p e s   a r e   l i s t e d   h e r e : 
 
         1 4 6 :           |   h t t p : / / d o c t r i n e - d b a l . r e a d t h e d o c s . o r g / e n / l a t e s t / r e f e r e n c e / t y p e s . h t m l 
 
 
 
     L i n e   2 0 0   [ m a t c h :   F R O M   ] : 
 
         1 9 8 :           / * 
 
         1 9 9 :           | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
   > >   2 0 0 :           |   I n c l u d e   D o c B l o c k s   f r o m   c l a s s e s 
 
         2 0 1 :           | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
         2 0 2 :           | 
 
 
 
     L i n e   2 0 3   [ m a t c h :   F R O M   ] : 
 
         2 0 1 :           | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
         2 0 2 :           | 
 
   > >   2 0 3 :           |   I n c l u d e   D o c B l o c k s   f r o m   c l a s s e s   t o   a l l o w   a d d i t i o n a l   c o d e   i n s p e c t i o n   f o r 
 
         2 0 4 :           |   m a g i c   m e t h o d s   a n d   p r o p e r t i e s . 
 
         2 0 5 :           | 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ c o n f i g \ l a u t h . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 8   [ m a t c h :   F R O M   ] : 
 
         4 6 :                           $ S u b j e c t s   =   $ a p p - > m a k e ( ' S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ' ) 
 
         4 7 :                                   - > g e t E m ( ' r o ' ) 
 
   > >   4 8 :                                   - > c r e a t e Q u e r y ( " S E L E C T   u . I D   F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   u   I N N E R   J O I N   u . a u t h _ U s e r T y p e   t   W H E R E   u . H a s B e e n D e a c t i v a t e d = 0   A N D   u . I D   < >   : i m p e r s o n a t o r A u t h U s e r I D " ) 
 
         4 9 :                                   - > s e t P a r a m e t e r ( ' i m p e r s o n a t o r A u t h U s e r I D ' ,   $ i m p e r s o n a t o r A u t h U s e r I D ) 
 
         5 0 :                                   - > g e t R e s u l t ( ) ; 
 
 
 
     L i n e   6 7   [ m a t c h :   F R O M   ] : 
 
         6 5 :                           $ S u b j e c t s   =   $ a p p - > m a k e ( ' S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ' ) 
 
         6 6 :                                   - > g e t E m ( ' r o ' ) 
 
   > >   6 7 :                                   - > c r e a t e Q u e r y ( " S E L E C T   u . I D ,   u . E m a i l   F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   u " ) 
 
         6 8 :                                   - > g e t R e s u l t ( ) ; 
 
         6 9 :   
 
 
 
     L i n e   8 6   [ m a t c h :   F R O M   ] : 
 
         8 4 :                   ' e n a b l e d '   = >   e n v ( ' L A U T H _ L D A P _ E N A B L E D ' ,   f a l s e ) , 
 
         8 5 :   
 
   > >   8 6 :                   / /   t h e   a t t r i b u t e   f r o m   a   u s e r ' s   l d a p   p r o f i l e   t o   u t i l i z e   a s   t h e i r   e m a i l   a d d r e s s 
 
         8 7 :                   ' e m a i l _ a t t r i b u t e '   = >   e n v ( ' L A U T H _ L D A P _ E M A I L _ A T T R I B U T E ' ,   ' e m a i l A d d r e s s ' ) , 
 
         8 8 :   
 
 
 
     L i n e   1 2 4   [ m a t c h :   F R O M   ] : 
 
         1 2 2 :                   ' a u t h _ c o d e _ e x p i r a t i o n _ m i n u t e s '   = >   1 0 , 
 
         1 2 3 :   
 
   > >   1 2 4 :                   / /   e n a b l e s   p a s s p o r t   t o   a c c e p t   S S O   r e q u e s t s   f r o m   o t h e r   a p p l i c a t i o n s 
 
         1 2 5 :                   ' i d p _ e n a b l e d '   = >   f a l s e , 
 
         1 2 6 :   
 
 
 
     L i n e   1 3 0   [ m a t c h :   F R O M   ] : 
 
         1 2 8 :                   ' o i d c _ t o k e n _ i d _ m o d e l '   = >   \ S a v v i o r \ L A u t h \ S e r v i c e s \ O I D C \ T o k e n I D M o d e l : : c l a s s , 
 
         1 2 9 :   
 
   > >   1 3 0 :                   / /   w h e n   p a s s p o r t   a c c e p t s   S S O   r e q u e s t s ,   t h e   c l a s s   t h a t   w i l l   e x t r a c t   c l a i m s   f r o m   t h e   t o k e n _ i d _ m o d e l   f o r   t h e   r e s p o n s e ;   d o e s   n o t   n e e d   o v e r r i d d e n   u n l e s s   y o u   n e e d   t o   r e t u r n   v a l u e s   i n   t h e   t o k e n _ i d   r e s p o n s e   o u t s i d e   t h e   o i d c   s p e c 
 
         1 3 1 :                   ' o i d c _ c l a i m s _ e x t r a c t o r '   = >   \ S a v v i o r \ L A u t h \ S e r v i c e s \ O I D C \ C l a i m s E x t r a c t o r : : c l a s s , 
 
         1 3 2 :   
 
 
 
     L i n e   4 8   [ m a t c h :   S E L E C T   ] : 
 
         4 6 :                           $ S u b j e c t s   =   $ a p p - > m a k e ( ' S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ' ) 
 
         4 7 :                                   - > g e t E m ( ' r o ' ) 
 
   > >   4 8 :                                   - > c r e a t e Q u e r y ( " S E L E C T   u . I D   F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   u   I N N E R   J O I N   u . a u t h _ U s e r T y p e   t   W H E R E   u . H a s B e e n D e a c t i v a t e d = 0   A N D   u . I D   < >   : i m p e r s o n a t o r A u t h U s e r I D " ) 
 
         4 9 :                                   - > s e t P a r a m e t e r ( ' i m p e r s o n a t o r A u t h U s e r I D ' ,   $ i m p e r s o n a t o r A u t h U s e r I D ) 
 
         5 0 :                                   - > g e t R e s u l t ( ) ; 
 
 
 
     L i n e   6 7   [ m a t c h :   S E L E C T   ] : 
 
         6 5 :                           $ S u b j e c t s   =   $ a p p - > m a k e ( ' S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ' ) 
 
         6 6 :                                   - > g e t E m ( ' r o ' ) 
 
   > >   6 7 :                                   - > c r e a t e Q u e r y ( " S E L E C T   u . I D ,   u . E m a i l   F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   u " ) 
 
         6 8 :                                   - > g e t R e s u l t ( ) ; 
 
         6 9 :   
 
 
 
     L i n e   4 8   [ m a t c h :   I N N E R   J O I N ] : 
 
         4 6 :                           $ S u b j e c t s   =   $ a p p - > m a k e ( ' S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ' ) 
 
         4 7 :                                   - > g e t E m ( ' r o ' ) 
 
   > >   4 8 :                                   - > c r e a t e Q u e r y ( " S E L E C T   u . I D   F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   u   I N N E R   J O I N   u . a u t h _ U s e r T y p e   t   W H E R E   u . H a s B e e n D e a c t i v a t e d = 0   A N D   u . I D   < >   : i m p e r s o n a t o r A u t h U s e r I D " ) 
 
         4 9 :                                   - > s e t P a r a m e t e r ( ' i m p e r s o n a t o r A u t h U s e r I D ' ,   $ i m p e r s o n a t o r A u t h U s e r I D ) 
 
         5 0 :                                   - > g e t R e s u l t ( ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ c o n f i g \ s a n c t u m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 2   [ m a t c h :   F R O M   ] : 
 
         1 0 :           | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
         1 1 :           | 
 
   > >   1 2 :           |   R e q u e s t s   f r o m   t h e   f o l l o w i n g   d o m a i n s   /   h o s t s   w i l l   r e c e i v e   s t a t e f u l   A P I 
 
         1 3 :           |   a u t h e n t i c a t i o n   c o o k i e s .   T y p i c a l l y ,   t h e s e   s h o u l d   i n c l u d e   y o u r   l o c a l 
 
         1 4 :           |   a n d   p r o d u c t i o n   d o m a i n s   w h i c h   a c c e s s   y o u r   A P I   v i a   a   f r o n t e n d   S P A . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ c o n f i g \ s e s s i o n . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 1 1   [ m a t c h :   F R O M   ] : 
 
         1 0 9 :           | 
 
         1 1 0 :           |   S o m e   s e s s i o n   d r i v e r s   m u s t   m a n u a l l y   s w e e p   t h e i r   s t o r a g e   l o c a t i o n   t o   g e t 
 
   > >   1 1 1 :           |   r i d   o f   o l d   s e s s i o n s   f r o m   s t o r a g e .   H e r e   a r e   t h e   c h a n c e s   t h a t   i t   w i l l 
 
         1 1 2 :           |   h a p p e n   o n   a   g i v e n   r e q u e s t .   B y   d e f a u l t ,   t h e   o d d s   a r e   2   o u t   o f   1 0 0 . 
 
         1 1 3 :           | 
 
 
 
     L i n e   1 6 7   [ m a t c h :   F R O M   ] : 
 
         1 6 5 :           |   B y   s e t t i n g   t h i s   o p t i o n   t o   t r u e ,   s e s s i o n   c o o k i e s   w i l l   o n l y   b e   s e n t   b a c k 
 
         1 6 6 :           |   t o   t h e   s e r v e r   i f   t h e   b r o w s e r   h a s   a   H T T P S   c o n n e c t i o n .   T h i s   w i l l   k e e p 
 
   > >   1 6 7 :           |   t h e   c o o k i e   f r o m   b e i n g   s e n t   t o   y o u   w h e n   i t   c a n ' t   b e   d o n e   s e c u r e l y . 
 
         1 6 8 :           | 
 
         1 6 9 :           * / 
 
 
 
     L i n e   1 7 8   [ m a t c h :   F R O M   ] : 
 
         1 7 6 :           | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
         1 7 7 :           | 
 
   > >   1 7 8 :           |   S e t t i n g   t h i s   v a l u e   t o   t r u e   w i l l   p r e v e n t   J a v a S c r i p t   f r o m   a c c e s s i n g   t h e 
 
         1 7 9 :           |   v a l u e   o f   t h e   c o o k i e   a n d   t h e   c o o k i e   w i l l   o n l y   b e   a c c e s s i b l e   t h r o u g h 
 
         1 8 0 :           |   t h e   H T T P   p r o t o c o l .   Y o u   a r e   f r e e   t o   m o d i f y   t h i s   o p t i o n   i f   n e e d e d . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ c o n f i g \ v i e w . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 0   [ m a t c h :   F R O M   ] : 
 
         8 :           | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
         9 :           | 
 
   > >   1 0 :           |   M o s t   t e m p l a t i n g   s y s t e m s   l o a d   t e m p l a t e s   f r o m   d i s k .   H e r e   y o u   m a y   s p e c i f y 
 
         1 1 :           |   a n   a r r a y   o f   p a t h s   t h a t   s h o u l d   b e   c h e c k e d   f o r   y o u r   v i e w s .   O f   c o u r s e 
 
         1 2 :           |   t h e   u s u a l   L a r a v e l   v i e w   p a t h   h a s   a l r e a d y   b e e n   r e g i s t e r e d   f o r   y o u . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ c o m m o n \ l i b \ C o l l e c t i o n \ A b s t r a c t C o l l e c t i o n . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 1   [ m a t c h :   F R O M   ] : 
 
         4 9 :   	 	 p u b l i c   f u n c t i o n   o f f s e t S e t ( $ o f f s e t ,   $ v a l u e ) 
 
         5 0 :   	 	 { 
 
   > >   5 1 :   	 	 	 t h r o w   n e w   \ E x c e p t i o n ( ' C o l l e c t i o n   c a n n o t   b e   m o d i f i e d   a t   s p e c i f i c   o f f s e t ;   p l e a s e   u s e   a d d I t e m ( )   a n d   u n s e t ( )   t o   a d d   o r   r e m o v e   i t e m s   f r o m   t h e   c o l l e c t i o n ' ) ; 
 
         5 2 :   	 	 } 
 
         5 3 :   	 	 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ c o m m o n \ l i b \ K e n d o H e l p e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 3   [ m a t c h :   F R O M   ] : 
 
         2 1 :                   s w i t c h   ( $ p h p T o k e n ) 
 
         2 2 :                   { 
 
   > >   2 3 :                           c a s e   ' j ' :   / /   T h e   d a y   o f   t h e   m o n t h ,   f r o m   1   t h r o u g h   3 1 
 
         2 4 :                                   r e t u r n   ' d ' ; 
 
         2 5 :                           c a s e   ' d ' :   / /   T h e   d a y   o f   t h e   m o n t h ,   f r o m   0 1   t h r o u g h   3 1 . 
 
 
 
     L i n e   2 5   [ m a t c h :   F R O M   ] : 
 
         2 3 :                           c a s e   ' j ' :   / /   T h e   d a y   o f   t h e   m o n t h ,   f r o m   1   t h r o u g h   3 1 
 
         2 4 :                                   r e t u r n   ' d ' ; 
 
   > >   2 5 :                           c a s e   ' d ' :   / /   T h e   d a y   o f   t h e   m o n t h ,   f r o m   0 1   t h r o u g h   3 1 . 
 
         2 6 :                                   r e t u r n   ' d d ' ; 
 
         2 7 :                           c a s e   ' D ' :   / /   T h e   a b b r e v i a t e d   n a m e   o f   t h e   d a y   o f   t h e   w e e k . 
 
 
 
     L i n e   3 1   [ m a t c h :   F R O M   ] : 
 
         2 9 :                           c a s e   ' l ' :   / /   T h e   f u l l   n a m e   o f   t h e   d a y   o f   t h e   w e e k . 
 
         3 0 :                                   r e t u r n   ' d d d d ' ; 
 
   > >   3 1 :                           c a s e   ' n ' :   / /   T h e   m o n t h ,   f r o m   1   t h r o u g h   1 2 . 
 
         3 2 :                                   r e t u r n   ' M ' ; 
 
         3 3 :                           c a s e   ' m ' :   / /   T h e   m o n t h ,   f r o m   0 1   t h r o u g h   1 2 . 
 
 
 
     L i n e   3 3   [ m a t c h :   F R O M   ] : 
 
         3 1 :                           c a s e   ' n ' :   / /   T h e   m o n t h ,   f r o m   1   t h r o u g h   1 2 . 
 
         3 2 :                                   r e t u r n   ' M ' ; 
 
   > >   3 3 :                           c a s e   ' m ' :   / /   T h e   m o n t h ,   f r o m   0 1   t h r o u g h   1 2 . 
 
         3 4 :                                   r e t u r n   ' M M ' ; 
 
         3 5 :                           c a s e   ' M ' :   / /   T h e   a b b r e v i a t e d   n a m e   o f   t h e   m o n t h . 
 
 
 
     L i n e   3 9   [ m a t c h :   F R O M   ] : 
 
         3 7 :                           c a s e   ' F ' :   / /   T h e   f u l l   n a m e   o f   t h e   m o n t h . 
 
         3 8 :                                   r e t u r n   ' M M M M ' ; 
 
   > >   3 9 :                           c a s e   ' g ' :   / /   T h e   h o u r ,   u s i n g   a   1 2 - h o u r   c l o c k   f r o m   1   t o   1 2 . 
 
         4 0 :                                   r e t u r n   ' h ' ; 
 
         4 1 :                           c a s e   ' h ' :   / /   T h e   h o u r ,   u s i n g   a   1 2 - h o u r   c l o c k   f r o m   0 1   t o   1 2 . 
 
 
 
     L i n e   4 1   [ m a t c h :   F R O M   ] : 
 
         3 9 :                           c a s e   ' g ' :   / /   T h e   h o u r ,   u s i n g   a   1 2 - h o u r   c l o c k   f r o m   1   t o   1 2 . 
 
         4 0 :                                   r e t u r n   ' h ' ; 
 
   > >   4 1 :                           c a s e   ' h ' :   / /   T h e   h o u r ,   u s i n g   a   1 2 - h o u r   c l o c k   f r o m   0 1   t o   1 2 . 
 
         4 2 :                                   r e t u r n   ' h h ' ; 
 
         4 3 :                           c a s e   ' G ' :   / /   T h e   h o u r ,   u s i n g   a   2 4 - h o u r   c l o c k   f r o m   1   t o   2 3 . 
 
 
 
     L i n e   4 3   [ m a t c h :   F R O M   ] : 
 
         4 1 :                           c a s e   ' h ' :   / /   T h e   h o u r ,   u s i n g   a   1 2 - h o u r   c l o c k   f r o m   0 1   t o   1 2 . 
 
         4 2 :                                   r e t u r n   ' h h ' ; 
 
   > >   4 3 :                           c a s e   ' G ' :   / /   T h e   h o u r ,   u s i n g   a   2 4 - h o u r   c l o c k   f r o m   1   t o   2 3 . 
 
         4 4 :                                   r e t u r n   ' H ' ; 
 
         4 5 :                           c a s e   ' H ' :   / /   T h e   h o u r ,   u s i n g   a   2 4 - h o u r   c l o c k   f r o m   0 1   t o   2 3 . 
 
 
 
     L i n e   4 5   [ m a t c h :   F R O M   ] : 
 
         4 3 :                           c a s e   ' G ' :   / /   T h e   h o u r ,   u s i n g   a   2 4 - h o u r   c l o c k   f r o m   1   t o   2 3 . 
 
         4 4 :                                   r e t u r n   ' H ' ; 
 
   > >   4 5 :                           c a s e   ' H ' :   / /   T h e   h o u r ,   u s i n g   a   2 4 - h o u r   c l o c k   f r o m   0 1   t o   2 3 . 
 
         4 6 :                                   r e t u r n   ' H H ' ; 
 
         4 7 :                           c a s e   ' i ' :   / /   T h e   m i n u t e ,   f r o m   0 0   t h r o u g h   5 9 . 
 
 
 
     L i n e   4 7   [ m a t c h :   F R O M   ] : 
 
         4 5 :                           c a s e   ' H ' :   / /   T h e   h o u r ,   u s i n g   a   2 4 - h o u r   c l o c k   f r o m   0 1   t o   2 3 . 
 
         4 6 :                                   r e t u r n   ' H H ' ; 
 
   > >   4 7 :                           c a s e   ' i ' :   / /   T h e   m i n u t e ,   f r o m   0 0   t h r o u g h   5 9 . 
 
         4 8 :                                   r e t u r n   ' m m ' ; 
 
         4 9 :                           c a s e   ' s ' :   / /   T h e   s e c o n d ,   f r o m   0 0   t h r o u g h   5 9 . 
 
 
 
     L i n e   4 9   [ m a t c h :   F R O M   ] : 
 
         4 7 :                           c a s e   ' i ' :   / /   T h e   m i n u t e ,   f r o m   0 0   t h r o u g h   5 9 . 
 
         4 8 :                                   r e t u r n   ' m m ' ; 
 
   > >   4 9 :                           c a s e   ' s ' :   / /   T h e   s e c o n d ,   f r o m   0 0   t h r o u g h   5 9 . 
 
         5 0 :                                   r e t u r n   ' s s ' ; 
 
         5 1 :                           c a s e   ' a ' :   / /   T h e   A M / P M   d e s i g n a t o r . 
 
 
 
     L i n e   5 4   [ m a t c h :   F R O M   ] : 
 
         5 2 :                           c a s e   ' A ' : 
 
         5 3 :                                   r e t u r n   ' t t ' ; 
 
   > >   5 4 :                           c a s e   ' y ' :   / /   T h e   l a s t   t w o   c h a r a c t e r s   f r o m   y e a r   v a l u e . 
 
         5 5 :                                   r e t u r n   ' y y ' ; 
 
         5 6 :                           c a s e   ' Y ' :   / /   T h e   y e a r   f u l l   v a l u e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ c o m m o n \ l i b \ L a n g u a g e H e l p e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 6 8   [ m a t c h :   F R O M   ] : 
 
         1 6 6 :           / * * 
 
         1 6 7 :             *   R e t u r n s   t h e   W i n d o w s   l o c a l e   e q u i v a l i e n t ( s )   f o r   a   u n i x   l o c a l e 
 
   > >   1 6 8 :             *   C o m p i l e d   f r o m   t h i s   r e s o u r c e :   h t t p : / / w w w . s c i e n c e . c o . i l / L a n g u a g e / L o c a l e - c o d e s . a s p 
 
         1 6 9 :             * 
 
         1 7 0 :             *   @ p a r a m   s t r i n g   $ n i x L o c a l e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ c o m m o n \ l i b \ M o m e n t H e l p e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 6   [ m a t c h :   F R O M   ] : 
 
         4 4 :                           ' U '   = >   ' X ' , 
 
         4 5 :                           ' u '   = >   ' S S S S S S ' ,   / /   m i c r o s e c o n d s 
 
   > >   4 6 :                           ' v '   = >   ' S S S ' ,         / /   m i l l i s e c o n d s   ( f r o m   P H P   7 . 0 . 0 ) 
 
         4 7 :                           ' W '   = >   ' W ' ,             / /   f o r   t h e   s a k e   o f   e s c a p i n g   b e l o w 
 
         4 8 :                           ' w '   = >   ' e ' , 
 
 
 
     L i n e   5 6   [ m a t c h :   F R O M   ] : 
 
         5 4 :   
 
         5 5 :                   / /   C o n v e r t s   e s c a p e d   c h a r a c t e r s . 
 
   > >   5 6 :                   f o r e a c h   ( $ r e p l a c e m e n t s   a s   $ f r o m   = >   $ t o )   { 
 
         5 7 :                           $ r e p l a c e m e n t s [ ' \ \ '   .   $ f r o m ]   =   ' [ '   .   $ f r o m   .   ' ] ' ; 
 
         5 8 :                   } 
 
 
 
     L i n e   5 7   [ m a t c h :   F R O M   ] : 
 
         5 5 :                   / /   C o n v e r t s   e s c a p e d   c h a r a c t e r s . 
 
         5 6 :                   f o r e a c h   ( $ r e p l a c e m e n t s   a s   $ f r o m   = >   $ t o )   { 
 
   > >   5 7 :                           $ r e p l a c e m e n t s [ ' \ \ '   .   $ f r o m ]   =   ' [ '   .   $ f r o m   .   ' ] ' ; 
 
         5 8 :                   } 
 
         5 9 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ d a t a \ l i b \ D r i v e r \ F a c t o r y \ D o c t r i n e D r i v e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 5 5   [ m a t c h :   - > s e l e c t ( ] : 
 
         1 5 3 :                                           t h r o w   n e w   D r i v e r E x c e p t i o n ( ' T o   f i l t e r   m u l t i - r e c o r d   r e s u l t s   a g a i n s t   a   " T o M a n y "   r e l a t e d   d a t a - p o i n t ,   y o u r   s o u r c e   e n t i t y   c a n n o t   h a v e   a   c o m p o s i t e   p r i m a r y   k e y ' ) ; 
 
         1 5 4 :                                   $ s e l e c t F i l t e r s O n D B K e y   =   t i m e ( ) . ' _ f i l t e r _ ' . s h a 1 ( u n i q i d ( ' ' , t r u e ) ) ; 
 
   > >   1 5 5 :                                   $ f i l t e r Q u e r y - > s e l e c t ( ' d i s t i n c t   ' . $ t h i s - > _ g e t S e l e c t S t r i n g F o r S o u r c e P K s ( f a l s e ) . " ,   ' $ s e l e c t F i l t e r s O n D B K e y ' " ) ; 
 
         1 5 6 :   
 
         1 5 7 :                                   $ b l o c k   =   1 ; 
 
 
 
     L i n e   1 6 2   [ m a t c h :   - > s e l e c t ( ] : 
 
         1 6 0 :                           e l s e 
 
         1 6 1 :                           { 
 
   > >   1 6 2 :                                   $ f i l t e r Q u e r y - > s e l e c t ( $ t h i s - > _ g e t S e l e c t S t r i n g F o r S o u r c e P K s ( ) ) ; 
 
         1 6 3 :   
 
         1 6 4 :                                   $ b l o c k   =   2 ; 
 
 
 
     L i n e   2 4 7   [ m a t c h :   - > s e l e c t ( ] : 
 
         2 4 5 :                                   / /   g e t   t o t a l   r e c o r d s e t   c o u n t 
 
         2 4 6 :                                   $ c o u n t Q u e r y   =   $ t h i s - > _ e m ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
   > >   2 4 7 :                                   $ c o u n t Q u e r y - > s e l e c t ( ' C O U N T ( ' . $ t h i s - > q u e r y S o u r c e A l i a s . ' . ' . $ t h i s - > q u e r y S o u r c e K e y s [ 0 ] . ' ) ' ) ; 
 
         2 4 8 :                                   $ c o u n t Q u e r y - > f r o m ( $ t h i s - > e n t i t y N a m e s p a c e . $ t h i s - > q u e r y S o u r c e , $ t h i s - > q u e r y S o u r c e A l i a s ) ; 
 
         2 4 9 :                                   i f ( s i z e o f ( $ t h i s - > c u r r e n t F i l t e r G r o u p s )   & &   s i z e o f ( $ t h i s - > c u r r e n t F i l t e r J o i n s )   & &   ! $ h a s T o M a n y F i l t e r J o i n s ) 
 
 
 
     L i n e   2 7 2   [ m a t c h :   - > s e l e c t ( ] : 
 
         2 7 0 :                                   / /   n o w   g e t   p a g e d   r e s u l t s 
 
         2 7 1 :                                   $ o r d e r Q u e r y   =   $ t h i s - > _ e m ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
   > >   2 7 2 :                                   $ o r d e r Q u e r y - > s e l e c t ( " d i s t i n c t   " . $ t h i s - > _ g e t S e l e c t S t r i n g F o r S o u r c e P K s ( ) ) ; 
 
         2 7 3 :                                   $ o r d e r Q u e r y - > f r o m ( $ t h i s - > e n t i t y N a m e s p a c e . $ t h i s - > q u e r y S o u r c e , $ t h i s - > q u e r y S o u r c e A l i a s ) ; 
 
         2 7 4 :                                   $ c a n t J o i n F o r O r d e r B y   =   $ t h i s - > _ g e t J o i n s T h a t A r e T o M a n y O r J o i n e d T h r o u g h T o M a n y ( ) ; 
 
 
 
     L i n e   3 8 8   [ m a t c h :   - > s e l e c t ( ] : 
 
         3 8 6 :   
 
         3 8 7 :   
 
   > >   3 8 8 :                                   $ s e l e c t Q u e r y - > s e l e c t ( $ t h i s - > _ g e t S e l e c t S t r i n g F r o m C u r r e n t S e l e c t s ( f a l s e ) ) ; 
 
         3 8 9 :                                   $ s e l e c t Q u e r y - > f r o m ( $ t h i s - > e n t i t y N a m e s p a c e . $ t h i s - > q u e r y S o u r c e , $ t h i s - > q u e r y S o u r c e A l i a s ) ; 
 
         3 9 0 :                                   i f ( s i z e o f ( $ t h i s - > c u r r e n t F i l t e r G r o u p s )   & &   s i z e o f ( $ t h i s - > c u r r e n t F i l t e r J o i n s )   & &   ! $ h a s T o M a n y F i l t e r J o i n s ) 
 
 
 
     L i n e   1 9 2   [ m a t c h :   F R O M   ] : 
 
         1 9 0 :   
 
         1 9 1 :   
 
   > >   1 9 2 :                                   $ f i l t e r Q u e r y S Q L   =   ' I N S E R T   I N T O   ' . $ t h i s - > m e m o r y T a b l e . '   ( ' . $ t h i s - > m e m o r y T a b l e I D . ' ,   ' . $ t h i s - > m e m o r y T a b l e S e a r c h I D . ' )   S E L E C T   ' . $ t h i s - > q u e r y S o u r c e K e y s [ a r r a y _ k e y s ( $ t h i s - > q u e r y S o u r c e K e y s ) [ 0 ] ] . ' _ 0 ,   s c l r _ 1   F R O M   ( ' . $ f i l t e r Q u e r y S Q L . ' )   a ' ; 
 
         1 9 3 :                                   $ f i l t e r Q u e r y P a r a m s   =   [ ] ; 
 
         1 9 4 :                                   / *   @ v a r   $ P a r a m   \ D o c t r i n e \ O R M \ Q u e r y \ P a r a m e t e r   * / 
 
 
 
     L i n e   2 3 7   [ m a t c h :   F R O M   ] : 
 
         2 3 5 :                   / /   i f   r u n n i n g   a   s e p a r a t e   r e c o r d   f i l t e r   q u e r y ,   a n d   t h a t   e n t i t y   h a s   m u l t i i p l e   P K   f i e l d s ,   w i l l   h a v e   t o   u s e   O R s   w i t h   A N D s   o n   t h e   k e y s   i n s t e a d   o f   a n   " I N " 
 
         2 3 6 :                   i f ( i s s e t ( $ s e l e c t F i l t e r s )   & &   ! s i z e o f ( $ s e l e c t F i l t e r s ) ) 
 
   > >   2 3 7 :                   {   / /   s e p a r a t e   f i l t e r   q u e r y   w a s   r u n ,   b u t   n o   r e c o r d s   w e r e   r e t u r n e d   f r o m   i t 
 
         2 3 8 :                           $ R e c o r d s e t   =   [ ] ; 
 
         2 3 9 :                   } 
 
 
 
     L i n e   5 1 8   [ m a t c h :   F R O M   ] : 
 
         5 1 6 :                   i f ( s i z e o f ( $ t h i s - > c u r r e n t F i l t e r G r o u p s [ ' r o o t ' ] - > f i l t e r s )   >   1 ) 
 
         5 1 7 :                           $ w h e r e E x p r   =   $ t h i s - > _ a p p l y C u r r e n t F i l t e r s P a r t ( $ q u e r y ,   $ t h i s - > c u r r e n t F i l t e r G r o u p s [ ' r o o t ' ] ,   $ c u r r e n t P a r a m e t e r P o s i t i o n ) ; 
 
   > >   5 1 8 :                   e l s e   / /   t h e   d a t a   f a c t o r y   a l w a y s   c r e a t e s   a   r o o t   g r o u p ;   s o   i f   t h e r e ' s   o n l y   a   s i n g l e   i t e m   u n d e r   t h e   g r o u p ,   d o   n o t   i n c l u d e   t h e   g r o u p i n g   l o g i c   f r o m   t h e   r o o t   g r o u p 
 
         5 1 9 :                   { 
 
         5 2 0 :                           $ S i n g l e F i l t e r   =   $ t h i s - > c u r r e n t F i l t e r G r o u p s [ ' r o o t ' ] - > f i l t e r s [ 0 ] ; 
 
 
 
     L i n e   7 9 2   [ m a t c h :   F R O M   ] : 
 
         7 9 0 :           p r i v a t e   f u n c t i o n   _ d e l e t e Q u e r y S e a r c h R e s u l t s O n D B ( $ s e a r c h _ i d ) 
 
         7 9 1 :           { 
 
   > >   7 9 2 :                   $ t h i s - > _ e m ( ) - > g e t C o n n e c t i o n ( ) - > e x e c u t e Q u e r y ( " D E L E T E   F R O M   " . $ t h i s - > m e m o r y T a b l e . "   W H E R E   " . $ t h i s - > m e m o r y T a b l e S e a r c h I D . "   =   ? " ,   [ $ s e a r c h _ i d ] ) ; 
 
         7 9 3 :           } 
 
         7 9 4 :   
 
 
 
     L i n e   5 7   [ m a t c h :   S E L E C T   ] : 
 
         5 5 :           { 
 
         5 6 :                   i f ( $ t y p e   ! = =   ' l e f t ' ) 
 
   > >   5 7 :                           t h r o w   n e w   D r i v e r E x c e p t i o n ( ' d o c t r i n e   a d d S e l e c t J o i n T o C u r r e n t Q u e r y   c u r r e n t l y   o n l y   s u p p o r t s   l e f t   j o i n s   i n   s e l e c t   d u e   t o   u s e - c a s e   w h e r e   j o i n s   c a n   b e   m e r g e d   f o r   n o n - t o M a n y   f i l t e r i n g   a n d   n o   m e r g i n g   s t r a t e g y   c o d e d   t o   d i s c e r n   w h a t   t y p e   w i n s ' ) ; 
 
         5 8 :   
 
         5 9 :                   $ j o i n A l i a s   =   $ e n t i t y S e l e c t Q u e r y A l i a s . ' _ ' . $ j o i n T o ; 
 
 
 
     L i n e   1 9 2   [ m a t c h :   S E L E C T   ] : 
 
         1 9 0 :   
 
         1 9 1 :   
 
   > >   1 9 2 :                                   $ f i l t e r Q u e r y S Q L   =   ' I N S E R T   I N T O   ' . $ t h i s - > m e m o r y T a b l e . '   ( ' . $ t h i s - > m e m o r y T a b l e I D . ' ,   ' . $ t h i s - > m e m o r y T a b l e S e a r c h I D . ' )   S E L E C T   ' . $ t h i s - > q u e r y S o u r c e K e y s [ a r r a y _ k e y s ( $ t h i s - > q u e r y S o u r c e K e y s ) [ 0 ] ] . ' _ 0 ,   s c l r _ 1   F R O M   ( ' . $ f i l t e r Q u e r y S Q L . ' )   a ' ; 
 
         1 9 3 :                                   $ f i l t e r Q u e r y P a r a m s   =   [ ] ; 
 
         1 9 4 :                                   / *   @ v a r   $ P a r a m   \ D o c t r i n e \ O R M \ Q u e r y \ P a r a m e t e r   * / 
 
 
 
     L i n e   3 7 5   [ m a t c h :   S E L E C T   ] : 
 
         3 7 3 :                           e l s e 
 
         3 7 4 :                           { 
 
   > >   3 7 5 :                                   / /   f i n a l   q u e r y   t o   s e l e c t   r e q u e s t e d   f i e l d s 
 
         3 7 6 :                                   $ s e l e c t Q u e r y   =   $ t h i s - > _ e m ( ) - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
         3 7 7 :   
 
 
 
     L i n e   1 9 2   [ m a t c h :   I N S E R T   I N T O ] : 
 
         1 9 0 :   
 
         1 9 1 :   
 
   > >   1 9 2 :                                   $ f i l t e r Q u e r y S Q L   =   ' I N S E R T   I N T O   ' . $ t h i s - > m e m o r y T a b l e . '   ( ' . $ t h i s - > m e m o r y T a b l e I D . ' ,   ' . $ t h i s - > m e m o r y T a b l e S e a r c h I D . ' )   S E L E C T   ' . $ t h i s - > q u e r y S o u r c e K e y s [ a r r a y _ k e y s ( $ t h i s - > q u e r y S o u r c e K e y s ) [ 0 ] ] . ' _ 0 ,   s c l r _ 1   F R O M   ( ' . $ f i l t e r Q u e r y S Q L . ' )   a ' ; 
 
         1 9 3 :                                   $ f i l t e r Q u e r y P a r a m s   =   [ ] ; 
 
         1 9 4 :                                   / *   @ v a r   $ P a r a m   \ D o c t r i n e \ O R M \ Q u e r y \ P a r a m e t e r   * / 
 
 
 
     L i n e   7 9 2   [ m a t c h :   D E L E T E   F R O M ] : 
 
         7 9 0 :           p r i v a t e   f u n c t i o n   _ d e l e t e Q u e r y S e a r c h R e s u l t s O n D B ( $ s e a r c h _ i d ) 
 
         7 9 1 :           { 
 
   > >   7 9 2 :                   $ t h i s - > _ e m ( ) - > g e t C o n n e c t i o n ( ) - > e x e c u t e Q u e r y ( " D E L E T E   F R O M   " . $ t h i s - > m e m o r y T a b l e . "   W H E R E   " . $ t h i s - > m e m o r y T a b l e S e a r c h I D . "   =   ? " ,   [ $ s e a r c h _ i d ] ) ; 
 
         7 9 3 :           } 
 
         7 9 4 :   
 
 
 
     L i n e   5 7   [ m a t c h :   L E F T   J O I N ] : 
 
         5 5 :           { 
 
         5 6 :                   i f ( $ t y p e   ! = =   ' l e f t ' ) 
 
   > >   5 7 :                           t h r o w   n e w   D r i v e r E x c e p t i o n ( ' d o c t r i n e   a d d S e l e c t J o i n T o C u r r e n t Q u e r y   c u r r e n t l y   o n l y   s u p p o r t s   l e f t   j o i n s   i n   s e l e c t   d u e   t o   u s e - c a s e   w h e r e   j o i n s   c a n   b e   m e r g e d   f o r   n o n - t o M a n y   f i l t e r i n g   a n d   n o   m e r g i n g   s t r a t e g y   c o d e d   t o   d i s c e r n   w h a t   t y p e   w i n s ' ) ; 
 
         5 8 :   
 
         5 9 :                   $ j o i n A l i a s   =   $ e n t i t y S e l e c t Q u e r y A l i a s . ' _ ' . $ j o i n T o ; 
 
 
 
     L i n e   9 5   [ m a t c h :   L E F T   J O I N ] : 
 
         9 3 :           { 
 
         9 4 :                   i f ( $ t y p e   ! = =   ' l e f t ' ) 
 
   > >   9 5 :                           t h r o w   n e w   D r i v e r E x c e p t i o n ( ' d o c t r i n e   a d d S e l e c t J o i n T o C u r r e n t Q u e r y   c u r r e n t l y   o n l y   s u p p o r t s   l e f t   j o i n s   i n   f i l t e r   d u e   t o   u s e - c a s e   w h e r e   j o i n s   c a n   b e   m e r g e d   f o r   n o n - t o M a n y   f i l t e r i n g   a n d   n o   m e r g i n g   s t r a t e g y   c o d e d   t o   d i s c e r n   w h a t   t y p e   w i n s ' ) ; 
 
         9 6 :   
 
         9 7 :                   $ j o i n A l i a s   =   $ e n t i t y F i l t e r Q u e r y A l i a s . ' _ ' . $ j o i n T o ; 
 
 
 
     L i n e   1 7 7   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         1 7 5 :   
 
         1 7 6 :                                   t r y   { 
 
   > >   1 7 7 :                                           $ f i l t e r Q u e r y S Q L   =   $ f i l t e r Q u e r y - > g e t Q u e r y ( ) - > g e t S Q L ( ) ; 
 
         1 7 8 :                                   } 
 
         1 7 9 :                                   c a t c h   ( \ T h r o w a b l e   $ e ) 
 
 
 
     L i n e   2 3 1   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         2 2 9 :                           e l s e 
 
         2 3 0 :                           { 
 
   > >   2 3 1 :                                   $ s e l e c t F i l t e r s   =   $ f i l t e r Q u e r y - > g e t Q u e r y ( ) - > g e t R e s u l t ( Q u e r y : : H Y D R A T E _ A R R A Y ) ; 
 
         2 3 2 :                           } 
 
         2 3 3 :                   } 
 
 
 
     L i n e   2 6 8   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         2 6 6 :                                           $ t h i s - > _ a p p l y C u r r e n t F i l t e r s ( $ c o u n t Q u e r y ) ; 
 
         2 6 7 :                                   } 
 
   > >   2 6 8 :                                   $ p a g e d T o t a l R e c o r d s e t C o u n t   =   $ c o u n t Q u e r y - > g e t Q u e r y ( ) - > g e t S i n g l e S c a l a r R e s u l t ( ) ; 
 
         2 6 9 :   
 
         2 7 0 :                                   / /   n o w   g e t   p a g e d   r e s u l t s 
 
 
 
     L i n e   3 2 5   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         3 2 3 :   
 
         3 2 4 :   
 
   > >   3 2 5 :                                   / /     d d ( $ o r d e r Q u e r y - > g e t Q u e r y ( ) - > g e t S Q L ( ) ) ; 
 
         3 2 6 :   
 
         3 2 7 :                                   i f ( ! i s _ n u l l ( $ t h i s - > p a g i n g C o u n t ) ) 
 
 
 
     L i n e   3 3 4   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         3 3 2 :                                   t r y   { 
 
         3 3 3 :   
 
   > >   3 3 4 :                                           $ s e l e c t F i l t e r s   =   $ o r d e r Q u e r y - > g e t Q u e r y ( ) - > g e t R e s u l t ( Q u e r y : : H Y D R A T E _ A R R A Y ) ; 
 
         3 3 5 :   
 
         3 3 6 :                                           $ k e y s B y I D   =   a r r a y _ f l i p ( $ t h i s - > q u e r y S o u r c e K e y s ) ; 
 
 
 
     L i n e   3 5 9   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         3 5 7 :                                           t h r o w   $ e ; 
 
         3 5 8 :   
 
   > >   3 5 9 :                                           d d ( " Q U E R Y   1 " , $ t h i s - > q u e r y S o u r c e K e y s ,   $ t h i s - > c u r r e n t S e l e c t O r d e r B y s , $ t h i s - > _ g e t S e l e c t S t r i n g F o r S o u r c e P K s ( ) ,   $ t h i s - > q u e r y S o u r c e A l i a s , $ t h i s - > q u e r y S o u r c e K e y s ,   $ o r d e r Q u e r y - > g e t Q u e r y ( ) - > g e t S Q L ( ) , $ e ) ; 
 
         3 6 0 :                                   } 
 
         3 6 1 :   
 
 
 
     L i n e   4 3 7   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         4 3 5 :                                   } 
 
         4 3 6 :                                   t r y   { 
 
   > >   4 3 7 :                                           $ R e c o r d s e t   =   $ s e l e c t Q u e r y - > g e t Q u e r y ( ) - > g e t R e s u l t ( Q u e r y : : H Y D R A T E _ A R R A Y ) ; 
 
         4 3 8 :                                   } 
 
         4 3 9 :                                   c a t c h ( \ T h r o w a b l e   $ e ) 
 
 
 
     L i n e   4 4 4   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         4 4 2 :                                           t h r o w   $ e ; 
 
         4 4 3 :   
 
   > >   4 4 4 :                                           $ q u e r y   =   $ s e l e c t Q u e r y - > g e t Q u e r y ( ) ; 
 
         4 4 5 :   
 
         4 4 6 :                                           / / d d (   $ q u e r y - > g e t P a r a m e t e r s ( ) ) ; 
 
 
 
     L i n e   4 6 7   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         4 6 5 :   
 
         4 6 6 :                                           d d ( " Q U E R Y   2 " , $ s q l ,   $ s e l e c t F i l t e r s , 
 
   > >   4 6 7 :                                                   " S T R I N G " . s t r l e n ( $ s e l e c t Q u e r y - > g e t Q u e r y ( ) - > g e t S Q L ( ) ) , $ s e l e c t Q u e r y - > g e t Q u e r y ( ) - > g e t S Q L ( ) , 
 
         4 6 8 :                                                   $ t h i s - > _ g e t S e l e c t S t r i n g F r o m C u r r e n t S e l e c t s ( ) , 
 
         4 6 9 :                                                   $ t h i s - > c u r r e n t S e l e c t B y A l i a s , 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ d a t a \ l i b \ D r i v e r \ F a c t o r y \ D r i v e r I n t e r f a c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 8   [ m a t c h :   S E L E C T   ] : 
 
         1 6 :   	 	   *   S e t s   t h e   s o u r c e   o f   t h e   q u e r y   ( a k a   " F R O M " ) .     T h e   d r i v e r   w i l l   r e t u r n   a n   a l i a s   f o r   t h i s   s o u r c e   t a b l e   t h a t 
 
         1 7 :   	 	   *   s h o u l d   b e   u s e d   i n   a n y   o t h e r   f u n c t i o n   c a l l   w h e r e   y o u   m u s t   r e f e r e n c e   t h i s   s o u r c e   i n s t a n c e .     T h i s   a l i a s 
 
   > >   1 8 :   	 	   *   w i l l   b e   a p p l i c a b l e   t o   b o t h   s e l e c t   a n d   f i l t e r   o p e r a t i o n s . 
 
         1 9 :   	 	   *   
 
         2 0 :   	 	   *   @ p a r a m   s t r i n g   $ s o u r c e N a m e   T h e   " t a b l e "   t h a t   t h e   d a t a   r e t r i e v a l   w i l l   b e   s o u r c e d   f r o m 
 
 
 
     L i n e   2 8   [ m a t c h :   S E L E C T   ] : 
 
         2 6 :   	 	 
 
         2 7 :   	 	 / * * 
 
   > >   2 8 :   	 	   *   A d d s   a   f i e l d   t o   s e l e c t   t o   t h e   c u r r e n t   q u e r y .     I t   i s   r e q u i r e d   t h a t   t h e   d r i v e r   c a n   d e a l   w i t h 
 
         2 9 :   	 	   *   d u p l i c a t a t e d   r e q u e s t s   t o   t h i s   f u n c t i o n   w i t h o u t   c a u s i n g   e r r o r s   o r   d u p l i c a t e d   f i e l d s   i n   t h e   r e s u l t s . 
 
         3 0 :   	 	   *   
 
 
 
     L i n e   3 1   [ m a t c h :   S E L E C T   ] : 
 
         2 9 :   	 	   *   d u p l i c a t a t e d   r e q u e s t s   t o   t h i s   f u n c t i o n   w i t h o u t   c a u s i n g   e r r o r s   o r   d u p l i c a t e d   f i e l d s   i n   t h e   r e s u l t s . 
 
         3 0 :   	 	   *   
 
   > >   3 1 :   	 	   *   @ p a r a m   s t r i n g   $ e n t i t y S e l e c t Q u e r y A l i a s   T h e   " t a b l e "   a l i a s   t h i s   f i e l d   b e l o n g s   t o   f o r   s e l e c t   o p e r a t i o n s 
 
         3 2 :   	 	   *   @ p a r a m   s t r i n g   $ f i e l d N a m e   T h e   f i e l d   t o   s e l e c t 
 
         3 3 :   	 	   *   
 
 
 
     L i n e   3 9   [ m a t c h :   S E L E C T   ] : 
 
         3 7 :   	 	 
 
         3 8 :   	 	 / * * 
 
   > >   3 9 :   	 	   *   A d d s   a   j o i n   " t a b l e "   t o   t h e   " t a b l e "   a l i a s   p r o v i d e d   f o r   s e l e c t   o p e r a t i o n s 
 
         4 0 :   	 	   *   
 
         4 1 :   	 	   *   @ p a r a m   s t r i n g   $ e n t i t y S e l e c t Q u e r y A l i a s   T h e   a l i a s   o f   a n   e x i s t i n g   " t a b l e "   i n   t h e   q u e r y   f o r   s e l e c t   o p e r a t i o n s   t h a t   w i l l   b e   t h e   s o u r c e   o f   t h e   j o i n 
 
 
 
     L i n e   4 1   [ m a t c h :   S E L E C T   ] : 
 
         3 9 :   	 	   *   A d d s   a   j o i n   " t a b l e "   t o   t h e   " t a b l e "   a l i a s   p r o v i d e d   f o r   s e l e c t   o p e r a t i o n s 
 
         4 0 :   	 	   *   
 
   > >   4 1 :   	 	   *   @ p a r a m   s t r i n g   $ e n t i t y S e l e c t Q u e r y A l i a s   T h e   a l i a s   o f   a n   e x i s t i n g   " t a b l e "   i n   t h e   q u e r y   f o r   s e l e c t   o p e r a t i o n s   t h a t   w i l l   b e   t h e   s o u r c e   o f   t h e   j o i n 
 
         4 2 :   	 	   *   @ p a r a m   s t r i n g   $ j o i n T o   T h e   " t a b l e "   t o   j o i n   t o 
 
         4 3 :   	 	   *   @ p a r a m   b o o l e a n   $ t o M a n y   T h e   r e l a t i o n s h i p   t h a t   t h i s   j o i n   i s   f o r   c o u l d   r e s u l t   i n   m u l t i p l e   r e c o r d s   o r   n o t 
 
 
 
     L i n e   4 6   [ m a t c h :   S E L E C T   ] : 
 
         4 4 :   	 	   *   @ p a r a m   s t r i n g   $ t y p e   T h e   t y p e   o f   j o i n   t o   p e r f o r m ;   d e f a u l t   i s   l e f t 
 
         4 5 :   	 	   *   
 
   > >   4 6 :   	 	   *   @ r e t u r n   s t r i n g   T h e   a l i a s   i n   t h e   q u e r y   t o   t h e   $ j o i n T o   t a b l e   p r o v i d e d   f o r   s e l e c t   o p e r a t i o n s 
 
         4 7 :   	 	   * / 
 
         4 8 :   	 	 p u b l i c   f u n c t i o n   a d d S e l e c t J o i n T o C u r r e n t Q u e r y ( $ e n t i t y S e l e c t Q u e r y A l i a s ,   $ j o i n T o ,   $ t o M a n y ,   $ t y p e   =   ' l e f t ' ) ; 
 
 
 
     L i n e   1 0 0   [ m a t c h :   S E L E C T   ] : 
 
         9 8 :   	 	 / * * 
 
         9 9 :   	 	   *   E x e c u t e s   t h e   d r i v e r ' s   c u r r e n t   q u e r y   a n d   p u t s   t h e   r e s u l t s   i n t o   t h e   a r r a y   p r o v i d e d .     F i l t e r s   w i l l   b e   a p p l i e d 
 
   > >   1 0 0 :   	 	   *   f i r s t   t o   r e t r i e v e   t h e   a p p l i c a b l e   s o u r c e   r e c o r d s   a n d   t h e n   t h e s e   s o u r c e   r e c o r d s   w i l l   b e   d i s p l a y e d   p e r   s e l e c t   c r i t e r i a 
 
         1 0 1 :   	 	   *   
 
         1 0 2 :   	 	   *   @ p a r a m   \ S a v v i o r \ D a t a \ R e c o r d L i s t R e s u l t   $ R e c o r d s e t   T h e   r e c o r d l i s t   o b j e c t   t o   s e t   t h e   d a t a   r e s u l t s   o n   ( - > s e t D a t a ( ) ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ d a t a \ l i b \ D r i v e r \ H a n d l e r \ D o c t r i n e D r i v e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 0 6   [ m a t c h :   F R O M   ] : 
 
         3 0 4 :                                                                   i f ( $ a s s o c i a t i o n I n f o - > r e v e r s e T o M a n y )   / /   m a n y   t o   m a n y 
 
         3 0 5 :                                                                   { 
 
   > >   3 0 6 :                                                                           i f ( $ D o c t r i n e R e v e r s e F e t c h M o d e   = = =   C l a s s M e t a d a t a I n f o : : F E T C H _ E X T R A _ L A Z Y   | |   $ C u r r e n t A s s o c i a t e d E n t i t i e s [ $ C u r r e n t A s s o c i a t e d E n t i t i e s I n d e x ] - > { " g e t " . u c f i r s t ( S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ a s s o c i a t i o n I n f o - > r e v e r s e A s s o c i a t i o n N a m e ) ) } ( ) - > i s I n i t i a l i z e d ( ) )   / /   i f   i t ' s   n o t   i n i t i a l i z e d ,   w e   d o n ' t   w a n t   t o   c a u s e   a l l   r e l a t e d   i t e m s   t o   b e   l o a d e d   f r o m   t h e   D B   s i n c e   i t ' s   n o t   t h e   o w n i n g   s i d e 
 
         3 0 7 :                                                                           { 
 
         3 0 8 :                                                                                   $ C u r r e n t A s s o c i a t e d E n t i t i e s [ $ C u r r e n t A s s o c i a t e d E n t i t i e s I n d e x ] - > { " r e m o v e " . u c f i r s t ( S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ a s s o c i a t i o n I n f o - > r e v e r s e A s s o c i a t i o n N a m e ) ) } ( $ E n t i t y ) ; 
 
 
 
     L i n e   3 1 2   [ m a t c h :   F R O M   ] : 
 
         3 1 0 :                                                                           e l s e i f ( $ R e v e r s e A s s o c I s O w n i n g S i d e ) 
 
         3 1 1 :                                                                           { 
 
   > >   3 1 2 :                                                                                   / /   s i n c e   t h e   r e v e r s e   s i d e   i s   o w n i n g ,   w e   m u s t   d o   s o m e t h i n g   t o   r e m o v e   t h e s e   ( s i n c e   r e m o v i n g   t h e m   f r o m   t h e   n o n - o w n i n g   c o l l e c t i o n   w o n ' t   c a u s e   a n y   d b   u p d a t e s ) ;   a n d   y e t   w e   d o n ' t   w a n t   t o   l o a d   e v e r y t h i n g   a s s o c i a t e d   t o   t h e   i n v e r s e   a s s o c i a t i o n 
 
         3 1 3 :                                                                                   $ M a n u a l D e l e t e Q u e r y P a r a m s   =   [ ] ; 
 
         3 1 4 :                                                                                   $ M a n u a l D e l e t e Q u e r y W h e r e P a r t s   =   [ ] ; 
 
 
 
     L i n e   3 3 9   [ m a t c h :   F R O M   ] : 
 
         3 3 7 :                                                                                   i f ( ! $ R e v e r s e S i d e P K F i e l d V a l N o t N u l l C o u n t ) 
 
         3 3 8 :                                                                                           c o n t i n u e ;   / /   s h o u l d   n e v e r   h a p p e n ,   b u t   s t i l l   d o i n g   t h i s   c h e c k   t o   n e v e r   r i s k   a   r o g u e   d e l e t e   s t a t e m e n t   w i t h   t o o   l o o s e   o f   a   w h e r e   c o n d i t i o n 
 
   > >   3 3 9 :                                                                                   $ M a n u a l D e l e t e Q u e r y   =   " D E L E T E   F R O M   " . $ R e v e r s e A s s o c C l a s s M e t a d a t a [ ' j o i n T a b l e ' ] [ ' n a m e ' ] . "   W H E R E   " . i m p l o d e ( '   A N D   ' ,   $ M a n u a l D e l e t e Q u e r y W h e r e P a r t s ) ; 
 
         3 4 0 :                                                                                   $ t h i s - > _ e m ( ) - > g e t C o n n e c t i o n ( ) - > e x e c u t e Q u e r y ( $ M a n u a l D e l e t e Q u e r y ,   $ M a n u a l D e l e t e Q u e r y P a r a m s ) ; 
 
         3 4 1 :                                                                           } 
 
 
 
     L i n e   3 6 1   [ m a t c h :   F R O M   ] : 
 
         3 5 9 :                                                                           } 
 
         3 6 0 :                                                                   } 
 
   > >   3 6 1 :                                                                   i f ( $ R e m o v e T o M a n y E n t i t y S i d e )   / /   e n t i t y   o b j e c t   w i l l   n o w   b e   n u l l   s i n c e   i t   h a s   b e e n   r e m o v e d   e n t i r e l y ,   s o   c a n ' t   c a l l   t h i s   h e r e ;   d o c t r i n e   w i l l   c l e a n   t h i s   u p   a u t o m a t i c a l l y   f o r   s u c c e s s i v e   - > g e t   c a l l s   t o   t h i s   a s s o c i a t i o n   f r o m   $ E n t i t y 
 
         3 6 2 :                                                                           $ E n t i t y - > { " r e m o v e " . u c f i r s t ( S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ a s s o c i a t i o n N a m e ) ) } ( $ C u r r e n t A s s o c i a t e d E n t i t i e s [ $ C u r r e n t A s s o c i a t e d E n t i t i e s I n d e x ] ) ; 
 
         3 6 3 :                                                           } 
 
 
 
     L i n e   4 0 8   [ m a t c h :   F R O M   ] : 
 
         4 0 6 :                                                                   { 
 
         4 0 7 :                                                                           $ D o c t r i n e A s s o c F e t c h M o d e   =   $ t h i s - > _ e m ( ) - > g e t C l a s s M e t a d a t a ( g e t _ c l a s s ( $ E n t i t y ) ) - > g e t A s s o c i a t i o n M a p p i n g ( $ a s s o c i a t i o n N a m e ) [ ' f e t c h ' ] ; 
 
   > >   4 0 8 :                                                                           i f ( $ D o c t r i n e A s s o c F e t c h M o d e   = = =   C l a s s M e t a d a t a I n f o : : F E T C H _ E X T R A _ L A Z Y   | |   $ E x i s t i n g O n e T o M a n y O b j - > { " g e t " . u c f i r s t ( S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ a s s o c i a t i o n N a m e ) ) } ( ) - > i s I n i t i a l i z e d ( ) )   / /   i f   i t ' s   n o t   i n i t i a l i z e d ,   w e   d o n ' t   w a n t   t o   c a u s e   a l l   r e l a t e d   i t e m s   t o   b e   l o a d e d   f r o m   t h e   D B   s i n c e   i t ' s   n o t   t h e   o w n i n g   s i d e 
 
         4 0 9 :                                                                                   $ E x i s t i n g O n e T o M a n y O b j - > { " r e m o v e " . u c f i r s t ( S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ a s s o c i a t i o n N a m e ) ) } ( $ A d d e d T o M a n y A s s o c i a t i o n E n t i t i e s [ $ i ] ) ; 
 
         4 1 0 :                                                                   } 
 
 
 
     L i n e   4 2 2   [ m a t c h :   F R O M   ] : 
 
         4 2 0 :   	 	 	 	 	 	 $ D o C h a n g e   =   f a l s e ; 
 
         4 2 1 :   	 	 	 	 	 	 i f ( i s _ o b j e c t ( $ C u r r e n t A s s o c i a t e d E n t i t y )   & &   ! s i z e o f ( $ a s s o c i a t i o n E n t i t y I n f o - > p k s ) ) 
 
   > >   4 2 2 :   	 	 	 	 	 	 	 $ D o C h a n g e   =   t r u e ;   / /   g o i n g   f r o m   s e t   t o   n u l l 
 
         4 2 3 :   	 	 	 	 	 	 e l s e i f ( ! i s _ o b j e c t ( $ C u r r e n t A s s o c i a t e d E n t i t y )   & &   s i z e o f ( $ a s s o c i a t i o n E n t i t y I n f o - > p k s ) ) 
 
         4 2 4 :   	 	 	 	 	 	 	 $ D o C h a n g e   =   t r u e ;   / /   g o i n g   f r o m   n u l l   t o   s e t   e x i s t i n g   r e c o r d 
 
 
 
     L i n e   4 2 4   [ m a t c h :   F R O M   ] : 
 
         4 2 2 :   	 	 	 	 	 	 	 $ D o C h a n g e   =   t r u e ;   / /   g o i n g   f r o m   s e t   t o   n u l l 
 
         4 2 3 :   	 	 	 	 	 	 e l s e i f ( ! i s _ o b j e c t ( $ C u r r e n t A s s o c i a t e d E n t i t y )   & &   s i z e o f ( $ a s s o c i a t i o n E n t i t y I n f o - > p k s ) ) 
 
   > >   4 2 4 :   	 	 	 	 	 	 	 $ D o C h a n g e   =   t r u e ;   / /   g o i n g   f r o m   n u l l   t o   s e t   e x i s t i n g   r e c o r d 
 
         4 2 5 :   	 	 	 	 	 	 e l s e i f ( ! i s _ o b j e c t ( $ C u r r e n t A s s o c i a t e d E n t i t y )   & &   ! s i z e o f ( $ a s s o c i a t i o n E n t i t y I n f o - > p k s )   & &   ( i s s e t ( $ t h i s - > _ f i e l d C h a n g e s [ $ a s s o c i a t i o n E n t i t y I n f o - > r e f ] )   | |   s i z e o f ( $ a s s o c i a t i o n E n t i t y I n f o - > a s s o c ) ) ) 
 
         4 2 6 :   	 	 	 	 	 	 	 $ D o C h a n g e   =   t r u e ;   / /   g o i n g   f r o m   n u l l   t o   s e t   n e w   r e c o r d 
 
 
 
     L i n e   4 2 6   [ m a t c h :   F R O M   ] : 
 
         4 2 4 :   	 	 	 	 	 	 	 $ D o C h a n g e   =   t r u e ;   / /   g o i n g   f r o m   n u l l   t o   s e t   e x i s t i n g   r e c o r d 
 
         4 2 5 :   	 	 	 	 	 	 e l s e i f ( ! i s _ o b j e c t ( $ C u r r e n t A s s o c i a t e d E n t i t y )   & &   ! s i z e o f ( $ a s s o c i a t i o n E n t i t y I n f o - > p k s )   & &   ( i s s e t ( $ t h i s - > _ f i e l d C h a n g e s [ $ a s s o c i a t i o n E n t i t y I n f o - > r e f ] )   | |   s i z e o f ( $ a s s o c i a t i o n E n t i t y I n f o - > a s s o c ) ) ) 
 
   > >   4 2 6 :   	 	 	 	 	 	 	 $ D o C h a n g e   =   t r u e ;   / /   g o i n g   f r o m   n u l l   t o   s e t   n e w   r e c o r d 
 
         4 2 7 :   	 	 	 	 	 	 e l s e i f ( i s _ o b j e c t ( $ C u r r e n t A s s o c i a t e d E n t i t y )   & &   ! s i z e o f ( $ a s s o c i a t i o n E n t i t y I n f o - > p k s )   & &   ( i s s e t ( $ t h i s - > _ f i e l d C h a n g e s [ $ a s s o c i a t i o n E n t i t y I n f o - > r e f ] )   | |   s i z e o f ( $ a s s o c i a t i o n E n t i t y I n f o - > a s s o c ) ) ) 
 
         4 2 8 :   	 	 	 	 	 	 	 $ D o C h a n g e   =   t r u e ;   / /   g o i n g   f r o m   s e t   t o   s e t   n e w   r e c o r d 
 
 
 
     L i n e   4 2 8   [ m a t c h :   F R O M   ] : 
 
         4 2 6 :   	 	 	 	 	 	 	 $ D o C h a n g e   =   t r u e ;   / /   g o i n g   f r o m   n u l l   t o   s e t   n e w   r e c o r d 
 
         4 2 7 :   	 	 	 	 	 	 e l s e i f ( i s _ o b j e c t ( $ C u r r e n t A s s o c i a t e d E n t i t y )   & &   ! s i z e o f ( $ a s s o c i a t i o n E n t i t y I n f o - > p k s )   & &   ( i s s e t ( $ t h i s - > _ f i e l d C h a n g e s [ $ a s s o c i a t i o n E n t i t y I n f o - > r e f ] )   | |   s i z e o f ( $ a s s o c i a t i o n E n t i t y I n f o - > a s s o c ) ) ) 
 
   > >   4 2 8 :   	 	 	 	 	 	 	 $ D o C h a n g e   =   t r u e ;   / /   g o i n g   f r o m   s e t   t o   s e t   n e w   r e c o r d 
 
         4 2 9 :   	 	 	 	 	 	 e l s e i f ( i s _ o b j e c t ( $ C u r r e n t A s s o c i a t e d E n t i t y )   & &   s i z e o f ( $ a s s o c i a t i o n E n t i t y I n f o - > p k s )   & &   ! $ t h i s - > _ d o P K s M a t c h E n t i t y P K s ( $ a s s o c i a t i o n E n t i t y I n f o - > p k s ,   $ C u r r e n t A s s o c i a t e d E n t i t y ) ) 
 
         4 3 0 :   	 	 	 	 	 	 	 $ D o C h a n g e   =   t r u e ;   / /   g o i n g   f r o m   s e t   t o   s e t   e x i s t i n g   r e c o r d   ( t h a t   d o e s   n o t   h a v e   t h e   s a m e   P K s   a s   t h i s   r e c o r d ) 
 
 
 
     L i n e   4 3 0   [ m a t c h :   F R O M   ] : 
 
         4 2 8 :   	 	 	 	 	 	 	 $ D o C h a n g e   =   t r u e ;   / /   g o i n g   f r o m   s e t   t o   s e t   n e w   r e c o r d 
 
         4 2 9 :   	 	 	 	 	 	 e l s e i f ( i s _ o b j e c t ( $ C u r r e n t A s s o c i a t e d E n t i t y )   & &   s i z e o f ( $ a s s o c i a t i o n E n t i t y I n f o - > p k s )   & &   ! $ t h i s - > _ d o P K s M a t c h E n t i t y P K s ( $ a s s o c i a t i o n E n t i t y I n f o - > p k s ,   $ C u r r e n t A s s o c i a t e d E n t i t y ) ) 
 
   > >   4 3 0 :   	 	 	 	 	 	 	 $ D o C h a n g e   =   t r u e ;   / /   g o i n g   f r o m   s e t   t o   s e t   e x i s t i n g   r e c o r d   ( t h a t   d o e s   n o t   h a v e   t h e   s a m e   P K s   a s   t h i s   r e c o r d ) 
 
         4 3 1 :   	 	 	 	 	 	 
 
         4 3 2 :   	 	 	 	 	 	 i f ( $ D o C h a n g e ) 
 
 
 
     L i n e   4 3 4   [ m a t c h :   F R O M   ] : 
 
         4 3 2 :   	 	 	 	 	 	 i f ( $ D o C h a n g e ) 
 
         4 3 3 :   	 	 	 	 	 	 { 
 
   > >   4 3 4 :   	 	 	 	 	 	 	 i f ( i s s e t ( $ N e w A s s o c i a t e d E n t i t y ) )   / /   u n s e t s   a n y   " r e f e r e n c e "   t o   e n t i t y   f r o m   p r e v i o u s   l o o p   i t e r a t i o n   w h e r e   i t   m a y   h a v e   b e e n   a s s i g n e d   ( t h e   ! $ D o C h a n g e   c a s e   s e t s   a   r e f e r e n c e   u s i n g   t h i s   s a m e   v a r i a b l e   t h a t   w i l l   h a v e   c a r r i e d   o v e r   h e r e   w h e n   t h i s   c o d e   i s   c a l l e d   a g a i n   i n   t h e   s a m e   l o o p ) 
 
         4 3 5 :   	 	 	 	 	 	 	 	 u n s e t ( $ N e w A s s o c i a t e d E n t i t y ) ; 
 
         4 3 6 :   	 	 	 	 	 	 	 $ N e w A s s o c i a t e d E n t i t y   =   n u l l ;   / /   s e t s   u p   n e w   m e m o r y   l o c a t i o n   t o   n u l l   ( i n s t e a d   o f   s e t t i n g   e x i s t i n g   e n t i t y   t o   n u l l ) 
 
 
 
     L i n e   4 4 4   [ m a t c h :   F R O M   ] : 
 
         4 4 2 :   	 	 	 	 	 	 	 	 { 
 
         4 4 3 :   	 	 	 	 	 	 	 	         $ D o c t r i n e R e v e r s e F e t c h M o d e   =   $ t h i s - > _ e m ( ) - > g e t C l a s s M e t a d a t a ( $ t h i s - > e n t i t y N a m e s p a c e . $ a s s o c i a t i o n E n t i t y I n f o - > n a m e ) - > g e t A s s o c i a t i o n M a p p i n g ( $ a s s o c i a t i o n I n f o - > r e v e r s e A s s o c i a t i o n N a m e ) [ ' f e t c h ' ] ; 
 
   > >   4 4 4 :   	 	 	 	 	 	 	 	         i f ( $ D o c t r i n e R e v e r s e F e t c h M o d e   = = =   C l a s s M e t a d a t a I n f o : : F E T C H _ E X T R A _ L A Z Y   | |   $ C u r r e n t A s s o c i a t e d E n t i t y - > { " g e t " . u c f i r s t ( S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ a s s o c i a t i o n I n f o - > r e v e r s e A s s o c i a t i o n N a m e ) ) } ( ) - > i s I n i t i a l i z e d ( ) )   / /   i f   i t ' s   n o t   i n i t i a l i z e d ,   w e   d o n ' t   w a n t   t o   c a u s e   a l l   r e l a t e d   i t e m s   t o   b e   l o a d e d   f r o m   t h e   D B   s i n c e   i t ' s   n o t   t h e   o w n i n g   s i d e 
 
         4 4 5 :   	 	 	 	 	 	 	 	 	         $ C u r r e n t A s s o c i a t e d E n t i t y - > { " r e m o v e " . u c f i r s t ( S t r i n g H e l p e r : : s t r i p N o n A l p h a ( $ a s s o c i a t i o n I n f o - > r e v e r s e A s s o c i a t i o n N a m e ) ) } ( $ E n t i t y ) ; 
 
         4 4 6 :   	 	 	 	 	 	 	 	 } 
 
 
 
     L i n e   9 7   [ m a t c h :   U P D A T E   ] : 
 
         9 5 :   	 	 { 
 
         9 6 :   	 	 	 i f ( ! $ t h i s - > _ d i s a b l e F l u s h   & &   ! E M H e l p e r : : i s E m C l e a r ( $ t h i s - > _ e m ( ) ) ) 
 
   > >   9 7 :   	 	 	 	 t h r o w   n e w   D r i v e r E x c e p t i o n ( ' T h e   E n t i t y   M a n a g e r   h a s   u n - f l u s h e d   c h a n g e s .     P l e a s e   f l u s h   t h e m   b e f o r e   m a k i n g   a n   i n s e r t / u p d a t e   c a l l .     T h e y   w i l l   s t i l l   b e   i n c l u d e d   i n   t h i s   t r a n s a c t i o n . ' ) ; 
 
         9 8 :   	 	 	 
 
         9 9 :   	 	 	 l i s t ( $ q u e r y ,   $ p a r a m s )   =   $ t h i s - > _ b u i l d S e l e c t Q u e r y ( t r u e ) ; 
 
 
 
     L i n e   3 8 4   [ m a t c h :   U P D A T E   ] : 
 
         3 8 2 :   	 	 	 	 	 	 	 $ A d d e d T o M a n y A s s o c i a t i o n E n t i t i e s [ ]   =   $ t h i s - > _ e m ( ) - > g e t R e p o s i t o r y ( $ t h i s - > e n t i t y N a m e s p a c e . $ a s s o c i a t i o n I n f o - > e n t i t i e s [ $ A s s o c i a t e d E n t i t y I n f o I n d e x ] - > n a m e ) - > f i n d O n e B y ( $ a s s o c i a t i o n I n f o - > e n t i t i e s [ $ A s s o c i a t e d E n t i t y I n f o I n d e x ] - > p k s ) ; 
 
         3 8 3 :   	 	 	 	 	 	 	 $ T h i s A d d e d E n t i t y   = &   $ A d d e d T o M a n y A s s o c i a t i o n E n t i t i e s [ s i z e o f ( $ A d d e d T o M a n y A s s o c i a t i o n E n t i t i e s ) - 1 ] ; 
 
   > >   3 8 4 :   	 	 	 	 	 	 	 i f ( i s _ o b j e c t ( $ T h i s A d d e d E n t i t y ) )   / /   f o u n d   s p e c i f i e d   r e c o r d ;   u p d a t e   i t 
 
         3 8 5 :   	 	 	 	 	 	 	 { 
 
         3 8 6 :   	 	 	 	 	 	 	 	 $ t h i s - > _ s a v e E n t i t y ( $ T h i s A d d e d E n t i t y ,   $ a s s o c i a t i o n I n f o - > e n t i t i e s [ $ A s s o c i a t e d E n t i t y I n f o I n d e x ] ) ; 
 
 
 
     L i n e   4 6 4   [ m a t c h :   U P D A T E   ] : 
 
         4 6 2 :   	 	 	 	 	 	 	 { 
 
         4 6 3 :   	 	 	 	 	 	 	 	 $ N e w A s s o c i a t e d E n t i t y   =   $ t h i s - > _ e m ( ) - > g e t R e p o s i t o r y ( $ t h i s - > e n t i t y N a m e s p a c e . $ a s s o c i a t i o n E n t i t y I n f o - > n a m e ) - > f i n d O n e B y ( $ a s s o c i a t i o n E n t i t y I n f o - > p k s ) ; 
 
   > >   4 6 4 :   	 	 	 	 	 	 	 	 i f ( i s _ o b j e c t ( $ N e w A s s o c i a t e d E n t i t y ) )   / /   f o u n d   s p e c i f i e d   r e c o r d ;   u p d a t e   i t 
 
         4 6 5 :   	 	 	 	 	 	 	 	 { 
 
         4 6 6 :   	 	 	 	 	 	 	 	 	 $ t h i s - > _ s a v e E n t i t y ( $ N e w A s s o c i a t e d E n t i t y ,   $ a s s o c i a t i o n E n t i t y I n f o ) ; 
 
 
 
     L i n e   4 9 7   [ m a t c h :   U P D A T E   ] : 
 
         4 9 5 :   	 	 	 	 	 	 { 
 
         4 9 6 :   	 	 	 	 	 	 	 $ N e w A s s o c i a t e d E n t i t y   = &   $ C u r r e n t A s s o c i a t e d E n t i t y ; 
 
   > >   4 9 7 :   	 	 	 	 	 	 	 / /   n o t h i n g   c h a n g e d ;   i f   i t ' s   a   s e t   e n t i t y ,   j u s t   u p d a t e   a n y   r e l a t e d   d a t a 
 
         4 9 8 :   	 	 	 	 	 	 	 i f ( i s _ o b j e c t ( $ N e w A s s o c i a t e d E n t i t y ) ) 
 
         4 9 9 :   	 	 	 	 	 	 	 	 $ t h i s - > _ s a v e E n t i t y ( $ N e w A s s o c i a t e d E n t i t y ,   $ a s s o c i a t i o n E n t i t y I n f o ) ; 
 
 
 
     L i n e   3 3 9   [ m a t c h :   D E L E T E   F R O M ] : 
 
         3 3 7 :                                                                                   i f ( ! $ R e v e r s e S i d e P K F i e l d V a l N o t N u l l C o u n t ) 
 
         3 3 8 :                                                                                           c o n t i n u e ;   / /   s h o u l d   n e v e r   h a p p e n ,   b u t   s t i l l   d o i n g   t h i s   c h e c k   t o   n e v e r   r i s k   a   r o g u e   d e l e t e   s t a t e m e n t   w i t h   t o o   l o o s e   o f   a   w h e r e   c o n d i t i o n 
 
   > >   3 3 9 :                                                                                   $ M a n u a l D e l e t e Q u e r y   =   " D E L E T E   F R O M   " . $ R e v e r s e A s s o c C l a s s M e t a d a t a [ ' j o i n T a b l e ' ] [ ' n a m e ' ] . "   W H E R E   " . i m p l o d e ( '   A N D   ' ,   $ M a n u a l D e l e t e Q u e r y W h e r e P a r t s ) ; 
 
         3 4 0 :                                                                                   $ t h i s - > _ e m ( ) - > g e t C o n n e c t i o n ( ) - > e x e c u t e Q u e r y ( $ M a n u a l D e l e t e Q u e r y ,   $ M a n u a l D e l e t e Q u e r y P a r a m s ) ; 
 
         3 4 1 :                                                                           } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ d a t a \ l i b \ D r i v e r \ H a n d l e r \ D r i v e r I n t e r f a c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 5   [ m a t c h :   F R O M   ] : 
 
         3 3 :   	 	   *   @ p a r a m   m i x e d   $ d r i v e r E n t i t y R e f   A n   i n t e r n a l   i d e n t i f i e r   p a s s e d   b a c k   t h r o u g h   " s e t S o u r c e E n t i t y "   o r   " s e t A s s o c i a t e d E n t i t y "   t h a t   r e f e r e n c e s   t h e   e n t i t y   t o   a d d   t h e   a s s o c i a t i o n   t o 
 
         3 4 :   	 	   *   @ p a r a m   s t r i n g   $ a s s o c i a t i o n N a m e   T h e   n a m e   o f   t h e   a s s o c i a t i o n   t o   a d d   t o   t h e   e n t i t y 
 
   > >   3 5 :   	 	   *   @ p a r a m   s t r i n g   $ r e v e r s e A s s o c i a t i o n N a m e   T h e   n a m e   o f   t h e   a s s o c i a t i o n   f r o m   t h e   e n t i t y   y o u   a r e   a d d i n g   b a c k   t o   t h e   e n t i t y   i t   i s   b e i n g   a d d e d   t o 
 
         3 6 :   	 	   *   @ p a r a m   b o o l e a n   $ I s T o M a n y   W h e t h e r   o r   n o t   t h e   a s s o c i a t i o n   f r o m   t h e   s p e c i f i e d   e n t i t y   m a p s   t o   m u l t i p l e   e n t i t i e s   o r   n o t 
 
         3 7 :   	 	   *   @ p a r a m   b o o l e a n   $ R e v e r s e T o M a n y   W h e t h e r   o r   n o t   a n y   g i v e n   e n t i t y   t h i s   a s s o c i a t i o n   m a p s   t o   m a p s   t o   m u l t i p l e   e n t i t i e s   t h r o u g h   t h e   r e v e r s e   a s s o c i a t i o n   o r   n o t 
 
 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   	 	   *   @ p a r a m   s t r i n g   $ a s s o c i a t i o n N a m e   T h e   n a m e   o f   t h e   a s s o c i a t i o n   t o   a d d   t o   t h e   e n t i t y 
 
         3 5 :   	 	   *   @ p a r a m   s t r i n g   $ r e v e r s e A s s o c i a t i o n N a m e   T h e   n a m e   o f   t h e   a s s o c i a t i o n   f r o m   t h e   e n t i t y   y o u   a r e   a d d i n g   b a c k   t o   t h e   e n t i t y   i t   i s   b e i n g   a d d e d   t o 
 
   > >   3 6 :   	 	   *   @ p a r a m   b o o l e a n   $ I s T o M a n y   W h e t h e r   o r   n o t   t h e   a s s o c i a t i o n   f r o m   t h e   s p e c i f i e d   e n t i t y   m a p s   t o   m u l t i p l e   e n t i t i e s   o r   n o t 
 
         3 7 :   	 	   *   @ p a r a m   b o o l e a n   $ R e v e r s e T o M a n y   W h e t h e r   o r   n o t   a n y   g i v e n   e n t i t y   t h i s   a s s o c i a t i o n   m a p s   t o   m a p s   t o   m u l t i p l e   e n t i t i e s   t h r o u g h   t h e   r e v e r s e   a s s o c i a t i o n   o r   n o t 
 
         3 8 :   	 	   *   @ p a r a m   b o o l e a n   $ I s R e q u i r e d   W h e t h e r   o r   n o t   t h i s   a s s o c i a t i o n   i s   r e q u i r e d   ( m u s t   h a v e   a t   l e a s t   o n e   e n t i t y   m a p p e d   t o   i t ) 
 
 
 
     L i n e   3 9   [ m a t c h :   F R O M   ] : 
 
         3 7 :   	 	   *   @ p a r a m   b o o l e a n   $ R e v e r s e T o M a n y   W h e t h e r   o r   n o t   a n y   g i v e n   e n t i t y   t h i s   a s s o c i a t i o n   m a p s   t o   m a p s   t o   m u l t i p l e   e n t i t i e s   t h r o u g h   t h e   r e v e r s e   a s s o c i a t i o n   o r   n o t 
 
         3 8 :   	 	   *   @ p a r a m   b o o l e a n   $ I s R e q u i r e d   W h e t h e r   o r   n o t   t h i s   a s s o c i a t i o n   i s   r e q u i r e d   ( m u s t   h a v e   a t   l e a s t   o n e   e n t i t y   m a p p e d   t o   i t ) 
 
   > >   3 9 :   	 	   *   @ p a r a m   b o o l e a n   $ C a s c a d e D e l e t e   W h e t h e r   o r   n o t   e n t i t i e s   m a p p e d   t h r o u g h   t h i s   a s s o c i a t i o n   a r e   i n t e n d e d   t o   b e   d e l e t e d   s h o u l d   t h e   e n t i t y   t h e   a s s o c i a t i o n   i s   f r o m   b e   d e l e t e d 
 
         4 0 :   	 	   *   
 
         4 1 :   	 	   *   @ r e t u r n   v o i d 
 
 
 
     L i n e   5 1   [ m a t c h :   U P D A T E   ] : 
 
         4 9 :   	 	   *   @ p a r a m   m i x e d   $ d r i v e r E n t i t y R e f   A n   i n t e r n a l   i d e n t i f i e r   p a s s e d   b a c k   t h r o u g h   " s e t S o u r c e E n t i t y "   o r   " s e t A s s o c i a t e d E n t i t y "   t h a t   r e f e r e n c e s   t h e   e n t i t y   t h a t   t h e   a s s o c i a t i o n   w e   a r e   a d d i n g   t h e   e n t i t y   e x i s t s   o n 
 
         5 0 :   	 	   *   @ p a r a m   s t r i n g   $ a s s o c i a t i o n N a m e   T h e   n a m e   o f   t h e   a s s o c i a t i o n   t h a t   h a s   a l r e a d y   b e e n   a d d e d   t o   t h e   e n t i t y 
 
   > >   5 1 :   	 	   *   @ p a r a m   s t r i n g   $ e n t i t y N a m e   T h e   n a m e   o f   t h e   e n t i t y   t o   i n c l u d e   i n   t h i s   u p d a t e   o f f   o f   t h i s   a s s o c i a t i o n 
 
         5 2 :   	 	   *   @ p a r a m   a r r a y   $ P K V a l s   A n   a r r a y   o f   i d e n t i f i e r ( s )   t h a t   u n i q u e l y   r e p r e s e n t   t h e   a s s o c i a t e d   e n t i t y ;   t h i s   s h o u l d   b e   e m p t y   t o   i n d i c a t e   a   n e w   e n t i t y   w i l l   b e   c r e a t e d 
 
         5 3 :   	 	   *   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ d a t a \ l i b \ D a t a F a c t o r y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 6 3   [ m a t c h :   F R O M   ] : 
 
         4 6 1 :   	 	 	 	 e l s e 
 
         4 6 2 :   	 	 	 	 	 t h r o w   n e w   D a t a F a c t o r y E x c e p t i o n ( ' T h e   f i e l d   m e t a d a t a   r e c e i v e d   w a s   n o t   r e c o g n i z e d ' ) ; 
 
   > >   4 6 3 :   	 	 	 }   / /   o t h e r w i s e   s k i p   t h i s   f i e l d   f r o m   b e i n g   s e l e c t e d   a s   i t ' s   n o t   s u p p o r t e d   b y   t h e   c u r r e n t   d a t a   d r i v e r 
 
         4 6 4 :   	 	 } 
 
         4 6 5 :   	 } 
 
 
 
     L i n e   4 9 5   [ m a t c h :   S E L E C T   ] : 
 
         4 9 3 :   	 	 	 { 
 
         4 9 4 :   	 	 	 	 i f ( ! i s s e t ( $ a s s o c i a t i o n F i e l d s [ $ d i s p l a y F i e l d ] ) ) 
 
   > >   4 9 5 :   	 	 	 	 	 t h r o w   n e w   D a t a F a c t o r y E x c e p t i o n ( ' F i e l d   ' . $ d i s p l a y F i e l d . '   i s   e i t h e r   s p e c i f i e d   i n   t h e   d i s p l a y   m a s k   o r   s e t   a s   a   f i e l d   t o   s e l e c t   f o r   a s s o c i a t i o n   ' . $ a s s o c i a t i o n M e t a d a t a - > g e t N a m e ( ) . '   o n   ' . $ e n t i t y M e t a d a t a - > g e t N a m e ( ) . '   b u t   i s   n o t   a   f i e l d   i n   ' . $ a s s o c i a t i o n E n t i t y - > g e t N a m e ( ) ) ; 
 
         4 9 6 :   	 	 	 	 $ t h i s A s s o c i a t e d F i e l d   =   $ a s s o c i a t i o n F i e l d s [ $ d i s p l a y F i e l d ] ; 
 
         4 9 7 :   	 	 	 	 i f ( $ t h i s - > _ v a l i d a t e F i e l d D r i v e r C o m p a t i b i l i t y ( $ a s s o c i a t i o n E n t i t y - > g e t F i e l d ( $ d i s p l a y F i e l d ) - > g e t D r i v e r L o a d e d B y ( ) ,   $ d a t a D r i v e r ) ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ d a t a \ l i b \ D a t a H a n d l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 9 0   [ m a t c h :   F R O M   ] : 
 
         3 8 8 :   	 	 	 	 	 i f ( $ f i e l d M e t a d a t a - > i s T y p e D a t e T i m e ( )   & &   $ h a s T i m e C o m p o n e n t ) 
 
         3 8 9 :   	 	 	 	 	 	 $ f i e l d V a l u e   . =   "   " . $ t i m e C o m p o n e n t V a l u e ; 
 
   > >   3 9 0 :   	 	 	 	 	 i f ( $ f i e l d V a l u e )   / /   t o   p r e v e n t   b l a n k   v a l u e s   f r o m   b e i n g   s e t   t o   t o d a y / n o w 
 
         3 9 1 :   	 	 	 	 	 	 $ f i e l d V a l u e   =   n e w   \ D a t e T i m e ( $ f i e l d V a l u e ) ; 
 
         3 9 2 :   	 	 	 	 	 e l s e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ d o c t r i n e \ l i b \ U t i l \ D B U p d a t e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 6   [ m a t c h :   U P D A T E   ] : 
 
         6 4 :   	 	 	 	 { 
 
         6 5 :   	 	 	 	 	 i f ( $ t h i s - > u p d a t e D B ( $ S Q L C h a n g e s ) ) 
 
   > >   6 6 :   	 	 	 	 	 	 e c h o   c h r ( 1 0 ) . c h r ( 1 0 ) . " D a t a b a s e   u p d a t e   c o m p l e t e . " . c h r ( 1 0 ) . c h r ( 1 0 ) ; 
 
         6 7 :   	 	 	 	 	 e l s e 
 
         6 8 :   	 	 	 	 	 	 e c h o   c h r ( 1 0 ) . c h r ( 1 0 ) . " A n   e r r o r   w a s   e n c o u n t e r e d   w h i l e   u p d a t i n g   t h e   d a t a b a s e . " . c h r ( 1 0 ) . c h r ( 1 0 ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ d o c t r i n e \ l i b \ U t i l \ G e n e r a t o r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 5 2   [ m a t c h :   F R O M   ] : 
 
         1 5 0 :   	 	 c l o s e d i r ( $ I n D i r ) ; 
 
         1 5 1 :   
 
   > >   1 5 2 :   	 	 / /   g e n e r a t e   e n t i t i e s   f r o m   y m l 
 
         1 5 3 :   	 	 $ D C M e t a d a t a F a c t o r y   =   n e w   D i s c o n n e c t e d C l a s s M e t a d a t a F a c t o r y ( ) ; 
 
         1 5 4 :   	 	 $ D C M e t a d a t a F a c t o r y - > s e t E n t i t y M a n a g e r ( $ t h i s - > E M ) ; 
 
 
 
     L i n e   1 7 9   [ m a t c h :   F R O M   ] : 
 
         1 7 7 :   	 	 e n d i f ; 
 
         1 7 8 :   
 
   > >   1 7 9 :   	 	 / /   g e n e r a t e   p r o x i e s   f r o m   y m l   a n d   e n t i t i e s 
 
         1 8 0 :   	 	 $ t h i s - > E M - > g e t P r o x y F a c t o r y ( ) - > g e n e r a t e P r o x y C l a s s e s ( $ t h i s - > E M - > g e t M e t a d a t a F a c t o r y ( ) - > g e t A l l M e t a d a t a ( ) ,   $ p r o x i e s S u b D i r ) ; 
 
         1 8 1 :   
 
 
 
     L i n e   4 5 4   [ m a t c h :   F R O M   ] : 
 
         4 5 2 :   	 	 	 i f ( ! f i l e _ e x i s t s ( $ D e s t . D I R E C T O R Y _ S E P A R A T O R . $ S F )   | |   $ O v e r w r i t e ) : 
 
         4 5 3 :   	 	 	 	 i f ( f i l e _ e x i s t s ( $ D e s t . D I R E C T O R Y _ S E P A R A T O R . $ S F ) ) : 
 
   > >   4 5 4 :   	 	 	 	 	 e c h o   ' O V E R W R I T I N G   ' . $ D e s t S u b F o l d e r . D I R E C T O R Y _ S E P A R A T O R . $ S F . '   f r o m   s o u r c e . ' . c h r ( 1 0 ) ; 
 
         4 5 5 :   	 	 	 	 e l s e : 
 
         4 5 6 :   	 	 	 	 	 e c h o   ' A D D I N G   ' . $ D e s t S u b F o l d e r . D I R E C T O R Y _ S E P A R A T O R . $ S F . '   f r o m   s r o u c e . ' . c h r ( 1 0 ) ; 
 
 
 
     L i n e   4 5 6   [ m a t c h :   F R O M   ] : 
 
         4 5 4 :   	 	 	 	 	 e c h o   ' O V E R W R I T I N G   ' . $ D e s t S u b F o l d e r . D I R E C T O R Y _ S E P A R A T O R . $ S F . '   f r o m   s o u r c e . ' . c h r ( 1 0 ) ; 
 
         4 5 5 :   	 	 	 	 e l s e : 
 
   > >   4 5 6 :   	 	 	 	 	 e c h o   ' A D D I N G   ' . $ D e s t S u b F o l d e r . D I R E C T O R Y _ S E P A R A T O R . $ S F . '   f r o m   s r o u c e . ' . c h r ( 1 0 ) ; 
 
         4 5 7 :   	 	 	 	 e n d i f ; 
 
         4 5 8 :   	 	 	 	 c o p y ( $ S F P a t h ,   $ D e s t . D I R E C T O R Y _ S E P A R A T O R . $ S F ) ; 
 
 
 
     L i n e   1 8 2   [ m a t c h :   U P D A T E   ] : 
 
         1 8 0 :   	 	 $ t h i s - > E M - > g e t P r o x y F a c t o r y ( ) - > g e n e r a t e P r o x y C l a s s e s ( $ t h i s - > E M - > g e t M e t a d a t a F a c t o r y ( ) - > g e t A l l M e t a d a t a ( ) ,   $ p r o x i e s S u b D i r ) ; 
 
         1 8 1 :   
 
   > >   1 8 2 :   	 	 / /   u p d a t e   d b 
 
         1 8 3 :   	 	 i f ( $ t h i s - > u p d a t e P r o j e c t D B P r o m p t ) : 
 
         1 8 4 :   	 	 	 e c h o   c h r ( 1 0 ) . c h r ( 1 0 ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ f o r m - b u i l d e r \ b i n \ a r r a y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 9   [ m a t c h :   S E L E C T   ] : 
 
         7 7 :                   / / n e w   \ S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ M a x V a l u e ( n e w   D a t e T i m e ( ' 0 1 / 0 1 / 1 9 9 9   2 0 : 3 0 : 0 0 ' ) ,   ' m / d / Y   H : i : s ' ) 
 
         7 8 :           ] ) ) - > s e t V a l u e ( n e w   D a t e T i m e ( ' 2 0 1 6 - 0 5 - 2 1   1 3 : 0 0 : 0 0 ' ) ) , 
 
   > >   7 9 :           ( n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ I t e m S e l e c t ( ' o w n e d _ c a r s _ m u l t i ' ,   ' M u l t i - S e l e c t   -   W h i c h   c a r s   h a v e   y o u   o w n e d ? ' ,   [ 
 
         8 0 :                   n e w   \ S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ M a x R e s p o n s e s ( 5 ) , 
 
         8 1 :                   n e w   \ S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ M i n R e s p o n s e s ( 2 ) , 
 
 
 
     L i n e   2 0 1   [ m a t c h :   S E L E C T   ] : 
 
         1 9 9 :                                   n e w   \ S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ M a x V a l u e ( n e w   D a t e T i m e ( ' 0 1 / 0 1 / 1 9 9 9   2 0 : 3 0 : 0 0 ' ) ,   ' m / d / Y   H : i : s ' ) 
 
         2 0 0 :                           ] ) ) - > s e t V a l u e ( n e w   D a t e T i m e ( ' 2 0 1 6 - 0 5 - 2 1   1 3 : 0 0 : 0 0 ' ) ) , 
 
   > >   2 0 1 :                           ( n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ I t e m S e l e c t ( ' o w n e d _ c a r s _ m u l t i _ c l o n e ' ,   ' M u l t i - S e l e c t   -   W h i c h   c a r s   h a v e   y o u   o w n e d ? ' ,   [ 
 
         2 0 2 :                                   n e w   \ S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ M a x R e s p o n s e s ( 3 ) , 
 
         2 0 3 :                                   n e w   \ S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ M i n R e s p o n s e s ( 2 ) , 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ f o r m - b u i l d e r \ b i n \ b o o t s t r a p 3 . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   8 2   [ m a t c h :   S E L E C T   ] : 
 
         8 0 :                   / / n e w   \ S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ M a x V a l u e ( n e w   D a t e T i m e ( ' 0 1 / 0 1 / 1 9 9 9   2 0 : 3 0 : 0 0 ' ) ,   ' m / d / Y   H : i : s ' ) 
 
         8 1 :           ] ) ) - > s e t V a l u e ( n e w   D a t e T i m e ( ' 2 0 1 6 - 0 5 - 2 1   1 3 : 0 0 : 0 0 ' ) ) , 
 
   > >   8 2 :           ( n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ I t e m S e l e c t ( ' o w n e d _ c a r s _ m u l t i ' ,   ' M u l t i - S e l e c t   -   W h i c h   c a r s   h a v e   y o u   o w n e d ? ' ,   [ 
 
         8 3 :                   n e w   \ S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ M a x R e s p o n s e s ( 5 ) , 
 
         8 4 :                   n e w   \ S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ M i n R e s p o n s e s ( 2 ) , 
 
 
 
     L i n e   2 0 4   [ m a t c h :   S E L E C T   ] : 
 
         2 0 2 :                                   n e w   \ S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ M a x V a l u e ( n e w   D a t e T i m e ( ' 0 1 / 0 1 / 1 9 9 9   2 0 : 3 0 : 0 0 ' ) ,   ' m / d / Y   H : i : s ' ) 
 
         2 0 3 :                           ] ) ) - > s e t V a l u e ( n e w   D a t e T i m e ( ' 2 0 1 6 - 0 5 - 2 1   1 3 : 0 0 : 0 0 ' ) ) , 
 
   > >   2 0 4 :                           ( n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ I t e m S e l e c t ( ' o w n e d _ c a r s _ m u l t i _ c l o n e ' ,   ' M u l t i - S e l e c t   -   W h i c h   c a r s   h a v e   y o u   o w n e d ? ' ,   [ 
 
         2 0 5 :                                   n e w   \ S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ M a x R e s p o n s e s ( 3 ) , 
 
         2 0 6 :                                   n e w   \ S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ M i n R e s p o n s e s ( 2 ) , 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ f o r m - b u i l d e r \ b i n \ b o o t s t r a p 3 _ d i s p l a y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 8   [ m a t c h :   S E L E C T   ] : 
 
         2 6 :           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' d a t e t i m e ' ,   ' D a t e t i m e   P i c k e r ' ) , 
 
         2 7 :           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' t i m e ' ,   ' T i m e   P i c k e r ' ) , 
 
   > >   2 8 :           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' o w n e d _ c a r s _ m u l t i ' ,   ' M u l t i - S e l e c t   -   W h i c h   c a r s   h a v e   y o u   o w n e d ? ' ) , 
 
         2 9 :           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' i n t ' ,   ' I n t ' ) , 
 
         3 0 :           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' u n s i g n e d _ i n t ' ,   ' U n s i g n e d   I n t ' ) , 
 
 
 
     L i n e   6 3   [ m a t c h :   S E L E C T   ] : 
 
         6 1 :                           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' d a t e t i m e _ c l o n e ' ,   ' D a t e t i m e   P i c k e r ' ) , 
 
         6 2 :                           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' t i m e _ c l o n e ' ,   ' T i m e   P i c k e r ' ) , 
 
   > >   6 3 :                           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' o w n e d _ c a r s _ m u l t i _ c l o n e ' ,   ' M u l t i - S e l e c t   -   W h i c h   c a r s   h a v e   y o u   o w n e d ? ' ) , 
 
         6 4 :                           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' i n t _ c l o n e ' ,   ' I n t ' ) , 
 
         6 5 :                           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' u n s i g n e d _ i n t _ c l o n e ' ,   ' U n s i g n e d   I n t ' ) , 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ f o r m - b u i l d e r \ b i n \ b o o t s t r a p 4 . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   8 2   [ m a t c h :   S E L E C T   ] : 
 
         8 0 :                   / / n e w   \ S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ M a x V a l u e ( n e w   D a t e T i m e ( ' 0 1 / 0 1 / 1 9 9 9   2 0 : 3 0 : 0 0 ' ) ,   ' m / d / Y   H : i : s ' ) 
 
         8 1 :           ] ) ) - > s e t V a l u e ( n e w   D a t e T i m e ( ' 2 0 1 6 - 0 5 - 2 1   1 3 : 0 0 : 0 0 ' ) ) , 
 
   > >   8 2 :           ( n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ I t e m S e l e c t ( ' o w n e d _ c a r s _ m u l t i ' ,   ' M u l t i - S e l e c t   -   W h i c h   c a r s   h a v e   y o u   o w n e d ? ' ,   [ 
 
         8 3 :                   n e w   \ S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ M a x R e s p o n s e s ( 5 ) , 
 
         8 4 :                   n e w   \ S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ M i n R e s p o n s e s ( 2 ) , 
 
 
 
     L i n e   2 0 4   [ m a t c h :   S E L E C T   ] : 
 
         2 0 2 :                                   n e w   \ S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ M a x V a l u e ( n e w   D a t e T i m e ( ' 0 1 / 0 1 / 1 9 9 9   2 0 : 3 0 : 0 0 ' ) ,   ' m / d / Y   H : i : s ' ) 
 
         2 0 3 :                           ] ) ) - > s e t V a l u e ( n e w   D a t e T i m e ( ' 2 0 1 6 - 0 5 - 2 1   1 3 : 0 0 : 0 0 ' ) ) , 
 
   > >   2 0 4 :                           ( n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ I t e m S e l e c t ( ' o w n e d _ c a r s _ m u l t i _ c l o n e ' ,   ' M u l t i - S e l e c t   -   W h i c h   c a r s   h a v e   y o u   o w n e d ? ' ,   [ 
 
         2 0 5 :                                   n e w   \ S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ M a x R e s p o n s e s ( 3 ) , 
 
         2 0 6 :                                   n e w   \ S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ M i n R e s p o n s e s ( 2 ) , 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ f o r m - b u i l d e r \ b i n \ b o o t s t r a p 4 _ d i s p l a y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 8   [ m a t c h :   S E L E C T   ] : 
 
         2 6 :           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' d a t e t i m e ' ,   ' D a t e t i m e   P i c k e r ' ) , 
 
         2 7 :           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' t i m e ' ,   ' T i m e   P i c k e r ' ) , 
 
   > >   2 8 :           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' o w n e d _ c a r s _ m u l t i ' ,   ' M u l t i - S e l e c t   -   W h i c h   c a r s   h a v e   y o u   o w n e d ? ' ) , 
 
         2 9 :           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' i n t ' ,   ' I n t ' ) , 
 
         3 0 :           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' u n s i g n e d _ i n t ' ,   ' U n s i g n e d   I n t ' ) , 
 
 
 
     L i n e   6 3   [ m a t c h :   S E L E C T   ] : 
 
         6 1 :                           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' d a t e t i m e _ c l o n e ' ,   ' D a t e t i m e   P i c k e r ' ) , 
 
         6 2 :                           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' t i m e _ c l o n e ' ,   ' T i m e   P i c k e r ' ) , 
 
   > >   6 3 :                           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' o w n e d _ c a r s _ m u l t i _ c l o n e ' ,   ' M u l t i - S e l e c t   -   W h i c h   c a r s   h a v e   y o u   o w n e d ? ' ) , 
 
         6 4 :                           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' i n t _ c l o n e ' ,   ' I n t ' ) , 
 
         6 5 :                           n e w   \ S a v v i o r \ F o r m B u i l d e r \ E l e m e n t \ I n p u t \ D i s p l a y \ D i s p l a y I n p u t ( ' u n s i g n e d _ i n t _ c l o n e ' ,   ' U n s i g n e d   I n t ' ) , 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ f o r m - b u i l d e r \ l i b \ E l e m e n t \ I n p u t \ I n p u t I n t e r f a c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 2   [ m a t c h :   S E L E C T   ] : 
 
         1 0 :           c o n s t   H T M L _ T Y P E _ I N P U T _ R A D I O   =   1 0 1 ; 
 
         1 1 :           c o n s t   H T M L _ T Y P E _ I N P U T _ C H E C K B O X   =   1 0 2 ; 
 
   > >   1 2 :           c o n s t   H T M L _ T Y P E _ S E L E C T   =   1 0 3 ; 
 
         1 3 :           c o n s t   H T M L _ T Y P E _ T E X T _ A R E A   =   1 0 4 ; 
 
         1 4 :           c o n s t   H T M L _ T Y P E _ I N P U T _ F I L E   =   1 0 5 ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ f o r m - b u i l d e r \ l i b \ E l e m e n t \ I n p u t \ I t e m S e l e c t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5   [ m a t c h :   S E L E C T   ] : 
 
         3 :   u s e   S a v v i o r \ F o r m B u i l d e r \ I n p u t V a l i d a t o r \ R e q u i r e d ; 
 
         4 :   
 
   > >   5 :   c l a s s   I t e m S e l e c t   e x t e n d s   B a s i c I n p u t 
 
         6 :   { 
 
         7 :           p r o t e c t e d   $ p r i m a r y T y p e   =   I n p u t I n t e r f a c e : : H T M L _ T Y P E _ S E L E C T ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ f o r m - b u i l d e r \ l i b \ E l e m e n t \ I n p u t \ S i n g l e F i l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 6   [ m a t c h :   S E L E C T   ] : 
 
         3 4 :                   i f ( i s _ n u l l ( $ t h i s - > s e l e c t F i l e B u t t o n ) ) 
 
         3 5 :                   { 
 
   > >   3 6 :                           $ t h i s - > s e l e c t F i l e B u t t o n   =   ( n e w   B u t t o n ( L a r a v e l T r a n s l a t i o n H e l p e r : : t r a n s l a t e ( ' S e l e c t   F i l e ' ) ) ) 
 
         3 7 :                                   - > s e t T y p e ( B u t t o n : : T Y P E _ S U C C E S S ) 
 
         3 8 :                                   - > s e t S i z e ( B u t t o n : : S I Z E _ S M A L L ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a \ D a t a S o u r c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9 9   [ m a t c h :   F R O M   ] : 
 
         9 7 :   
 
         9 8 :           / * * 
 
   > >   9 9 :           *   T h e   p a g e   o f   d a t a   w h i c h   t h e   d a t a   s o u r c e   w i l l   r e t u r n   w h e n   t h e   v i e w   m e t h o d   i s   i n v o k e d   o r   r e q u e s t   f r o m   t h e   r e m o t e   s e r v i c e . 
 
         1 0 0 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         1 0 1 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e 
 
 
 
     L i n e   1 8 0   [ m a t c h :   F R O M   ] : 
 
         1 7 8 :   
 
         1 7 9 :           / * * 
 
   > >   1 8 0 :           *   T h e   c o n f i g u r a t i o n   u s e d   t o   l o a d   a n d   s a v e   t h e   d a t a   i t e m s .   A   d a t a   s o u r c e   i s   r e m o t e   o r   l o c a l   b a s e d   o n   t h e   w a y   i t   r e t r i e v e s   d a t a   i t e m s . R e m o t e   d a t a   s o u r c e s   l o a d   a n d   s a v e   d a t a   i t e m s   f r o m   a n d   t o   a   r e m o t e   e n d - p o i n t   ( a l s o   k n o w n   a s   r e m o t e   s e r v i c e   o r   s e r v e r ) .   T h e   t r a n s p o r t   o p t i o n   d e s c r i b e s   t h e   r e m o t e   s e r v i c e   c o n f i g u r a t i o n   -   U R L ,   H T T P   v e r b ,   H T T P   h e a d e r s ,   a n d   o t h e r s .   T h e   t r a n s p o r t   o p t i o n   c a n   a l s o   b e   u s e d   t o   i m p l e m e n t   c u s t o m   d a t a   l o a d i n g   a n d   s a v i n g . L o c a l   d a t a   s o u r c e s   a r e   b o u n d   t o   a   J a v a S c r i p t   a r r a y   v i a   t h e   d a t a   o p t i o n . 
 
         1 8 1 :           *   @ p a r a m   \ K e n d o \ D a t a \ D a t a S o u r c e T r a n s p o r t | a r r a y   $ v a l u e 
 
         1 8 2 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e 
 
 
 
     L i n e   1 9 9   [ m a t c h :   F R O M   ] : 
 
         1 9 7 :           / * * 
 
         1 9 8 :           *   S e t s   t h e   c h a n g e   e v e n t   o f   t h e   D a t a S o u r c e . 
 
   > >   1 9 9 :           *   F i r e d   w h e n   t h e   d a t a   s o u r c e   i s   p o p u l a t e d   f r o m   a   J a v a S c r i p t   a r r a y   o r   a   r e m o t e   s e r v i c e ,   a   d a t a   i t e m   i s   i n s e r t e d ,   u p d a t e d   o r   r e m o v e d ,   t h e   d a t a   i t e m s   a r e   p a g e d ,   s o r t e d ,   f i l t e r e d ,   o r   g r o u p e d . T h e   e v e n t   h a n d l e r   f u n c t i o n   c o n t e x t   ( a v a i l a b l e   v i a   t h e   t h i s   k e y w o r d )   w i l l   b e   s e t   t o   t h e   d a t a   s o u r c e   i n s t a n c e . 
 
         2 0 0 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         2 0 1 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a \ D a t a S o u r c e S c h e m a . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 3   [ m a t c h :   F R O M   ] : 
 
         1 1 :   
 
         1 2 :           / * * 
 
   > >   1 3 :           *   T h e   f i e l d   f r o m   t h e   r e s p o n s e   w h i c h   c o n t a i n s   t h e   a g g r e g a t e   r e s u l t s .   C a n   b e   s e t   t o   a   f u n c t i o n   w h i c h   i s   c a l l e d   t o   r e t u r n   t h e   a g g r e g a t e   r e s u l t s   f r o m   t h e   r e s p o n s e . T h e   r e s u l t   o f   t h e   f u n c t i o n   s h o u l d   b e   a   J a v a S c r i p t   o b j e c t   w h i c h   c o n t a i n s   t h e   a g g r e g a t e   r e s u l t s   f o r   e v e r y   f i e l d   i n   t h e   f o l l o w i n g   f o r m a t : F o r   e x a m p l e ,   i f   t h e   d a t a   s o u r c e   i s   c o n f i g u r e d   l i k e   t h i s : T h e   a g g r e g a t e   r e s u l t s   s h o u l d   h a v e   t h e   f o l l o w i n g   f o r m a t : 
 
         1 4 :           *   @ p a r a m   \ K e n d o \ J a v a S c r i p t F u n c t i o n | s t r i n g   $ v a l u e 
 
         1 5 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e S c h e m a 
 
 
 
     L i n e   2 2   [ m a t c h :   F R O M   ] : 
 
         2 0 :   
 
         2 1 :           / * * 
 
   > >   2 2 :           *   T h e   f i e l d   f r o m   t h e   s e r v e r   r e s p o n s e   w h i c h   c o n t a i n s   t h e   d a t a   i t e m s .   C a n   b e   s e t   t o   a   f u n c t i o n   w h i c h   i s   c a l l e d   t o   r e t u r n   t h e   d a t a   i t e m s   f o r   t h e   r e s p o n s e . 
 
         2 3 :           *   @ p a r a m   \ K e n d o \ J a v a S c r i p t F u n c t i o n | s t r i n g   $ v a l u e 
 
         2 4 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e S c h e m a 
 
 
 
     L i n e   3 1   [ m a t c h :   F R O M   ] : 
 
         2 9 :   
 
         3 0 :           / * * 
 
   > >   3 1 :           *   T h e   f i e l d   f r o m   t h e   s e r v e r   r e s p o n s e   w h i c h   c o n t a i n s   s e r v e r - s i d e   e r r o r s .   C a n   b e   s e t   t o   a   f u n c t i o n   w h i c h   i s   c a l l e d   t o   r e t u r n   t h e   e r r o r s   f o r   r e s p o n s e .   I f   t h e r e   a r e   a n y   e r r o r s ,   t h e   e r r o r   e v e n t   w i l l   b e   f i r e d . 
 
         3 2 :           *   @ p a r a m   \ K e n d o \ J a v a S c r i p t F u n c t i o n | s t r i n g   $ v a l u e 
 
         3 3 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e S c h e m a 
 
 
 
     L i n e   4 0   [ m a t c h :   F R O M   ] : 
 
         3 8 :   
 
         3 9 :           / * * 
 
   > >   4 0 :           *   T h e   f i e l d   f r o m   t h e   s e r v e r   r e s p o n s e   w h i c h   c o n t a i n s   t h e   g r o u p s .   C a n   b e   s e t   t o   a   f u n c t i o n   w h i c h   i s   c a l l e d   t o   r e t u r n   t h e   g r o u p s   f r o m   t h e   r e s p o n s e . T h e   r e s u l t   s h o u l d   h a v e   t h e   f o l l o w i n g   f o r m a t : 
 
         4 1 :           *   @ p a r a m   \ K e n d o \ J a v a S c r i p t F u n c t i o n | s t r i n g   $ v a l u e 
 
         4 2 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e S c h e m a 
 
 
 
     L i n e   6 3   [ m a t c h :   F R O M   ] : 
 
         6 1 :   
 
         6 2 :           / * * 
 
   > >   6 3 :           *   T h e   f i e l d   f r o m   t h e   s e r v e r   r e s p o n s e   w h i c h   c o n t a i n s   t h e   t o t a l   n u m b e r   o f   d a t a   i t e m s .   C a n   b e   s e t   t o   a   f u n c t i o n   w h i c h   i s   c a l l e d   t o   r e t u r n   t h e   t o t a l   n u m b e r   o f   d a t a   i t e m s   f o r   t h e   r e s p o n s e . 
 
         6 4 :           *   @ p a r a m   \ K e n d o \ J a v a S c r i p t F u n c t i o n | s t r i n g   $ v a l u e 
 
         6 5 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e S c h e m a 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a \ D a t a S o u r c e T r a n s p o r t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 8   [ m a t c h :   F R O M   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   S p e c i f i e s   i f   t h e   t r a n s p o r t   c a c h e s   t h e   r e s u l t   f r o m   r e a d   r e q u e s t s .   T h e   q u e r y   p a r a m e t e r s   a r e   u s e d   a s   a   c a c h e   k e y   a n d   i f   t h e   k e y   i s   p r e s e n t   i n   t h e   c a c h e ,   a   n e w   r e q u e s t   t o   t h e   s e r v e r   i s   n o t   e x e c u t e d .   T h e   c a c h e   i s   k e p t   i n   m e m o r y   a n d ,   t h u s ,   c l e a r e d   o n   p a g e   r e f r e s h . 
 
         1 9 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e T r a n s p o r t 
 
 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   T h e   c o n f i g u r a t i o n   u s e d   w h e n   t h e   d a t a   s o u r c e   d e s t r o y s   d a t a   i t e m s .   T h o s e   a r e   i t e m s   r e m o v e d   f r o m   t h e   d a t a   s o u r c e   v i a   t h e   r e m o v e   m e t h o d . I f   t h e   v a l u e   o f   t r a n s p o r t . d e s t r o y   i s   a   f u n c t i o n ,   t h e   d a t a   s o u r c e   i n v o k e s   t h a t   f u n c t i o n   i n s t e a d   o f   j Q u e r y . a j a x . I f   t h e   v a l u e   o f   t r a n s p o r t . d e s t r o y   i s   a   s t r i n g ,   t h e   d a t a   s o u r c e   u s e s   t h i s   s t r i n g   a s   t h e   U R L   o f   t h e   r e m o t e   s e r v i c e . 
 
         3 7 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n | \ K e n d o \ D a t a \ D a t a S o u r c e T r a n s p o r t D e s t r o y | a r r a y   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e T r a n s p o r t 
 
 
 
     L i n e   4 6   [ m a t c h :   F R O M   ] : 
 
         4 4 :           / * * 
 
         4 5 :           *   S e t s   t h e   p a r a m e t e r M a p   o p t i o n   o f   t h e   D a t a S o u r c e T r a n s p o r t . 
 
   > >   4 6 :           *   T h e   f u n c t i o n   w h i c h   c o n v e r t s   t h e   r e q u e s t   p a r a m e t e r s   t o   a   f o r m a t   s u i t a b l e   f o r   t h e   r e m o t e   s e r v i c e .   B y   d e f a u l t ,   t h e   d a t a   s o u r c e   s e n d s   t h e   p a r a m e t e r s   u s i n g   j Q u e r y   c o n v e n t i o n s . I f   a   t r a n s p o r t . r e a d . d a t a   f u n c t i o n   i s   u s e d   t o g e t h e r   w i t h   p a r a m e t e r M a p ,   r e m e m b e r   t o   p r e s e r v e   t h e   r e s u l t   f r o m   t h e   d a t a   f u n c t i o n   t h a t   w i l l   b e   r e c e i v e d   i n   t h e   p a r a m e t e r M a p   a r g u m e n t s .   A n   e x a m p l e   i s   p r o v i d e d   b e l o w .   G e n e r a l l y ,   t h e   p a r a m e t e r M a p   f u n c t i o n   i s   d e s i g n e d   t o   t r a n s f o r m   t h e   r e q u e s t   p a y l o a d ,   n o t   t o   a d d   n e w   p a r a m e t e r s   t o   i t . 
 
         4 7 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         4 8 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e T r a n s p o r t 
 
 
 
     L i n e   6 0   [ m a t c h :   F R O M   ] : 
 
         5 8 :           / * * 
 
         5 9 :           *   S e t s   t h e   p u s h   o p t i o n   o f   t h e   D a t a S o u r c e T r a n s p o r t . 
 
   > >   6 0 :           *   T h e   f u n c t i o n   i n v o k e d   d u r i n g   t r a n s p o r t   i n i t i a l i z a t i o n   w h i c h   s e t s   u p   p u s h   n o t i f i c a t i o n s .   T h e   d a t a   s o u r c e   w i l l   c a l l   t h i s   f u n c t i o n   o n l y   o n c e   a n d   p r o v i d e   c a l l b a c k s   w h i c h   w i l l   h a n d l e   p u s h   n o t i f i c a t i o n s   ( d a t a   p u s h e d   f r o m   t h e   s e r v e r ) . 
 
         6 1 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         6 2 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e T r a n s p o r t 
 
 
 
     L i n e   7 3   [ m a t c h :   F R O M   ] : 
 
         7 1 :   
 
         7 2 :           / * * 
 
   > >   7 3 :           *   T h e   c o n f i g u r a t i o n   u s e d   w h e n   t h e   d a t a   s o u r c e   l o a d s   d a t a   i t e m s   f r o m   a   r e m o t e   s e r v i c e . I f   t h e   v a l u e   o f   t r a n s p o r t . r e a d   i s   a   f u n c t i o n ,   t h e   d a t a   s o u r c e   i n v o k e s   t h a t   f u n c t i o n   i n s t e a d   o f   j Q u e r y . a j a x . I f   t h e   v a l u e   o f   t r a n s p o r t . r e a d   i s   a   s t r i n g ,   t h e   d a t a   s o u r c e   u s e s   t h i s   s t r i n g   a s   t h e   U R L   o f   t h e   r e m o t e   s e r v i c e . 
 
         7 4 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n | \ K e n d o \ D a t a \ D a t a S o u r c e T r a n s p o r t R e a d | a r r a y   $ v a l u e 
 
         7 5 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e T r a n s p o r t 
 
 
 
     L i n e   8 3   [ m a t c h :   U P D A T E   ] : 
 
         8 1 :           / * * 
 
         8 2 :           *   S e t s   t h e   s u b m i t   o p t i o n   o f   t h e   D a t a S o u r c e T r a n s p o r t . 
 
   > >   8 3 :           *   A   f u n c t i o n   t h a t   w i l l   h a n d l e   c r e a t e ,   u p d a t e   a n d   d e l e t e   o p e r a t i o n s   i n   a   s i n g l e   b a t c h   w h e n   c u s t o m   t r a n s p o r t   i s   u s e d ,   t h a t   i s ,   t h e   t r a n s p o r t . r e a d   i s   d e f i n e d   a s   a   f u n c t i o n . T h e   t r a n s p o r t . c r e a t e ,   t r a n s p o r t . u p d a t e ,   a n d   t r a n s p o r t . d e l e t e   o p e r a t i o n s   w i l l   n o t   b e   e x e c u t e d   i n   t h i s   c a s e . 
 
         8 4 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         8 5 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e T r a n s p o r t 
 
 
 
     L i n e   9 6   [ m a t c h :   U P D A T E   ] : 
 
         9 4 :   
 
         9 5 :           / * * 
 
   > >   9 6 :           *   T h e   c o n f i g u r a t i o n   u s e d   w h e n   t h e   d a t a   s o u r c e   s a v e s   u p d a t e d   d a t a   i t e m s .   T h o s e   a r e   d a t a   i t e m s   w h o s e   f i e l d s   h a v e   b e e n   u p d a t e d . I f   t h e   v a l u e   o f   t r a n s p o r t . u p d a t e   i s   a   f u n c t i o n ,   t h e   d a t a   s o u r c e   i n v o k e s   t h a t   f u n c t i o n   i n s t e a d   o f   j Q u e r y . a j a x . I f   t h e   v a l u e   o f   t r a n s p o r t . u p d a t e   i s   a   s t r i n g ,   t h e   d a t a   s o u r c e   u s e s   t h i s   s t r i n g   a s   t h e   U R L   o f   t h e   r e m o t e   s e r v i c e . 
 
         9 7 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n | \ K e n d o \ D a t a \ D a t a S o u r c e T r a n s p o r t U p d a t e | a r r a y   $ v a l u e 
 
         9 8 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e T r a n s p o r t 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a \ D a t a S o u r c e T r a n s p o r t C r e a t e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   T h e   t y p e   o f   r e s u l t   e x p e c t e d   f r o m   t h e   s e r v e r .   C o m m o n l y   u s e d   v a l u e s   a r e   " j s o n "   a n d   " j s o n p " . R e f e r   t o   t h e   j Q u e r y . a j a x   d o c u m e n t a t i o n   f o r   f u r t h e r   i n f o r m a t i o n . 
 
         3 7 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e T r a n s p o r t C r e a t e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a \ D a t a S o u r c e T r a n s p o r t D e s t r o y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   T h e   t y p e   o f   r e s u l t   e x p e c t e d   f r o m   t h e   s e r v e r .   C o m m o n l y   u s e d   v a l u e s   a r e   " j s o n "   a n d   " j s o n p " . R e f e r   t o   t h e   j Q u e r y . a j a x   d o c u m e n t a t i o n   f o r   f u r t h e r   i n f o r m a t i o n . 
 
         3 7 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e T r a n s p o r t D e s t r o y 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a \ D a t a S o u r c e T r a n s p o r t R e a d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   T h e   t y p e   o f   r e s u l t   e x p e c t e d   f r o m   t h e   s e r v e r .   C o m m o n l y   u s e d   v a l u e s   a r e   " j s o n "   a n d   " j s o n p " . R e f e r   t o   t h e   j Q u e r y . a j a x   d o c u m e n t a t i o n   f o r   f u r t h e r   i n f o r m a t i o n . 
 
         3 7 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e T r a n s p o r t R e a d 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a \ D a t a S o u r c e T r a n s p o r t U p d a t e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   T h e   t y p e   o f   r e s u l t   e x p e c t e d   f r o m   t h e   s e r v e r .   C o m m o n l y   u s e d   v a l u e s   a r e   " j s o n "   a n d   " j s o n p " . R e f e r   t o   t h e   j Q u e r y . a j a x   d o c u m e n t a t i o n   f o r   f u r t h e r   i n f o r m a t i o n . 
 
         3 7 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ D a t a \ D a t a S o u r c e T r a n s p o r t U p d a t e 
 
 
 
     L i n e   5   [ m a t c h :   U P D A T E   ] : 
 
         3 :   n a m e s p a c e   K e n d o \ D a t a ; 
 
         4 :   
 
   > >   5 :   c l a s s   D a t a S o u r c e T r a n s p o r t U p d a t e   e x t e n d s   \ K e n d o \ S e r i a l i z a b l e O b j e c t   { 
 
         6 :   / / > >   P r o p e r t i e s 
 
         7 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a \ P i v o t D a t a S o u r c e S c h e m a . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 2   [ m a t c h :   F R O M   ] : 
 
         1 0 :   
 
         1 1 :           / * * 
 
   > >   1 2 :           *   T h e   f i e l d   f r o m   t h e   s e r v e r   r e s p o n s e   w h i c h   c o n t a i n s   t h e   c o l u m n s   a n d   r o w s   a x e s   d a t a .   C a n   b e   s e t   t o   a   f u n c t i o n   w h i c h   i s   c a l l e d   t o 
 
         1 3 :   r e t u r n   t h e   c o l u m n s   a n d   r o w s   a x e s   d a t a   f o r   t h e   r e s p o n s e . 
 
         1 4 :           *   @ p a r a m   \ K e n d o \ J a v a S c r i p t F u n c t i o n | s t r i n g   $ v a l u e 
 
 
 
     L i n e   2 2   [ m a t c h :   F R O M   ] : 
 
         2 0 :   
 
         2 1 :           / * * 
 
   > >   2 2 :           *   T h e   f i e l d   f r o m   t h e   s e r v e r   r e s p o n s e   w h i c h   c o n t a i n s   t h e   l i s t   o f   c a t a l o g s   a v a i l a b l e   o n   t h e   s e r v e r .   C a n   b e   s e t   t o   a   f u n c t i o n   w h i c h   i s   c a l l e d   t o 
 
         2 3 :   r e t u r n   t h e   c a t a l o g s   s c h e m a   i n f o r m a t i o n   f o r   t h e   r e s p o n s e .   I t   i s   e x e c u t e d   d u r i n g   t h e   s c h e m a   d i s c o v e r . 
 
         2 4 :           *   @ p a r a m   \ K e n d o \ J a v a S c r i p t F u n c t i o n | s t r i n g   $ v a l u e 
 
 
 
     L i n e   3 2   [ m a t c h :   F R O M   ] : 
 
         3 0 :   
 
         3 1 :           / * * 
 
   > >   3 2 :           *   T h e   f i e l d   f r o m   t h e   s e r v e r   r e s p o n s e   w h i c h   c o n t a i n s   t h e   l i s t   o f   c u b e s   a v a i l a b l e   i n   t h e   c a t a l o g .   C a n   b e   s e t   t o   a   f u n c t i o n   w h i c h   i s   c a l l e d   t o 
 
         3 3 :   r e t u r n   t h e   c u b e s   s c h e m a   i n f o r m a t i o n   f o r   t h e   r e s p o n s e .   I t   i s   e x e c u t e d   d u r i n g   t h e   s c h e m a   d i s c o v e r . 
 
         3 4 :           *   @ p a r a m   \ K e n d o \ J a v a S c r i p t F u n c t i o n | s t r i n g   $ v a l u e 
 
 
 
     L i n e   4 2   [ m a t c h :   F R O M   ] : 
 
         4 0 :   
 
         4 1 :           / * * 
 
   > >   4 2 :           *   T h e   f i e l d   f r o m   t h e   s e r v e r   r e s p o n s e   w h i c h   c o n t a i n s   t h e   c e l l s   d a t a .   C a n   b e   s e t   t o   a   f u n c t i o n   w h i c h   i s   c a l l e d   t o 
 
         4 3 :   r e t u r n   t h e   c e l l s   d a t a   f o r   t h e   r e s p o n s e . 
 
         4 4 :           *   @ p a r a m   \ K e n d o \ J a v a S c r i p t F u n c t i o n | s t r i n g   $ v a l u e 
 
 
 
     L i n e   5 2   [ m a t c h :   F R O M   ] : 
 
         5 0 :   
 
         5 1 :           / * * 
 
   > >   5 2 :           *   T h e   f i e l d   f r o m   t h e   s e r v e r   r e s p o n s e   w h i c h   c o n t a i n s   t h e   d i m e n s i o n s   s c h e m a   i n f o r m a t i o n .   C a n   b e   s e t   t o   a   f u n c t i o n   w h i c h   i s   c a l l e d   t o 
 
         5 3 :   r e t u r n   t h e   d i m e n s i o n s   s c h e m a   i n f o r m a t i o n   f o r   t h e   r e s p o n s e .   I t   i s   e x e c u t e d   d u r i n g   t h e   s c h e m a   d i s c o v e r . 
 
         5 4 :           *   @ p a r a m   \ K e n d o \ J a v a S c r i p t F u n c t i o n | s t r i n g   $ v a l u e 
 
 
 
     L i n e   6 2   [ m a t c h :   F R O M   ] : 
 
         6 0 :   
 
         6 1 :           / * * 
 
   > >   6 2 :           *   T h e   f i e l d   f r o m   t h e   s e r v e r   r e s p o n s e   w h i c h   c o n t a i n s   t h e   h i e r a r c h i e s   s c h e m a   i n f o r m a t i o n .   C a n   b e   s e t   t o   a   f u n c t i o n   w h i c h   i s   c a l l e d   t o 
 
         6 3 :   r e t u r n   t h e   h i e r a r c h i e s   s c h e m a   i n f o r m a t i o n   f o r   t h e   r e s p o n s e .   I t   i s   e x e c u t e d   d u r i n g   t h e   s c h e m a   d i s c o v e r   r e q u e s t s . 
 
         6 4 :           *   @ p a r a m   \ K e n d o \ J a v a S c r i p t F u n c t i o n | s t r i n g   $ v a l u e 
 
 
 
     L i n e   7 2   [ m a t c h :   F R O M   ] : 
 
         7 0 :   
 
         7 1 :           / * * 
 
   > >   7 2 :           *   T h e   f i e l d   f r o m   t h e   s e r v e r   r e s p o n s e   w h i c h   c o n t a i n s   t h e   l e v e l s   s c h e m a   i n f o r m a t i o n .   C a n   b e   s e t   t o   a   f u n c t i o n   w h i c h   i s   c a l l e d   t o 
 
         7 3 :   r e t u r n   t h e   l e v e l s   s c h e m a   i n f o r m a t i o n   f o r   t h e   r e s p o n s e .   I t   i s   e x e c u t e d   d u r i n g   t h e   s c h e m a   d i s c o v e r . 
 
         7 4 :           *   @ p a r a m   \ K e n d o \ J a v a S c r i p t F u n c t i o n | s t r i n g   $ v a l u e 
 
 
 
     L i n e   8 2   [ m a t c h :   F R O M   ] : 
 
         8 0 :   
 
         8 1 :           / * * 
 
   > >   8 2 :           *   T h e   f i e l d   f r o m   t h e   s e r v e r   r e s p o n s e   w h i c h   c o n t a i n s   t h e   m e a s u r e s   s c h e m a   i n f o r m a t i o n .   C a n   b e   s e t   t o   a   f u n c t i o n   w h i c h   i s   c a l l e d   t o 
 
         8 3 :   r e t u r n   t h e   m e a s u r e s   s c h e m a   i n f o r m a t i o n   f o r   t h e   r e s p o n s e .   I t   i s   e x e c u t e d   d u r i n g   t h e   s c h e m a   d i s c o v e r . 
 
         8 4 :           *   @ p a r a m   \ K e n d o \ J a v a S c r i p t F u n c t i o n | s t r i n g   $ v a l u e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ A r c G a u g e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 9   [ m a t c h :   F R O M   ] : 
 
         7 7 :   
 
         7 8 :           / * * 
 
   > >   7 9 :           *   T h e   g a u g e   t h e m e .   T h i s   c a n   b e   e i t h e r   a   b u i l t - i n   t h e m e   o r   " s a s s " .   W h e n   s e t   t o   " s a s s "   t h e   g a u g e   w i l l   r e a d   t h e   v a r i a b l e s   f r o m   t h e   S a s s - b a s e d   t h e m e s . T h e   s u p p o r t e d   v a l u e s   a r e :   " s a s s "   -   s p e c i a l   v a l u e ,   s e e   n o t e s ;   " b l a c k " ;   " b l u e o p a l " ;   " b o o t s t r a p " ;   " d e f a u l t " ;   " h i g h c o n t r a s t " ;   " m e t r o " ;   " m e t r o b l a c k " ;   " m o o n l i g h t " ;   " s i l v e r "   o r   " u n i f o r m " . 
 
         8 0 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         8 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ A r c G a u g e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ A r c G a u g e S c a l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 0 8   [ m a t c h :   F R O M   ] : 
 
         1 0 6 :   
 
         1 0 7 :           / * * 
 
   > >   1 0 8 :           *   T h e   d i s t a n c e   f r o m   t h e   r a n g e   i n d i c a t o r s   t o   t h e   t i c k s . 
 
         1 0 9 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         1 1 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ A r c G a u g e S c a l e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 3 8   [ m a t c h :   F R O M   ] : 
 
         1 3 6 :   
 
         1 3 7 :           / * * 
 
   > >   1 3 8 :           *   T h e   d e f a u l t   c o l o r s   f o r   t h e   c h a r t ' s   s e r i e s .   W h e n   a l l   c o l o r s   a r e   u s e d ,   n e w   c o l o r s   a r e   p u l l e d   f r o m   t h e   s t a r t   a g a i n . 
 
         1 3 9 :           *   @ p a r a m   a r r a y   $ v a l u e 
 
         1 4 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t 
 
 
 
     L i n e   1 5 6   [ m a t c h :   F R O M   ] : 
 
         1 5 4 :   
 
         1 5 5 :           / * * 
 
   > >   1 5 6 :           *   T h e   c h a r t   t h e m e .   T h i s   c a n   b e   e i t h e r   a   b u i l t - i n   t h e m e   o r   " s a s s " .   W h e n   s e t   t o   " s a s s "   t h e   c h a r t   w i l l   r e a d   t h e   v a r i a b l e s   f r o m   t h e   S a s s - b a s e d   t h e m e s .   M o r e   i n f o r m a t i o n   o n   t h e   b u i l t - i n   t h e m e s   c o u l d   b e   f o u n d   i n   t h e   L e s s - b a s e d   t h e m e s   a r t i c l e . T h e   s u p p o r t e d   v a l u e s   a r e :   " s a s s "   -   s p e c i a l   v a l u e ,   s e e   n o t e s ;   " b l a c k " ;   " b l u e o p a l " ;   " b o o t s t r a p " ;   " d e f a u l t " ;   " f i o r i " ;   " f l a t " ;   " h i g h c o n t r a s t " ;   " m a t e r i a l " ;   " m a t e r i a l b l a c k " ;   " m e t r o " ;   " m e t r o b l a c k " ;   " m o o n l i g h t " ;   " n o v a " ;   " o f f i c e 3 6 5 " ;   " s i l v e r "   o r   " u n i f o r m " . 
 
         1 5 7 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 5 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t 
 
 
 
     L i n e   2 4 3   [ m a t c h :   F R O M   ] : 
 
         2 4 1 :           / * * 
 
         2 4 2 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   C h a r t . 
 
   > >   2 4 3 :           *   F i r e d   w h e n   t h e   w i d g e t   i s   b o u n d   t o   d a t a   f r o m   i t s   d a t a   s o u r c e . T h e   e v e n t   h a n d l e r   f u n c t i o n   c o n t e x t   ( a v a i l a b l e   v i a   t h e   t h i s   k e y w o r d )   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         2 4 4 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         2 4 5 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t 
 
 
 
     L i n e   4 5 2   [ m a t c h :   S E L E C T   ] : 
 
         4 5 0 :   
 
         4 5 1 :           / * * 
 
   > >   4 5 2 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   C h a r t . 
 
         4 5 3 :           *   F i r e d   w h e n   t h e   u s e r   m o d i f i e s   t h e   s e l e c t i o n . T h e   r a n g e   u n i t s   a r e :   G e n e r i c   a x i s   -   C a t e g o r y   i n d e x   ( 0 - b a s e d )   o r   D a t e   a x i s   -   D a t e   i n s t a n c e .   T h e   e v e n t   h a n d l e r   f u n c t i o n   c o n t e x t   ( a v a i l a b l e   v i a   t h e   t h i s   k e y w o r d )   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         4 5 4 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t C a t e g o r y A x i s I t e m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   d i s c r e t e   c a t e g o r y A x i s . b a s e U n i t S t e p   v a l u e s   w h e n   e i t h e r   c a t e g o r y A x i s . b a s e U n i t   i s   s e t   t o   " f i t "   o r c a t e g o r y A x i s . b a s e U n i t S t e p   i s   s e t   t o   " a u t o " . T h e   a x i s   w i l l   t r y   t o   d i v i d e   t h e   a c t i v e   p e r i o d   i n t o   s u c c e s s i v e l y   l a r g e r   i n t e r v a l s .   I t   w i l l   s t a r t   f r o m   x - s e c o n d   i n t e r v a l s ,   w h e r e   x   i s   p i c k e d   f r o m   t h e   a u t o B a s e U n i t S t e p s . s e c o n d s   a r r a y .   T h e n   i t   w i l l   m o v e   t o   m i n u t e s ,   s e c o n d s   a n d   s o   o n .   T h i s   w i l l   c o n t i n u e   u n t i l   t h e   n u m b e r   o f   i n t e r v a l s   i s   l e s s   t h a n m a x D a t e G r o u p s . 
 
         1 0 :           *   @ p a r a m   \ K e n d o \ D a t a v i z \ U I \ C h a r t C a t e g o r y A x i s I t e m A u t o B a s e U n i t S t e p s | a r r a y   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t C a t e g o r y A x i s I t e m 
 
 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   T h e   b a s e   t i m e   i n t e r v a l   f o r   t h e   d a t e   a x i s .   T h e   d e f a u l t   b a s e   u n i t   i s   d e t e r m i n e d   a u t o m a t i c a l l y   f r o m   t h e   m i n i m u m   d i f f e r e n c e   b e t w e e n   s u b s e q u e n t   c a t e g o r i e s . T h e   s u p p o r t e d   v a l u e s   a r e :   " f i t " ;   " m i l l i s e c o n d s " ;   " s e c o n d s " ;   " m i n u t e s " ;   " h o u r s " ;   " d a y s " ;   " w e e k s " ;   " m o n t h s "   o r   " y e a r s " .   S e t t i n g   b a s e U n i t   t o   " f i t "   w i l l   s e t   s u c h   b a s e   u n i t   a n d   c a t e g o r y A x i s . b a s e U n i t S t e p   t h a t   t h e   t o t a l   n u m b e r   o f   c a t e g o r i e s   d o e s   n o t   e x c e e d   c a t e g o r y A x i s . m a x D a t e G r o u p s . S e r i e s   d a t a   i s   a g g r e g a t e d   f o r   t h e   s p e c i f i e d   b a s e   u n i t   u s i n g   t h e   s e r i e s . a g g r e g a t e   f u n c t i o n . 
 
         3 7 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t C a t e g o r y A x i s I t e m 
 
 
 
     L i n e   2 2 5   [ m a t c h :   F R O M   ] : 
 
         2 2 3 :   
 
         2 2 4 :           / * * 
 
   > >   2 2 5 :           *   I f   s e t   t o   t r u e   t h e   c a t e g o r y   a x i s   d i r e c t i o n   w i l l   b e   r e v e r s e d .   B y   d e f a u l t   c a t e g o r i e s   a r e   l i s t e d   f r o m   l e f t   t o   r i g h t   a n d   f r o m   b o t t o m   t o   t o p . 
 
         2 2 6 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         2 2 7 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t C a t e g o r y A x i s I t e m 
 
 
 
     L i n e   2 4 3   [ m a t c h :   F R O M   ] : 
 
         2 4 1 :   
 
         2 4 2 :           / * * 
 
   > >   2 4 3 :           *   T h e   s e l e c t e d   a x i s   r a n g e .   I f   s e t ,   a x i s   s e l e c t i o n   w i l l   b e   e n a b l e d . T h e   r a n g e   i s   i n d e x   b a s e d ,   s t a r t i n g   f r o m   0 .   C a t e g o r i e s   w i t h   i n d e x e s   i n   t h e   r a n g e   [ s e l e c t . f r o m ,   s e l e c t . t o )   w i l l   b e   s e l e c t e d .   T h a t   i s ,   t h e   l a s t   c a t e g o r y   i n   t h e   r a n g e   w i l l   n o t   b e   i n c l u d e d   i n   t h e   s e l e c t i o n . I f   t h e   c a t e g o r i e s   a r e   d a t e s ,   t h e   r a n g e   m u s t   a l s o   b e   s p e c i f i e d   w i t h   d a t e   v a l u e s . 
 
         2 4 4 :           *   @ p a r a m   \ K e n d o \ D a t a v i z \ U I \ C h a r t C a t e g o r y A x i s I t e m S e l e c t | a r r a y   $ v a l u e 
 
         2 4 5 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t C a t e g o r y A x i s I t e m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t C a t e g o r y A x i s I t e m S e l e c t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5   [ m a t c h :   S E L E C T   ] : 
 
         3 :   n a m e s p a c e   K e n d o \ D a t a v i z \ U I ; 
 
         4 :   
 
   > >   5 :   c l a s s   C h a r t C a t e g o r y A x i s I t e m S e l e c t   e x t e n d s   \ K e n d o \ S e r i a l i z a b l e O b j e c t   { 
 
         6 :   / / > >   P r o p e r t i e s 
 
         7 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t L e g e n d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9 0   [ m a t c h :   F R O M   ] : 
 
         8 8 :   
 
         8 9 :           / * * 
 
   > >   9 0 :           *   T h e   Y   o f f s e t   o f   t h e   c h a r t   l e g e n d .     T h e   o f f s e t   i s   r e l a t i v e   t o   t h e   c u r r e n t   p o s i t i o n   o f   t h e   l e g e n d .   F o r   i n s t a n c e ,   a   v a l u e   o f   2 0   w i l l   m o v e   t h e   l e g e n d   2 0   p i x e l s   d o w n   f r o m   i t s   i n i t i a l   p o s i t i o n .   A   n e g a t i v e   v a l u e   w i l l   m o v e   t h e   l e g e n d   u p w a r d s   f r o m   i t s   c u r r e n t   p o s i t i o n . 
 
         9 1 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         9 2 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t L e g e n d 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t P d f . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 3   [ m a t c h :   F R O M   ] : 
 
         6 1 :   
 
         6 2 :           / * * 
 
   > >   6 3 :           *   S p e c i f i e s   t h e   q u a l i t y   o f   t h e   i m a g e s   w i t h i n   t h e   e x p o r t e d   f i l e ,   f r o m   0   t o   1 . 
 
         6 4 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         6 5 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t P d f 
 
 
 
     L i n e   1 2 6   [ m a t c h :   F R O M   ] : 
 
         1 2 4 :   
 
         1 2 5 :           / * * 
 
   > >   1 2 6 :           *   A   n a m e   o r   k e y w o r d   i n d i c a t i n g   w h e r e   t o   d i s p l a y   t h e   d o c u m e n t   r e t u r n e d   f r o m   t h e   p r o x y . I f   y o u   w a n t   t o   d i s p l a y   t h e   d o c u m e n t   i n   a   n e w   w i n d o w   o r   i f r a m e ,   t h e   p r o x y   s h o u l d   s e t   t h e   " C o n t e n t - D i s p o s i t i o n "   h e a d e r   t o   i n l i n e ;   f i l e n a m e = " < f i l e N a m e . p d f > " . 
 
         1 2 7 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 2 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t P d f 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 2   [ m a t c h :   F R O M   ] : 
 
         7 0 :   
 
         7 1 :           / * * 
 
   > >   7 2 :           *   T h e   p o s i t i o n   o f   t h e   l a b e l s .   " a b o v e "   -   t h e   l a b e l   i s   p o s i t i o n e d   a t   t h e   t o p   o f   t h e   m a r k e r .   A p p l i c a b l e   f o r   s e r i e s   t h a t   r e n d e r   p o i n t s ,   i n c l .   b u b b l e . ;   " b e l o w "   -   t h e   l a b e l   i s   p o s i t i o n e d   a t   t h e   b o t t o m   o f   t h e   m a r k e r .   A p p l i c a b l e   f o r   s e r i e s   t h a t   r e n d e r   p o i n t s ,   i n c l .   b u b b l e . ;   " c e n t e r "   -   t h e   l a b e l   i s   p o s i t i o n e d   a t   t h e   p o i n t   c e n t e r .   A p p l i c a b l e   f o r   b a r ,   c o l u m n ,   d o n u t ,   p i e ,   f u n n e l ,   r a d a r C o l u m n   a n d   w a t e r f a l l   s e r i e s . ;   " i n s i d e B a s e "   -   t h e   l a b e l   i s   p o s i t i o n e d   i n s i d e ,   n e a r   t h e   b a s e   o f   t h e   b a r .   A p p l i c a b l e   f o r   b a r ,   c o l u m n   a n d   w a t e r f a l l   s e r i e s . ;   " i n s i d e E n d "   -   t h e   l a b e l   i s   p o s i t i o n e d   i n s i d e ,   n e a r   t h e   e n d   o f   t h e   p o i n t .   A p p l i c a b l e   f o r   b a r ,   c o l u m n ,   d o n u t ,   p i e ,   r a d a r C o l u m n   a n d   w a t e r f a l l   s e r i e s . ;   " l e f t "   -   t h e   l a b e l   i s   p o s i t i o n e d   t o   t h e   l e f t   o f   t h e   m a r k e r .   A p p l i c a b l e   f o r   s e r i e s   t h a t   r e n d e r   p o i n t s ,   i n c l .   b u b b l e . ;   " o u t s i d e E n d "   -   t h e   l a b e l   i s   p o s i t i o n e d   o u t s i d e ,   n e a r   t h e   e n d   o f   t h e   p o i n t .   A p p l i c a b l e   f o r   b a r ,   c o l u m n ,   d o n u t ,   p i e ,   r a d a r C o l u m n   a n d   w a t e r f a l l   s e r i e s .   N o t   a p p l i c a b l e   f o r   s t a c k e d   s e r i e s . ;   " r i g h t "   -   t h e   l a b e l   i s   p o s i t i o n e d   t o   t h e   r i g h t   o f   t h e   m a r k e r .   A p p l i c a b l e   f o r   s e r i e s   t h a t   r e n d e r   p o i n t s ,   i n c l .   b u b b l e . ;   " t o p "   -   t h e   l a b e l   i s   p o s i t i o n e d   a t   t h e   t o p   o f   t h e   s e g m e n t .   A p p l i c a b l e   f o r   f u n n e l   s e r i e s . ;   " b o t t o m "   -   t h e   l a b e l   i s   p o s i t i o n e d   a t   t h e   b o t t o m   o f   t h e   s e g m e n t .   A p p l i c a b l e   f o r   f u n n e l   s e r i e s .   o r   " a u t o "   -   t h e   f r o m   a n d   t o   l a b e l s   a r e a   p o s i t i o n e d   a t   t h e   t o p / b o t t o m ( r a n g e A r e a   s e r i e s )   o r   l e f t / r i g h t ( v e r t i c a l R a n g e A r e a   s e r i e s )   s o   t h a t   t h e y   a r e   o u t s i d e   t h e   f i l l e d   a r e a .   A p p l i c a b l e   f o r   r a n g e A r e a   a n d   v e r t i c a l R a n g e A r e a   s e r i e s . . 
 
         7 3 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e 
 
         7 4 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s 
 
 
 
     L i n e   1 2 2   [ m a t c h :   F R O M   ] : 
 
         1 2 0 :           / * * 
 
         1 2 1 :           *   S e t s   t h e   v i s u a l   o p t i o n   o f   t h e   C h a r t S e r i e s D e f a u l t s L a b e l s . 
 
   > >   1 2 2 :           *   A   f u n c t i o n   t h a t   c a n   b e   u s e d   t o   c r e a t e   a   c u s t o m   v i s u a l   f o r   t h e   l a b e l s .   T h e   a v a i l a b l e   a r g u m e n t   f i e l d s   a r e :   t e x t   -   t h e   l a b e l   t e x t . ;   r e c t   -   t h e   k e n d o . g e o m e t r y . R e c t   t h a t   d e f i n e s   w h e r e   t h e   v i s u a l   s h o u l d   b e   r e n d e r e d . ;   o p t i o n s   -   t h e   l a b e l   o p t i o n s . ;   c r e a t e V i s u a l   -   a   f u n c t i o n   t h a t   c a n   b e   u s e d   t o   g e t   t h e   d e f a u l t   v i s u a l . ;   s e n d e r   -   t h e   c h a r t   i n s t a n c e   ( m a y   b e   u n d e f i n e d ) . ;   v a l u e   -   T h e   p o i n t   v a l u e . ;   c a t e g o r y   -   T h e   p o i n t   c a t e g o r y . ;   s t a c k V a l u e   -   T h e   c u m u l a t i v e   p o i n t   v a l u e   o n   t h e   s t a c k .   A v a i l a b l e   o n l y   f o r   t h e   s t a c k a b l e   s e r i e s . ;   d a t a I t e m   -   T h e   p o i n t   d a t a I t e m . ;   s e r i e s   -   T h e   p o i n t   s e r i e s . ;   p e r c e n t a g e   -   T h e   p o i n t   v a l u e   t h a t   i s   r e p r e s e n t e d   a s   a   p e r c e n t a g e   v a l u e .   A v a i l a b l e   o n l y   f o r   t h e   D o n u t ,   P i e ,   a n d   1 0 0 %   s t a c k e d   c h a r t s . ;   r u n n i n g T o t a l   -   T h e   s u m   o f   p o i n t   v a l u e s   f r o m   t h e   l a s t   r u n n i n g T o t a l   s u m m a r y   p o i n t   o n w a r d s .   A v a i l a b l e   f o r   t h e   W a t e r f a l l   s e r i e s .   o r   t o t a l   -   T h e   s u m   o f   a l l   p r e v i o u s   s e r i e s   v a l u e s .   A v a i l a b l e   f o r   t h e   W a t e r f a l l   s e r i e s . . 
 
         1 2 3 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         1 2 4 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s 
 
 
 
     L i n e   1 3 5   [ m a t c h :   F R O M   ] : 
 
         1 3 3 :   
 
         1 3 4 :           / * * 
 
   > >   1 3 5 :           *   T h e   c h a r t   s e r i e s   f r o m   l a b e l   c o n f i g u r a t i o n . 
 
         1 3 6 :           *   @ p a r a m   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m | a r r a y   $ v a l u e 
 
         1 3 7 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5   [ m a t c h :   F R O M   ] : 
 
         3 :   n a m e s p a c e   K e n d o \ D a t a v i z \ U I ; 
 
         4 :   
 
   > >   5 :   c l a s s   C h a r t S e r i e s D e f a u l t s L a b e l s F r o m   e x t e n d s   \ K e n d o \ S e r i a l i z a b l e O b j e c t   { 
 
         6 :   / / > >   P r o p e r t i e s 
 
         7 :   
 
 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   b a c k g r o u n d   c o l o r   o f   t h e   f r o m   l a b e l s .   A c c e p t s   a   v a l i d   C S S   c o l o r   s t r i n g ,   i n c l u d i n g   h e x   a n d   r g b . 
 
         1 0 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m 
 
 
 
     L i n e   1 8   [ m a t c h :   F R O M   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   T h e   b o r d e r   o f   t h e   f r o m   l a b e l s . 
 
         1 9 :           *   @ p a r a m   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m B o r d e r | a r r a y   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m 
 
 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   t e x t   c o l o r   o f   t h e   f r o m   l a b e l s .   A c c e p t s   a   v a l i d   C S S   c o l o r   s t r i n g ,   i n c l u d i n g   h e x   a n d   r g b . 
 
         2 8 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m 
 
 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   T h e   f o n t   s t y l e   o f   t h e   f r o m   l a b e l s . 
 
         3 7 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m 
 
 
 
     L i n e   4 5   [ m a t c h :   F R O M   ] : 
 
         4 3 :   
 
         4 4 :           / * * 
 
   > >   4 5 :           *   T h e   f o r m a t   o f   t h e   f r o m   l a b e l s .   U s e s   k e n d o . f o r m a t . 
 
         4 6 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         4 7 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m 
 
 
 
     L i n e   5 4   [ m a t c h :   F R O M   ] : 
 
         5 2 :   
 
         5 3 :           / * * 
 
   > >   5 4 :           *   T h e   m a r g i n   o f   t h e   f r o m   l a b e l s .   A   n u m e r i c   v a l u e   w i l l   s e t   a l l   m a r g i n s . 
 
         5 5 :           *   @ p a r a m   f l o a t | \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m M a r g i n | a r r a y   $ v a l u e 
 
         5 6 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m 
 
 
 
     L i n e   6 3   [ m a t c h :   F R O M   ] : 
 
         6 1 :   
 
         6 2 :           / * * 
 
   > >   6 3 :           *   T h e   p a d d i n g   o f   t h e   f r o m   l a b e l s .   A   n u m e r i c   v a l u e   w i l l   s e t   a l l   p a d d i n g s . 
 
         6 4 :           *   @ p a r a m   f l o a t | \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m P a d d i n g | a r r a y   $ v a l u e 
 
         6 5 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m 
 
 
 
     L i n e   7 3   [ m a t c h :   F R O M   ] : 
 
         7 1 :           / * * 
 
         7 2 :           *   S e t s   t h e   t e m p l a t e   o p t i o n   o f   t h e   C h a r t S e r i e s D e f a u l t s L a b e l s F r o m . 
 
   > >   7 3 :           *   T h e   t e m p l a t e   w h i c h   r e n d e r s   t h e   c h a r t   s e r i e s   f r o m   l a b e l . T h e   f i e l d s   w h i c h   c a n   b e   u s e d   i n   t h e   t e m p l a t e   a r e :   c a t e g o r y   -   t h e   c a t e g o r y   n a m e .   A v a i l a b l e   f o r   a r e a ,   b a r ,   c o l u m n ,   b u b b l e ,   d o n u t ,   f u n n e l ,   l i n e   a n d   p i e   s e r i e s . ;   d a t a I t e m   -   t h e   o r i g i n a l   d a t a   i t e m   u s e d   t o   c o n s t r u c t   t h e   p o i n t .   W i l l   b e   n u l l   i f   b i n d i n g   t o   a r r a y . ;   p e r c e n t a g e   -   t h e   p o i n t   v a l u e   r e p r e s e n t e d   a s   a   p e r c e n t a g e   v a l u e .   A v a i l a b l e   f o r   d o n u t ,   f u n n e l   a n d   p i e   s e r i e s . ;   s e r i e s   -   t h e   d a t a   s e r i e s ;   v a l u e   -   t h e   p o i n t   v a l u e .   C a n   b e   a   n u m b e r   o r   o b j e c t   c o n t a i n i n g   e a c h   b o u n d   f i e l d . ;   r u n n i n g T o t a l   -   t h e   s u m   o f   p o i n t   v a l u e s   s i n c e   t h e   l a s t   " r u n n i n g T o t a l "   s u m m a r y   p o i n t .   A v a i l a b l e   f o r   w a t e r f a l l   s e r i e s .   o r   t o t a l   -   t h e   s u m   o f   a l l   p r e v i o u s   s e r i e s   v a l u e s .   A v a i l a b l e   f o r   w a t e r f a l l   s e r i e s . . 
 
         7 4 :           *   @ p a r a m   s t r i n g   $ v a l u e   T h e   i d   o f   t h e   e l e m e n t   w h i c h   r e p r e s e n t s   t h e   k e n d o   t e m p l a t e . 
 
         7 5 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m 
 
 
 
     L i n e   8 5   [ m a t c h :   F R O M   ] : 
 
         8 3 :           / * * 
 
         8 4 :           *   S e t s   t h e   t e m p l a t e   o p t i o n   o f   t h e   C h a r t S e r i e s D e f a u l t s L a b e l s F r o m . 
 
   > >   8 5 :           *   T h e   t e m p l a t e   w h i c h   r e n d e r s   t h e   c h a r t   s e r i e s   f r o m   l a b e l . T h e   f i e l d s   w h i c h   c a n   b e   u s e d   i n   t h e   t e m p l a t e   a r e :   c a t e g o r y   -   t h e   c a t e g o r y   n a m e .   A v a i l a b l e   f o r   a r e a ,   b a r ,   c o l u m n ,   b u b b l e ,   d o n u t ,   f u n n e l ,   l i n e   a n d   p i e   s e r i e s . ;   d a t a I t e m   -   t h e   o r i g i n a l   d a t a   i t e m   u s e d   t o   c o n s t r u c t   t h e   p o i n t .   W i l l   b e   n u l l   i f   b i n d i n g   t o   a r r a y . ;   p e r c e n t a g e   -   t h e   p o i n t   v a l u e   r e p r e s e n t e d   a s   a   p e r c e n t a g e   v a l u e .   A v a i l a b l e   f o r   d o n u t ,   f u n n e l   a n d   p i e   s e r i e s . ;   s e r i e s   -   t h e   d a t a   s e r i e s ;   v a l u e   -   t h e   p o i n t   v a l u e .   C a n   b e   a   n u m b e r   o r   o b j e c t   c o n t a i n i n g   e a c h   b o u n d   f i e l d . ;   r u n n i n g T o t a l   -   t h e   s u m   o f   p o i n t   v a l u e s   s i n c e   t h e   l a s t   " r u n n i n g T o t a l "   s u m m a r y   p o i n t .   A v a i l a b l e   f o r   w a t e r f a l l   s e r i e s .   o r   t o t a l   -   t h e   s u m   o f   a l l   p r e v i o u s   s e r i e s   v a l u e s .   A v a i l a b l e   f o r   w a t e r f a l l   s e r i e s . . 
 
         8 6 :           *   @ p a r a m   s t r i n g   $ v a l u e   T h e   t e m p l a t e   c o n t e n t . 
 
         8 7 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m 
 
 
 
     L i n e   9 4   [ m a t c h :   F R O M   ] : 
 
         9 2 :   
 
         9 3 :           / * * 
 
   > >   9 4 :           *   I f   s e t   t o   t r u e   t h e   c h a r t   w i l l   d i s p l a y   t h e   s e r i e s   f r o m   l a b e l s .   B y   d e f a u l t   c h a r t   s e r i e s   f r o m   l a b e l s   a r e   n o t   d i s p l a y e d . 
 
         9 5 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         9 6 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m M a r g i n . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   b o t t o m   m a r g i n   o f   t h e   f r o m   l a b e l s . 
 
         1 0 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m M a r g i n 
 
 
 
     L i n e   1 8   [ m a t c h :   F R O M   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   T h e   l e f t   m a r g i n   o f   t h e   f r o m   l a b e l s . 
 
         1 9 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m M a r g i n 
 
 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   r i g h t   m a r g i n   o f   t h e   f r o m   l a b e l s . 
 
         2 8 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m M a r g i n 
 
 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   T h e   t o p   m a r g i n   o f   t h e   f r o m   l a b e l s . 
 
         3 7 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m M a r g i n 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m P a d d i n g . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   b o t t o m   p a d d i n g   o f   t h e   f r o m   l a b e l s . 
 
         1 0 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m P a d d i n g 
 
 
 
     L i n e   1 8   [ m a t c h :   F R O M   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   T h e   l e f t   p a d d i n g   o f   t h e   f r o m   l a b e l s . 
 
         1 9 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m P a d d i n g 
 
 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   r i g h t   p a d d i n g   o f   t h e   f r o m   l a b e l s . 
 
         2 8 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m P a d d i n g 
 
 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   T h e   t o p   p a d d i n g   o f   t h e   f r o m   l a b e l s . 
 
         3 7 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s L a b e l s F r o m P a d d i n g 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s T o o l t i p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 5   [ m a t c h :   F R O M   ] : 
 
         4 3 :   
 
         4 4 :           / * * 
 
   > >   4 5 :           *   T h e   f o r m a t   o f   t h e   l a b e l s .   U s e s   k e n d o . f o r m a t . F o r m a t   p l a c e h o l d e r s :   A r e a ,   b a r ,   c o l u m n ,   f u n n e l ,   l i n e   a n d   p i e { 0 }   -   v a l u e ;   B u b b l e { 0 }   -   x   v a l u e { 1 }   -   y   v a l u e { 2 }   -   s i z e   v a l u e { 3 }   -   c a t e g o r y   n a m e ;   S c a t t e r   a n d   s c a t t e r L i n e { 0 }   -   x   v a l u e { 1 }   -   y   v a l u e ;   C a n d l e s t i c k   a n d   O H L C { 0 }   -   o p e n   v a l u e { 1 }   -   h i g h   v a l u e { 2 }   -   l o w   v a l u e { 3 }   -   c l o s e   v a l u e { 4 }   -   c a t e g o r y   n a m e   o r   R a n g e A r e a ,   r a n g e B a r ,   r a n g e C o l u m n { 0 }   -   f r o m   v a l u e { 1 }   -   t o   v a l u e . 
 
         4 6 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         4 7 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s D e f a u l t s T o o l t i p 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 1 7   [ m a t c h :   F R O M   ] : 
 
         1 1 5 :   
 
         1 1 6 :           / * * 
 
   > >   1 1 7 :           *   T h e   a r r a y   o f   d a t a   i t e m s   w h i c h   r e p r e s e n t   t h e   s e r i e s   d a t a . C a n   b e   s e t   t o   :   A r r a y   o f   o b j e c t s .   E a c h   p o i n t   i s   b o u n d   t o   t h e   f i e l d   s p e c i f i e d   v i a   t h e   s e r i e s . f i e l d   o p t i o n . ;   A r r a y   o f   n u m b e r s .   S u p p o r t e d   w h e n   t h e   s e r i e s . t y p e   o p t i o n   i s   s e t   t o   " a r e a " ,   " b a r " ,   " c o l u m n " ,   " d o n u t " ,   " p i e " ,   " l i n e "   o r   " w a t e r f a l l " .   o r   A r r a y   o f   a r r a y s   o f   n u m b e r s .   S u p p o r t e d   w h e n   t h e   s e r i e s . t y p e   o p t i o n   i s   s e t   t o   " b u b b l e " ,   " s c a t t e r " ,   " s c a t t e r L i n e " ,   " o h l c " ,   " r a n g e B a r " ,   " r a n g e A r e a "   o r   p o l a r   s e r i e s . B u b b l e   s e r i e s   n e e d   a r r a y s   o f   t h r e e   v a l u e s   -   X   v a l u e ,   Y   v a l u e   a n d   S i z e   v a l u e   e . g .   [ 1 ,   1 ,   1 0 ] S c a t t e r   a n d   s c a t t e r   l i n e   s e r i e s   n e e d   a r r a y s   o f   t w o   v a l u e s   -   X   v a l u e   a n d   Y   v a l u e O H L C   a n d   c a n d l e s t i c k   s e r i e s   n e e d   a r r a y s   o f   f o u r   v a l u e s   -   o p e n ,   h i g h ,   l o w   a n d   c l o s e R a n g e B a r   a n d   R a n g e A r e a   s e r i e s   n e e d   a r r a y s   o f   t w o   v a l u e s   -   t h e   f r o m   a n d   t o   v a l u e . . 
 
         1 1 8 :           *   @ p a r a m   a r r a y   $ v a l u e 
 
         1 1 9 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m 
 
 
 
     L i n e   2 7 0   [ m a t c h :   F R O M   ] : 
 
         2 6 8 :   
 
         2 6 9 :           / * * 
 
   > >   2 7 0 :           *   T h e   d a t a   i t e m   f i e l d   w h i c h   c o n t a i n s   t h e   s e r i e s   f r o m   v a l u e . 
 
         2 7 1 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 7 2 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m 
 
 
 
     L i n e   4 9 5   [ m a t c h :   F R O M   ] : 
 
         4 9 3 :   
 
         4 9 4 :           / * * 
 
   > >   4 9 5 :           *   T h e   b e h a v i o r   f o r   h a n d l i n g   m i s s i n g   v a l u e s .   T h e   s u p p o r t e d   v a l u e s   a r e :   " g a p "   -   t h e   p l o t   s t o p s   b e f o r e   t h e   m i s s i n g   p o i n t   a n d   c o n t i n u e s   a f t e r   i t . ;   " i n t e r p o l a t e "   -   t h e   v a l u e   i s   i n t e r p o l a t e d   f r o m   n e i g h b o r i n g   p o i n t s .   o r   " z e r o "   -   t h e   v a l u e   i s   a s s u m e d   t o   b e   z e r o . . 
 
         4 9 6 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         4 9 7 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m E r r o r B a r s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   e r r o r   b a r s   v a l u e . T h e   f o l l o w i n g   v a l u e   t y p e s   a r e   s u p p o r t e d :   " s t d e r r "   -   t h e   s t a n d a r d   e r r o r   o f   t h e   s e r i e s   v a l u e s   w i l l   b e   u s e d   t o   c a l c u l a t e   t h e   p o i n t   l o w   a n d   h i g h   v a l u e ;   " s t d d e v ( n ) "   -   t h e   s t a n d a r d   d e v i a t i o n   o f   t h e   s e r i e s   v a l u e s   w i l l   b e   u s e d   t o   c a l c u l a t e   t h e   p o i n t   l o w   a n d   h i g h   v a l u e .   A   n u m b e r   c a n   b e   s p e c i f i e d   b e t w e e n   t h e   p a r e n t h e s e s ,   t h a t   w i l l   b e   m u l t i p l i e d   b y   t h e   c a l c u l a t e d   s t a n d a r d   d e v i a t i o n . ;   " p e r c e n t a g e ( n ) "   -   a   p e r c e n t a g e   o f   t h e   p o i n t   v a l u e ;   A   n u m b e r   t h a t   w i l l   b e   s u b t r a c t e d / a d d e d   t o   t h e   p o i n t   v a l u e ;   A n   a r r a y   t h a t   h o l d s   t h e   l o w   a n d   h i g h   d i f f e r e n c e   f r o m   t h e   p o i n t   v a l u e   o r   A   f u n c t i o n   t h a t   r e t u r n s   t h e   e r r o r B a r s   p o i n t   v a l u e . 
 
         1 0 :           *   @ p a r a m   s t r i n g | f l o a t | a r r a y | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m E r r o r B a r s 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m H i g h l i g h t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   b o r d e r   o f   t h e   h i g h l i g h t e d   c h a r t   s e r i e s .   T h e   c o l o r   i s   c o m p u t e d   a u t o m a t i c a l l y   f r o m   t h e   b a s e   p o i n t   c o l o r . 
 
         1 0 :           *   @ p a r a m   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m H i g h l i g h t B o r d e r | a r r a y   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m H i g h l i g h t 
 
 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   T h e   l i n e   o f   t h e   h i g h l i g h t e d   c h a r t   s e r i e s .   T h e   c o l o r   i s   c o m p u t e d   a u t o m a t i c a l l y   f r o m   t h e   b a s e   p o i n t   c o l o r . 
 
         3 7 :           *   @ p a r a m   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m H i g h l i g h t L i n e | a r r a y   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m H i g h l i g h t 
 
 
 
     L i n e   7 8   [ m a t c h :   F R O M   ] : 
 
         7 6 :           / * * 
 
         7 7 :           *   S e t s   t h e   v i s u a l   o p t i o n   o f   t h e   C h a r t S e r i e s I t e m H i g h l i g h t . 
 
   > >   7 8 :           *   A   f u n c t i o n   t h a t   c a n   b e   u s e d   t o   s e t   c u s t o m   v i s u a l   f o r   t h e   p o i n t   h i g h l i g h t . T h e   a v a i l a b l e   a r g u m e n t   f i e l d s   a r e :   c r e a t e V i s u a l   -   a   f u n c t i o n   t h a t   c a n   b e   u s e d   t o   g e t   t h e   d e f a u l t   h i g h l i g h t   v i s u a l . ;   r e c t   -   t h e   k e n d o . g e o m e t r y . R e c t   t h a t   d e f i n e s   w h e r e   t h e   v i s u a l   s h o u l d   b e   r e n d e r e d . ;   v i s u a l   -   t h e   v i s u a l   e l e m e n t   t h a t   s h o u l d   b e   h i g h l i g h t e d . ;   o p t i o n s   -   t h e   p o i n t   o p t i o n s . ;   c a t e g o r y   -   t h e   p o i n t   c a t e g o r y . ;   d a t a I t e m   -   t h e   p o i n t   d a t a I t e m . ;   v a l u e   -   t h e   p o i n t   v a l u e . ;   s e n d e r   -   t h e   c h a r t   i n s t a n c e . ;   s e r i e s   -   t h e   p o i n t   s e r i e s . ;   s t a c k V a l u e   -   t h e   c u m u l a t i v e   p o i n t   v a l u e   o n   t h e   s t a c k .   A v a i l a b l e   o n l y   f o r   s t a c k a b l e   s e r i e s . ;   p e r c e n t a g e   -   t h e   p o i n t   v a l u e   r e p r e s e n t e d   a s   a   p e r c e n t a g e   v a l u e .   A v a i l a b l e   o n l y   f o r   d o n u t ,   p i e   a n d   1 0 0 %   s t a c k e d   c h a r t s . ;   r u n n i n g T o t a l   -   t h e   s u m   o f   p o i n t   v a l u e s   s i n c e   t h e   l a s t   " r u n n i n g T o t a l "   s u m m a r y   p o i n t .   A v a i l a b l e   f o r   w a t e r f a l l   s e r i e s . ;   t o t a l   -   t h e   s u m   o f   a l l   p r e v i o u s   s e r i e s   v a l u e s .   A v a i l a b l e   f o r   w a t e r f a l l   s e r i e s . ;   f r o m   -   t h e   " f r o m "   p o i n t   h i g h l i g h t   v i s u a l   o p t i o n s .   A v a i l a b l e   f o r   " r a n g e A r e a "   a n d   " v e r t i c a l R a n g e A r e a "   s e r i e s .   o r   t o   -   t h e   " t o "   p o i n t   h i g h l i g h t   v i s u a l   o p t i o n s .   A v a i l a b l e   f o r   " r a n g e A r e a "   a n d   " v e r t i c a l R a n g e A r e a "   s e r i e s . . 
 
         7 9 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         8 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m H i g h l i g h t 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9 0   [ m a t c h :   F R O M   ] : 
 
         8 8 :   
 
         8 9 :           / * * 
 
   > >   9 0 :           *   T h e   p o s i t i o n   o f   t h e   l a b e l s .   " a b o v e "   -   t h e   l a b e l   i s   p o s i t i o n e d   a t   t h e   t o p   o f   t h e   m a r k e r .   A p p l i c a b l e   f o r   s e r i e s   t h a t   r e n d e r   p o i n t s ,   i n c l .   b u b b l e . ;   " b e l o w "   -   t h e   l a b e l   i s   p o s i t i o n e d   a t   t h e   b o t t o m   o f   t h e   m a r k e r .   A p p l i c a b l e   f o r   s e r i e s   t h a t   r e n d e r   p o i n t s ,   i n c l .   b u b b l e . ;   " c e n t e r "   -   t h e   l a b e l   i s   p o s i t i o n e d   a t   t h e   p o i n t   c e n t e r .   A p p l i c a b l e   f o r   b a r ,   c o l u m n ,   d o n u t ,   p i e ,   f u n n e l ,   r a d a r C o l u m n   a n d   w a t e r f a l l   s e r i e s . ;   " i n s i d e B a s e "   -   t h e   l a b e l   i s   p o s i t i o n e d   i n s i d e ,   n e a r   t h e   b a s e   o f   t h e   b a r .   A p p l i c a b l e   f o r   b a r ,   c o l u m n   a n d   w a t e r f a l l   s e r i e s . ;   " i n s i d e E n d "   -   t h e   l a b e l   i s   p o s i t i o n e d   i n s i d e ,   n e a r   t h e   e n d   o f   t h e   p o i n t .   A p p l i c a b l e   f o r   b a r ,   c o l u m n ,   d o n u t ,   p i e ,   r a d a r C o l u m n   a n d   w a t e r f a l l   s e r i e s . ;   " l e f t "   -   t h e   l a b e l   i s   p o s i t i o n e d   t o   t h e   l e f t   o f   t h e   m a r k e r .   A p p l i c a b l e   f o r   s e r i e s   t h a t   r e n d e r   p o i n t s ,   i n c l .   b u b b l e . ;   " o u t s i d e E n d "   -   t h e   l a b e l   i s   p o s i t i o n e d   o u t s i d e ,   n e a r   t h e   e n d   o f   t h e   p o i n t .   A p p l i c a b l e   f o r   b a r ,   c o l u m n ,   d o n u t ,   p i e ,   r a d a r C o l u m n   a n d   w a t e r f a l l   s e r i e s .   N o t   a p p l i c a b l e   f o r   s t a c k e d   s e r i e s . ;   " r i g h t "   -   t h e   l a b e l   i s   p o s i t i o n e d   t o   t h e   r i g h t   o f   t h e   m a r k e r .   A p p l i c a b l e   f o r   s e r i e s   t h a t   r e n d e r   p o i n t s ,   i n c l .   b u b b l e . ;   " t o p "   -   t h e   l a b e l   i s   p o s i t i o n e d   a t   t h e   t o p   o f   t h e   s e g m e n t .   A p p l i c a b l e   f o r   f u n n e l   s e r i e s . ;   " b o t t o m "   -   t h e   l a b e l   i s   p o s i t i o n e d   a t   t h e   b o t t o m   o f   t h e   s e g m e n t .   A p p l i c a b l e   f o r   f u n n e l   s e r i e s .   o r   " a u t o "   -   t h e   f r o m   a n d   t o   l a b e l s   a r e a   p o s i t i o n e d   a t   t h e   t o p / b o t t o m ( r a n g e A r e a   s e r i e s )   o r   l e f t / r i g h t ( v e r t i c a l R a n g e A r e a   s e r i e s )   s o   t h a t   t h e y   a r e   o u t s i d e   t h e   f i l l e d   a r e a .   A p p l i c a b l e   f o r   r a n g e A r e a   a n d   v e r t i c a l R a n g e A r e a   s e r i e s . . 
 
         9 1 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e 
 
         9 2 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s 
 
 
 
     L i n e   1 4 0   [ m a t c h :   F R O M   ] : 
 
         1 3 8 :           / * * 
 
         1 3 9 :           *   S e t s   t h e   v i s u a l   o p t i o n   o f   t h e   C h a r t S e r i e s I t e m L a b e l s . 
 
   > >   1 4 0 :           *   A   f u n c t i o n   t h a t   c a n   b e   u s e d   t o   c r e a t e   a   c u s t o m   v i s u a l   f o r   t h e   l a b e l s .   T h e   a v a i l a b l e   a r g u m e n t   f i e l d s   a r e :   t e x t   -   t h e   l a b e l   t e x t . ;   r e c t   -   t h e   k e n d o . g e o m e t r y . R e c t   t h a t   d e f i n e s   w h e r e   t h e   v i s u a l   s h o u l d   b e   r e n d e r e d . ;   o p t i o n s   -   t h e   l a b e l   o p t i o n s . ;   c r e a t e V i s u a l   -   a   f u n c t i o n   t h a t   c a n   b e   u s e d   t o   g e t   t h e   d e f a u l t   v i s u a l . ;   s e n d e r   -   t h e   c h a r t   i n s t a n c e   ( m a y   b e   u n d e f i n e d ) . ;   v a l u e   -   T h e   p o i n t   v a l u e . ;   c a t e g o r y   -   T h e   p o i n t   c a t e g o r y . ;   s t a c k V a l u e   -   T h e   c u m u l a t i v e   p o i n t   v a l u e   o n   t h e   s t a c k .   A v a i l a b l e   o n l y   f o r   t h e   s t a c k a b l e   s e r i e s . ;   d a t a I t e m   -   T h e   p o i n t   d a t a I t e m . ;   s e r i e s   -   T h e   p o i n t   s e r i e s . ;   p e r c e n t a g e   -   T h e   p o i n t   v a l u e   t h a t   i s   r e p r e s e n t e d   a s   a   p e r c e n t a g e   v a l u e .   A v a i l a b l e   o n l y   f o r   t h e   D o n u t ,   P i e ,   a n d   1 0 0 %   s t a c k e d   c h a r t s . ;   r u n n i n g T o t a l   -   T h e   s u m   o f   p o i n t   v a l u e s   f r o m   t h e   l a s t   r u n n i n g T o t a l   s u m m a r y   p o i n t   o n w a r d s .   A v a i l a b l e   f o r   t h e   W a t e r f a l l   s e r i e s .   o r   t o t a l   -   T h e   s u m   o f   a l l   p r e v i o u s   s e r i e s   v a l u e s .   A v a i l a b l e   f o r   t h e   W a t e r f a l l   s e r i e s . . 
 
         1 4 1 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         1 4 2 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s 
 
 
 
     L i n e   1 5 3   [ m a t c h :   F R O M   ] : 
 
         1 5 1 :   
 
         1 5 2 :           / * * 
 
   > >   1 5 3 :           *   T h e   c h a r t   s e r i e s   f r o m   l a b e l   c o n f i g u r a t i o n . 
 
         1 5 4 :           *   @ p a r a m   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m | a r r a y   $ v a l u e 
 
         1 5 5 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5   [ m a t c h :   F R O M   ] : 
 
         3 :   n a m e s p a c e   K e n d o \ D a t a v i z \ U I ; 
 
         4 :   
 
   > >   5 :   c l a s s   C h a r t S e r i e s I t e m L a b e l s F r o m   e x t e n d s   \ K e n d o \ S e r i a l i z a b l e O b j e c t   { 
 
         6 :   / / > >   P r o p e r t i e s 
 
         7 :   
 
 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   b a c k g r o u n d   c o l o r   o f   t h e   f r o m   l a b e l s .   A c c e p t s   a   v a l i d   C S S   c o l o r   s t r i n g ,   i n c l u d i n g   h e x   a n d   r g b . 
 
         1 0 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m 
 
 
 
     L i n e   1 8   [ m a t c h :   F R O M   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   T h e   b o r d e r   o f   t h e   f r o m   l a b e l s . 
 
         1 9 :           *   @ p a r a m   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m B o r d e r | a r r a y   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m 
 
 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   t e x t   c o l o r   o f   t h e   f r o m   l a b e l s .   A c c e p t s   a   v a l i d   C S S   c o l o r   s t r i n g ,   i n c l u d i n g   h e x   a n d   r g b . 
 
         2 8 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m 
 
 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   T h e   f o n t   s t y l e   o f   t h e   f r o m   l a b e l s . 
 
         3 7 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m 
 
 
 
     L i n e   4 5   [ m a t c h :   F R O M   ] : 
 
         4 3 :   
 
         4 4 :           / * * 
 
   > >   4 5 :           *   T h e   f o r m a t   o f   t h e   f r o m   l a b e l s .   U s e s   k e n d o . f o r m a t . 
 
         4 6 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e 
 
         4 7 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m 
 
 
 
     L i n e   5 4   [ m a t c h :   F R O M   ] : 
 
         5 2 :   
 
         5 3 :           / * * 
 
   > >   5 4 :           *   T h e   m a r g i n   o f   t h e   f r o m   l a b e l s .   A   n u m e r i c   v a l u e   w i l l   s e t   a l l   m a r g i n s . 
 
         5 5 :           *   @ p a r a m   f l o a t | \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m M a r g i n | a r r a y   $ v a l u e 
 
         5 6 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m 
 
 
 
     L i n e   6 3   [ m a t c h :   F R O M   ] : 
 
         6 1 :   
 
         6 2 :           / * * 
 
   > >   6 3 :           *   T h e   p a d d i n g   o f   t h e   f r o m   l a b e l s .   A   n u m e r i c   v a l u e   w i l l   s e t   a l l   p a d d i n g s . 
 
         6 4 :           *   @ p a r a m   f l o a t | \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m P a d d i n g | a r r a y   $ v a l u e 
 
         6 5 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m 
 
 
 
     L i n e   7 2   [ m a t c h :   F R O M   ] : 
 
         7 0 :   
 
         7 1 :           / * * 
 
   > >   7 2 :           *   T h e   p o s i t i o n   o f   t h e   f r o m   l a b e l s .   " c e n t e r "   -   t h e   l a b e l   i s   p o s i t i o n e d   a t   t h e   p o i n t   c e n t e r . ;   " i n s i d e B a s e "   -   t h e   l a b e l   i s   p o s i t i o n e d   i n s i d e ,   n e a r   t h e   b a s e   o f   t h e   b a r . ;   " i n s i d e E n d "   -   t h e   l a b e l   i s   p o s i t i o n e d   i n s i d e ,   n e a r   t h e   e n d   o f   t h e   p o i n t . ;   " o u t s i d e E n d "   -   t h e   l a b e l   i s   p o s i t i o n e d   o u t s i d e ,   n e a r   t h e   e n d   o f   t h e   p o i n t . ;   " a b o v e "   -   t h e   l a b e l   i s   p o s i t i o n e d   a t   t h e   t o p   o f   t h e   m a r k e r .   A p p l i c a b l e   f o r   " r a n g e A r e a "   a n d   " v e r t i c a l R a n g e A r e a "   s e r i e s . ;   " b e l o w "   -   t h e   l a b e l   i s   p o s i t i o n e d   a t   t h e   b o t t o m   o f   t h e   m a r k e r .   A p p l i c a b l e   f o r   " r a n g e A r e a "   a n d   " v e r t i c a l R a n g e A r e a "   s e r i e s . ;   " l e f t "   -   t h e   l a b e l   i s   p o s i t i o n e d   t o   t h e   l e f t   o f   t h e   m a r k e r .   A p p l i c a b l e   f o r   " r a n g e A r e a "   a n d   " v e r t i c a l R a n g e A r e a "   s e r i e s .   o r   " r i g h t "   -   t h e   l a b e l   i s   p o s i t i o n e d   t o   t h e   r i g h t   o f   t h e   m a r k e r .   A p p l i c a b l e   f o r   " r a n g e A r e a "   a n d   " v e r t i c a l R a n g e A r e a "   s e r i e s . . 
 
         7 3 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e 
 
         7 4 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m 
 
 
 
     L i n e   8 2   [ m a t c h :   F R O M   ] : 
 
         8 0 :           / * * 
 
         8 1 :           *   S e t s   t h e   t e m p l a t e   o p t i o n   o f   t h e   C h a r t S e r i e s I t e m L a b e l s F r o m . 
 
   > >   8 2 :           *   T h e   t e m p l a t e   w h i c h   r e n d e r s   t h e   c h a r t   s e r i e s   f r o m   l a b e l . T h e   f i e l d s   w h i c h   c a n   b e   u s e d   i n   t h e   t e m p l a t e   a r e :   c a t e g o r y   -   t h e   c a t e g o r y   n a m e . ;   d a t a I t e m   -   t h e   o r i g i n a l   d a t a   i t e m   u s e d   t o   c o n s t r u c t   t h e   p o i n t .   W i l l   b e   n u l l   i f   b i n d i n g   t o   a r r a y . ;   s e r i e s   -   t h e   d a t a   s e r i e s   o r   v a l u e   -   t h e   p o i n t   v a l u e .   A n   o b j e c t   c o n t a i n i n g   f r o m   a n d   t o   v a l u e s . . 
 
         8 3 :           *   @ p a r a m   s t r i n g   $ v a l u e   T h e   i d   o f   t h e   e l e m e n t   w h i c h   r e p r e s e n t s   t h e   k e n d o   t e m p l a t e . 
 
         8 4 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m 
 
 
 
     L i n e   9 4   [ m a t c h :   F R O M   ] : 
 
         9 2 :           / * * 
 
         9 3 :           *   S e t s   t h e   t e m p l a t e   o p t i o n   o f   t h e   C h a r t S e r i e s I t e m L a b e l s F r o m . 
 
   > >   9 4 :           *   T h e   t e m p l a t e   w h i c h   r e n d e r s   t h e   c h a r t   s e r i e s   f r o m   l a b e l . T h e   f i e l d s   w h i c h   c a n   b e   u s e d   i n   t h e   t e m p l a t e   a r e :   c a t e g o r y   -   t h e   c a t e g o r y   n a m e . ;   d a t a I t e m   -   t h e   o r i g i n a l   d a t a   i t e m   u s e d   t o   c o n s t r u c t   t h e   p o i n t .   W i l l   b e   n u l l   i f   b i n d i n g   t o   a r r a y . ;   s e r i e s   -   t h e   d a t a   s e r i e s   o r   v a l u e   -   t h e   p o i n t   v a l u e .   A n   o b j e c t   c o n t a i n i n g   f r o m   a n d   t o   v a l u e s . . 
 
         9 5 :           *   @ p a r a m   s t r i n g   $ v a l u e   T h e   t e m p l a t e   c o n t e n t . 
 
         9 6 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m 
 
 
 
     L i n e   1 0 3   [ m a t c h :   F R O M   ] : 
 
         1 0 1 :   
 
         1 0 2 :           / * * 
 
   > >   1 0 3 :           *   I f   s e t   t o   t r u e   t h e   c h a r t   w i l l   d i s p l a y   t h e   s e r i e s   f r o m   l a b e l s .   B y   d e f a u l t   c h a r t   s e r i e s   f r o m   l a b e l s   a r e   n o t   d i s p l a y e d . 
 
         1 0 4 :           *   @ p a r a m   b o o l e a n | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e 
 
         1 0 5 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m M a r g i n . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   b o t t o m   m a r g i n   o f   t h e   f r o m   l a b e l s . 
 
         1 0 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m M a r g i n 
 
 
 
     L i n e   1 8   [ m a t c h :   F R O M   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   T h e   l e f t   m a r g i n   o f   t h e   f r o m   l a b e l s . 
 
         1 9 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m M a r g i n 
 
 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   r i g h t   m a r g i n   o f   t h e   f r o m   l a b e l s . 
 
         2 8 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m M a r g i n 
 
 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   T h e   t o p   m a r g i n   o f   t h e   f r o m   l a b e l s . 
 
         3 7 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m M a r g i n 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m P a d d i n g . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   b o t t o m   p a d d i n g   o f   t h e   f r o m   l a b e l s . 
 
         1 0 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m P a d d i n g 
 
 
 
     L i n e   1 8   [ m a t c h :   F R O M   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   T h e   l e f t   p a d d i n g   o f   t h e   f r o m   l a b e l s . 
 
         1 9 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m P a d d i n g 
 
 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   r i g h t   p a d d i n g   o f   t h e   f r o m   l a b e l s . 
 
         2 8 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m P a d d i n g 
 
 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   T h e   t o p   p a d d i n g   o f   t h e   f r o m   l a b e l s . 
 
         3 7 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s F r o m P a d d i n g 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s T o . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   8 2   [ m a t c h :   F R O M   ] : 
 
         8 0 :           / * * 
 
         8 1 :           *   S e t s   t h e   t e m p l a t e   o p t i o n   o f   t h e   C h a r t S e r i e s I t e m L a b e l s T o . 
 
   > >   8 2 :           *   T h e   t e m p l a t e   w h i c h   r e n d e r s   t h e   c h a r t   s e r i e s   t o   l a b e l . T h e   f i e l d s   w h i c h   c a n   b e   u s e d   i n   t h e   t e m p l a t e   a r e :   c a t e g o r y   -   t h e   c a t e g o r y   n a m e . ;   d a t a I t e m   -   t h e   o r i g i n a l   d a t a   i t e m   u s e d   t o   c o n s t r u c t   t h e   p o i n t .   W i l l   b e   n u l l   i f   b i n d i n g   t o   a r r a y . ;   s e r i e s   -   t h e   d a t a   s e r i e s   o r   v a l u e   -   t h e   p o i n t   v a l u e .   A n   o b j e c t   c o n t a i n i n g   f r o m   a n d   t o   v a l u e s . . 
 
         8 3 :           *   @ p a r a m   s t r i n g   $ v a l u e   T h e   i d   o f   t h e   e l e m e n t   w h i c h   r e p r e s e n t s   t h e   k e n d o   t e m p l a t e . 
 
         8 4 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s T o 
 
 
 
     L i n e   9 4   [ m a t c h :   F R O M   ] : 
 
         9 2 :           / * * 
 
         9 3 :           *   S e t s   t h e   t e m p l a t e   o p t i o n   o f   t h e   C h a r t S e r i e s I t e m L a b e l s T o . 
 
   > >   9 4 :           *   T h e   t e m p l a t e   w h i c h   r e n d e r s   t h e   c h a r t   s e r i e s   t o   l a b e l . T h e   f i e l d s   w h i c h   c a n   b e   u s e d   i n   t h e   t e m p l a t e   a r e :   c a t e g o r y   -   t h e   c a t e g o r y   n a m e . ;   d a t a I t e m   -   t h e   o r i g i n a l   d a t a   i t e m   u s e d   t o   c o n s t r u c t   t h e   p o i n t .   W i l l   b e   n u l l   i f   b i n d i n g   t o   a r r a y . ;   s e r i e s   -   t h e   d a t a   s e r i e s   o r   v a l u e   -   t h e   p o i n t   v a l u e .   A n   o b j e c t   c o n t a i n i n g   f r o m   a n d   t o   v a l u e s . . 
 
         9 5 :           *   @ p a r a m   s t r i n g   $ v a l u e   T h e   t e m p l a t e   c o n t e n t . 
 
         9 6 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m L a b e l s T o 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m M a r k e r s F r o m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5   [ m a t c h :   F R O M   ] : 
 
         3 :   n a m e s p a c e   K e n d o \ D a t a v i z \ U I ; 
 
         4 :   
 
   > >   5 :   c l a s s   C h a r t S e r i e s I t e m M a r k e r s F r o m   e x t e n d s   \ K e n d o \ S e r i a l i z a b l e O b j e c t   { 
 
         6 :   / / > >   P r o p e r t i e s 
 
         7 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m T o o l t i p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 5   [ m a t c h :   F R O M   ] : 
 
         4 3 :   
 
         4 4 :           / * * 
 
   > >   4 5 :           *   T h e   f o r m a t   o f   t h e   l a b e l s .   U s e s   k e n d o . f o r m a t . F o r m a t   p l a c e h o l d e r s :   A r e a ,   b a r ,   c o l u m n ,   l i n e ,   p i e ,   r a d a r A r e a ,   r a d a r C o l u m n   a n d   r a d a r L i n e { 0 }   -   v a l u e ;   B u b b l e { 0 }   -   x   v a l u e { 1 }   -   y   v a l u e { 2 }   -   s i z e   v a l u e { 3 }   -   c a t e g o r y   n a m e ;   S c a t t e r ,   s c a t t e r L i n e { 0 }   -   x   v a l u e { 1 }   -   y   v a l u e ;   P o l a r A r e a ,   p o l a r L i n e   a n d   p o l a r S c a t t e r { 0 }   -   x   v a l u e   ( d e g r e e s ) { 1 }   -   y   v a l u e ;   C a n d l e s t i c k   a n d   O H L C { 0 }   -   o p e n   v a l u e { 1 }   -   h i g h   v a l u e { 2 }   -   l o w   v a l u e { 3 }   -   c l o s e   v a l u e { 4 }   -   c a t e g o r y   n a m e   o r   R a n g e A r e a ,   r a n g e B a r ,   r a n g e C o l u m n { 0 }   -   f r o m   v a l u e { 1 }   -   t o   v a l u e . 
 
         4 6 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         4 7 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t S e r i e s I t e m T o o l t i p 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t T o o l t i p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 4   [ m a t c h :   F R O M   ] : 
 
         5 2 :   
 
         5 3 :           / * * 
 
   > >   5 4 :           *   T h e   f o r m a t   o f   t h e   l a b e l s .   U s e s   k e n d o . f o r m a t . F o r m a t   p l a c e h o l d e r s :   A r e a ,   b a r ,   c o l u m n ,   f u n n e l ,   l i n e   a n d   p i e { 0 }   -   v a l u e ;   B u b b l e { 0 }   -   x   v a l u e { 1 }   -   y   v a l u e { 2 }   -   s i z e   v a l u e { 3 }   -   c a t e g o r y   n a m e ;   S c a t t e r   a n d   s c a t t e r L i n e { 0 }   -   x   v a l u e { 1 }   -   y   v a l u e ;   C a n d l e s t i c k   a n d   O H L C { 0 }   -   o p e n   v a l u e { 1 }   -   h i g h   v a l u e { 2 }   -   l o w   v a l u e { 3 }   -   c l o s e   v a l u e { 4 }   -   c a t e g o r y   n a m e   o r   R a n g e A r e a ,   r a n g e B a r ,   r a n g e C o l u m n { 0 }   -   f r o m   v a l u e { 1 }   -   t o   v a l u e . 
 
         5 5 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         5 6 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t T o o l t i p 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t V a l u e A x i s I t e m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 4 4   [ m a t c h :   F R O M   ] : 
 
         1 4 2 :   
 
         1 4 3 :           / * * 
 
   > >   1 4 4 :           *   I f   s e t   t o   t r u e   t h e   C h a r t   w i l l   n a r r o w   t h e   v a l u e   a x i s   r a n g e   i n   o r d e r   t o   d i s p l a y   d a t a   p o i n t s   i n   b e t t e r   d e t a i l .   S e t t i n g   i t   t o   f a l s e   w i l l   f o r c e   t h e   a u t o m a t i c   a x i s   r a n g e   t o   s t a r t   f r o m   0   o r   t h e   e x p l i c i t l y   s p e c i f i e d   v a l u e A x i s . m i n   v a l u e . 
 
         1 4 5 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 4 6 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t V a l u e A x i s I t e m 
 
 
 
     L i n e   1 7 1   [ m a t c h :   F R O M   ] : 
 
         1 6 9 :   
 
         1 7 0 :           / * * 
 
   > >   1 7 1 :           *   I f   s e t   t o   t r u e   t h e   v a l u e   a x i s   d i r e c t i o n   w i l l   b e   r e v e r s e d .   B y   d e f a u l t   c a t e g o r i e s   a r e   l i s t e d   f r o m   l e f t   t o   r i g h t   a n d   f r o m   b o t t o m   t o   t o p . 
 
         1 7 2 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 7 3 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t V a l u e A x i s I t e m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t X A x i s I t e m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   b a s e   t i m e   i n t e r v a l   f o r   t h e   a x i s   l a b e l s .   T h e   d e f a u l t   b a s e U n i t   i s   d e t e r m i n e d   a u t o m a t i c a l l y   f r o m   t h e   v a l u e   r a n g e .   A v a i l a b l e   o p t i o n s :   m i l l i s e c o n d s ;   s e c o n d s ;   m i n u t e s ;   h o u r s ;   d a y s ;   w e e k s ;   m o n t h s   o r   y e a r s . 
 
         2 8 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t X A x i s I t e m 
 
 
 
     L i n e   1 6 2   [ m a t c h :   F R O M   ] : 
 
         1 6 0 :   
 
         1 6 1 :           / * * 
 
   > >   1 6 2 :           *   I f   s e t   t o   t r u e   t h e   c h a r t   w i l l   p r e v e n t   t h e   a u t o m a t i c   a x i s   r a n g e   f r o m   s n a p p i n g   t o   0 .   S e t t i n g   i t   t o   f a l s e   w i l l   f o r c e   t h e   a u t o m a t i c   a x i s   r a n g e   t o   s n a p   t o   0 . 
 
         1 6 3 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 6 4 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t X A x i s I t e m 
 
 
 
     L i n e   1 8 9   [ m a t c h :   F R O M   ] : 
 
         1 8 7 :   
 
         1 8 8 :           / * * 
 
   > >   1 8 9 :           *   I f   s e t   t o   t r u e   t h e   v a l u e   a x i s   d i r e c t i o n   w i l l   b e   r e v e r s e d .   B y   d e f a u l t   v a l u e s   i n c r e a s e   f r o m   l e f t   t o   r i g h t   a n d   f r o m   b o t t o m   t o   t o p . 
 
         1 9 0 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 9 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t X A x i s I t e m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C h a r t Y A x i s I t e m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   b a s e   t i m e   i n t e r v a l   f o r   t h e   a x i s   l a b e l s .   T h e   d e f a u l t   b a s e U n i t   i s   d e t e r m i n e d   a u t o m a t i c a l l y   f r o m   t h e   v a l u e   r a n g e .   A v a i l a b l e   o p t i o n s :   m i l l i s e c o n d s ;   s e c o n d s ;   m i n u t e s ;   h o u r s ;   d a y s ;   w e e k s ;   m o n t h s   o r   y e a r s . 
 
         2 8 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t Y A x i s I t e m 
 
 
 
     L i n e   1 6 2   [ m a t c h :   F R O M   ] : 
 
         1 6 0 :   
 
         1 6 1 :           / * * 
 
   > >   1 6 2 :           *   I f   s e t   t o   t r u e   t h e   c h a r t   w i l l   p r e v e n t   t h e   a u t o m a t i c   a x i s   r a n g e   f r o m   s n a p p i n g   t o   0 .   S e t t i n g   i t   t o   f a l s e   w i l l   f o r c e   t h e   a u t o m a t i c   a x i s   r a n g e   t o   s n a p   t o   0 . 
 
         1 6 3 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 6 4 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t Y A x i s I t e m 
 
 
 
     L i n e   1 8 9   [ m a t c h :   F R O M   ] : 
 
         1 8 7 :   
 
         1 8 8 :           / * * 
 
   > >   1 8 9 :           *   I f   s e t   t o   t r u e   t h e   v a l u e   a x i s   d i r e c t i o n   w i l l   b e   r e v e r s e d .   B y   d e f a u l t   v a l u e s   i n c r e a s e   f r o m   l e f t   t o   r i g h t   a n d   f r o m   b o t t o m   t o   t o p . 
 
         1 9 0 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 9 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C h a r t Y A x i s I t e m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C i r c u l a r G a u g e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   8 8   [ m a t c h :   F R O M   ] : 
 
         8 6 :   
 
         8 7 :           / * * 
 
   > >   8 8 :           *   T h e   g a u g e   t h e m e .   T h i s   c a n   b e   e i t h e r   a   b u i l t - i n   t h e m e   o r   " s a s s " .   W h e n   s e t   t o   " s a s s "   t h e   g a u g e   w i l l   r e a d   t h e   v a r i a b l e s   f r o m   t h e   S a s s - b a s e d   t h e m e s . T h e   s u p p o r t e d   v a l u e s   a r e :   " s a s s "   -   s p e c i a l   v a l u e ,   s e e   n o t e s ;   " b l a c k " ;   " b l u e o p a l " ;   " b o o t s t r a p " ;   " d e f a u l t " ;   " h i g h c o n t r a s t " ;   " m e t r o " ;   " m e t r o b l a c k " ;   " m o o n l i g h t " ;   " s i l v e r "   o r   " u n i f o r m " . 
 
         8 9 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         9 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C i r c u l a r G a u g e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ C i r c u l a r G a u g e S c a l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9 0   [ m a t c h :   F R O M   ] : 
 
         8 8 :   
 
         8 9 :           / * * 
 
   > >   9 0 :           *   T h e   d i s t a n c e   f r o m   t h e   r a n g e   i n d i c a t o r s   t o   t h e   t i c k s . 
 
         9 1 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         9 2 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ C i r c u l a r G a u g e S c a l e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ D i a g r a m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 4 2   [ m a t c h :   F R O M   ] : 
 
         1 4 0 :   
 
         1 4 1 :           / * * 
 
   > >   1 4 2 :           *   T h e   d i a g r a m   t h e m e .   T h i s   c a n   b e   e i t h e r   a   b u i l t - i n   t h e m e   o r   " s a s s " .   W h e n   s e t   t o   " s a s s "   t h e   d i a g r a m   w i l l   r e a d   t h e   v a r i a b l e s   f r o m   a   S a s s - b a s e d   t h e m e . T h e   s u p p o r t e d   v a l u e s   a r e :   *   " s a s s "   -   w o r k s   o n l y   w h e n   a   c u s t o m   S a s s   t h e m e   i s   l o a d e d   i n   t h e   p a g e   *   " b l a c k "   *   " b l u e o p a l "   *   " b o o t s t r a p "   *   " b o o t s t r a p - v 4 "   -   w o r k s   o n l y   w i t h   t h e   B o o t s t r a p - v 4   S a s s   t h e m e   l o a d e d   i n   t h e   p a g e   *   " d e f a u l t "   *   " d e f a u l t - v 2 "   -   w o r k s   o n l y   w i t h   t h e   D e f a u l t - v 2   S a s s   t h e m e   l o a d e d   i n   t h e   p a g e   *   " f i o r i "   *   " f l a t "   *   " h i g h c o n t r a s t "   *   " m a t e r i a l "   *   " m a t e r i a l B l a c k "   *   " m e t r o "   *   " m e t r o b l a c k "   *   " m o o n l i g h t "   *   " n o v a "   *   " o f f i c e 3 6 5 "   *   " s i l v e r "   *   " u n i f o r m " 
 
         1 4 3 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 4 4 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m 
 
 
 
     L i n e   2 1 6   [ m a t c h :   F R O M   ] : 
 
         2 1 4 :           / * * 
 
         2 1 5 :           *   S e t s   t h e   c h a n g e   e v e n t   o f   t h e   D i a g r a m . 
 
   > >   2 1 6 :           *   F i r e d   w h e n   a n   i t e m   i s   a d d e d   o r   r e m o v e d   t o / f r o m   t h e   d i a g r a m . 
 
         2 1 7 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         2 1 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m 
 
 
 
     L i n e   2 4 4   [ m a t c h :   F R O M   ] : 
 
         2 4 2 :           / * * 
 
         2 4 3 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   D i a g r a m . 
 
   > >   2 4 4 :           *   F i r e d   w h e n   t h e   w i d g e t   i s   b o u n d   t o   d a t a   f r o m   d a t a D o u r c e   a n d   c o n n e c t i o n s D a t a S o u r c e . T h e   e v e n t   h a n d l e r   f u n c t i o n   c o n t e x t   ( a v a i l a b l e   v i a   t h e   t h i s   k e y w o r d )   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         2 4 5 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         2 4 6 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m 
 
 
 
     L i n e   9 3   [ m a t c h :   S E L E C T   ] : 
 
         9 1 :   
 
         9 2 :           / * * 
 
   > >   9 3 :           *   D e f i n e s   t h e   D i a g r a m   s e l e c t i o n   o p t i o n s . B y   d e f a u l t ,   y o u   c a n   s e l e c t   s h a p e s   i n   t h e   D i a g r a m   i n   o n e   o f   t w o   w a y s :   C l i c k i n g   a   s i n g l e   s h a p e   t o   s e l e c t   i t   a n d   d e s e l e c t   a n y   p r e v i o u s l y   s e l e c t e d   s h a p e s .   o r   H o l d i n g   t h e   C t r l   k e y   w h i l e   c l i c k i n g   m u l t i p l e   s h a p e s   t o   s e l e c t   t h e m   a n d   a n y   o t h e r   s h a p e s   b e t w e e n   t h e m . .   U s i n g   t h e   s e l e c t a b l e   c o n f i g u r a t i o n ,   y o u   c a n   e n a b l e   s i n g l e   s e l e c t i o n   o n l y ,   e n a b l e   s e l e c t i o n   b y   d r a w i n g   a   r e c t a n g u l a r   a r e a   w i t h   t h e   m o u s e   a r o u n d   s h a p e s   i n   t h e   c a n v a s ,   o r   d i s a b l e   s e l e c t i o n   a l t o g e t h e r . 
 
         9 4 :           *   @ p a r a m   b o o l e a n | \ K e n d o \ D a t a v i z \ U I \ D i a g r a m S e l e c t a b l e | a r r a y   $ v a l u e 
 
         9 5 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m 
 
 
 
     L i n e   4 1 1   [ m a t c h :   S E L E C T   ] : 
 
         4 0 9 :   
 
         4 1 0 :           / * * 
 
   > >   4 1 1 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   D i a g r a m . 
 
         4 1 2 :           *   F i r e d   w h e n   t h e   u s e r   s e l e c t s   o n e   o r   m o r e   i t e m s . 
 
         4 1 3 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ D i a g r a m C o n n e c t i o n F r o m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5   [ m a t c h :   F R O M   ] : 
 
         3 :   n a m e s p a c e   K e n d o \ D a t a v i z \ U I ; 
 
         4 :   
 
   > >   5 :   c l a s s   D i a g r a m C o n n e c t i o n F r o m   e x t e n d s   \ K e n d o \ S e r i a l i z a b l e O b j e c t   { 
 
         6 :   / / > >   P r o p e r t i e s 
 
         7 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ D i a g r a m E d i t a b l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 0   [ m a t c h :   F R O M   ] : 
 
         8 :           / * * 
 
         9 :           *   S e t s   t h e   c o n n e c t i o n T e m p l a t e   o p t i o n   o f   t h e   D i a g r a m E d i t a b l e . 
 
   > >   1 0 :           *   S p e c i f i e s   t h e   c o n n e c t i o n   e d i t o r   t e m p l a t e   w h i c h   s h o w s   u p   w h e n   e d i t i n g   t h e   c o n n e c t i o n .   A   t e m p l a t e   c a n   b e   u s e d   t o   c h a n g e   t h e   d e f a u l t   e d i t o r s   f o r   t h e   c o n n e c t i o n   f i e l d s   o r   t o   p r e v e n t   s o m e   f i e l d s   f r o m   b e i n g   e d i t e d   b y   n o t   r e n d e r i n g   a n   e d i t o r   i n p u t   f o r   t h e m . 
 
         1 1 :           *   @ p a r a m   s t r i n g   $ v a l u e   T h e   i d   o f   t h e   e l e m e n t   w h i c h   r e p r e s e n t s   t h e   k e n d o   t e m p l a t e . 
 
         1 2 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m E d i t a b l e 
 
 
 
     L i n e   2 2   [ m a t c h :   F R O M   ] : 
 
         2 0 :           / * * 
 
         2 1 :           *   S e t s   t h e   c o n n e c t i o n T e m p l a t e   o p t i o n   o f   t h e   D i a g r a m E d i t a b l e . 
 
   > >   2 2 :           *   S p e c i f i e s   t h e   c o n n e c t i o n   e d i t o r   t e m p l a t e   w h i c h   s h o w s   u p   w h e n   e d i t i n g   t h e   c o n n e c t i o n .   A   t e m p l a t e   c a n   b e   u s e d   t o   c h a n g e   t h e   d e f a u l t   e d i t o r s   f o r   t h e   c o n n e c t i o n   f i e l d s   o r   t o   p r e v e n t   s o m e   f i e l d s   f r o m   b e i n g   e d i t e d   b y   n o t   r e n d e r i n g   a n   e d i t o r   i n p u t   f o r   t h e m . 
 
         2 3 :           *   @ p a r a m   s t r i n g   $ v a l u e   T h e   t e m p l a t e   c o n t e n t . 
 
         2 4 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m E d i t a b l e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ D i a g r a m E d i t a b l e S e l e c t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5   [ m a t c h :   S E L E C T   ] : 
 
         3 :   n a m e s p a c e   K e n d o \ D a t a v i z \ U I ; 
 
         4 :   
 
   > >   5 :   c l a s s   D i a g r a m E d i t a b l e S e l e c t   e x t e n d s   \ K e n d o \ S e r i a l i z a b l e O b j e c t   { 
 
         6 :   / / > >   P r o p e r t i e s 
 
         7 :   
 
 
 
     L i n e   1 8   [ m a t c h :   S E L E C T   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   S p e c i f i e s   t h e   s e l e c t   s t r o k e   s t y l e s . 
 
         1 9 :           *   @ p a r a m   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m E d i t a b l e S e l e c t S t r o k e | a r r a y   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m E d i t a b l e S e l e c t 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ D i a g r a m E d i t a b l e S e l e c t S t r o k e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   S E L E C T   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   S p e c i f i e s   t h e   s e l e c t   s t r o k e   c o l o r . 
 
         1 0 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m E d i t a b l e S e l e c t S t r o k e 
 
 
 
     L i n e   1 8   [ m a t c h :   S E L E C T   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   S p e c i f i e s   t h e   s e l e c t   s t r o k e   w i d t h . 
 
         1 9 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m E d i t a b l e S e l e c t S t r o k e 
 
 
 
     L i n e   2 7   [ m a t c h :   S E L E C T   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   S p e c i f i e s   t h e   s e l e c t   s t r o k e   d a s h   t y p e . 
 
         2 8 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m E d i t a b l e S e l e c t S t r o k e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ D i a g r a m L a y o u t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9 9   [ m a t c h :   F R O M   ] : 
 
         9 7 :   
 
         9 8 :           / * * 
 
   > >   9 9 :           *   D e f i n e s   t h e   h o r i z o n t a l   o f f s e t   f r o m   a   c h i l d   w i t h   r e s p e c t   t o   i t s   p a r e n t .   T h i s   s e t t i n g   i s   s p e c i f i c   t o   t h e   t i p O v e r   t r e e   l a y o u t . 
 
         1 0 0 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         1 0 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m L a y o u t 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ D i a g r a m P d f . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9 9   [ m a t c h :   F R O M   ] : 
 
         9 7 :   
 
         9 8 :           / * * 
 
   > >   9 9 :           *   A   n a m e   o r   k e y w o r d   i n d i c a t i n g   w h e r e   t o   d i s p l a y   t h e   d o c u m e n t   r e t u r n e d   f r o m   t h e   p r o x y . I f   y o u   w a n t   t o   d i s p l a y   t h e   d o c u m e n t   i n   a   n e w   w i n d o w   o r   a n   i f r a m e ,   t h e   p r o x y   m e t h o d   h a s   t o   s e t   t h e   C o n t e n t - D i s p o s i t i o n   h e a d e r   o f   t h e   r e s p o n s e   t o   i n l i n e ;   f i l e n a m e = " < f i l e N a m e . p d f > " . 
 
         1 0 0 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 0 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m P d f 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ D i a g r a m S h a p e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 2   [ m a t c h :   F R O M   ] : 
 
         7 0 :   
 
         7 1 :           / * * 
 
   > >   7 2 :           *   T h e   u n i q u e   i d e n t i f i e r   f o r   a   S h a p e .   T h e   i d   v a l u e   i s   u s e d   t o   i d e n t i f y   s h a p e s   i n   c o n n e c t i o n   c o n f i g u r a t i o n s .   T h e   c o n n e c t i o n   t o   a n d   f r o m   p r o p e r t i e s   u s u a l l y   p o i n t   t o   s h a p e   i d   v a l u e s . 
 
         7 3 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         7 4 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m S h a p e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ D i a g r a m S h a p e D e f a u l t s F i l l G r a d i e n t S t o p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   s t o p   o f f s e t   f r o m   t h e   s t a r t   o f   t h e   e l e m e n t .   R a n g e s   f r o m   0   ( s t a r t   o f   g r a d i e n t )   t o   1   ( e n d   o f   g r a d i e n t ) . 
 
         1 0 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m S h a p e D e f a u l t s F i l l G r a d i e n t S t o p 
 
 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   f i l l   o p a c i t y .   R a n g e s   f r o m   0   ( c o m p l e t e l y   t r a n s p a r e n t )   t o   1   ( o p a q u e ) . 
 
         2 8 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m S h a p e D e f a u l t s F i l l G r a d i e n t S t o p 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ D i a g r a m S h a p e E d i t a b l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   S p e c i f i e s   w h e t h e r   t h e   c o n n e c t o r s   s h o u l d   a p p e a r   o n   h o v e r .   I f   s e t   t o   f a l s e ,   t h e   u s e r   w i l l   n o t   b e   a b l e   t o   c r e a t e   n e w   c o n n e c t i o n s   f r o m   t h i s   s h a p e   t o   o t h e r   s h a p e s .   A l s o ,   i t   w i l l   n o t   b e   p o s s i b l e   t o   c h a n g e   t h e   c o n n e c t o r   o f   a n   e x i s t i n g   c o n n e c t i o n   b e t w e e n   t h i s   a n d   a n o t h e r   s h a p e . 
 
         1 0 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m S h a p e E d i t a b l e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ D i a g r a m S h a p e F i l l G r a d i e n t S t o p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   s t o p   o f f s e t   f r o m   t h e   s t a r t   o f   t h e   e l e m e n t .   R a n g e s   f r o m   0   ( s t a r t   o f   g r a d i e n t )   t o   1   ( e n d   o f   g r a d i e n t ) . 
 
         1 0 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m S h a p e F i l l G r a d i e n t S t o p 
 
 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   f i l l   o p a c i t y .   R a n g e s   f r o m   0   ( c o m p l e t e l y   t r a n s p a r e n t )   t o   1   ( c o m p l e t e l y   o p a q u e ) . 
 
         2 8 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ D i a g r a m S h a p e F i l l G r a d i e n t S t o p 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ L i n e a r G a u g e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 8   [ m a t c h :   F R O M   ] : 
 
         4 6 :   
 
         4 7 :           / * * 
 
   > >   4 8 :           *   T h e   g a u g e   t h e m e .   T h i s   c a n   b e   e i t h e r   a   b u i l t - i n   t h e m e   o r   " s a s s " .   W h e n   s e t   t o   " s a s s "   t h e   c h a r t   w i l l   r e a d   t h e   v a r i a b l e s   f r o m   t h e   S a s s - b a s e d   t h e m e s . T h e   s u p p o r t e d   v a l u e s   a r e :   " s a s s "   -   s p e c i a l   v a l u e ,   s e e   n o t e s ;   " b l a c k " ;   " b l u e o p a l " ;   " b o o t s t r a p " ;   " d e f a u l t " ;   " h i g h c o n t r a s t " ;   " m e t r o " ;   " m e t r o b l a c k " ;   " m o o n l i g h t " ;   " s i l v e r "   o r   " u n i f o r m " . 
 
         4 9 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         5 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ L i n e a r G a u g e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ L i n e a r G a u g e S c a l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 1 7   [ m a t c h :   F R O M   ] : 
 
         1 1 5 :   
 
         1 1 6 :           / * * 
 
   > >   1 1 7 :           *   R e v e r s e s   t h e   a x i s   d i r e c t i o n   -   v a l u e s   i n c r e a s e   f r o m   r i g h t   t o   l e f t   a n d   f r o m   t o p   t o   b o t t o m . 
 
         1 1 8 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 1 9 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ L i n e a r G a u g e S c a l e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ M a p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 6   [ m a t c h :   F R O M   ] : 
 
         6 4 :   
 
         6 5 :           / * * 
 
   > >   6 6 :           *   T h e   m i n i m u m   z o o m   l e v e l .   T y p i c a l   w e b   m a p s   u s e   z o o m   l e v e l s   f r o m   0   ( w h o l e   w o r l d )   t o   1 9   ( s u b - m e t e r   f e a t u r e s ) . 
 
         6 7 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         6 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ M a p 
 
 
 
     L i n e   7 5   [ m a t c h :   F R O M   ] : 
 
         7 3 :   
 
         7 4 :           / * * 
 
   > >   7 5 :           *   T h e   m a x i m u m   z o o m   l e v e l .   T y p i c a l   w e b   m a p s   u s e   z o o m   l e v e l s   f r o m   0   ( w h o l e   w o r l d )   t o   1 9   ( s u b - m e t e r   f e a t u r e s ) . 
 
         7 6 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         7 7 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ M a p 
 
 
 
     L i n e   1 1 1   [ m a t c h :   F R O M   ] : 
 
         1 0 9 :   
 
         1 1 0 :           / * * 
 
   > >   1 1 1 :           *   T h e   i n i t i a l   z o o m   l e v e l . T y p i c a l   w e b   m a p s   u s e   z o o m   l e v e l s   f r o m   0   ( w h o l e   w o r l d )   t o   1 9   ( s u b - m e t e r   f e a t u r e s ) . T h e   m a p   s i z e   i s   d e r i v e d   f r o m   t h e   z o o m   l e v e l   a n d   m i n S c a l e   o p t i o n s :   s i z e   =   ( 2   ^   z o o m )   *   m i n S i z e 
 
         1 1 2 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         1 1 3 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ M a p 
 
 
 
     L i n e   1 7 2   [ m a t c h :   F R O M   ] : 
 
         1 7 0 :           / * * 
 
         1 7 1 :           *   S e t s   t h e   m a r k e r C r e a t e d   e v e n t   o f   t h e   M a p . 
 
   > >   1 7 2 :           *   F i r e d   w h e n   a   m a r k e r   h a s   b e e n   c r e a t e d   a n d   i s   a b o u t   t o   b e   d i s p l a y e d .   C a n c e l l i n g   t h e   e v e n t   w i l l   p r e v e n t   t h e   m a r k e r   f r o m   b e i n g   s h o w n . U s e   m a r k e r A c t i v a t e   i f   y o u   n e e d   t o   a c c e s s   t h e   m a r k e r   D O M   e l e m e n t . 
 
         1 7 3 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         1 7 4 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ M a p 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ Q R C o d e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 0   [ m a t c h :   F R O M   ] : 
 
         3 8 :   
 
         3 9 :           / * * 
 
   > >   4 0 :           *   T h e   e n c o d i n g   m o d e   u s e d   t o   e n c o d e   t h e   v a l u e . T h e   p o s s i b l e   v a l u e s   a r e :   " I S O _ 8 8 5 9 _ 1 "   -   s u p p o r t s   a l l   c h a r a c t e r s   f r o m   t h e   I S O / I E C   8 8 5 9 - 1   c h a r a c t e r   s e t .   o r   " U T F _ 8 "   -   s u p p o r t s   a l l   U n i c o d e   c h a r a c t e r s . . 
 
         4 1 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         4 2 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ Q R C o d e 
 
 
 
     L i n e   5 8   [ m a t c h :   F R O M   ] : 
 
         5 6 :   
 
         5 7 :           / * * 
 
   > >   5 8 :           *   T h e   o v e r l a y   c o n f i g u r a t i o n   w h i c h   a l o w s   y o u   t o   c h o o s e   f r o m   p r e d e f i n e d   l a y o u t s   o r   i n s e r t   a   c u s t o m   i m a g e . 
 
         5 9 :           *   @ p a r a m   \ K e n d o \ D a t a v i z \ U I \ Q R C o d e O v e r l a y | a r r a y   $ v a l u e 
 
         6 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ Q R C o d e 
 
 
 
     L i n e   8 5   [ m a t c h :   F R O M   ] : 
 
         8 3 :   
 
         8 4 :           / * * 
 
   > >   8 5 :           *   S p e c i f i e s   t h e   s i z e   o f   a   Q R   c o d e   i n   p i x e l s   ( i . e .   " 2 0 0 p x " ) .   N u m e r i c   v a l u e s   a r e   t r e a t e d   a s   p i x e l s .   I f   n o   s i z e   i s   s p e c i f i e d ,   i t   w i l l   b e   d e t e r m i n e d   f r o m   t h e   e l e m e n t   w i d t h   a n d   h e i g h t .   I n   c a s e   t h e   e l e m e n t   h a s   w i d t h   o r   h e i g h t   o f   z e r o ,   a   d e f a u l t   v a l u e   o f   2 0 0   p i x e l s   w i l l   b e   u s e d . 
 
         8 6 :           *   @ p a r a m   f l o a t | s t r i n g   $ v a l u e 
 
         8 7 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ Q R C o d e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ R a d i a l G a u g e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 8   [ m a t c h :   F R O M   ] : 
 
         4 6 :   
 
         4 7 :           / * * 
 
   > >   4 8 :           *   T h e   g a u g e   t h e m e .   T h i s   c a n   b e   e i t h e r   a   b u i l t - i n   t h e m e   o r   " s a s s " .   W h e n   s e t   t o   " s a s s "   t h e   c h a r t   w i l l   r e a d   t h e   v a r i a b l e s   f r o m   t h e   S a s s - b a s e d   t h e m e s . T h e   s u p p o r t e d   v a l u e s   a r e :   " s a s s "   -   s p e c i a l   v a l u e ,   s e e   n o t e s ;   " b l a c k " ;   " b l u e o p a l " ;   " b o o t s t r a p " ;   " d e f a u l t " ;   " h i g h c o n t r a s t " ;   " m e t r o " ;   " m e t r o b l a c k " ;   " m o o n l i g h t " ;   " s i l v e r "   o r   " u n i f o r m " . 
 
         4 9 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         5 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ R a d i a l G a u g e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ R a d i a l G a u g e P o i n t e r C a p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 9   [ m a t c h :   F R O M   ] : 
 
         1 7 :   
 
         1 8 :           / * * 
 
   > >   1 9 :           *   T h e   s i z e   o f   t h e   c a p   i n   p e r c e n t s .   ( f r o m   0   t o   1 ) 
 
         2 0 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         2 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ R a d i a l G a u g e P o i n t e r C a p 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ R a d i a l G a u g e P o i n t e r I t e m C a p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 8   [ m a t c h :   F R O M   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   T h e   s i z e   o f   t h e   c a p   i n   p e r c e n t s .   ( f r o m   0   t o   1 ) 
 
         1 9 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ R a d i a l G a u g e P o i n t e r I t e m C a p 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ R a d i a l G a u g e S c a l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 0 8   [ m a t c h :   F R O M   ] : 
 
         1 0 6 :   
 
         1 0 7 :           / * * 
 
   > >   1 0 8 :           *   T h e   d i s t a n c e   f r o m   t h e   r a n g e   i n d i c a t o r s   t o   t h e   t i c k s . 
 
         1 0 9 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         1 1 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ R a d i a l G a u g e S c a l e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S p a r k l i n e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 1 2   [ m a t c h :   F R O M   ] : 
 
         1 1 0 :   
 
         1 1 1 :           / * * 
 
   > >   1 1 2 :           *   T h e   d e f a u l t   c o l o r s   f o r   t h e   c h a r t ' s   s e r i e s .   W h e n   a l l   c o l o r s   a r e   u s e d ,   n e w   c o l o r s   a r e   p u l l e d   f r o m   t h e   s t a r t   a g a i n . 
 
         1 1 3 :           *   @ p a r a m   a r r a y   $ v a l u e 
 
         1 1 4 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S p a r k l i n e 
 
 
 
     L i n e   1 3 0   [ m a t c h :   F R O M   ] : 
 
         1 2 8 :   
 
         1 2 9 :           / * * 
 
   > >   1 3 0 :           *   T h e   s p a r k l i n e   t h e m e .   T h i s   c a n   b e   e i t h e r   a   b u i l t - i n   t h e m e   o r   " s a s s " .   W h e n   s e t   t o   " s a s s "   t h e   s p a r k l i n e   w i l l   r e a d   t h e   v a r i a b l e s   f r o m   t h e   S a s s - b a s e d   t h e m e s . T h e   s u p p o r t e d   v a l u e s   a r e :   " s a s s "   -   s p e c i a l   v a l u e ,   s e e   n o t e s ;   " b l a c k " ;   " b l u e o p a l " ;   " b o o t s t r a p " ;   " d e f a u l t " ;   " h i g h c o n t r a s t " ;   " m e t r o " ;   " m e t r o b l a c k " ;   " m o o n l i g h t " ;   " s i l v e r "   o r   " u n i f o r m " . 
 
         1 3 1 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 3 2 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S p a r k l i n e 
 
 
 
     L i n e   1 9 0   [ m a t c h :   F R O M   ] : 
 
         1 8 8 :           / * * 
 
         1 8 9 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   S p a r k l i n e . 
 
   > >   1 9 0 :           *   F i r e s   w h e n   t h e   s p a r k l i n e   h a s   r e c e i v e d   d a t a   f r o m   t h e   d a t a   s o u r c e   a n d   i s   a b o u t   t o   r e n d e r   i t . 
 
         1 9 1 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         1 9 2 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S p a r k l i n e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S p a r k l i n e C a t e g o r y A x i s I t e m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 2 6   [ m a t c h :   F R O M   ] : 
 
         1 2 4 :   
 
         1 2 5 :           / * * 
 
   > >   1 2 6 :           *   R e v e r s e s   t h e   a x i s   d i r e c t i o n   -   c a t e g o r i e s   a r e   l i s t e d   f r o m   r i g h t   t o   l e f t   a n d   f r o m   t o p   t o   b o t t o m . 
 
         1 2 7 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 2 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S p a r k l i n e C a t e g o r y A x i s I t e m 
 
 
 
     L i n e   1 6 2   [ m a t c h :   F R O M   ] : 
 
         1 6 0 :   
 
         1 6 1 :           / * * 
 
   > >   1 6 2 :           *   T h e   b a s e   t i m e   i n t e r v a l   f o r   t h e   a x i s .   T h e   d e f a u l t   b a s e U n i t   i s   d e t e r m i n e d   a u t o m a t i c a l l y   f r o m   t h e   m i n i m u m   d i f f e r e n c e   b e t w e e n   s u b s e q u e n t   c a t e g o r i e s .   A v a i l a b l e   o p t i o n s :   m i n u t e s ;   h o u r s ;   d a y s ;   w e e k s ;   m o n t h s   o r   y e a r s * f i t .   S e t t i n g b a s e U n i t t o   " f i t "   w i l l   s e t   s u c h   b a s e   u n i t   a n d b a s e U n i t S t e p   t h a t   t h e   t o t a l   n u m b e r   o f   c a t e g o r i e s   d o e s   n o t   e x c e e d m a x D a t e G r o u p s . S e r i e s   d a t a   i s   a g g r e g a t e d   f o r   t h e   s p e c i f i e d   b a s e   u n i t   b y   u s i n g   t h e s e r i e s . a g g r e g a t e f u n c t i o n . 
 
         1 6 3 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 6 4 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S p a r k l i n e C a t e g o r y A x i s I t e m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S p a r k l i n e S e r i e s D e f a u l t s T o o l t i p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   b a c k g r o u n d   c o l o r   o f   t h e   t o o l t i p .   T h e   d e f a u l t   i s   d e t e r m i n e d   f r o m   t h e   s e r i e s   c o l o r . 
 
         1 0 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S p a r k l i n e S e r i e s D e f a u l t s T o o l t i p 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S p a r k l i n e S e r i e s I t e m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 8 9   [ m a t c h :   F R O M   ] : 
 
         1 8 7 :   
 
         1 8 8 :           / * * 
 
   > >   1 8 9 :           *   T h e   b e h a v i o r   f o r   h a n d l i n g   m i s s i n g   v a l u e s .   T h e   s u p p o r t e d   v a l u e s   a r e :   " g a p "   -   t h e   p l o t   s t o p s   b e f o r e   t h e   m i s s i n g   p o i n t   a n d   c o n t i n u e s   a f t e r   i t . ;   " i n t e r p o l a t e "   -   t h e   v a l u e   i s   i n t e r p o l a t e d   f r o m   n e i g h b o r i n g   p o i n t s .   o r   " z e r o "   -   t h e   v a l u e   i s   a s s u m e d   t o   b e   z e r o . . 
 
         1 9 0 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 9 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S p a r k l i n e S e r i e s I t e m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S p a r k l i n e S e r i e s I t e m H i g h l i g h t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   b o r d e r   o f   h i g h l i g h t e d   p o i n t s .   T h e   c o l o r   i s   c o m p u t e d   a u t o m a t i c a l l y   f r o m   t h e   b a s e   p o i n t   c o l o r . A p p l i c a b l e   t o   p i e   s e r i e s . 
 
         1 0 :           *   @ p a r a m   \ K e n d o \ D a t a v i z \ U I \ S p a r k l i n e S e r i e s I t e m H i g h l i g h t B o r d e r | a r r a y   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S p a r k l i n e S e r i e s I t e m H i g h l i g h t 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S p a r k l i n e S e r i e s I t e m T o o l t i p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   b a c k g r o u n d   c o l o r   o f   t h e   t o o l t i p .   T h e   d e f a u l t   i s   d e t e r m i n e d   f r o m   t h e   s e r i e s   c o l o r . 
 
         1 0 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S p a r k l i n e S e r i e s I t e m T o o l t i p 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S p a r k l i n e T o o l t i p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   b a c k g r o u n d   c o l o r   o f   t h e   t o o l t i p .   T h e   d e f a u l t   i s   d e t e r m i n e d   f r o m   t h e   s e r i e s   c o l o r . 
 
         1 0 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S p a r k l i n e T o o l t i p 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S p a r k l i n e V a l u e A x i s I t e m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 2 6   [ m a t c h :   F R O M   ] : 
 
         1 2 4 :   
 
         1 2 5 :           / * * 
 
   > >   1 2 6 :           *   P r e v e n t s   t h e   a u t o m a t i c   a x i s   r a n g e   f r o m   s n a p p i n g   t o   0 . 
 
         1 2 7 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 2 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S p a r k l i n e V a l u e A x i s I t e m 
 
 
 
     L i n e   1 4 4   [ m a t c h :   F R O M   ] : 
 
         1 4 2 :   
 
         1 4 3 :           / * * 
 
   > >   1 4 4 :           *   R e v e r s e s   t h e   a x i s   d i r e c t i o n   -   v a l u e s   i n c r e a s e   f r o m   r i g h t   t o   l e f t   a n d   f r o m   t o p   t o   b o t t o m . 
 
         1 4 5 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 4 6 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S p a r k l i n e V a l u e A x i s I t e m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S t o c k C h a r t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 3 8   [ m a t c h :   F R O M   ] : 
 
         1 3 6 :   
 
         1 3 7 :           / * * 
 
   > >   1 3 8 :           *   T h e   d e f a u l t   c o l o r s   f o r   t h e   c h a r t ' s   s e r i e s .   W h e n   a l l   c o l o r s   a r e   u s e d ,   n e w   c o l o r s   a r e   p u l l e d   f r o m   t h e   s t a r t   a g a i n . 
 
         1 3 9 :           *   @ p a r a m   a r r a y   $ v a l u e 
 
         1 4 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t 
 
 
 
     L i n e   1 5 6   [ m a t c h :   F R O M   ] : 
 
         1 5 4 :   
 
         1 5 5 :           / * * 
 
   > >   1 5 6 :           *   T h e   c h a r t   t h e m e .   T h i s   c a n   b e   e i t h e r   a   b u i l t - i n   t h e m e   o r   " s a s s " .   W h e n   s e t   t o   " s a s s "   t h e   c h a r t   w i l l   r e a d   t h e   v a r i a b l e s   f r o m   t h e   S a s s - b a s e d   t h e m e s . T h e   s u p p o r t e d   v a l u e s   a r e :   " s a s s "   -   s p e c i a l   v a l u e ,   s e e   n o t e s ;   " b l a c k " ;   " b l u e o p a l " ;   " b o o t s t r a p " ;   " d e f a u l t " ;   " h i g h c o n t r a s t " ;   " m e t r o " ;   " m e t r o b l a c k " ;   " m o o n l i g h t " ;   " s i l v e r "   o r   " u n i f o r m " . 
 
         1 5 7 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 5 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t 
 
 
 
     L i n e   2 1 6   [ m a t c h :   F R O M   ] : 
 
         2 1 4 :           / * * 
 
         2 1 5 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   S t o c k C h a r t . 
 
   > >   2 1 6 :           *   F i r e s   w h e n   t h e   c h a r t   h a s   r e c e i v e d   d a t a   f r o m   t h e   d a t a   s o u r c e   a n d   i s   a b o u t   t o   r e n d e r   i t . 
 
         2 1 7 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         2 1 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t 
 
 
 
     L i n e   4 2 5   [ m a t c h :   S E L E C T   ] : 
 
         4 2 3 :   
 
         4 2 4 :           / * * 
 
   > >   4 2 5 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   S t o c k C h a r t . 
 
         4 2 6 :           *   F i r e d   w h e n   t h e   u s e r   m o d i f i e s   t h e   s e l e c t i o n . T h e   e v e n t   h a n d l e r   f u n c t i o n   c o n t e x t   ( a v a i l a b l e   v i a   t h e   t h i s   k e y w o r d )   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         4 2 7 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S t o c k C h a r t C a t e g o r y A x i s I t e m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 3 5   [ m a t c h :   F R O M   ] : 
 
         1 3 3 :   
 
         1 3 4 :           / * * 
 
   > >   1 3 5 :           *   R e v e r s e s   t h e   a x i s   d i r e c t i o n   -   c a t e g o r i e s   a r e   l i s t e d   f r o m   r i g h t   t o   l e f t   a n d   f r o m   t o p   t o   b o t t o m . 
 
         1 3 6 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 3 7 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t C a t e g o r y A x i s I t e m 
 
 
 
     L i n e   1 8 9   [ m a t c h :   F R O M   ] : 
 
         1 8 7 :   
 
         1 8 8 :           / * * 
 
   > >   1 8 9 :           *   T h e   b a s e   t i m e   i n t e r v a l   f o r   t h e   d a t e   a x i s .   T h e   d e f a u l t   b a s e   u n i t   i s   d e t e r m i n e d   a u t o m a t i c a l l y   f r o m   t h e   m i n i m u m   d i f f e r e n c e   b e t w e e n   s u b s e q u e n t   c a t e g o r i e s . T h e   s u p p o r t e d   v a l u e s   a r e :   " d a y s " ;   " f i t " ;   " h o u r s " ;   " m i n u t e s " ;   " m o n t h s " ;   " w e e k s "   o r   " y e a r s " .   S e t t i n g   b a s e U n i t   t o   " f i t "   w i l l   s e t   s u c h   b a s e   u n i t   a n d   c a t e g o r y A x i s . b a s e U n i t S t e p   t h a t   t h e   t o t a l   n u m b e r   o f   c a t e g o r i e s   d o e s   n o t   e x c e e d   c a t e g o r y A x i s . m a x D a t e G r o u p s . S e r i e s   d a t a   i s   a g g r e g a t e d   f o r   t h e   s p e c i f i e d   b a s e   u n i t   u s i n g   t h e   s e r i e s . a g g r e g a t e   f u n c t i o n . 
 
         1 9 0 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 9 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t C a t e g o r y A x i s I t e m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S t o c k C h a r t C a t e g o r y A x i s I t e m S e l e c t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5   [ m a t c h :   S E L E C T   ] : 
 
         3 :   n a m e s p a c e   K e n d o \ D a t a v i z \ U I ; 
 
         4 :   
 
   > >   5 :   c l a s s   S t o c k C h a r t C a t e g o r y A x i s I t e m S e l e c t   e x t e n d s   \ K e n d o \ S e r i a l i z a b l e O b j e c t   { 
 
         6 :   / / > >   P r o p e r t i e s 
 
         7 :   
 
 
 
     L i n e   1 8   [ m a t c h :   S E L E C T   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   T h e   u p p e r   b o u n d a r y   o f   t h e   s e l e c t e d   r a n g e . N o t e :   T h e   c a t e g o r y   w i t h   t h e   s p e c i f i e d   d a t e   i s   n o t   i n c l u d e d   i n   t h e   s e l e c t e d   r a n g e   u n l e s s   t h e   a x i s   i s   j u s t i f i e d .   I n   o r d e r   t o   s e l e c t   a l l   c a t e g o r i e s   s p e c i f y   a   v a l u e   l a r g e r   t h a n   t h e   l a s t   c a t e g o r y   d a t e . 
 
         1 9 :           *   @ p a r a m   s t r i n g | d a t e   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t C a t e g o r y A x i s I t e m S e l e c t 
 
 
 
     L i n e   3 6   [ m a t c h :   S E L E C T   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   T h e   m a x i m u m   v a l u e   t h a t   i s   s e l e c t a b l e   b y   t h e   u s e r . N o t e :   T h e   c a t e g o r y   w i t h   t h e   s p e c i f i e d   i n d e x   ( d a t e )   i s   n o t   i n c l u d e d   i n   t h e   s e l e c t e d   r a n g e   u n l e s s   t h e   a x i s   i s   j u s t i f i e d .   I n   o r d e r   t o   s e l e c t   a l l   c a t e g o r i e s   s p e c i f y   a   v a l u e   l a r g e r   t h a n   t h e   l a s t   c a t e g o r y   i n d e x   ( d a t e ) . 
 
         3 7 :           *   @ p a r a m     $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t C a t e g o r y A x i s I t e m S e l e c t 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S t o c k C h a r t L e g e n d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 4   [ m a t c h :   F R O M   ] : 
 
         5 2 :   
 
         5 3 :           / * * 
 
   > >   5 4 :           *   T h e   X   o f f s e t   f r o m   i t s   p o s i t i o n .     T h e   o f f s e t   i s   r e l a t i v e   t o   t h e   c u r r e n t   p o s i t i o n   o f   t h e   l e g e n d .   F o r   i n s t a n c e ,   a   v a l u e   o f   2 0   w i l l   m o v e   t h e   l e g e n d   2 0   p i x e l s   t o   t h e   r i g h t   o f   i t ' s   i n i t i a l   p o s i t i o n .     A   n e g a t i v e   v a l u e   w i l l   m o v e   t h e   l e g e n d   t o   t h e   l e f t   o f   t h e   c u r r e n t   p o s i t i o n . 
 
         5 5 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         5 6 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t L e g e n d 
 
 
 
     L i n e   6 3   [ m a t c h :   F R O M   ] : 
 
         6 1 :   
 
         6 2 :           / * * 
 
   > >   6 3 :           *   T h e   Y   o f f s e t   f r o m   i t s   p o s i t i o n .     T h e   o f f s e t   i s   r e l a t i v e   t o   t h e   c u r r e n t   p o s i t i o n   o f   t h e   l e g e n d .   F o r   i n s t a n c e ,   a   v a l u e   o f   2 0   w i l l   m o v e   t h e   l e g e n d   2 0   p i x e l s   d o w n   f r o m   i t ' s   i n i t i a l   p o s i t i o n .     A   n e g a t i v e   v a l u e   w i l l   m o v e   t h e   l e g e n d   u p w a r d s   f r o m   t h e   c u r r e n t   p o s i t i o n . 
 
         6 4 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         6 5 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t L e g e n d 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S t o c k C h a r t N a v i g a t o r C a t e g o r y A x i s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   T h e   b a s e   t i m e   i n t e r v a l   f o r   t h e   d a t e   a x i s .   T h e   d e f a u l t   b a s e   u n i t   i s   d e t e r m i n e d   a u t o m a t i c a l l y   f r o m   t h e   m i n i m u m   d i f f e r e n c e   b e t w e e n   s u b s e q u e n t   c a t e g o r i e s . T h e   s u p p o r t e d   v a l u e s   a r e :   " f i t " ;   " s e c o n d s " ;   " m i n u t e s " ;   " h o u r s " ;   " d a y s " ;   " w e e k s " ;   " m o n t h s "   o r   " y e a r s " .   S e t t i n g   b a s e U n i t   t o   " f i t "   w i l l   s e t   s u c h   b a s e   u n i t   a n d   c a t e g o r y A x i s . b a s e U n i t S t e p   t h a t   t h e   t o t a l   n u m b e r   o f   c a t e g o r i e s   d o e s   n o t   e x c e e d   c a t e g o r y A x i s . m a x D a t e G r o u p s . S e r i e s   d a t a   i s   a g g r e g a t e d   f o r   t h e   s p e c i f i e d   b a s e   u n i t   u s i n g   t h e   s e r i e s . a g g r e g a t e   f u n c t i o n . 
 
         3 7 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t N a v i g a t o r C a t e g o r y A x i s 
 
 
 
     L i n e   1 9 8   [ m a t c h :   F R O M   ] : 
 
         1 9 6 :   
 
         1 9 7 :           / * * 
 
   > >   1 9 8 :           *   I f   s e t   t o   t r u e   t h e   c a t e g o r y   a x i s   d i r e c t i o n   w i l l   b e   r e v e r s e d .   B y   d e f a u l t   c a t e g o r i e s   a r e   l i s t e d   f r o m   l e f t   t o   r i g h t   a n d   f r o m   b o t t o m   t o   t o p . 
 
         1 9 9 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         2 0 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t N a v i g a t o r C a t e g o r y A x i s 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S t o c k C h a r t N a v i g a t o r H i n t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 9   [ m a t c h :   F R O M   ] : 
 
         1 7 :           / * * 
 
         1 8 :           *   S e t s   t h e   t e m p l a t e   o p t i o n   o f   t h e   S t o c k C h a r t N a v i g a t o r H i n t . 
 
   > >   1 9 :           *   T h e   h i n t   t e m p l a t e .   T e m p l a t e   v a r i a b l e s :   f r o m   -   T h e   l o w e r   b o u n d a r y   o f   t h e   s e l e c t e d   r a n g e   o r   t o   -   T h e u p p e r   b o u n d a r y   o f   t h e   s e l e c t e d   r a n g e . 
 
         2 0 :           *   @ p a r a m   s t r i n g   $ v a l u e   T h e   i d   o f   t h e   e l e m e n t   w h i c h   r e p r e s e n t s   t h e   k e n d o   t e m p l a t e . 
 
         2 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t N a v i g a t o r H i n t 
 
 
 
     L i n e   3 1   [ m a t c h :   F R O M   ] : 
 
         2 9 :           / * * 
 
         3 0 :           *   S e t s   t h e   t e m p l a t e   o p t i o n   o f   t h e   S t o c k C h a r t N a v i g a t o r H i n t . 
 
   > >   3 1 :           *   T h e   h i n t   t e m p l a t e .   T e m p l a t e   v a r i a b l e s :   f r o m   -   T h e   l o w e r   b o u n d a r y   o f   t h e   s e l e c t e d   r a n g e   o r   t o   -   T h e u p p e r   b o u n d a r y   o f   t h e   s e l e c t e d   r a n g e . 
 
         3 2 :           *   @ p a r a m   s t r i n g   $ v a l u e   T h e   t e m p l a t e   c o n t e n t . 
 
         3 3 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t N a v i g a t o r H i n t 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S t o c k C h a r t N a v i g a t o r S e l e c t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5   [ m a t c h :   S E L E C T   ] : 
 
         3 :   n a m e s p a c e   K e n d o \ D a t a v i z \ U I ; 
 
         4 :   
 
   > >   5 :   c l a s s   S t o c k C h a r t N a v i g a t o r S e l e c t   e x t e n d s   \ K e n d o \ S e r i a l i z a b l e O b j e c t   { 
 
         6 :   / / > >   P r o p e r t i e s 
 
         7 :   
 
 
 
     L i n e   1 8   [ m a t c h :   U P D A T E   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   T h e   m o u s e w h e e l   c o n f i g u r a t i o n   o f   t h e   s e l e c t i o n . I f   s e t   t o   f a l s e   t h e   m o u s e w h e e l   w i l l   n o t   u p d a t e   t h e   s e l e c t i o n . 
 
         1 9 :           *   @ p a r a m   b o o l e a n | \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t N a v i g a t o r S e l e c t M o u s e w h e e l | a r r a y   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t N a v i g a t o r S e l e c t 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S t o c k C h a r t N a v i g a t o r S e r i e s I t e m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 9 8   [ m a t c h :   F R O M   ] : 
 
         1 9 6 :   
 
         1 9 7 :           / * * 
 
   > >   1 9 8 :           *   T h e   b e h a v i o r   f o r   h a n d l i n g   m i s s i n g   v a l u e s .   T h e   s u p p o r t e d   v a l u e s   a r e :   " g a p "   -   t h e   p l o t   s t o p s   b e f o r e   t h e   m i s s i n g   p o i n t   a n d   c o n t i n u e s   a f t e r   i t . ;   " i n t e r p o l a t e "   -   t h e   v a l u e   i s   i n t e r p o l a t e d   f r o m   n e i g h b o r i n g   p o i n t s .   o r   " z e r o "   -   t h e   v a l u e   i s   a s s u m e d   t o   b e   z e r o . . 
 
         1 9 9 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 0 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t N a v i g a t o r S e r i e s I t e m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S t o c k C h a r t N a v i g a t o r S e r i e s I t e m H i g h l i g h t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   b o r d e r   o f   h i g h l i g h t e d   p o i n t s .   T h e   c o l o r   i s   c o m p u t e d   a u t o m a t i c a l l y   f r o m   t h e   b a s e   p o i n t   c o l o r . 
 
         1 0 :           *   @ p a r a m   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t N a v i g a t o r S e r i e s I t e m H i g h l i g h t B o r d e r | a r r a y   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t N a v i g a t o r S e r i e s I t e m H i g h l i g h t 
 
 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   L i n e   o p t i o n s   f o r   h i g h l i g h t e d   p o i n t s .   T h e   c o l o r   i s   c o m p u t e d   a u t o m a t i c a l l y   f r o m   t h e   b a s e   p o i n t   c o l o r . * *   A v a i l a b l e   o n l y   f o r   c a n d l e s t i c k   s e r i e s   * * 
 
         2 8 :           *   @ p a r a m   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t N a v i g a t o r S e r i e s I t e m H i g h l i g h t L i n e | a r r a y   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t N a v i g a t o r S e r i e s I t e m H i g h l i g h t 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S t o c k C h a r t N a v i g a t o r S e r i e s I t e m T o o l t i p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   b a c k g r o u n d   c o l o r   o f   t h e   t o o l t i p .   T h e   d e f a u l t   i s   d e t e r m i n e d   f r o m   t h e   s e r i e s   c o l o r . 
 
         1 0 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t N a v i g a t o r S e r i e s I t e m T o o l t i p 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S t o c k C h a r t P d f . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9 9   [ m a t c h :   F R O M   ] : 
 
         9 7 :   
 
         9 8 :           / * * 
 
   > >   9 9 :           *   A   n a m e   o r   k e y w o r d   i n d i c a t i n g   w h e r e   t o   d i s p l a y   t h e   d o c u m e n t   r e t u r n e d   f r o m   t h e   p r o x y . I f   y o u   w a n t   t o   d i s p l a y   t h e   d o c u m e n t   i n   a   n e w   w i n d o w   o r   i f r a m e ,   t h e   p r o x y   s h o u l d   s e t   t h e   " C o n t e n t - D i s p o s i t i o n "   h e a d e r   t o   i n l i n e ;   f i l e n a m e = " < f i l e N a m e . p d f > " . 
 
         1 0 0 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 0 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t P d f 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S t o c k C h a r t S e r i e s D e f a u l t s T o o l t i p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   b a c k g r o u n d   c o l o r   o f   t h e   t o o l t i p .   T h e   d e f a u l t   i s   d e t e r m i n e d   f r o m   t h e   s e r i e s   c o l o r . 
 
         1 0 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t S e r i e s D e f a u l t s T o o l t i p 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S t o c k C h a r t S e r i e s I t e m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 1 6   [ m a t c h :   F R O M   ] : 
 
         2 1 4 :   
 
         2 1 5 :           / * * 
 
   > >   2 1 6 :           *   T h e   b e h a v i o r   f o r   h a n d l i n g   m i s s i n g   v a l u e s .   T h e   s u p p o r t e d   v a l u e s   a r e :   " g a p "   -   t h e   p l o t   s t o p s   b e f o r e   t h e   m i s s i n g   p o i n t   a n d   c o n t i n u e s   a f t e r   i t . ;   " i n t e r p o l a t e "   -   t h e   v a l u e   i s   i n t e r p o l a t e d   f r o m   n e i g h b o r i n g   p o i n t s .   o r   " z e r o "   -   t h e   v a l u e   i s   a s s u m e d   t o   b e   z e r o . . 
 
         2 1 7 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 1 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t S e r i e s I t e m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S t o c k C h a r t S e r i e s I t e m H i g h l i g h t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 8   [ m a t c h :   F R O M   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   T h e   b o r d e r   o f   h i g h l i g h t e d   p o i n t s .   T h e   c o l o r   i s   c o m p u t e d   a u t o m a t i c a l l y   f r o m   t h e   b a s e   p o i n t   c o l o r . * *   A p p l i c a b l e   t o   b u b b l e ,   p i e ,   c a n d l e s t i c k   a n d   o h l c   s e r i e s .   * * 
 
         1 9 :           *   @ p a r a m   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t S e r i e s I t e m H i g h l i g h t B o r d e r | a r r a y   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t S e r i e s I t e m H i g h l i g h t 
 
 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   L i n e   o p t i o n s   f o r   h i g h l i g h t e d   p o i n t s .   T h e   c o l o r   i s   c o m p u t e d   a u t o m a t i c a l l y   f r o m   t h e   b a s e   p o i n t   c o l o r . * *   A v a i l a b l e   o n l y   f o r   c a n d l e s t i c k   s e r i e s   * * 
 
         3 7 :           *   @ p a r a m   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t S e r i e s I t e m H i g h l i g h t L i n e | a r r a y   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t S e r i e s I t e m H i g h l i g h t 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S t o c k C h a r t S e r i e s I t e m T o o l t i p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   b a c k g r o u n d   c o l o r   o f   t h e   t o o l t i p .   T h e   d e f a u l t   i s   d e t e r m i n e d   f r o m   t h e   s e r i e s   c o l o r . 
 
         1 0 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t S e r i e s I t e m T o o l t i p 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S t o c k C h a r t T o o l t i p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   b a c k g r o u n d   c o l o r   o f   t h e   t o o l t i p .   T h e   d e f a u l t   i s   d e t e r m i n e d   f r o m   t h e   s e r i e s   c o l o r . 
 
         1 0 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t T o o l t i p 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ S t o c k C h a r t V a l u e A x i s I t e m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 3 5   [ m a t c h :   F R O M   ] : 
 
         1 3 3 :   
 
         1 3 4 :           / * * 
 
   > >   1 3 5 :           *   P r e v e n t s   t h e   a u t o m a t i c   a x i s   r a n g e   f r o m   s n a p p i n g   t o   0 . 
 
         1 3 6 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 3 7 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t V a l u e A x i s I t e m 
 
 
 
     L i n e   1 6 2   [ m a t c h :   F R O M   ] : 
 
         1 6 0 :   
 
         1 6 1 :           / * * 
 
   > >   1 6 2 :           *   R e v e r s e s   t h e   a x i s   d i r e c t i o n   -   v a l u e s   i n c r e a s e   f r o m   r i g h t   t o   l e f t   a n d   f r o m   t o p   t o   b o t t o m . 
 
         1 6 3 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 6 4 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ S t o c k C h a r t V a l u e A x i s I t e m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ D a t a v i z \ U I \ T r e e M a p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 2 1   [ m a t c h :   F R O M   ] : 
 
         1 1 9 :           / * * 
 
         1 2 0 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   T r e e M a p . 
 
   > >   1 2 1 :           *   F i r e d   w h e n   t h e   w i d g e t   i s   b o u n d   t o   d a t a   f r o m   i t s   d a t a S o u r c e . 
 
         1 2 2 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         1 2 3 :           *   @ r e t u r n   \ K e n d o \ D a t a v i z \ U I \ T r e e M a p 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ A u t o C o m p l e t e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 9 3   [ m a t c h :   F R O M   ] : 
 
         3 9 1 :           / * * 
 
         3 9 2 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   A u t o C o m p l e t e . 
 
   > >   3 9 3 :           *   F i r e d   w h e n   t h e   w i d g e t   i s   b o u n d   t o   d a t a   f r o m   i t s   d a t a   s o u r c e . T h e   e v e n t   h a n d l e r   f u n c t i o n   c o n t e x t   ( a v a i l a b l e   v i a   t h e   t h i s   k e y w o r d )   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         3 9 4 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         3 9 5 :           *   @ r e t u r n   \ K e n d o \ U I \ A u t o C o m p l e t e 
 
 
 
     L i n e   4 3 5   [ m a t c h :   F R O M   ] : 
 
         4 3 3 :           / * * 
 
         4 3 4 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   A u t o C o m p l e t e . 
 
   > >   4 3 5 :           *   F i r e d   w h e n   a n   i t e m   f r o m   t h e   s u g g e s t i o n   p o p u p   i s   s e l e c t e d   b y   t h e   u s e r . 
 
         4 3 6 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         4 3 7 :           *   @ r e t u r n   \ K e n d o \ U I \ A u t o C o m p l e t e 
 
 
 
     L i n e   4 3 4   [ m a t c h :   S E L E C T   ] : 
 
         4 3 2 :   
 
         4 3 3 :           / * * 
 
   > >   4 3 4 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   A u t o C o m p l e t e . 
 
         4 3 5 :           *   F i r e d   w h e n   a n   i t e m   f r o m   t h e   s u g g e s t i o n   p o p u p   i s   s e l e c t e d   b y   t h e   u s e r . 
 
         4 3 6 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ B o t t o m N a v i g a t i o n . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 0 1   [ m a t c h :   S E L E C T   ] : 
 
         9 9 :   
 
         1 0 0 :           / * * 
 
   > >   1 0 1 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   B o t t o m N a v i g a t i o n . 
 
         1 0 2 :           *   F i r e s   w h e n   t h e   u s e r   s e l e c t s   a n   i t e m   i n   B o t t o m N a v i g a t i o n . 
 
         1 0 3 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ B u t t o n . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 0 5   [ m a t c h :   F R O M   ] : 
 
         1 0 3 :   
 
         1 0 4 :           / * * 
 
   > >   1 0 5 :           *   D e f i n e s   a   C S S   c l a s s   ( o r   m u l t i p l e   c l a s s e s   s e p a r a t e d   b y   s p a c e s ) ,   w h i c h   w i l l   b e   u s e d   f o r   a p p l y i n g   a   b a c k g r o u n d   i m a g e   t o   a   s p a n   e l e m e n t   i n s i d e   t h e   B u t t o n .   I n   c a s e   y o u   w a n t   t o   u s e   a n   i c o n   f r o m   t h e   K e n d o   U I   t h e m e   s p r i t e   b a c k g r o u n d   i m a g e ,   i t   i s   e a s i e r   t o   u s e   t h e   i c o n   p r o p e r t y . T h e   s p a n   e l e m e n t   c a n   b e   a d d e d   a u t o m a t i c a l l y   b y   t h e   w i d g e t ,   o r   a n   e x i s t i n g   e l e m e n t   c a n   b e   u s e d ,   i f   i t   h a s   a   k - s p r i t e   C S S   c l a s s   a p p l i e d . 
 
         1 0 6 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 0 7 :           *   @ r e t u r n   \ K e n d o \ U I \ B u t t o n 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ B u t t o n G r o u p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 6   [ m a t c h :   S E L E C T   ] : 
 
         5 4 :   
 
         5 5 :           / * * 
 
   > >   5 6 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   B u t t o n G r o u p . 
 
         5 7 :           *   F i r e s   w h e n   a   B u t t o n   i s   s e l e c t e d . 
 
         5 8 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ C a l e n d a r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 1   [ m a t c h :   F R O M   ] : 
 
         4 9 :   
 
         5 0 :           / * * 
 
   > >   5 1 :           *   S p e c i f i e s   t h e   n a v i g a t i o n   d e p t h .   T h e   f o l l o w i n g   s e t t i n g s   a r e   a v a i l a b l e   f o r   t h e   d e p t h   v a l u e :   " m o n t h "   -   S h o w s   t h e   d a y s   o f   t h e   m o n t h . ;   " y e a r "   -   S h o w s   t h e   m o n t h s   o f   t h e   y e a r . ;   " d e c a d e "   -   S h o w s   t h e   y e a r s   o f   t h e   d e c a d e .   o r   " c e n t u r y "   -   S h o w s   t h e   d e c a d e s   f r o m   t h e   c e n t u r y . . 
 
         5 2 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         5 3 :           *   @ r e t u r n   \ K e n d o \ U I \ C a l e n d a r 
 
 
 
     L i n e   1 4 1   [ m a t c h :   F R O M   ] : 
 
         1 3 9 :   
 
         1 4 0 :           / * * 
 
   > >   1 4 1 :           *   S p e c i f i e s   t h e   s t a r t   v i e w .   T h e   f o l l o w i n g   s e t t i n g s   a r e   a v a i l a b l e   f o r   t h e   s t a r t   v a l u e :   " m o n t h "   -   S h o w s   t h e   d a y s   o f   t h e   m o n t h . ;   " y e a r "   -   S h o w s   t h e   m o n t h s   o f   t h e   y e a r . ;   " d e c a d e "   -   S h o w s   t h e   y e a r s   o f   t h e   d e c a d e .   o r   " c e n t u r y "   -   S h o w s   t h e   d e c a d e s   f r o m   t h e   c e n t u r y . . 
 
         1 4 2 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 4 3 :           *   @ r e t u r n   \ K e n d o \ U I \ C a l e n d a r 
 
 
 
     L i n e   1 1 4   [ m a t c h :   S E L E C T   ] : 
 
         1 1 2 :   
 
         1 1 3 :           / * * 
 
   > >   1 1 4 :           *   B y   d e f a u l t   u s e r   i s   a b l e   t o   s e l e c t   a   s i n g l e   d a t e .   T h e   p r o p e r t y   c a n   a l s o   b e   s e t   t o   " m u l t i p l e "   i n   o r d e r   t h e   m u l t i p l e     d a t e   s e l e c t i o n   t o   b e   e n a b l e d .   M o r e   i n f o r m a t i o n   a b o u t   m u l t i p l e   s e l e c t i o n   c a n   b e   f o u n d   i n   t h e   S e l e c t i o n   a r t i c l e . 
 
         1 1 5 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 1 6 :           *   @ r e t u r n   \ K e n d o \ U I \ C a l e n d a r 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ C h a t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 1 0   [ m a t c h :   F R O M   ] : 
 
         1 0 8 :           / * * 
 
         1 0 9 :           *   S e t s   t h e   t o o l C l i c k   e v e n t   o f   t h e   C h a t . 
 
   > >   1 1 0 :           *   F i r e s   w h e n   a   b u t t o n   f r o m   t h e   t o o l b a r   i s   c l i c k e d . 
 
         1 1 1 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         1 1 2 :           *   @ r e t u r n   \ K e n d o \ U I \ C h a t 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ C h e c k b o x G r o u p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9 4   [ m a t c h :   S E L E C T   ] : 
 
         9 2 :   
 
         9 3 :           / * * 
 
   > >   9 4 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   C h e c k B o x G r o u p . 
 
         9 5 :           *   F i r e s   w h e n   a   c h e c k b o x   i n p u t   i s   c l i c k e d   t o   b e   s e l e c t e d   t h r o u g h   u s e r   i n t e r a c t i o n .   I f   p r e v e n t e d ,   t h e   c l i c k e d   i n p u t   w i l l   n o t   b e   c h e c k e d / u n c h e c k e d . 
 
         9 6 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ C o l o r P i c k e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 4 3   [ m a t c h :   F R O M   ] : 
 
         1 4 1 :   
 
         1 4 2 :           / * * 
 
   > >   1 4 3 :           *   T h e   i n i t i a l l y   s e l e c t e d   c o l o r .   N o t e   t h a t   w h e n   i n i t i a l i z i n g   t h e   w i d g e t   f r o m   a n   < i n p u t >   e l e m e n t ,   t h e   i n i t i a l   c o l o r   w i l l   b e   d e c i d e d   b y   t h e   f i e l d   i n s t e a d . 
 
         1 4 4 :           *   @ p a r a m   s t r i n g |   $ v a l u e 
 
         1 4 5 :           *   @ r e t u r n   \ K e n d o \ U I \ C o l o r P i c k e r 
 
 
 
     L i n e   2 1 1   [ m a t c h :   S E L E C T   ] : 
 
         2 0 9 :   
 
         2 1 0 :           / * * 
 
   > >   2 1 1 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   C o l o r P i c k e r . 
 
         2 1 2 :           *   F i r e s   a s   a   n e w   c o l o r   i s   d i s p l a y e d   i n   t h e   d r o p - d o w n   p i c k e r .     T h i s   i s   n o t   n e c e s s a r i l y   t h e   " f i n a l "   v a l u e ;   f o r   e x a m p l e   t h i s   e v e n t   t r i g g e r s   w h e n   t h e   s l i d e r s   i n   t h e   H S V   s e l e c t o r   a r e   d r a g g e d ,   b u t   t h e n   p r e s s i n g   E S C   w o u l d   c a n c e l   t h e   s e l e c t i o n   a n d   t h e   c o l o r   w i l l   r e v e r t   t o   t h e   o r i g i n a l   v a l u e . 
 
         2 1 3 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
     L i n e   1 1 6   [ m a t c h :   U P D A T E   ] : 
 
         1 1 4 :   
 
         1 1 5 :           / * * 
 
   > >   1 1 6 :           *   D i s p l a y s   t h e   c o l o r   p r e v i e w   e l e m e n t   a n d   t h e   p r e v i o u s l y   s e l e c t e d   c o l o r   f o r   c o m p a r i s o n .   W i t h   b u t t o n s   s e t   t o   f a l s e ,   b o t h   e l e m e n t s   w i l l   u p d a t e   a t   t h e   s a m e   t i m e . 
 
         1 1 7 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 1 8 :           *   @ r e t u r n   \ K e n d o \ U I \ C o l o r P i c k e r 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ C o m b o B o x . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 2   [ m a t c h :   F R O M   ] : 
 
         6 0 :   
 
         6 1 :           / * * 
 
   > >   6 2 :           *   D e f i n e s   t h e   p a r e n t   f i e l d   t o   b e   u s e d   t o   r e t a i n   v a l u e   f r o m .   T h i s   v a l u e   w i l l   b e   u s e d   f u r t h e r   t o   f i l t e r   t h e   d a t a S o u r c e .   I f   n o t   d e f i n e d   t h e   v a l u e   f r o m   t h e   p a r e n t ' s   d a t a V a l u e F i e l d   w i l l   b e   u s e d . 
 
         6 3 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         6 4 :           *   @ r e t u r n   \ K e n d o \ U I \ C o m b o B o x 
 
 
 
     L i n e   4 5 7   [ m a t c h :   F R O M   ] : 
 
         4 5 5 :           / * * 
 
         4 5 6 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   C o m b o B o x . 
 
   > >   4 5 7 :           *   F i r e d   w h e n   t h e   w i d g e t   i s   b o u n d   t o   d a t a   f r o m   i t s   d a t a   s o u r c e . T h e   e v e n t   h a n d l e r   f u n c t i o n   c o n t e x t   ( a v a i l a b l e   v i a   t h e   t h i s   k e y w o r d )   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         4 5 8 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         4 5 9 :           *   @ r e t u r n   \ K e n d o \ U I \ C o m b o B o x 
 
 
 
     L i n e   4 9 9   [ m a t c h :   F R O M   ] : 
 
         4 9 7 :           / * * 
 
         4 9 8 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   C o m b o B o x . 
 
   > >   4 9 9 :           *   F i r e d   w h e n   a n   i t e m   f r o m   t h e   p o p u p   i s   s e l e c t e d   b y   t h e   u s e r   e i t h e r   w i t h   m o u s e / t a p   o r   w i t h   k e y b o a r d   n a v i g a t i o n . 
 
         5 0 0 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         5 0 1 :           *   @ r e t u r n   \ K e n d o \ U I \ C o m b o B o x 
 
 
 
     L i n e   4 9 8   [ m a t c h :   S E L E C T   ] : 
 
         4 9 6 :   
 
         4 9 7 :           / * * 
 
   > >   4 9 8 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   C o m b o B o x . 
 
         4 9 9 :           *   F i r e d   w h e n   a n   i t e m   f r o m   t h e   p o p u p   i s   s e l e c t e d   b y   t h e   u s e r   e i t h e r   w i t h   m o u s e / t a p   o r   w i t h   k e y b o a r d   n a v i g a t i o n . 
 
         5 0 0 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ C o m b o B o x V i r t u a l . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 8   [ m a t c h :   F R O M   ] : 
 
         2 6 :           / * * 
 
         2 7 :           *   S e t s   t h e   v a l u e M a p p e r   o p t i o n   o f   t h e   C o m b o B o x V i r t u a l . 
 
   > >   2 8 :           *   T h e   w i d g e t   c a l l s   t h e   v a l u e M a p p e r   f u n c t i o n   w h e n   t h e   w i d g e t   r e c e i v e s   a   v a l u e ,   t h a t   i s   n o t   f e t c h e d   f r o m   t h e   r e m o t e   s e r v e r   y e t .   T h e   w i d g e t   w i l l   p a s s   t h e   s e l e c t e d   v a l u e ( s )   i n   t h e   v a l u e M a p p e r   f u n c t i o n .   I n   t u r n ,   t h e   v a l u e M a p p e r   i m p l e m e n t a t i o n   s h o u l d   r e t u r n   t h e   r e s p e c t i v e   d a t a   i t e m ( s )   i n d e x / i n d i c e s . 
 
         2 9 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         3 0 :           *   @ r e t u r n   \ K e n d o \ U I \ C o m b o B o x V i r t u a l 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ C o n t e x t M e n u . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 4   [ m a t c h :   F R O M   ] : 
 
         6 2 :   
 
         6 3 :           / * * 
 
   > >   6 4 :           *   C o p i e s   a n d   u s e s   t h e   s t y l e s   f r o m   t h e   a n c h o r . 
 
         6 5 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         6 6 :           *   @ r e t u r n   \ K e n d o \ U I \ C o n t e x t M e n u 
 
 
 
     L i n e   2 7 8   [ m a t c h :   S E L E C T   ] : 
 
         2 7 6 :   
 
         2 7 7 :           / * * 
 
   > >   2 7 8 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   C o n t e x t M e n u . 
 
         2 7 9 :           *   F i r e s   w h e n   a   m e n u   i t e m   g e t s   s e l e c t e d . 
 
         2 8 0 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ D a t e P i c k e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9 5   [ m a t c h :   F R O M   ] : 
 
         9 3 :   
 
         9 4 :           / * * 
 
   > >   9 5 :           *   S p e c i f i e s   t h e   n a v i g a t i o n   d e p t h .   T h e   f o l l o w i n g   s e t t i n g s   a r e   a v a i l a b l e   f o r   t h e   d e p t h   v a l u e :   " m o n t h "   -   S h o w s   t h e   d a y s   o f   t h e   m o n t h . ;   " y e a r "   -   S h o w s   t h e   m o n t h s   o f   t h e   y e a r . ;   " d e c a d e "   -   S h o w s   t h e   y e a r s   o f   t h e   d e c a d e .   o r   " c e n t u r y "   -   S h o w s   t h e   d e c a d e s   f r o m   t h e   c e n t u r y . . 
 
         9 6 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         9 7 :           *   @ r e t u r n   \ K e n d o \ U I \ D a t e P i c k e r 
 
 
 
     L i n e   2 0 3   [ m a t c h :   F R O M   ] : 
 
         2 0 1 :   
 
         2 0 2 :           / * * 
 
   > >   2 0 3 :           *   S p e c i f i e s   t h e   s t a r t   v i e w .   T h e   f o l l o w i n g   s e t t i n g s   a r e   a v a i l a b l e   f o r   t h e   s t a r t   v a l u e :   " m o n t h "   -   S h o w s   t h e   d a y s   o f   t h e   m o n t h . ;   " y e a r "   -   S h o w s   t h e   m o n t h s   o f   t h e   y e a r . ;   " d e c a d e "   -   S h o w s   t h e   y e a r s   o f   t h e   d e c a d e .   o r   " c e n t u r y "   -   S h o w s   t h e   d e c a d e s   f r o m   t h e   c e n t u r y . . 
 
         2 0 4 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 0 5 :           *   @ r e t u r n   \ K e n d o \ U I \ D a t e P i c k e r 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ D a t e R a n g e P i c k e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 2   [ m a t c h :   F R O M   ] : 
 
         5 0 :   
 
         5 1 :           / * * 
 
   > >   5 2 :           *   S p e c i f i e s   t h e   n a v i g a t i o n   d e p t h .   T h e   f o l l o w i n g   s e t t i n g s   a r e   a v a i l a b l e   f o r   t h e   d e p t h   v a l u e :   " m o n t h "   -   S h o w s   t h e   d a y s   o f   t h e   m o n t h .   ( d e f a u l t   v a l u e ) ;   " y e a r "   -   S h o w s   t h e   m o n t h s   o f   t h e   y e a r . ;   " d e c a d e "   -   S h o w s   t h e   y e a r s   o f   t h e   d e c a d e .   o r   " c e n t u r y "   -   S h o w s   t h e   d e c a d e s   f r o m   t h e   c e n t u r y . . 
 
         5 3 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         5 4 :           *   @ r e t u r n   \ K e n d o \ U I \ D a t e R a n g e P i c k e r 
 
 
 
     L i n e   1 6 0   [ m a t c h :   F R O M   ] : 
 
         1 5 8 :   
 
         1 5 9 :           / * * 
 
   > >   1 6 0 :           *   S p e c i f i e s   t h e   s t a r t   v i e w .   T h e   f o l l o w i n g   s e t t i n g s   a r e   a v a i l a b l e   f o r   t h e   s t a r t   v a l u e :   " m o n t h "   -   S h o w s   t h e   d a y s   o f   t h e   m o n t h . ;   " y e a r "   -   S h o w s   t h e   m o n t h s   o f   t h e   y e a r . ;   " d e c a d e "   -   S h o w s   t h e   y e a r s   o f   t h e   d e c a d e .   o r   " c e n t u r y "   -   S h o w s   t h e   d e c a d e s   f r o m   t h e   c e n t u r y . . 
 
         1 6 1 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 6 2 :           *   @ r e t u r n   \ K e n d o \ U I \ D a t e R a n g e P i c k e r 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ D a t e T i m e P i c k e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9 4   [ m a t c h :   F R O M   ] : 
 
         9 2 :   
 
         9 3 :           / * * 
 
   > >   9 4 :           *   S p e c i f i e s   t h e   n a v i g a t i o n   d e p t h   o f   t h e   c a l e n d a r .   T h e   f o l l o w i n g   s e t t i n g s   a r e   a v a i l a b l e   f o r   t h e   d e p t h   v a l u e :   " m o n t h "   -   S h o w s   t h e   d a y s   o f   t h e   m o n t h . ;   " y e a r "   -   S h o w s   t h e   m o n t h s   o f   t h e   y e a r . ;   " d e c a d e "   -   S h o w s   t h e   y e a r s   o f   t h e   d e c a d e .   o r   " c e n t u r y "   -   S h o w s   t h e   d e c a d e s   f r o m   t h e   c e n t u r y . . 
 
         9 5 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         9 6 :           *   @ r e t u r n   \ K e n d o \ U I \ D a t e T i m e P i c k e r 
 
 
 
     L i n e   2 1 1   [ m a t c h :   F R O M   ] : 
 
         2 0 9 :   
 
         2 1 0 :           / * * 
 
   > >   2 1 1 :           *   S p e c i f i e s   t h e   s t a r t   v i e w   o f   t h e   c a l e n d a r .     T h e   f o l l o w i n g   s e t t i n g s   a r e   a v a i l a b l e   f o r   t h e   s t a r t   v a l u e :   " m o n t h "   -   S h o w s   t h e   d a y s   o f   t h e   m o n t h . ;   " y e a r "   -   S h o w s   t h e   m o n t h s   o f   t h e   y e a r . ;   " d e c a d e "   -   S h o w s   t h e   y e a r s   o f   t h e   d e c a d e .   o r   " c e n t u r y "   -   S h o w s   t h e   d e c a d e s   f r o m   t h e   c e n t u r y . . 
 
         2 1 2 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 1 3 :           *   @ r e t u r n   \ K e n d o \ U I \ D a t e T i m e P i c k e r 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ D r a w e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 1 0   [ m a t c h :   F R O M   ] : 
 
         1 0 8 :   
 
         1 0 9 :           / * * 
 
   > >   1 1 0 :           *   I f   s e t   t o   f a l s e ,   s w i p i n g   t h e   a s s o c i a t e d   c o n t e n t   w i l l   n o t   a c t i v a t e   t h e   d r a w e r .   I n   t h i s   c a s e ,   t h e   d r a w e r   w i l l   o n l y   b e   o p e n   b y   c a l l i n g   t h e   s h o w   m e t h o d .   s h o u l d   b e   d i s a b l e d   f o r   b r o w s e r s ,   w h i c h   u s e   s i d e   s w i p i n g   g e s t u r e s   f o r   b a c k / f o r w a r d   n a v i g a t i o n ,   s u c h   a s   i O S   S a f a r i .   O t h e r w i s e ,   u s e r s   s h o u l d   s w i p e   f r o m   a n   i n n e r   p a r t   o f   t h e   v i e w ,   a n d   n o t   f r o m   t h e   v i e w   e d g e . 
 
         1 1 1 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 1 2 :           *   @ r e t u r n   \ K e n d o \ U I \ D r a w e r 
 
 
 
     L i n e   1 5 7   [ m a t c h :   F R O M   ] : 
 
         1 5 5 :           / * * 
 
         1 5 6 :           *   S e t s   t h e   i t e m C l i c k   e v e n t   o f   t h e   D r a w e r . 
 
   > >   1 5 7 :           *   F i r e s   w h e n   u s e r   c l i c k s   o n   i t e m   f r o m   t h e   K e n d o   U I   D r a w e r . 
 
         1 5 8 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         1 5 9 :           *   @ r e t u r n   \ K e n d o \ U I \ D r a w e r 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ D r o p D o w n B u t t o n . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 3 0   [ m a t c h :   F R O M   ] : 
 
         1 2 8 :   
 
         1 2 9 :           / * * 
 
   > >   1 3 0 :           *   D e f i n e s   a   C S S   c l a s s   ( o r   m u l t i p l e   c l a s s e s   s e p a r a t e d   b y   s p a c e s ) ,   w h i c h   w i l l   b e   u s e d   f o r   a p p l y i n g   a   b a c k g r o u n d   i m a g e   t o   a   s p a n   e l e m e n t   i n s i d e   t h e   D r o p D o w n B u t t o n .   I n   c a s e   y o u   w a n t   t o   u s e   a n   i c o n   f r o m   t h e   K e n d o   U I   t h e m e   s p r i t e   b a c k g r o u n d   i m a g e ,   i t   i s   e a s i e r   t o   u s e   t h e   i c o n   p r o p e r t y . T h e   s p a n   e l e m e n t   c a n   b e   a d d e d   a u t o m a t i c a l l y   b y   t h e   w i d g e t ,   o r   a n   e x i s t i n g   e l e m e n t   c a n   b e   u s e d ,   i f   i t   h a s   a   k - s p r i t e   C S S   c l a s s   a p p l i e d . 
 
         1 3 1 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 3 2 :           *   @ r e t u r n   \ K e n d o \ U I \ D r o p D o w n B u t t o n 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ D r o p D o w n L i s t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 1   [ m a t c h :   F R O M   ] : 
 
         5 9 :   
 
         6 0 :           / * * 
 
   > >   6 1 :           *   D e f i n e s   t h e   p a r e n t   f i e l d   t o   b e   u s e d   t o   r e t a i n   v a l u e   f r o m .   T h i s   v a l u e   w i l l   b e   u s e d   f u r t h e r   t o   f i l t e r   t h e   d a t a S o u r c e .   I f   n o t   d e f i n e d   t h e   v a l u e   f r o m   t h e   p a r e n t ' s   d a t a V a l u e F i e l d   w i l l   b e   u s e d . 
 
         6 2 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         6 3 :           *   @ r e t u r n   \ K e n d o \ U I \ D r o p D o w n L i s t 
 
 
 
     L i n e   4 7 3   [ m a t c h :   F R O M   ] : 
 
         4 7 1 :           / * * 
 
         4 7 2 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   D r o p D o w n L i s t . 
 
   > >   4 7 3 :           *   F i r e d   w h e n   t h e   w i d g e t   i s   b o u n d   t o   d a t a   f r o m   i t s   d a t a   s o u r c e . T h e   e v e n t   h a n d l e r   f u n c t i o n   c o n t e x t   ( a v a i l a b l e   v i a   t h e   t h i s   k e y w o r d )   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         4 7 4 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         4 7 5 :           *   @ r e t u r n   \ K e n d o \ U I \ D r o p D o w n L i s t 
 
 
 
     L i n e   5 1 5   [ m a t c h :   F R O M   ] : 
 
         5 1 3 :           / * * 
 
         5 1 4 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   D r o p D o w n L i s t . 
 
   > >   5 1 5 :           *   F i r e d   w h e n   a n   i t e m   f r o m   t h e   p o p u p   i s   s e l e c t e d   b y   t h e   u s e r   e i t h e r   w i t h   m o u s e / t a p   o r   w i t h   k e y b o a r d   n a v i g a t i o n . 
 
         5 1 6 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         5 1 7 :           *   @ r e t u r n   \ K e n d o \ U I \ D r o p D o w n L i s t 
 
 
 
     L i n e   5 1 4   [ m a t c h :   S E L E C T   ] : 
 
         5 1 2 :   
 
         5 1 3 :           / * * 
 
   > >   5 1 4 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   D r o p D o w n L i s t . 
 
         5 1 5 :           *   F i r e d   w h e n   a n   i t e m   f r o m   t h e   p o p u p   i s   s e l e c t e d   b y   t h e   u s e r   e i t h e r   w i t h   m o u s e / t a p   o r   w i t h   k e y b o a r d   n a v i g a t i o n . 
 
         5 1 6 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ D r o p D o w n L i s t V i r t u a l . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 8   [ m a t c h :   F R O M   ] : 
 
         2 6 :           / * * 
 
         2 7 :           *   S e t s   t h e   v a l u e M a p p e r   o p t i o n   o f   t h e   D r o p D o w n L i s t V i r t u a l . 
 
   > >   2 8 :           *   T h e   w i d g e t   c a l l s   t h e   v a l u e M a p p e r   f u n c t i o n   w h e n   t h e   w i d g e t   r e c e i v e s   a   v a l u e ,   t h a t   i s   n o t   f e t c h e d   f r o m   t h e   r e m o t e   s e r v e r   y e t .   T h e   w i d g e t   w i l l   p a s s   t h e   s e l e c t e d   v a l u e ( s )   i n   t h e   v a l u e M a p p e r   f u n c t i o n .   I n   t u r n ,   t h e   v a l u e M a p p e r   i m p l e m e n t a t i o n   s h o u l d   r e t u r n   t h e   r e s p e c t i v e   d a t a   i t e m ( s )   i n d e x / i n d i c e s .   >   I m p o r t a n t   >   >   A s   o f   t h e   K e n d o   U I   R 3   2 0 1 6   r e l e a s e ,   t h e   i m p l e m e n t a t i o n   o f   t h e   v a l u e M a p p e r   f u n c t i o n   i s   o p t i o n a l .   I t   i s   r e q u i r e d   o n l y   i f   t h e   w i d g e t   c o n t a i n s   a n   i n i t i a l   v a l u e   o r   i f   t h e   v a l u e   m e t h o d   i s   u s e d . 
 
         2 9 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         3 0 :           *   @ r e t u r n   \ K e n d o \ U I \ D r o p D o w n L i s t V i r t u a l 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ D r o p D o w n T r e e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 6 2   [ m a t c h :   F R O M   ] : 
 
         4 6 0 :           / * * 
 
         4 6 1 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   D r o p D o w n T r e e . 
 
   > >   4 6 2 :           *   F i r e d   w h e n   t h e   w i d g e t   o r   s u b   l e v e l s   o f   i t s   i t e m s   a r e   b o u n d   t o   d a t a   f r o m   t h e   d a t a S o u r c e . T h e   e v e n t   h a n d l e r   f u n c t i o n   c o n t e x t   ( a v a i l a b l e   v i a   t h e   t h i s   k e y w o r d )   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         4 6 3 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         4 6 4 :           *   @ r e t u r n   \ K e n d o \ U I \ D r o p D o w n T r e e 
 
 
 
     L i n e   5 0 3   [ m a t c h :   S E L E C T   ] : 
 
         5 0 1 :   
 
         5 0 2 :           / * * 
 
   > >   5 0 3 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   D r o p D o w n T r e e . 
 
         5 0 4 :           *   T r i g g e r e d   w h e n   a   n o d e   i s   b e i n g   s e l e c t e d   b y   t h e   u s e r .   C a n c e l l a b l e .   W h e n   c h e c k b o x e s   a r e   e n a b l e d ,   i t   i s   a l s o   t r i g g e r e d   w h e n   a   n o d e   i s   b e i n g   d e s e l e c t e d . 
 
         5 0 5 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ E d i t o r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   F i n e - t u n e   d e s e r i a l i z a t i o n   i n   t h e   E d i t o r   w i d g e t .   D e s e r i a l i z a t i o n   i s   t h e   p r o c e s s   o f   p a r s i n g   t h e   H T M L   s t r i n g   i n p u t   f r o m   t h e   v a l u e ( )   m e t h o d   o r   f r o m   t h e   v i e w H t m l   d i a l o g   i n t o   e d i t a b l e   c o n t e n t . 
 
         3 7 :           *   @ p a r a m   \ K e n d o \ U I \ E d i t o r D e s e r i a l i z a t i o n | a r r a y   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ U I \ E d i t o r 
 
 
 
     L i n e   1 2 6   [ m a t c h :   F R O M   ] : 
 
         1 2 4 :   
 
         1 2 5 :           / * * 
 
   > >   1 2 6 :           *   A l l o w s   c u s t o m   s t y l e s h e e t s   t o   b e   i n c l u d e d   w i t h i n   t h e   e d i t i n g   a r e a .   T h i s   s e t t i n g   i s   a p p l i c a b l e   o n l y   w h e n   t h e   E d i t o r   i s   i n i t i a l i z e d   f r o m   a   t e x t a r e a   a n d   a   c o n t e n t e d i t a b l e   i f r a m e   i s   g e n e r a t e d . 
 
         1 2 7 :           *   @ p a r a m   a r r a y   $ v a l u e 
 
         1 2 8 :           *   @ r e t u r n   \ K e n d o \ U I \ E d i t o r 
 
 
 
     L i n e   2 5 5   [ m a t c h :   S E L E C T   ] : 
 
         2 5 3 :   
 
         2 5 4 :           / * * 
 
   > >   2 5 5 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   E d i t o r . 
 
         2 5 6 :           *   F i r e s   w h e n   t h e   E d i t o r   s e l e c t i o n   h a s   c h a n g e d . 
 
         2 5 7 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ E d i t o r F i l e B r o w s e r T r a n s p o r t C r e a t e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   t y p e   o f   d a t a   t h a t   y o u ' r e   e x p e c t i n g   b a c k   f r o m   t h e   s e r v e r .   C o m m o n l y   u s e d   v a l u e s   a r e   " j s o n "   a n d   " j s o n p " .   R e f e r   t o   t h e   j Q u e r y . a j a x   d o c u m e n t a t i o n   f o r   f u r t h e r   i n f o . 
 
         2 8 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ U I \ E d i t o r F i l e B r o w s e r T r a n s p o r t C r e a t e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ E d i t o r F i l e B r o w s e r T r a n s p o r t D e s t r o y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   t y p e   o f   d a t a   t h a t   y o u ' r e   e x p e c t i n g   b a c k   f r o m   t h e   s e r v e r .   C o m m o n l y   u s e d   v a l u e s   a r e   " j s o n "   a n d   " j s o n p " .   R e f e r   t o   t h e   j Q u e r y . a j a x   d o c u m e n t a t i o n   f o r   f u r t h e r   i n f o . 
 
         2 8 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ U I \ E d i t o r F i l e B r o w s e r T r a n s p o r t D e s t r o y 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ E d i t o r F i l e B r o w s e r T r a n s p o r t R e a d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   t y p e   o f   d a t a   t h a t   y o u ' r e   e x p e c t i n g   b a c k   f r o m   t h e   s e r v e r .   C o m m o n l y   u s e d   v a l u e s   a r e   " j s o n "   a n d   " j s o n p " .   R e f e r   t o   t h e   j Q u e r y . a j a x   d o c u m e n t a t i o n   f o r   f u r t h e r   i n f o . 
 
         2 8 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ U I \ E d i t o r F i l e B r o w s e r T r a n s p o r t R e a d 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ E d i t o r I m a g e B r o w s e r T r a n s p o r t C r e a t e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   t y p e   o f   d a t a   t h a t   y o u ' r e   e x p e c t i n g   b a c k   f r o m   t h e   s e r v e r .   C o m m o n l y   u s e d   v a l u e s   a r e   " j s o n "   a n d   " j s o n p " .   R e f e r   t o   t h e   j Q u e r y . a j a x   d o c u m e n t a t i o n   f o r   f u r t h e r   i n f o . 
 
         2 8 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ U I \ E d i t o r I m a g e B r o w s e r T r a n s p o r t C r e a t e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ E d i t o r I m a g e B r o w s e r T r a n s p o r t D e s t r o y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   t y p e   o f   d a t a   t h a t   y o u ' r e   e x p e c t i n g   b a c k   f r o m   t h e   s e r v e r .   C o m m o n l y   u s e d   v a l u e s   a r e   " j s o n "   a n d   " j s o n p " .   R e f e r   t o   t h e   j Q u e r y . a j a x   d o c u m e n t a t i o n   f o r   f u r t h e r   i n f o . 
 
         2 8 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ U I \ E d i t o r I m a g e B r o w s e r T r a n s p o r t D e s t r o y 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ E d i t o r I m a g e B r o w s e r T r a n s p o r t R e a d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   t y p e   o f   d a t a   t h a t   y o u ' r e   e x p e c t i n g   b a c k   f r o m   t h e   s e r v e r .   C o m m o n l y   u s e d   v a l u e s   a r e   " j s o n "   a n d   " j s o n p " .   R e f e r   t o   t h e   j Q u e r y . a j a x   d o c u m e n t a t i o n   f o r   f u r t h e r   i n f o . 
 
         2 8 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ U I \ E d i t o r I m a g e B r o w s e r T r a n s p o r t R e a d 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ E d i t o r M e s s a g e s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 7 7   [ m a t c h :   F R O M   ] : 
 
         4 7 5 :   
 
         4 7 6 :           / * * 
 
   > >   4 7 7 :           *   T h e   t e x t   t h a t   i s   s h o w n   w h e n   t h e   t e x t   f o n t   w i l l   b e   i n h e r i t e d   f r o m   t h e   s u r r o u n d i n g   p a g e . 
 
         4 7 8 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         4 7 9 :           *   @ r e t u r n   \ K e n d o \ U I \ E d i t o r M e s s a g e s 
 
 
 
     L i n e   4 9 5   [ m a t c h :   F R O M   ] : 
 
         4 9 3 :   
 
         4 9 4 :           / * * 
 
   > >   4 9 5 :           *   T h e   t e x t   t h a t   i s   s h o w n   w h e n   t h e   t e x t   s i z e   w i l l   b e   i n h e r i t e d   f r o m   t h e   s u r r o u n d i n g   p a g e . 
 
         4 9 6 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         4 9 7 :           *   @ r e t u r n   \ K e n d o \ U I \ E d i t o r M e s s a g e s 
 
 
 
     L i n e   7 7 4   [ m a t c h :   S E L E C T   ] : 
 
         7 7 2 :   
 
         7 7 3 :           / * * 
 
   > >   7 7 4 :           *   T h e   t i t l e   o f   t h e   S e l e c t   A l l   C e l l s   t o o l . 
 
         7 7 5 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         7 7 6 :           *   @ r e t u r n   \ K e n d o \ U I \ E d i t o r M e s s a g e s 
 
 
 
     L i n e   4 3 2   [ m a t c h :   U P D A T E   ] : 
 
         4 3 0 :   
 
         4 3 1 :           / * * 
 
   > >   4 3 2 :           *   T h e   l a b e l   o f   t h e   u p d a t e   b u t t o n   i n   a l l   e d i t o r   d i a l o g s . 
 
         4 3 3 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         4 3 4 :           *   @ r e t u r n   \ K e n d o \ U I \ E d i t o r M e s s a g e s 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ E d i t o r P a s t e C l e a n u p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 8   [ m a t c h :   F R O M   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   R e m o v e   s t y l e   a n d   c l a s s   a t t r i b u t e s   f r o m   t h e   p a s t i n g   c o n t e n t . 
 
         1 9 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ U I \ E d i t o r P a s t e C l e a n u p 
 
 
 
     L i n e   5 0   [ m a t c h :   F R O M   ] : 
 
         4 8 :   
 
         4 9 :           / * * 
 
   > >   5 0 :           *   R e m o v e   a l l   s p e c i a l   f o r m a t t i n g   f r o m   M S   W o r d   c o n t e n t   l i k e   f o n t - n a m e ,   f o n t - s i z e   a n d   M S   W o r d   s p e c i f i c   t a g s . 
 
         5 1 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         5 2 :           *   @ r e t u r n   \ K e n d o \ U I \ E d i t o r P a s t e C l e a n u p 
 
 
 
     L i n e   8 6   [ m a t c h :   F R O M   ] : 
 
         8 4 :   
 
         8 5 :           / * * 
 
   > >   8 6 :           *   R e m o v e   a l l   s p a n   e l e m e n t s   f r o m   t h e   c o n t e n t ,   e n s u r i n g   m u c h   o f   t h e   i n l i n e   f o r m a t t i n g   i s   r e m o v e d . 
 
         8 7 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         8 8 :           *   @ r e t u r n   \ K e n d o \ U I \ E d i t o r P a s t e C l e a n u p 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ E d i t o r P d f . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 2   [ m a t c h :   F R O M   ] : 
 
         7 0 :   
 
         7 1 :           / * * 
 
   > >   7 2 :           *   S p e c i f i e s   t h e   q u a l i t y   o f   t h e   i m a g e s   w i t h i n   t h e   e x p o r t e d   f i l e ,   f r o m   0   t o   1 . 
 
         7 3 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         7 4 :           *   @ r e t u r n   \ K e n d o \ U I \ E d i t o r P d f 
 
 
 
     L i n e   1 3 5   [ m a t c h :   F R O M   ] : 
 
         1 3 3 :   
 
         1 3 4 :           / * * 
 
   > >   1 3 5 :           *   A   n a m e   o r   k e y w o r d   i n d i c a t i n g   w h e r e   t o   d i s p l a y   t h e   d o c u m e n t   r e t u r n e d   f r o m   t h e   p r o x y . I f   y o u   w a n t   t o   d i s p l a y   t h e   d o c u m e n t   i n   a   n e w   w i n d o w   o r   i f r a m e ,   t h e   p r o x y   s h o u l d   s e t   t h e   " C o n t e n t - D i s p o s i t i o n "   h e a d e r   t o   i n l i n e ;   f i l e n a m e = " < f i l e N a m e . p d f > " . 
 
         1 3 6 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 3 7 :           *   @ r e t u r n   \ K e n d o \ U I \ E d i t o r P d f 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ E d i t o r T o o l . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   e x e c   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   S e t s   t h e   e x e c   o p t i o n   o f   t h e   E d i t o r T o o l . 
 
         2 8 :           *   T h e   J a v a S c r i p t   f u n c t i o n   w h i c h   w i l l   b e   e x e c u t e d   w h e n   t h e   e n d - u s e r   c l i c k s   t h e   t o o l   b u t t o n . 
 
         2 9 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
     L i n e   2 7   [ m a t c h :   E X E C   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   S e t s   t h e   e x e c   o p t i o n   o f   t h e   E d i t o r T o o l . 
 
         2 8 :           *   T h e   J a v a S c r i p t   f u n c t i o n   w h i c h   w i l l   b e   e x e c u t e d   w h e n   t h e   e n d - u s e r   c l i c k s   t h e   t o o l   b u t t o n . 
 
         2 9 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ F i l e M a n a g e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 3 2   [ m a t c h :   F R O M   ] : 
 
         2 3 0 :           / * * 
 
         2 3 1 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   F i l e M a n a g e r . 
 
   > >   2 3 2 :           *   F i r e d   w h e n   t h e   w i d g e t   i s   b o u n d   t o   d a t a   f r o m   i t s   d a t a   s o u r c e . 
 
         2 3 3 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         2 3 4 :           *   @ r e t u r n   \ K e n d o \ U I \ F i l e M a n a g e r 
 
 
 
     L i n e   1 6 1   [ m a t c h :   S E L E C T   ] : 
 
         1 5 9 :   
 
         1 6 0 :           / * * 
 
   > >   1 6 1 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   F i l e M a n a g e r . 
 
         1 6 2 :           *   F i r e d   w h e n   s e l e c t i o n   c h a n g e s . 
 
         1 6 3 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ F i l e M a n a g e r C o n t e x t M e n u . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 4   [ m a t c h :   S E L E C T   ] : 
 
         7 2 :   
 
         7 3 :           / * * 
 
   > >   7 4 :           *   S e t s   t h e   s e l e c t   o p t i o n   o f   t h e   F i l e M a n a g e r C o n t e x t M e n u . 
 
         7 5 :           *   F i r e s   w h e n   a   m e n u   i t e m   g e t s   s e l e c t e d .   C o n t e x t M e n u   E v e n t s . 
 
         7 6 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ F i l e M a n a g e r U p l o a d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 2 1   [ m a t c h :   S E L E C T   ] : 
 
         1 1 9 :   
 
         1 2 0 :           / * * 
 
   > >   1 2 1 :           *   S e t s   t h e   s e l e c t   o p t i o n   o f   t h e   F i l e M a n a g e r U p l o a d . 
 
         1 2 2 :           *   F i r e s   w h e n   a   f i l e   i s   s e l e c t e d .   U p l o a d   E v e n t s . 
 
         1 2 3 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
     L i n e   1 9 0   [ m a t c h :   S E L E C T   ] : 
 
         1 8 8 :   
 
         1 8 9 :           / * * 
 
   > >   1 9 0 :           *   E n a b l e s   ( i f   s e t   t o   ` t r u e ` )   o r   d i s a b l e s   ( i f   s e t   t o   ` f a l s e ` )   t h e   s e l e c t i o n   o f   m u l t i p l e   f i l e s .   I f   s e t   t o   ` f a l s e ` ,   t h e   u s e r   c a n   s e l e c t   o n l y   o n e   f i l e   a t   a   t i m e . 
 
         1 9 1 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 9 2 :           *   @ r e t u r n   \ K e n d o \ U I \ F i l e M a n a g e r U p l o a d 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ F i l t e r F i e l d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 8   [ m a t c h :   F R O M   ] : 
 
         5 6 :   
 
         5 7 :           / * * 
 
   > >   5 8 :           *   A   v a l u e   m a t c h i n g   a   f i e l d   n a m e   f r o m   t h e   d a t a s o u r c e   m o d e l . 
 
         5 9 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         6 0 :           *   @ r e t u r n   \ K e n d o \ U I \ F i l t e r F i e l d 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ F l a t C o l o r P i c k e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 8   [ m a t c h :   U P D A T E   ] : 
 
         4 6 :   
 
         4 7 :           / * * 
 
   > >   4 8 :           *   S p e c i f i e s   w h e t h e r   t h e   U I   s h o u l d   b e   u p d a t e d   w h i l e   t h e   u s e r   i s   t y p i n g   i n   t h e   i n p u t   f i e l d ,   w h e n e v e r   a   v a l i d   c o l o r   c a n   b e   p a r s e d .     I f   y o u   p a s s f a l s e   f o r   t h i s ,   t h e   w i d g e t   w i l l   u p d a t e   o n l y   w h e n   E N T E R   i s   p r e s s e d . 
 
         4 9 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         5 0 :           *   @ r e t u r n   \ K e n d o \ U I \ F l a t C o l o r P i c k e r 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ F o r m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 3   [ m a t c h :   F R O M   ] : 
 
         2 1 :           / * * 
 
         2 2 :           *   S e t s   t h e   b u t t o n s T e m p l a t e   o p t i o n   o f   t h e   F o r m . 
 
   > >   2 3 :           *   S p e c i f i e s   t h e   t e m p l a t e   w h i c h   i s   u s e d   f o r   r e n d e r i n g   t h e   F r o m   b u t t o n s . 
 
         2 4 :           *   @ p a r a m   s t r i n g   $ v a l u e   T h e   i d   o f   t h e   e l e m e n t   w h i c h   r e p r e s e n t s   t h e   k e n d o   t e m p l a t e . 
 
         2 5 :           *   @ r e t u r n   \ K e n d o \ U I \ F o r m 
 
 
 
     L i n e   3 5   [ m a t c h :   F R O M   ] : 
 
         3 3 :           / * * 
 
         3 4 :           *   S e t s   t h e   b u t t o n s T e m p l a t e   o p t i o n   o f   t h e   F o r m . 
 
   > >   3 5 :           *   S p e c i f i e s   t h e   t e m p l a t e   w h i c h   i s   u s e d   f o r   r e n d e r i n g   t h e   F r o m   b u t t o n s . 
 
         3 6 :           *   @ p a r a m   s t r i n g   $ v a l u e   T h e   t e m p l a t e   c o n t e n t . 
 
         3 7 :           *   @ r e t u r n   \ K e n d o \ U I \ F o r m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ G a n t t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 5   [ m a t c h :   F R O M   ] : 
 
         7 3 :   
 
         7 4 :           / * * 
 
   > >   7 5 :           *   I f   s e t   t o   s o m e   d a t e   a n d   i t   i s   b e t w e e n   t h e   r a n g e   s t a r t   a n d   r a n g e   e n d   o f   t h e   s e l e c t e d   v i e w ,   t h e   t i m e l i n e   o f   t h e   c u r r e n t l y   s e l e c t e d   v i e w   i s   s c r o l l e d   t o   s t a r t   f r o m   t h i s   d a t e . 
 
         7 6 :           *   @ p a r a m   d a t e   $ v a l u e 
 
         7 7 :           *   @ r e t u r n   \ K e n d o \ U I \ G a n t t 
 
 
 
     L i n e   3 5 5   [ m a t c h :   F R O M   ] : 
 
         3 5 3 :           / * * 
 
         3 5 4 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   G a n t t . 
 
   > >   3 5 5 :           *   F i r e d   w h e n   t h e   w i d g e t   i s   b o u n d   t o   d a t a   f r o m   i t s   d a t a   s o u r c e . T h e   e v e n t   h a n d l e r   f u n c t i o n   c o n t e x t   ( a v a i l a b l e   v i a   t h e   t h i s   k e y w o r d )   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         3 5 6 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         3 5 7 :           *   @ r e t u r n   \ K e n d o \ U I \ G a n t t 
 
 
 
     L i n e   2 3 7   [ m a t c h :   S E L E C T   ] : 
 
         2 3 5 :   
 
         2 3 6 :           / * * 
 
   > >   2 3 7 :           *   I f   s e t   t o   f a l s e   t h e   u s e r   w o n ' t   b e   a b l e   t o   s e l e c t   t a s k s   i n   t h e   G a n t t .   B y   d e f a u l t   s e l e c t i o n   i s   e n a b l e d   a n d   t r i g g e r s   t h e   c h a n g e   e v e n t . 
 
         2 3 8 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         2 3 9 :           *   @ r e t u r n   \ K e n d o \ U I \ G a n t t 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ G a n t t C u r r e n t T i m e M a r k e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   U P D A T E   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   u p d a t e   i n t e r v a l   o f   t h e   " c u r r e n t   t i m e "   m a r k e r ,   i n   m i l l i s e c o n d s . 
 
         1 0 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ U I \ G a n t t C u r r e n t T i m e M a r k e r 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ G a n t t E d i t a b l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 2 1   [ m a t c h :   U P D A T E   ] : 
 
         1 1 9 :   
 
         1 2 0 :           / * * 
 
   > >   1 2 1 :           *   I f   s e t   t o   f a l s e   t h e   u s e r   w o n ' t   b e   a b l e   t o   u p d a t e   t a s k s . 
 
         1 2 2 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 2 3 :           *   @ r e t u r n   \ K e n d o \ U I \ G a n t t E d i t a b l e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ G a n t t P d f . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 2   [ m a t c h :   F R O M   ] : 
 
         7 0 :   
 
         7 1 :           / * * 
 
   > >   7 2 :           *   S p e c i f i e s   t h e   q u a l i t y   o f   t h e   i m a g e s   w i t h i n   t h e   e x p o r t e d   f i l e ,   f r o m   0   t o   1 . 
 
         7 3 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         7 4 :           *   @ r e t u r n   \ K e n d o \ U I \ G a n t t P d f 
 
 
 
     L i n e   1 3 5   [ m a t c h :   F R O M   ] : 
 
         1 3 3 :   
 
         1 3 4 :           / * * 
 
   > >   1 3 5 :           *   A   n a m e   o r   k e y w o r d   i n d i c a t i n g   w h e r e   t o   d i s p l a y   t h e   d o c u m e n t   r e t u r n e d   f r o m   t h e   p r o x y . I f   y o u   w a n t   t o   d i s p l a y   t h e   d o c u m e n t   i n   a   n e w   w i n d o w   o r   i f r a m e ,   t h e   p r o x y   s h o u l d   s e t   t h e   " C o n t e n t - D i s p o s i t i o n "   h e a d e r   t o   i n l i n e ;   f i l e n a m e = " < f i l e N a m e . p d f > " . 
 
         1 3 6 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 3 7 :           *   @ r e t u r n   \ K e n d o \ U I \ G a n t t P d f 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ G a n t t R a n g e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   I f   s e t   t o   s o m e   d a t e   t h e   t i m e l i n e   o f   a l l   v i e w s   w i l l   s t a r t   f r o m   t h i s   d a t e . 
 
         1 0 :           *   @ p a r a m   d a t e   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ U I \ G a n t t R a n g e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ G a n t t V i e w . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   I f   s e t   t o   s o m e   d a t e   a n d   i t   i s   b e t w e e n   t h e   r a n g e   s t a r t   a n d   r a n g e   e n d   o f   t h e   s e l e c t e d   v i e w ,   t h e   t i m e l i n e   o f   t h e   c u r r e n t l y   s e l e c t e d   v i e w   i s   s c r o l l e d   t o   s t a r t   f r o m   t h i s   d a t e . O v e r r i d e s   t h e   d a t e   o p t i o n   o f   t h e   g a n t t . 
 
         1 0 :           *   @ p a r a m   d a t e   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ U I \ G a n t t V i e w 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ G a n t t V i e w R a n g e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   I f   s e t   t o   s o m e   d a t e   t h e   t i m e l i n e   o f   t h e   v i e w   w i l l   s t a r t   f r o m   t h i s   d a t e . O v e r r i d e s   t h e   r a n g e . s t a r t   o p t i o n   o f   t h e   g a n t t . 
 
         1 0 :           *   @ p a r a m   d a t e   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ U I \ G a n t t V i e w R a n g e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ G r i d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 4 1   [ m a t c h :   F R O M   ] : 
 
         5 3 9 :           / * * 
 
         5 4 0 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   G r i d . 
 
   > >   5 4 1 :           *   F i r e d   w h e n   t h e   w i d g e t   i s   b o u n d   t o   d a t a   f r o m   i t s   d a t a   s o u r c e . T h e   e v e n t   h a n d l e r   f u n c t i o n   c o n t e x t   ( a v a i l a b l e   v i a   t h e   t h i s   k e y w o r d )   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         5 4 2 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         5 4 3 :           *   @ r e t u r n   \ K e n d o \ U I \ G r i d 
 
 
 
     L i n e   2 2 8   [ m a t c h :   S E L E C T   ] : 
 
         2 2 6 :   
 
         2 2 7 :           / * * 
 
   > >   2 2 8 :           *   I f   s e t   t o   t r u e   t h e   u s e r   w o u l d   b e   a b l e   t o   s e l e c t   g r i d   r o w s .   B y   d e f a u l t   s e l e c t i o n   i s   d i s a b l e d . C a n   a l s o   b e   s e t   t o   t h e   f o l l o w i n g   s t r i n g   v a l u e s :   " r o w "   -   t h e   u s e r   c a n   s e l e c t   a   s i n g l e   r o w . ;   " c e l l "   -   t h e   u s e r   c a n   s e l e c t   a   s i n g l e   c e l l . ;   " m u l t i p l e ,   r o w "   -   t h e   u s e r   c a n   s e l e c t   m u l t i p l e   r o w s .   o r   " m u l t i p l e ,   c e l l "   -   t h e   u s e r   c a n   s e l e c t   m u l t i p l e   c e l l s . . 
 
         2 2 9 :           *   @ p a r a m   b o o l e a n | s t r i n g | \ K e n d o \ U I \ G r i d S e l e c t a b l e | a r r a y   $ v a l u e 
 
         2 3 0 :           *   @ r e t u r n   \ K e n d o \ U I \ G r i d 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ G r i d C o l u m n . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 0 0   [ m a t c h :   F R O M   ] : 
 
         9 8 :   
 
         9 9 :           / * * 
 
   > >   1 0 0 :           *   I f   s e t   t o   f a l s e   t h e   c o l u m n   w i l l   b e   e x c l u d e d   f r o m   t h e   e x p o r t e d   E x c e l / P D F   f i l e s . C a n   b e   s e t   t o   a   J a v a S c r i p t   o b j e c t   w h i c h   s p e c i f i e s   w h e t h e r   t h e   c o l u m n   s h o u l d   b e   e x p o r t e d   p e r   f o r m a t . 
 
         1 0 1 :           *   @ p a r a m   b o o l e a n | \ K e n d o \ U I \ G r i d C o l u m n E x p o r t a b l e | a r r a y   $ v a l u e 
 
         1 0 2 :           *   @ r e t u r n   \ K e n d o \ U I \ G r i d C o l u m n 
 
 
 
     L i n e   3 5 4   [ m a t c h :   F R O M   ] : 
 
         3 5 2 :   
 
         3 5 3 :           / * * 
 
   > >   3 5 4 :           *   I f   s e t   t o   t r u e   t h e   u s e r   w i l l   b e   a b l e   t o   s t i c k   o r   u n s t i c k   t h e   c o l u m n   f r o m   t h e   c o l u m n   m e n u . 
 
         3 5 5 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         3 5 6 :           *   @ r e t u r n   \ K e n d o \ U I \ G r i d C o l u m n 
 
 
 
     L i n e   3 2 7   [ m a t c h :   S E L E C T   ] : 
 
         3 2 5 :   
 
         3 2 6 :           / * * 
 
   > >   3 2 7 :           *   I f   s e t   t o   t r u e   t h e   g r i d   w i l l   r e n d e r   a   s e l e c t   c o l u m n   w i t h   c h e c k b o x e s   i n   e a c h   c e l l ,   t h u s   e n a b l i n g   m u l t i - r o w   s e l e c t i o n .   T h e   h e a d e r   c h e c k b o x   a l l o w s   u s e r s   t o   s e l e c t / d e s e l e c t   a l l   t h e   r o w s   o n   t h e   c u r r e n t   p a g e . 
 
         3 2 8 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         3 2 9 :           *   @ r e t u r n   \ K e n d o \ U I \ G r i d C o l u m n 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ G r i d C o l u m n C o m m a n d I t e m I c o n C l a s s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   U P D A T E   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   c l a s s   f o r   t h e   w e b   f o n t   i c o n   o f   t h e   u p d a t e   c o m m a n d   b u t t o n . 
 
         2 8 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ U I \ G r i d C o l u m n C o m m a n d I t e m I c o n C l a s s 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ G r i d C o l u m n E x p o r t a b l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   I f   s e t   t o   f a l s e   t h e   c o l u m n   w i l l   b e   e x c l u d e d   f r o m   t h e   e x p o r t e d   E x c e l   f i l e . 
 
         1 0 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ U I \ G r i d C o l u m n E x p o r t a b l e 
 
 
 
     L i n e   1 8   [ m a t c h :   F R O M   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   I f   s e t   t o   f a l s e   t h e   c o l u m n   w i l l   b e   e x c l u d e d   f r o m   t h e   e x p o r t e d   P D F   f i l e . 
 
         1 9 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ U I \ G r i d C o l u m n E x p o r t a b l e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ G r i d C o l u m n M e n u . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   S E L E C T   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   I f   s e t   t o   t r u e   t h e   c o l u m n   m e n u   w o u l d   a l l o w   t h e   u s e r   t o   s e l e c t   ( s h o w   a n d   h i d e )   g r i d   c o l u m n s .   B y   d e f a u l t   t h e   c o l u m n   m e n u   a l l o w s   c o l u m n   s e l e c t i o n . 
 
         1 0 :           *   @ p a r a m   b o o l e a n | \ K e n d o \ U I \ G r i d C o l u m n M e n u C o l u m n s | a r r a y   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ U I \ G r i d C o l u m n M e n u 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ G r i d C o l u m n S o r t a b l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 2   [ m a t c h :   F R O M   ] : 
 
         3 0 :   
 
         3 1 :           / * * 
 
   > >   3 2 :           *   D e t e r m i n e s   t h e   i n i t a l   ( f r o m   u n - s o r t e d   t o   s o r t e d   s t a t e )   s o r t   d i r e c t i o n .   T h e   s u p p o r t e d   v a l u e s   a r e   a s c   a n d   d e s c . 
 
         3 3 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         3 4 :           *   @ r e t u r n   \ K e n d o \ U I \ G r i d C o l u m n S o r t a b l e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ G r i d E d i t a b l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 5   [ m a t c h :   F R O M   ] : 
 
         4 3 :   
 
         4 4 :           / * * 
 
   > >   4 5 :           *   I f   s e t   t o   t r u e   t h e   u s e r   c a n   d e l e t e   d a t a   i t e m s   f r o m   t h e   g r i d   b y   c l i c k i n g   t h e   " d e s t r o y "   c o m m a n d   b u t t o n .   D e l e t i n g   i s   e n a b l e d   b y   d e f a u l t . 
 
         4 6 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         4 7 :           *   @ r e t u r n   \ K e n d o \ U I \ G r i d E d i t a b l e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ G r i d P d f . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   E x p o r t s   a l l   g r i d   p a g e s ,   s t a r t i n g   f r o m   t h e   f i r s t   o n e . 
 
         1 0 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ U I \ G r i d P d f 
 
 
 
     L i n e   8 1   [ m a t c h :   F R O M   ] : 
 
         7 9 :   
 
         8 0 :           / * * 
 
   > >   8 1 :           *   S p e c i f i e s   t h e   q u a l i t y   o f   t h e   i m a g e s   w i t h i n   t h e   e x p o r t e d   f i l e ,   f r o m   0   t o   1 . 
 
         8 2 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         8 3 :           *   @ r e t u r n   \ K e n d o \ U I \ G r i d P d f 
 
 
 
     L i n e   1 8 4   [ m a t c h :   F R O M   ] : 
 
         1 8 2 :   
 
         1 8 3 :           / * * 
 
   > >   1 8 4 :           *   A   n a m e   o r   k e y w o r d   i n d i c a t i n g   w h e r e   t o   d i s p l a y   t h e   d o c u m e n t   r e t u r n e d   f r o m   t h e   p r o x y . I f   y o u   w a n t   t o   d i s p l a y   t h e   d o c u m e n t   i n   a   n e w   w i n d o w   o r   i f r a m e ,   t h e   p r o x y   s h o u l d   s e t   t h e   " C o n t e n t - D i s p o s i t i o n "   h e a d e r   t o   i n l i n e ;   f i l e n a m e = " < f i l e N a m e . p d f > " . 
 
         1 8 5 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 8 6 :           *   @ r e t u r n   \ K e n d o \ U I \ G r i d P d f 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ G r i d S e l e c t a b l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   S E L E C T   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   C a n   b e   s e t   t o   t h e   f o l l o w i n g   s t r i n g   v a l u e s :   " r o w "   -   t h e   u s e r   c a n   s e l e c t   a   s i n g l e   r o w . ;   " c e l l "   -   t h e   u s e r   c a n   s e l e c t   a   s i n g l e   c e l l . ;   " m u l t i p l e ,   r o w "   -   t h e   u s e r   c a n   s e l e c t   m u l t i p l e   r o w s .   o r   " m u l t i p l e ,   c e l l "   -   t h e   u s e r   c a n   s e l e c t   m u l t i p l e   c e l l s . . 
 
         1 0 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ U I \ G r i d S e l e c t a b l e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ G r i d S o r t a b l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   D e t e r m i n e s   t h e   i n i t a l   ( f r o m   u n - s o r t e d   t o   s o r t e d   s t a t e )   s o r t   d i r e c t i o n .   T h e   s u p p o r t e d   v a l u e s   a r e   a s c   a n d   d e s c . 
 
         2 8 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ U I \ G r i d S o r t a b l e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ I m a g e E d i t o r S a v e A s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   A   n a m e   o r   k e y w o r d   i n d i c a t i n g   w h e r e   t o   d i s p l a y   t h e   d o c u m e n t   r e t u r n e d   f r o m   t h e   p r o x y . 
 
         3 7 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ U I \ I m a g e E d i t o r S a v e A s 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ L i s t B o x . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 5   [ m a t c h :   F R O M   ] : 
 
         2 3 :   
 
         2 4 :           / * * 
 
   > >   2 5 :           *   T h e   i d   o f   t h e   t a r g e t   L i s t B o x   t o   w h i c h   i t e m s   f r o m   t h e   s o u r c e   L i s t B o x   w i l l   b e   t r a n s f e r r e d   a n d   v i c e   v e r s a .   I f   y o u   h a v e   t o   t r a n s f e r   i t e m s   f r o m   t h e   t a r g e t   L i s t B o x   o v e r   i t s   t o o l b a r ,   t h e n   y o u   a l s o   n e e d   t o   s e t   i t s   c o n n e c t W i t h   o p t i o n . 
 
         2 6 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 7 :           *   @ r e t u r n   \ K e n d o \ U I \ L i s t B o x 
 
 
 
     L i n e   1 6 6   [ m a t c h :   F R O M   ] : 
 
         1 6 4 :           / * * 
 
         1 6 5 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   L i s t B o x . 
 
   > >   1 6 6 :           *   F i r e s   w h e n   t h e   L i s t B o x   h a s   r e c e i v e d   d a t a   f r o m   t h e   d a t a   s o u r c e   a n d   i s   a l r e a d y   r e n d e r e d . T h e   f u n c t i o n   c o n t e x t   o f   t h e   e v e n t   h a n d l e r   ( a v a i l a b l e   t h r o u g h   t h e   t h i s   k e y w o r d )   t h a t   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         1 6 7 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         1 6 8 :           *   @ r e t u r n   \ K e n d o \ U I \ L i s t B o x 
 
 
 
     L i n e   2 3 6   [ m a t c h :   F R O M   ] : 
 
         2 3 4 :           / * * 
 
         2 3 5 :           *   S e t s   t h e   r e m o v e   e v e n t   o f   t h e   L i s t B o x . 
 
   > >   2 3 6 :           *   F i r e s   b e f o r e   a n   i t e m   i s   r e m o v e d   f r o m   t h e   L i s t B o x . T h e   f u n c t i o n   c o n t e x t   o f   t h e   e v e n t   h a n d l e r   ( a v a i l a b l e   t h r o u g h   t h e   t h i s   k e y w o r d )   t h a t   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         2 3 7 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         2 3 8 :           *   @ r e t u r n   \ K e n d o \ U I \ L i s t B o x 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ L i s t B o x M e s s a g e s T o o l s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   D e f i n e s   t h e   t e x t   o f   t h e   T r a n s f e r   A l l   F r o m   b u t t o n   t h a t   i s   l o c a t e d   i n   t h e   t o o l b a r   o f   t h e   L i s t B o x . 
 
         3 7 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ U I \ L i s t B o x M e s s a g e s T o o l s 
 
 
 
     L i n e   5 4   [ m a t c h :   F R O M   ] : 
 
         5 2 :   
 
         5 3 :           / * * 
 
   > >   5 4 :           *   D e f i n e s   t h e   t e x t   o f   t h e   T r a n s f e r   F r o m   b u t t o n   t h a t   i s   l o c a t e d   i n   t h e   t o o l b a r   o f   t h e   L i s t B o x . 
 
         5 5 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         5 6 :           *   @ r e t u r n   \ K e n d o \ U I \ L i s t B o x M e s s a g e s T o o l s 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ L i s t B o x T o o l b a r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 8   [ m a t c h :   F R O M   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   A   c o l l e c t i o n   o f   t o o l s   t h a t   a r e   u s e d   t o   i n t e r a c t   w i t h   t h e   L i s t B o x . T h e   b u i l t - i n   t o o l s   a r e :   -   " m o v e U p "   -   M o v e s   u p   t h e   s e l e c t e d   L i s t B o x   i t e m s .   -   " m o v e D o w n "   -   M o v e s   d o w n   t h e   s e l e c t e d   L i s t B o x   i t e m s .   -   " r e m o v e "   -   R e m o v e s   t h e   s e l e c t e d   L i s t B o x   i t e m s .   -   " t r a n s f e r T o "   -   M o v e s   t h e   s e l e c t e d   i t e m s   f r o m   t h e   c u r r e n t   L i s t B o x   t o   t h e   t a r g e t   t h a t   i s   d e f i n e d   i n   t h e   c o n n e c t W i t h   o p t i o n .   -   " t r a n s f e r F r o m "   -   M o v e s   t h e   s e l e c t e d   i t e m s   f r o m   t h e   L i s t B o x   t h a t   i s   d e f i n e d   i n   t h e   c o n n e c t W i t h   o p t i o n   t o   t h e   c u r r e n t   L i s t B o x .   -   " t r a n s f e r A l l T o "   -   M o v e s   a l l   i t e m s   f r o m   t h e   c u r r e n t   L i s t B o x   t o   t h e   t a r g e t   t h a t   i s   d e f i n e d   i n   t h e   c o n n e c t W i t h   o p t i o n .   -   " t r a n s f e r A l l F r o m "   -   M o v e s   a l l   i t e m s   f r o m   t h e   L i s t B o x   t h a t   i s   d e f i n e d   i n   t h e   c o n n e c t W i t h   o p t i o n   t o   t h e   c u r r e n t   L i s t B o x . 
 
         1 9 :           *   @ p a r a m   a r r a y   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ U I \ L i s t B o x T o o l b a r 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ L i s t V i e w . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :                   $ p r o p e r t i e s   =   p a r e n t : : p r o p e r t i e s ( ) ; 
 
         3 5 :   
 
   > >   3 6 :                   / / r e m o v e   t a g N a m e   f r o m   i n i t   s c r i p t 
 
         3 7 :                   u n s e t ( $ p r o p e r t i e s [ ' t a g N a m e ' ] ) ; 
 
         3 8 :   
 
 
 
     L i n e   2 7 9   [ m a t c h :   F R O M   ] : 
 
         2 7 7 :           / * * 
 
         2 7 8 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   L i s t V i e w . 
 
   > >   2 7 9 :           *   F i r e s   w h e n   t h e   L i s t V i e w   h a s   r e c e i v e d   d a t a   f r o m   t h e   D a t a S o u r c e   a n d   i t   i s   a l r e a d y   r e n d e r e d . T h e   e v e n t   h a n d l e r   f u n c t i o n   c o n t e x t   ( a v a i l a b l e   v i a   t h e   t h i s   k e y w o r d )   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         2 8 0 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         2 8 1 :           *   @ r e t u r n   \ K e n d o \ U I \ L i s t V i e w 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ L i s t V i e w F l e x . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 8   [ m a t c h :   F R O M   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   B y   d e f a u l t ,   f l e x   i t e m s   w i l l   a l l   t r y   t o   f i t   o n t o   o n e   l i n e .   C u s t o m i z i n g   t h e   p r o p e r t y   d e f i n e s   h o w   i t e m s   w r a p   o r   n o t   w i t h i n   f l e x   c o n t i n e r .   V a l i d   v a l u e s   a r e :   w r a p :   T h i s   i s   e q u i v a l e n t   t o   f l e x - w r a p :   w r a p .   I t   a l l o w s   f l e x   i t e m s   t o   w r a p   a s   n e e d e d   o n t o   m u l t i p l e   l i n e s ,   f r o m   t o p   t o   b o t t o m . ;   n o w r a p :   T h i s   i s   e q u i v a l e n t   t o   f l e x - w r a p :   n o w r a p .   A l l   f l e x   i t e m s   w i l l   b e   o n   o n e   l i n e .   o r   w r a p - r e v e r s e : T h i s   i s   e q u i v a l e n t   t o   f l e x - w r a p :   w r a p - r e v e r s e .   I t   a l l o w s   f l e x   i t e m s   t o   w r a p   a s   n e e d e d   o n t o   m u l t i p l e   l i n e s ,   f r o m   b o t t o m   t o   t o p . . 
 
         1 9 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ U I \ L i s t V i e w F l e x 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ L i s t V i e w P a g e a b l e M e s s a g e s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 5   [ m a t c h :   S E L E C T   ] : 
 
         4 3 :   
 
         4 4 :           / * * 
 
   > >   4 5 :           *   D e f i n e s   t h e   t e x t   d i s p l a y e d   a f t e r   t h e   s e l e c t   e l e m e n t   o f   t h e   p a g e S i z e s   m o d e . 
 
         4 6 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         4 7 :           *   @ r e t u r n   \ K e n d o \ U I \ L i s t V i e w P a g e a b l e M e s s a g e s 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ M a s k e d T e x t B o x . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 2   [ m a t c h :   F R O M   ] : 
 
         5 0 :   
 
         5 1 :           / * * 
 
   > >   5 2 :           *   S p e c i f i e s   t h e   i n p u t   m a s k .   T h e   f o l l o w i n g   m a s k   r u l e s   a r e   s u p p o r t e d :   0   -   D i g i t .   A c c e p t s   a n y   d i g i t   b e t w e e n   0   a n d   9 . ;   9   -   D i g i t   o r   s p a c e .   A c c e p t s   a n y   d i g i t   b e t w e e n   0   a n d   9 ,   p l u s   s p a c e . ;   #   -   D i g i t   o r   s p a c e .   L i k e   9   r u l e ,   b u t   a l l o w s   a l s o   ( + )   a n d   ( - )   s i g n s . ;   L   -   L e t t e r .   R e s t r i c t s   i n p u t   t o   l e t t e r s   a - z   a n d   A - Z .   T h i s   r u l e   i s   e q u i v a l e n t   t o   [ a - z A - Z ]   i n   r e g u l a r   e x p r e s s i o n s . ;   ?   -   L e t t e r   o r   s p a c e .   R e s t r i c t s   i n p u t   t o   l e t t e r s   a - z   a n d   A - Z .   T h i s   r u l e   i s   e q u i v a l e n t   t o   [ a - z A - Z ]   i n   r e g u l a r   e x p r e s s i o n s . ;   &   -   C h a r a c t e r .   A c c e p t s   a n y   c h a r a c t e r .   T h e   r u l e   i s   e q u i v a l e n t   t o   \ S   i n   r e g u l a r   e x p r e s s i o n s . ;   C   -   C h a r a c t e r   o r   s p a c e .   A c c e p t s   a n y   c h a r a c t e r .   T h e   r u l e   i s   e q u i v a l e n t   t o   .   i n   r e g u l a r   e x p r e s s i o n s . ;   A   -   A l p h a n u m e r i c .   A c c e p t s   l e t t e r s   a n d   d i g i t s   o n l y . ;   a   -   A l p h a n u m e r i c   o r   s p a c e .   A c c e p t s   l e t t e r s ,   d i g i t s   a n d   s p a c e   o n l y . ;   .   -   D e c i m a l   p l a c e h o l d e r .   T h e   d e c i m a l   s e p a r a t o r   w i l l   b e   g o t t e n   f r o m   t h e   c u r r e n t   c u l t u r e   u s e d   b y   K e n d o . ;   ,   -   T h o u s a n d s   p l a c e h o l d e r .   T h e   d i s p l a y   c h a r a c t e r   w i l l   b e   g o t t e n   f r o m   t h e   c u r r e n t   c u l t u r e   u s e d   b y   K e n d o .   o r   $   -   C u r r e n c y   s y m b o l .   T h e   d i s p l a y   c h a r a c t e r   w i l l   b e   g o t t e n   f r o m   t h e   c u r r e n t   c u l t u r e   u s e d   b y   K e n d o . . 
 
         5 3 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         5 4 :           *   @ r e t u r n   \ K e n d o \ U I \ M a s k e d T e x t B o x 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ M e d i a P l a y e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 0   [ m a t c h :   F R O M   ] : 
 
         2 8 :   
 
         2 9 :           / * * 
 
   > >   3 0 :           *   I f   s e t   t o   f a l s e ,   t h e   u s e r   w i l l   b e   p r e v e n t e d   f r o m   s e e k i n g   t h e   v i d e o   f o r w a r d . 
 
         3 1 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         3 2 :           *   @ r e t u r n   \ K e n d o \ U I \ M e d i a P l a y e r 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ M e n u . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 3 5   [ m a t c h :   S E L E C T   ] : 
 
         2 3 3 :   
 
         2 3 4 :           / * * 
 
   > >   2 3 5 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   M e n u . 
 
         2 3 6 :           *   F i r e s   w h e n   a   m e n u   i t e m   g e t s   s e l e c t e d . 
 
         2 3 7 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ M e n u I t e m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 2   [ m a t c h :   S E L E C T   ] : 
 
         3 0 :                   } 
 
         3 1 :   
 
   > >   3 2 :                   $ s e l e c t   =   $ t h i s - > g e t P r o p e r t y ( ' s e l e c t ' ) ; 
 
         3 3 :                   i f   ( $ s e l e c t )   { 
 
         3 4 :                             $ e l e m e n t - > a t t r ( ' o n c l i c k ' ,   $ s e l e c t ) ; 
 
 
 
     L i n e   1 1 2   [ m a t c h :   S E L E C T   ] : 
 
         1 1 0 :   
 
         1 1 1 :           / * * 
 
   > >   1 1 2 :           *   S p e c i f i e s   t h e   s e l e c t   e v e n t   h a n d l e r   o f   a n   i t e m . 
 
         1 1 3 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 1 4 :           *   @ r e t u r n   \ K e n d o \ U I \ M e n u I t e m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ M u l t i C o l u m n C o m b o B o x . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 2   [ m a t c h :   F R O M   ] : 
 
         5 0 :   
 
         5 1 :           / * * 
 
   > >   5 2 :           *   D e f i n e s   t h e   p a r e n t   f i e l d   t o   b e   u s e d   t o   r e t a i n   v a l u e   f r o m .   T h i s   v a l u e   w i l l   b e   u s e d   f u r t h e r   t o   f i l t e r   t h e   d a t a S o u r c e .   I f   n o t   d e f i n e d   t h e   v a l u e   f r o m   t h e   p a r e n t ' s   d a t a V a l u e F i e l d   w i l l   b e   u s e d . 
 
         5 3 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         5 4 :           *   @ r e t u r n   \ K e n d o \ U I \ M u l t i C o l u m n C o m b o B o x 
 
 
 
     L i n e   4 5 2   [ m a t c h :   F R O M   ] : 
 
         4 5 0 :           / * * 
 
         4 5 1 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   M u l t i C o l u m n C o m b o B o x . 
 
   > >   4 5 2 :           *   F i r e d   w h e n   t h e   w i d g e t   i s   b o u n d   t o   d a t a   f r o m   i t s   d a t a   s o u r c e . T h e   e v e n t   h a n d l e r   f u n c t i o n   c o n t e x t   ( a v a i l a b l e   v i a   t h e   t h i s   k e y w o r d )   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         4 5 3 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         4 5 4 :           *   @ r e t u r n   \ K e n d o \ U I \ M u l t i C o l u m n C o m b o B o x 
 
 
 
     L i n e   4 9 4   [ m a t c h :   F R O M   ] : 
 
         4 9 2 :           / * * 
 
         4 9 3 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   M u l t i C o l u m n C o m b o B o x . 
 
   > >   4 9 4 :           *   F i r e d   w h e n   a n   i t e m   f r o m   t h e   p o p u p   i s   s e l e c t e d   b y   t h e   u s e r   e i t h e r   w i t h   m o u s e / t a p   o r   w i t h   k e y b o a r d   n a v i g a t i o n . 
 
         4 9 5 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         4 9 6 :           *   @ r e t u r n   \ K e n d o \ U I \ M u l t i C o l u m n C o m b o B o x 
 
 
 
     L i n e   4 9 3   [ m a t c h :   S E L E C T   ] : 
 
         4 9 1 :   
 
         4 9 2 :           / * * 
 
   > >   4 9 3 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   M u l t i C o l u m n C o m b o B o x . 
 
         4 9 4 :           *   F i r e d   w h e n   a n   i t e m   f r o m   t h e   p o p u p   i s   s e l e c t e d   b y   t h e   u s e r   e i t h e r   w i t h   m o u s e / t a p   o r   w i t h   k e y b o a r d   n a v i g a t i o n . 
 
         4 9 5 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ M u l t i C o l u m n C o m b o B o x V i r t u a l . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 8   [ m a t c h :   F R O M   ] : 
 
         2 6 :           / * * 
 
         2 7 :           *   S e t s   t h e   v a l u e M a p p e r   o p t i o n   o f   t h e   M u l t i C o l u m n C o m b o B o x V i r t u a l . 
 
   > >   2 8 :           *   T h e   w i d g e t   c a l l s   t h e   v a l u e M a p p e r   f u n c t i o n   w h e n   t h e   w i d g e t   r e c e i v e s   a   v a l u e ,   t h a t   i s   n o t   f e t c h e d   f r o m   t h e   r e m o t e   s e r v e r   y e t .   T h e   w i d g e t   w i l l   p a s s   t h e   s e l e c t e d   v a l u e ( s )   i n   t h e   v a l u e M a p p e r   f u n c t i o n .   I n   t u r n ,   t h e   v a l u e M a p p e r   i m p l e m e n t a t i o n   s h o u l d   r e t u r n   t h e   r e s p e c t i v e   d a t a   i t e m ( s )   i n d e x / i n d i c e s . 
 
         2 9 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         3 0 :           *   @ r e t u r n   \ K e n d o \ U I \ M u l t i C o l u m n C o m b o B o x V i r t u a l 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ M u l t i S e l e c t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 4 2   [ m a t c h :   F R O M   ] : 
 
         4 4 0 :           / * * 
 
         4 4 1 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   M u l t i S e l e c t . 
 
   > >   4 4 2 :           *   F i r e d   w h e n   t h e   w i d g e t   i s   b o u n d   t o   d a t a   f r o m   i t s   d a t a   s o u r c e . T h e   e v e n t   h a n d l e r   f u n c t i o n   c o n t e x t   ( a v a i l a b l e   v i a   t h e   t h i s   k e y w o r d )   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         4 4 3 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         4 4 4 :           *   @ r e t u r n   \ K e n d o \ U I \ M u l t i S e l e c t 
 
 
 
     L i n e   4 8 4   [ m a t c h :   F R O M   ] : 
 
         4 8 2 :           / * * 
 
         4 8 3 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   M u l t i S e l e c t . 
 
   > >   4 8 4 :           *   F i r e d   w h e n   a n   i t e m   f r o m   t h e   p o p u p   i s   s e l e c t e d   b y   t h e   u s e r . 
 
         4 8 5 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         4 8 6 :           *   @ r e t u r n   \ K e n d o \ U I \ M u l t i S e l e c t 
 
 
 
     L i n e   5   [ m a t c h :   S E L E C T   ] : 
 
         3 :   n a m e s p a c e   K e n d o \ U I ; 
 
         4 :   
 
   > >   5 :   c l a s s   M u l t i S e l e c t   e x t e n d s   \ K e n d o \ U I \ W i d g e t   { 
 
         6 :           p u b l i c   f u n c t i o n   n a m e ( )   { 
 
         7 :                   r e t u r n   ' M u l t i S e l e c t ' ; 
 
 
 
     L i n e   8 8   [ m a t c h :   S E L E C T   ] : 
 
         8 6 :   
 
         8 7 :           / * * 
 
   > >   8 8 :           *   S p e c i f i e s   t h e   d e l a y   i n   m i l l i s e c o n d s   a f t e r   w h i c h   t h e   M u l t i S e l e c t   w i l l   s t a r t   f i l t e r i n g   d a t a S o u r c e . 
 
         8 9 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         9 0 :           *   @ r e t u r n   \ K e n d o \ U I \ M u l t i S e l e c t 
 
 
 
     L i n e   4 8 3   [ m a t c h :   S E L E C T   ] : 
 
         4 8 1 :   
 
         4 8 2 :           / * * 
 
   > >   4 8 3 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   M u l t i S e l e c t . 
 
         4 8 4 :           *   F i r e d   w h e n   a n   i t e m   f r o m   t h e   p o p u p   i s   s e l e c t e d   b y   t h e   u s e r . 
 
         4 8 5 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
     L i n e   4 9 7   [ m a t c h :   S E L E C T   ] : 
 
         4 9 5 :   
 
         4 9 6 :           / * * 
 
   > >   4 9 7 :           *   S e t s   t h e   d e s e l e c t   e v e n t   o f   t h e   M u l t i S e l e c t . 
 
         4 9 8 :           *   F i r e d   w h e n   a n   i t e m   i s   d e s e l e c t e d   o r   t a g   i s   r e m o v e d . 
 
         4 9 9 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ M u l t i S e l e c t V i r t u a l . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 8   [ m a t c h :   F R O M   ] : 
 
         2 6 :           / * * 
 
         2 7 :           *   S e t s   t h e   v a l u e M a p p e r   o p t i o n   o f   t h e   M u l t i S e l e c t V i r t u a l . 
 
   > >   2 8 :           *   T h e   w i d g e t   c a l l s   t h e   v a l u e M a p p e r   f u n c t i o n   w h e n   t h e   w i d g e t   r e c e i v e s   a   v a l u e ,   t h a t   i s   n o t   f e t c h e d   f r o m   t h e   r e m o t e   s e r v e r   y e t .   T h e   w i d g e t   w i l l   p a s s   t h e   s e l e c t e d   v a l u e ( s )   i n   t h e   v a l u e M a p p e r   f u n c t i o n .   I n   t u r n ,   t h e   v a l u e M a p p e r   i m p l e m e n t a t i o n   s h o u l d   r e t u r n   t h e   r e s p e c t i v e   d a t a   i t e m ( s )   i n d e x / i n d i c e s .   >   I m p o r t a n t   >   >   A s   o f   t h e   K e n d o   U I   R 3   2 0 1 6   r e l e a s e ,   t h e   i m p l e m e n t a t i o n   o f   t h e   v a l u e M a p p e r   f u n c t i o n   i s   o p t i o n a l .   I t   i s   r e q u i r e d   o n l y   i f   t h e   w i d g e t   c o n t a i n s   a n   i n i t i a l   v a l u e   o r   i f   t h e   v a l u e   m e t h o d   i s   u s e d . 
 
         2 9 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         3 0 :           *   @ r e t u r n   \ K e n d o \ U I \ M u l t i S e l e c t V i r t u a l 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ M u l t i V i e w C a l e n d a r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 0   [ m a t c h :   F R O M   ] : 
 
         2 8 :   
 
         2 9 :           / * * 
 
   > >   3 0 :           *   S p e c i f i e s   t h e   n a v i g a t i o n   d e p t h .   T h e   f o l l o w i n g   s e t t i n g s   a r e   a v a i l a b l e   f o r   t h e   d e p t h   v a l u e :   " m o n t h "   -   S h o w s   t h e   d a y s   o f   t h e   m o n t h . ;   " y e a r "   -   S h o w s   t h e   m o n t h s   o f   t h e   y e a r . ;   " d e c a d e "   -   S h o w s   t h e   y e a r s   o f   t h e   d e c a d e .   o r   " c e n t u r y "   -   S h o w s   t h e   d e c a d e s   f r o m   t h e   c e n t u r y . . 
 
         3 1 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         3 2 :           *   @ r e t u r n   \ K e n d o \ U I \ M u l t i V i e w C a l e n d a r 
 
 
 
     L i n e   1 4 7   [ m a t c h :   F R O M   ] : 
 
         1 4 5 :   
 
         1 4 6 :           / * * 
 
   > >   1 4 7 :           *   S p e c i f i e s   t h e   s t a r t   v i e w .   T h e   f o l l o w i n g   s e t t i n g s   a r e   a v a i l a b l e   f o r   t h e   s t a r t   v a l u e :   " m o n t h "   -   S h o w s   t h e   d a y s   o f   t h e   m o n t h . ;   " y e a r "   -   S h o w s   t h e   m o n t h s   o f   t h e   y e a r . ;   " d e c a d e "   -   S h o w s   t h e   y e a r s   o f   t h e   d e c a d e .   o r   " c e n t u r y "   -   S h o w s   t h e   d e c a d e s   f r o m   t h e   c e n t u r y . . 
 
         1 4 8 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 4 9 :           *   @ r e t u r n   \ K e n d o \ U I \ M u l t i V i e w C a l e n d a r 
 
 
 
     L i n e   1 1 1   [ m a t c h :   S E L E C T   ] : 
 
         1 0 9 :   
 
         1 1 0 :           / * * 
 
   > >   1 1 1 :           *   B y   d e f a u l t   u s e r   i s   a b l e   t o   s e l e c t   a   s i n g l e   d a t e .   T h e   p r o p e r t y   c a n   a l s o   b e   s e t   t o   " m u l t i p l e "   o r   " r a n g e " .   M o r e   i n f o r m a t i o n   a b o u t   m u l t i p l e   s e l e c t i o n   c a n   b e   f o u n d   i n   t h e   S e l e c t i o n   a r t i c l e . 
 
         1 1 2 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 1 3 :           *   @ r e t u r n   \ K e n d o \ U I \ M u l t i V i e w C a l e n d a r 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ N u m e r i c T e x t B o x . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 0 2   [ m a t c h :   F R O M   ] : 
 
         2 0 0 :           / * * 
 
         2 0 1 :           *   S e t s   t h e   s p i n   e v e n t   o f   t h e   N u m e r i c T e x t B o x . 
 
   > >   2 0 2 :           *   F i r e s   w h e n   t h e   v a l u e   i s   c h a n g e d   f r o m   t h e   s p i n   b u t t o n s 
 
         2 0 3 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         2 0 4 :           *   @ r e t u r n   \ K e n d o \ U I \ N u m e r i c T e x t B o x 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ O r g C h a r t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 2   [ m a t c h :   F R O M   ] : 
 
         1 0 :   
 
         1 1 :           / * * 
 
   > >   1 2 :           *   A n   a r r a y   o f   s t r i n g s   d e f i n i n g   t h e   c a r d s   t o p - b o r d e r   c o l o r   f o r   e a c h   l e v e l   s t a r t i n g   f r o m   t h e   t o p   l e v e l .   I f   n o t   s e t ,   t h e   c o l o r s   f r o m   t h e   K e n d o   C h a r t   s e r i e s   w i l l   b e   u s e d . 
 
         1 3 :           *   @ p a r a m   a r r a y   $ v a l u e 
 
         1 4 :           *   @ r e t u r n   \ K e n d o \ U I \ O r g C h a r t 
 
 
 
     L i n e   2 4 1   [ m a t c h :   S E L E C T   ] : 
 
         2 3 9 :   
 
         2 4 0 :           / * * 
 
   > >   2 4 1 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   O r g C h a r t . 
 
         2 4 2 :           *   T r i g g e r e d   w h e n   t h e   u s e r   a t t e m p t s   t o   s e l e c t   a   n e w   n o d e   o r   g r o u p   o f   n o d e s   ( i n   g r o u p e d   s c e n a r i o ) .   P r e v e n t a b l e . 
 
         2 4 3 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
     L i n e   2 4 2   [ m a t c h :   S E L E C T   ] : 
 
         2 4 0 :           / * * 
 
         2 4 1 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   O r g C h a r t . 
 
   > >   2 4 2 :           *   T r i g g e r e d   w h e n   t h e   u s e r   a t t e m p t s   t o   s e l e c t   a   n e w   n o d e   o r   g r o u p   o f   n o d e s   ( i n   g r o u p e d   s c e n a r i o ) .   P r e v e n t a b l e . 
 
         2 4 3 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         2 4 4 :           *   @ r e t u r n   \ K e n d o \ U I \ O r g C h a r t 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ P a n e l B a r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 9   [ m a t c h :   F R O M   ] : 
 
         5 7 :   
 
         5 8 :           / * * 
 
   > >   5 9 :           *   S e t s   a n   a r r a y   w i t h   t h e   U R L s   f r o m   w h i c h   t h e   P a n e l B a r   i t e m s   c o n t e n t   t o   b e   l o a d e d   f r o m .   I f   o n l y   s p e c i f i c   i t e m s   s h o u l d   b e   l o a d e d   v i a   A j a x ,   t h e n   y o u   s h o u l d   s e t   t h e   U R L s   t o   t h e   c o r r e s p o n d i n g   p o s i t i o n s   i n   t h e   a r r a y   a n d   s e t   t h e   o t h e r   e l e m e n t s   t o   n u l l . 
 
         6 0 :           *   @ p a r a m   a r r a y   $ v a l u e 
 
         6 1 :           *   @ r e t u r n   \ K e n d o \ U I \ P a n e l B a r 
 
 
 
     L i n e   2 0 0   [ m a t c h :   F R O M   ] : 
 
         1 9 8 :           / * * 
 
         1 9 9 :           *   S e t s   t h e   c o n t e n t L o a d   e v e n t   o f   t h e   P a n e l B a r . 
 
   > >   2 0 0 :           *   F i r e s   w h e n   c o n t e n t   i s   f e t c h e d   f r o m   a n   A J A X   r e q u e s t . 
 
         2 0 1 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         2 0 2 :           *   @ r e t u r n   \ K e n d o \ U I \ P a n e l B a r 
 
 
 
     L i n e   2 5 5   [ m a t c h :   S E L E C T   ] : 
 
         2 5 3 :   
 
         2 5 4 :           / * * 
 
   > >   2 5 5 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   P a n e l B a r . 
 
         2 5 6 :           *   T r i g g e r e d   w h e n   a n   i t e m   o f   a   P a n e l B a r   i s   s e l e c t e d   b y   t h e   u s e r . 
 
         2 5 7 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ P a n e l B a r I t e m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 4 3   [ m a t c h :   F R O M   ] : 
 
         1 4 1 :   
 
         1 4 2 :           / * * 
 
   > >   1 4 3 :           *   S p e c i f i e s   t h e   u r l   f r o m   w h i c h   t h e   i t e m   c o n t e n t   w i l l   b e   l o a d e d 
 
         1 4 4 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 4 5 :           *   @ r e t u r n   \ K e n d o \ U I \ P a n e l B a r I t e m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ P D F V i e w e r D p l P r o c e s s i n g . r e a d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   t y p e   o f   r e s u l t   e x p e c t e d   f r o m   t h e   s e r v e r .   U s e d   v a l u e s   a r e   " j s o n "   a n d   " j s o n p " .   T h e   P D F V i e w e r   e x p e c t s   a   j s o n   t o   r e n d e r   t h e   g e o m e t r i e s . 
 
         2 8 :           *   @ p a r a m     $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ U I \ P D F V i e w e r D p l P r o c e s s i n g . r e a d 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ P D F V i e w e r D p l P r o c e s s i n g R e a d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   T h e   t y p e   o f   r e s u l t   e x p e c t e d   f r o m   t h e   s e r v e r .   U s e d   v a l u e s   a r e   " j s o n "   a n d   " j s o n p " .   T h e   P D F V i e w e r   e x p e c t s   a   j s o n   t o   r e n d e r   t h e   g e o m e t r i e s . 
 
         3 7 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ U I \ P D F V i e w e r D p l P r o c e s s i n g R e a d 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ P d f V i e w e r T o o l b a r I t e m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 6   [ m a t c h :   F R O M   ] : 
 
         3 4 :   
 
         3 5 :           / * * 
 
   > >   3 6 :           *   S p e c i f i e s   t h e   t o o l ' s   n a m e .   T o o l   d e f i n i t i o n   w i l l   b e   t a k e n   f r o m   t h e   d e f a u l t   c o l l e c t i o n   -   k e n d o . p d f v i e w e r . D e f a u l t T o o l s 
 
         3 7 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         3 8 :           *   @ r e t u r n   \ K e n d o \ U I \ P D F V i e w e r T o o l b a r I t e m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ P i v o t G r i d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 2 7   [ m a t c h :   F R O M   ] : 
 
         2 2 5 :           / * * 
 
         2 2 6 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   P i v o t G r i d . 
 
   > >   2 2 7 :           *   F i r e d   a f t e r   t h e   w i d g e t   i s   b o u n d   t o   t h e   d a t a   f r o m   i t s   d a t a   s o u r c e . T h e   e v e n t   h a n d l e r   f u n c t i o n   c o n t e x t   ( a v a i l a b l e   v i a   t h e   t h i s   k e y w o r d )   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         2 2 8 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         2 2 9 :           *   @ r e t u r n   \ K e n d o \ U I \ P i v o t G r i d 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ P i v o t G r i d P d f . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 2   [ m a t c h :   F R O M   ] : 
 
         7 0 :   
 
         7 1 :           / * * 
 
   > >   7 2 :           *   S p e c i f i e s   t h e   q u a l i t y   o f   t h e   i m a g e s   w i t h i n   t h e   e x p o r t e d   f i l e ,   f r o m   0   t o   1 . 
 
         7 3 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         7 4 :           *   @ r e t u r n   \ K e n d o \ U I \ P i v o t G r i d P d f 
 
 
 
     L i n e   1 3 5   [ m a t c h :   F R O M   ] : 
 
         1 3 3 :   
 
         1 3 4 :           / * * 
 
   > >   1 3 5 :           *   A   n a m e   o r   k e y w o r d   i n d i c a t i n g   w h e r e   t o   d i s p l a y   t h e   d o c u m e n t   r e t u r n e d   f r o m   t h e   p r o x y . I f   y o u   w a n t   t o   d i s p l a y   t h e   d o c u m e n t   i n   a   n e w   w i n d o w   o r   i f r a m e ,   t h e   p r o x y   s h o u l d   s e t   t h e   " C o n t e n t - D i s p o s i t i o n "   h e a d e r   t o   i n l i n e ;   f i l e n a m e = " < f i l e N a m e . p d f > " . 
 
         1 3 6 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 3 7 :           *   @ r e t u r n   \ K e n d o \ U I \ P i v o t G r i d P d f 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ P i v o t G r i d V 2 . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 3 8   [ m a t c h :   F R O M   ] : 
 
         1 3 6 :           / * * 
 
         1 3 7 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   P i v o t G r i d V 2 . 
 
   > >   1 3 8 :           *   F i r e d   a f t e r   t h e   w i d g e t   i s   b o u n d   t o   t h e   d a t a   f r o m   i t s   d a t a   s o u r c e . T h e   e v e n t   h a n d l e r   f u n c t i o n   c o n t e x t   ( a v a i l a b l e   v i a   t h e   t h i s   k e y w o r d )   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         1 3 9 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         1 4 0 :           *   @ r e t u r n   \ K e n d o \ U I \ P i v o t G r i d V 2 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ P i v o t G r i d V 2 P d f . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 2   [ m a t c h :   F R O M   ] : 
 
         7 0 :   
 
         7 1 :           / * * 
 
   > >   7 2 :           *   S p e c i f i e s   t h e   q u a l i t y   o f   t h e   i m a g e s   w i t h i n   t h e   e x p o r t e d   f i l e ,   f r o m   0   t o   1 . 
 
         7 3 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         7 4 :           *   @ r e t u r n   \ K e n d o \ U I \ P i v o t G r i d V 2 P d f 
 
 
 
     L i n e   1 3 5   [ m a t c h :   F R O M   ] : 
 
         1 3 3 :   
 
         1 3 4 :           / * * 
 
   > >   1 3 5 :           *   A   n a m e   o r   k e y w o r d   i n d i c a t i n g   w h e r e   t o   d i s p l a y   t h e   d o c u m e n t   r e t u r n e d   f r o m   t h e   p r o x y . I f   y o u   w a n t   t o   d i s p l a y   t h e   d o c u m e n t   i n   a   n e w   w i n d o w   o r   i f r a m e ,   t h e   p r o x y   s h o u l d   s e t   t h e   " C o n t e n t - D i s p o s i t i o n "   h e a d e r   t o   i n l i n e ;   f i l e n a m e = " < f i l e N a m e . p d f > " . 
 
         1 3 6 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 3 7 :           *   @ r e t u r n   \ K e n d o \ U I \ P i v o t G r i d V 2 P d f 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ P o p o v e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 3 8   [ m a t c h :   F R O M   ] : 
 
         1 3 6 :   
 
         1 3 7 :           / * * 
 
   > >   1 3 8 :           *   S p e c i f i e s   t h e   o f f s e t   ( i n   p i x e l s )   b e t w e e n   t h e   P o p o v e r   a n d   t h e   a n c h o r .    "    h e   o f f s e t   i s   r e n d e r e d   f r o m   t h e   c a l l o u t   a r r o w . 
 
         1 3 9 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         1 4 0 :           *   @ r e t u r n   \ K e n d o \ U I \ P o p o v e r 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ R a d i o G r o u p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 0 3   [ m a t c h :   S E L E C T   ] : 
 
         1 0 1 :   
 
         1 0 2 :           / * * 
 
   > >   1 0 3 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   R a d i o G r o u p . 
 
         1 0 4 :           *   F i r e s   w h e n   a   r a d i o   i n p u t   i s   c l i c k e d   t o   b e   s e l e c t e d   t h r o u g h   u s e r   i n t e r a c t i o n .   I f   p r e v e n t e d ,   t h e   c l i c k e d   i n p u t   w i l l   n o t   b e   s e l e c t e d . 
 
         1 0 5 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ R a t i n g . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 6   [ m a t c h :   F R O M   ] : 
 
         1 4 :   
 
         1 5 :           / * * 
 
   > >   1 6 :           *   T h e   v a l u e   f r o m   w h i c h   t h e   R a t i n g   i t e m s   w i l l   b e   r e n d e r e d . 
 
         1 7 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         1 8 :           *   @ r e t u r n   \ K e n d o \ U I \ R a t i n g 
 
 
 
     L i n e   3 4   [ m a t c h :   F R O M   ] : 
 
         3 2 :   
 
         3 3 :           / * * 
 
   > >   3 4 :           *   S p e c i f i e s   t h e   s e l e c t i o n   b e h a v i o r .   T h e   a v a i l a b l e   o p t i o n s   a r e : * c o n t i n u o u s   -   a l l   i t e m s ,   s t a r t i n g   f r o m   t h e   f i r s t   o n e ,   a r e   m a r k e d   a s   s e l e c t e d .   * s i n g l e   -   a   s i n g l e   i t e m   i s   m a r k e d   a s   s e l e c t e d . 
 
         3 5 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         3 6 :           *   @ r e t u r n   \ K e n d o \ U I \ R a t i n g 
 
 
 
     L i n e   1 4 5   [ m a t c h :   F R O M   ] : 
 
         1 4 3 :   
 
         1 4 4 :           / * * 
 
   > >   1 4 5 :           *   I f   s e t   t o   f a l s e ,   t h e   R a t i n g   w i l l   b e :   d i s a b l e d   a n d   w i l l   n o t   a l l o w   t h e   u s e r   t o   c h a n g e   i t s   s t a t e . ;   e x c l u d e d   f r o m   t h e   t a b   o r d e r   a n d   n o t   r e c e i v i n g   f o c u s .   o r   w i l l   n o t   s u b m i t   i t s   v a l u e   i f   p a r t   o f   a   f o r m . . 
 
         1 4 6 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 4 7 :           *   @ r e t u r n   \ K e n d o \ U I \ R a t i n g 
 
 
 
     L i n e   7 0   [ m a t c h :   S E L E C T   ] : 
 
         6 8 :   
 
         6 9 :           / * * 
 
   > >   7 0 :           *   I f   t h e   o p t i o n   i s   s e t ,   t h e   w i d g e t   w i l l   a u t o m a t i c a l l y   s e l e c t   t h e   s p e c i f i e d   i t e m   w h e n   t h e   R a t i n g   r e c e i v e s   f o c u s   a n d   n o   p r e v i o u s   v a l u e   h a s   b e e n   s e t . 
 
         7 1 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         7 2 :           *   @ r e t u r n   \ K e n d o \ U I \ R a t i n g 
 
 
 
     L i n e   1 8 6   [ m a t c h :   S E L E C T   ] : 
 
         1 8 4 :   
 
         1 8 5 :           / * * 
 
   > >   1 8 6 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   R a t i n g . 
 
         1 8 7 :           *   F i r e s   w h e n   a n   i t e m   i s   s e l e c t e d   t h r o u g h   u s e r   i n t e r a c t i o n . 
 
         1 8 8 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ R e s p o n s i v e P a n e l . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 0   [ m a t c h :   F R O M   ] : 
 
         1 8 :                           $ e l e m e n t - > h t m l ( $ c o n t e n t ) ; 
 
         1 9 :                   }   e l s e   { 
 
   > >   2 0 :                           / /   s e r i a l i z e   c o n t e n t   b y   r e m o v i n g   i t   f r o m   t h e   i g n o r e   l i s t 
 
         2 1 :                           $ t h i s - > i g n o r e   =   a r r a y _ d i f f ( a r r a y ( ' c o n t e n t ' ) ,   $ t h i s - > i g n o r e ) ; 
 
         2 2 :                   } 
 
 
 
     L i n e   4 8   [ m a t c h :   F R O M   ] : 
 
         4 6 :   
 
         4 7 :           / * * 
 
   > >   4 8 :           *   S p e c i f i e s   t h e   d i r e c t i o n   f r o m   w h i c h   t h e   h i d d e n   e l e m e n t   w i l l   o p e n   u p ,   o n c e   t h e   t o g g l e   b u t t o n   h a s   b e e n   a c t i v a t e d .   V a l i d   v a l u e s   a r e   " l e f t " ,   " r i g h t " ,   a n d   " t o p " . 
 
         4 9 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         5 0 :           *   @ r e t u r n   \ K e n d o \ U I \ R e s p o n s i v e P a n e l 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ S c h e d u l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 6 6   [ m a t c h :   F R O M   ] : 
 
         4 6 4 :           / * * 
 
         4 6 5 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   S c h e d u l e r . 
 
   > >   4 6 6 :           *   F i r e d   w h e n   t h e   w i d g e t   i s   b o u n d   t o   d a t a   f r o m   i t s   d a t a   s o u r c e . T h e   e v e n t   h a n d l e r   f u n c t i o n   c o n t e x t   ( a v a i l a b l e   v i a   t h e   t h i s   k e y w o r d )   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         4 6 7 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         4 6 8 :           *   @ r e t u r n   \ K e n d o \ U I \ S c h e d u l e r 
 
 
 
     L i n e   3 0 6   [ m a t c h :   S E L E C T   ] : 
 
         3 0 4 :   
 
         3 0 5 :           / * * 
 
   > >   3 0 6 :           *   I f   s e t   t o   t r u e   t h e   u s e r   w o u l d   b e   a b l e   t o   s e l e c t   s c h e d u l e r   c e l l s   a n d   e v e n t s .   B y   d e f a u l t   s e l e c t i o n   i s   d i s a b l e d . 
 
         3 0 7 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         3 0 8 :           *   @ r e t u r n   \ K e n d o \ U I \ S c h e d u l e r 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ S c h e d u l e r C u r r e n t T i m e M a r k e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   U P D A T E   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   T h e   u p d a t e   i n t e r v a l   o f   t h e   " c u r r e n t   t i m e "   m a r k e r ,   i n   m i l l i s e c o n d s . 
 
         1 0 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ U I \ S c h e d u l e r C u r r e n t T i m e M a r k e r 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ S c h e d u l e r E d i t a b l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   I f   s e t   t o   t r u e   t h e   u s e r   c a n   d e l e t e   e v e n t s   f r o m   t h e   v i e w   b y   c l i c k i n g   t h e   " d e s t r o y "   b u t t o n .   D e l e t i n g   i s   e n a b l e d   b y   d e f a u l t . 
 
         2 8 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ U I \ S c h e d u l e r E d i t a b l e 
 
 
 
     L i n e   8 5   [ m a t c h :   U P D A T E   ] : 
 
         8 3 :   
 
         8 4 :           / * * 
 
   > >   8 5 :           *   I f   s e t   t o   t r u e   t h e   u s e r   c a n   u p d a t e   e v e n t s .   U p d a t i n g   i s   e n a b l e d   b y   d e f a u l t . 
 
         8 6 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         8 7 :           *   @ r e t u r n   \ K e n d o \ U I \ S c h e d u l e r E d i t a b l e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ S c h e d u l e r F o o t e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   S e t s   t h e   c o m m a n d   w h i c h   w i l l   b e   d i s p l a y e d   i n   t h e   s c h e d u l e r   f o o t e r .   C u r r e n t l y   o n l y   " w o r k D a y "   o p t i o n   i s   s u p p o r t e d .   I f   t h e   o p t i o n   i s   s e t   t o   f a l s e ,   t h e   " w o r k D a y "   b u t t o n   w i l l   b e   r e m o v e d   f r o m   t h e   f o o t e r . 
 
         1 0 :           *   @ p a r a m   s t r i n g | b o o l e a n   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ U I \ S c h e d u l e r F o o t e r 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ S c h e d u l e r M e s s a g e s R e c u r r e n c e E d i t o r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9 9   [ m a t c h :   U P D A T E   ] : 
 
         9 7 :   
 
         9 8 :           / * * 
 
   > >   9 9 :           *   A p p l i c a b l e   i n   S c h e d u l e r   A d a p t i v e   r e n d e r i n g   s c e n a r i o .   T h e   t e x t   f o r   t h e   u p d a t e   b u t t o n   o n   t h e   s c h e d u l e r   r e c u r r e n c e   e d i t o r   h e a d e r . 
 
         1 0 0 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 0 1 :           *   @ r e t u r n   \ K e n d o \ U I \ S c h e d u l e r M e s s a g e s R e c u r r e n c e E d i t o r 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ S c h e d u l e r P d f . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 2   [ m a t c h :   F R O M   ] : 
 
         7 0 :   
 
         7 1 :           / * * 
 
   > >   7 2 :           *   S p e c i f i e s   t h e   q u a l i t y   o f   t h e   i m a g e s   w i t h i n   t h e   e x p o r t e d   f i l e ,   f r o m   0   t o   1 . 
 
         7 3 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         7 4 :           *   @ r e t u r n   \ K e n d o \ U I \ S c h e d u l e r P d f 
 
 
 
     L i n e   1 3 5   [ m a t c h :   F R O M   ] : 
 
         1 3 3 :   
 
         1 3 4 :           / * * 
 
   > >   1 3 5 :           *   A   n a m e   o r   k e y w o r d   i n d i c a t i n g   w h e r e   t o   d i s p l a y   t h e   d o c u m e n t   r e t u r n e d   f r o m   t h e   p r o x y . I f   y o u   w a n t   t o   d i s p l a y   t h e   d o c u m e n t   i n   a   n e w   w i n d o w   o r   i f r a m e ,   t h e   p r o x y   s h o u l d   s e t   t h e   " C o n t e n t - D i s p o s i t i o n "   h e a d e r   t o   i n l i n e ;   f i l e n a m e = " < f i l e N a m e . p d f > " . 
 
         1 3 6 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 3 7 :           *   @ r e t u r n   \ K e n d o \ U I \ S c h e d u l e r P d f 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ S c h e d u l e r V i e w . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 6 0   [ m a t c h :   F R O M   ] : 
 
         3 5 8 :   
 
         3 5 9 :           / * * 
 
   > >   3 6 0 :           *   C o n f i g u r e s   t h e   s t a r t   d a t e   o f   t h e   y e a r   v i e w .   T h e   S c h e d u l e r   w i l l   d i s p l a y   1 2   m o n t h s   s t a r t i n g   f r o m   t h e   s t a r t D a t e . 
 
         3 6 1 :           *   @ p a r a m   d a t e   $ v a l u e 
 
         3 6 2 :           *   @ r e t u r n   \ K e n d o \ U I \ S c h e d u l e r V i e w 
 
 
 
     L i n e   3 8 8   [ m a t c h :   F R O M   ] : 
 
         3 8 6 :           / * * 
 
         3 8 7 :           *   S e t s   t h e   t o o l t i p T e m p l a t e   o p t i o n   o f   t h e   S c h e d u l e r V i e w . 
 
   > >   3 8 8 :           *   C o n f i g u r e s   t h e   t e m p l a t e   u s e d   t o   r e n d e r   t h e   T o o l t i p   i n   t h e   S c h e d u l e r   y e a r   v i e w . T h e   f i e l d s   w h i c h   c a n   b e   u s e d   i n   t h e   t e m p l a t e   a r e :   d a t e   D a t e   -   t h e   s e l e c t e d   d a t e   f r o m   t h e   c a l e n d a r ;   e v e n t s   A r r a y   -   l i s t   o f   t h e   e v e n t s   a n d   t h e i r   r e s p e c t i v e   r e s o u r c e   f o r   t h e   s e l e c t e d   d a t e   o r   m e s s a g e s   O b j e c t   -   t h e   c o n f i g u r a t i o n   o f   t h e   S c h e d u l e r   m e s s a g e s   u s e d   f o r   l o c a l i z a t i o n . . 
 
         3 8 9 :           *   @ p a r a m   s t r i n g   $ v a l u e   T h e   i d   o f   t h e   e l e m e n t   w h i c h   r e p r e s e n t s   t h e   k e n d o   t e m p l a t e . 
 
         3 9 0 :           *   @ r e t u r n   \ K e n d o \ U I \ S c h e d u l e r V i e w 
 
 
 
     L i n e   4 0 0   [ m a t c h :   F R O M   ] : 
 
         3 9 8 :           / * * 
 
         3 9 9 :           *   S e t s   t h e   t o o l t i p T e m p l a t e   o p t i o n   o f   t h e   S c h e d u l e r V i e w . 
 
   > >   4 0 0 :           *   C o n f i g u r e s   t h e   t e m p l a t e   u s e d   t o   r e n d e r   t h e   T o o l t i p   i n   t h e   S c h e d u l e r   y e a r   v i e w . T h e   f i e l d s   w h i c h   c a n   b e   u s e d   i n   t h e   t e m p l a t e   a r e :   d a t e   D a t e   -   t h e   s e l e c t e d   d a t e   f r o m   t h e   c a l e n d a r ;   e v e n t s   A r r a y   -   l i s t   o f   t h e   e v e n t s   a n d   t h e i r   r e s p e c t i v e   r e s o u r c e   f o r   t h e   s e l e c t e d   d a t e   o r   m e s s a g e s   O b j e c t   -   t h e   c o n f i g u r a t i o n   o f   t h e   S c h e d u l e r   m e s s a g e s   u s e d   f o r   l o c a l i z a t i o n . . 
 
         4 0 1 :           *   @ p a r a m   s t r i n g   $ v a l u e   T h e   t e m p l a t e   c o n t e n t . 
 
         4 0 2 :           *   @ r e t u r n   \ K e n d o \ U I \ S c h e d u l e r V i e w 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ S c h e d u l e r V i e w E d i t a b l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 8   [ m a t c h :   F R O M   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   I f   s e t   t o   t r u e   t h e   u s e r   c a n   d e l e t e   e v e n t s   f r o m   t h e   v i e w   b y   c l i c k i n g   t h e   " d e s t r o y "   b u t t o n .   D e l e t i n g   i s   e n a b l e d   b y   d e f a u l t . 
 
         1 9 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ U I \ S c h e d u l e r V i e w E d i t a b l e 
 
 
 
     L i n e   2 7   [ m a t c h :   U P D A T E   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   I f   s e t   t o   t r u e   t h e   u s e r   c a n   u p d a t e   e v e n t s .   U p d a t i n g   i s   e n a b l e d   b y   d e f a u l t . 
 
         2 8 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ U I \ S c h e d u l e r V i e w E d i t a b l e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ S o r t a b l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 7   [ m a t c h :   F R O M   ] : 
 
         6 5 :   
 
         6 6 :           / * * 
 
   > >   6 7 :           *   S e l e c t o r   w h i c h   d e t e r m i n e s   i f   i t e m s   f r o m   t h e   c u r r e n t   S o r t a b l e   w i d g e t   c a n   b e   a c c e p t e d   f r o m   a n o t h e r   S o r t a b l e   c o n t a i n e r ( s ) .   T h e   c o n n e c t W i t h   o p t i o n   d e s c r i b e s   o n e   w a y   r e l a t i o n s h i p ,   i f   t h e   d e v e l o p e r   w a n t s   a   t w o   w a y   c o n n e c t i o n   t h e n   t h e   c o n n e c t W i t h   o p t i o n   s h o u l d   b e   s e t   o n   b o t h   w i d g e t s . 
 
         6 8 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         6 9 :           *   @ r e t u r n   \ K e n d o \ U I \ S o r t a b l e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ S p l i t B u t t o n . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 3 9   [ m a t c h :   F R O M   ] : 
 
         1 3 7 :   
 
         1 3 8 :           / * * 
 
   > >   1 3 9 :           *   D e f i n e s   a   C S S   c l a s s   ( o r   m u l t i p l e   c l a s s e s   s e p a r a t e d   b y   s p a c e s ) ,   w h i c h   w i l l   b e   u s e d   f o r   a p p l y i n g   a   b a c k g r o u n d   i m a g e   t o   a   s p a n   e l e m e n t   i n s i d e   t h e   S p l i t B u t t o n .   I n   c a s e   y o u   w a n t   t o   u s e   a n   i c o n   f r o m   t h e   K e n d o   U I   t h e m e   s p r i t e   b a c k g r o u n d   i m a g e ,   i t   i s   e a s i e r   t o   u s e   t h e   i c o n   p r o p e r t y . T h e   s p a n   e l e m e n t   c a n   b e   a d d e d   a u t o m a t i c a l l y   b y   t h e   w i d g e t ,   o r   a n   e x i s t i n g   e l e m e n t   c a n   b e   u s e d ,   i f   i t   h a s   a   k - s p r i t e   C S S   c l a s s   a p p l i e d . 
 
         1 4 0 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 4 1 :           *   @ r e t u r n   \ K e n d o \ U I \ S p l i t B u t t o n 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ S p l i t t e r P a n e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 2   [ m a t c h :   F R O M   ] : 
 
         7 0 :   
 
         7 1 :           / * * 
 
   > >   7 2 :           *   S p e c i f i e s   t h e   U R L   f r o m   w h i c h   t o   l o a d   t h e   c o n t e n t   o f   a   p a n e . 
 
         7 3 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         7 4 :           *   @ r e t u r n   \ K e n d o \ U I \ S p l i t t e r P a n e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ S p r e a d s h e e t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 3 1   [ m a t c h :   F R O M   ] : 
 
         3 2 9 :           / * * 
 
         3 3 0 :           *   S e t s   t h e   c h a n g e F o r m a t   e v e n t   o f   t h e   S p r e a d s h e e t . 
 
   > >   3 3 1 :           *   T r i g g e r e d   w h e n   t h e   r a n g e   f o r m a t   i s   c h a n g e d   f r o m   t h e   U I .   I n t r o d u c e d   i n   t h e   2 0 1 7   Q 1   r e l e a s e . 
 
         3 3 2 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         3 3 3 :           *   @ r e t u r n   \ K e n d o \ U I \ S p r e a d s h e e t 
 
 
 
     L i n e   4 7 1   [ m a t c h :   F R O M   ] : 
 
         4 6 9 :           / * * 
 
         4 7 0 :           *   S e t s   t h e   d a t a B i n d i n g   e v e n t   o f   t h e   S p r e a d s h e e t . 
 
   > >   4 7 1 :           *   F i r e d   w h e n   t h e   d a t a   r e t r i e v e d   f r o m   a   D a t a S o u r c e   i s   a b o u t   t o   b e   b o u n d   t o   a   s h e e t .   A v a i l a b l e   o n l y   i f   D a t a S o u r c e   h a s   b e e n   d e f i n e d   f o r   a t   l e a s t   o n e   s h e e t . 
 
         4 7 2 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         4 7 3 :           *   @ r e t u r n   \ K e n d o \ U I \ S p r e a d s h e e t 
 
 
 
     L i n e   4 8 5   [ m a t c h :   F R O M   ] : 
 
         4 8 3 :           / * * 
 
         4 8 4 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   S p r e a d s h e e t . 
 
   > >   4 8 5 :           *   F i r e d   w h e n   t h e   d a t a   f r o m   a   D a t a S o u r c e   i s   a l r e a d y   p o p u l a t e d   i n   a   s h e e t .   A v a i l a b l e   o n l y   i f   D a t a S o u r c e   h a s   b e e n   d e f i n e d   f o r   a t   l e a s t   o n e   s h e e t . 
 
         4 8 6 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         4 8 7 :           *   @ r e t u r n   \ K e n d o \ U I \ S p r e a d s h e e t 
 
 
 
     L i n e   3 1 6   [ m a t c h :   S E L E C T   ] : 
 
         3 1 4 :   
 
         3 1 5 :           / * * 
 
   > >   3 1 6 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   S p r e a d s h e e t . 
 
         3 1 7 :           *   T r i g g e r e d   w h e n   t h e   S p r e a d s h e e t   s e l e c t i o n   i s   c h a n g e d .   I n t r o d u c e d   i n   t h e   2 0 1 7   Q 1   r e l e a s e . 
 
         3 1 8 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ S p r e a d s h e e t P d f . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9 9   [ m a t c h :   F R O M   ] : 
 
         9 7 :   
 
         9 8 :           / * * 
 
   > >   9 9 :           *   S p e c i f i e s   t h e   q u a l i t y   o f   t h e   i m a g e s   w i t h i n   t h e   e x p o r t e d   f i l e ,   f r o m   0   t o   1 . 
 
         1 0 0 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         1 0 1 :           *   @ r e t u r n   \ K e n d o \ U I \ S p r e a d s h e e t P d f 
 
 
 
     L i n e   1 6 2   [ m a t c h :   F R O M   ] : 
 
         1 6 0 :   
 
         1 6 1 :           / * * 
 
   > >   1 6 2 :           *   A   n a m e   o r   k e y w o r d   w h i c h   i n d i c a t e s   w h e r e   t o   d i s p l a y   t h e   d o c u m e n t   t h a t   i s   r e t u r n e d   f r o m   t h e   p r o x y .   T o   d i s p l a y   t h e   d o c u m e n t   i n   a   n e w   w i n d o w   o r   i f r a m e ,   s e t   t h e   p r o x y   C o n t e n t - D i s p o s i t i o n   h e a d e r   t o   i n l i n e ;   f i l e n a m e = " < f i l e N a m e . p d f > " . 
 
         1 6 3 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 6 4 :           *   @ r e t u r n   \ K e n d o \ U I \ S p r e a d s h e e t P d f 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ S p r e a d s h e e t S h e e t D r a w i n g . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 8   [ m a t c h :   F R O M   ] : 
 
         1 6 :   
 
         1 7 :           / * * 
 
   > >   1 8 :           *   T h e   h o r i z o n t a l   o f f s e t   f r o m   t h e   a n c h o r   c e l l ' s   t o p - l e f t   c o r n e r ,   i n   p i x e l s . 
 
         1 9 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         2 0 :           *   @ r e t u r n   \ K e n d o \ U I \ S p r e a d s h e e t S h e e t D r a w i n g 
 
 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :   
 
         2 6 :           / * * 
 
   > >   2 7 :           *   T h e   v e r t i c a l   o f f s e t   f r o m   t h e   a n c h o r   c e l l ' s   t o p - l e f t   c o r n e r ,   i n   p i x e l s . 
 
         2 8 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         2 9 :           *   @ r e t u r n   \ K e n d o \ U I \ S p r e a d s h e e t S h e e t D r a w i n g 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ S p r e a d s h e e t S h e e t F i l t e r C o l u m n . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 5   [ m a t c h :   w a v e ] : 
 
         4 3 :   
 
         4 4 :           / * * 
 
   > >   4 5 :           *   T h e   f i l t e r   s u b - t y p e ,   i f   a n y . T h e   a p p l i c a b l e   t y p e s   a c c o r d i n g   t o   t h e   m a i n   f i l t e r   a r e :   t o p t o p N u m b e r t o p P e r c e n t b o t t o m N u m b e r b o t t o m P e r c e n t   o r   d y n a m i c a b o v e A v e r a g e b e l o w A v e r a g e t o m o r r o w t o d a y y e s t e r d a y n e x t W e e k t h i s W e e k l a s t W e e k n e x t M o n t h t h i s M o n t h l a s t M o n t h n e x t Q u a r t e r t h i s Q u a r t e r l a s t Q u a r t e r n e x t Y e a r t h i s Y e a r l a s t Y e a r y e a r T o D a t e . 
 
         4 6 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         4 7 :           *   @ r e t u r n   \ K e n d o \ U I \ S p r e a d s h e e t S h e e t F i l t e r C o l u m n 
 
 
 
     L i n e   4 5   [ m a t c h :   W a v e ] : 
 
         4 3 :   
 
         4 4 :           / * * 
 
   > >   4 5 :           *   T h e   f i l t e r   s u b - t y p e ,   i f   a n y . T h e   a p p l i c a b l e   t y p e s   a c c o r d i n g   t o   t h e   m a i n   f i l t e r   a r e :   t o p t o p N u m b e r t o p P e r c e n t b o t t o m N u m b e r b o t t o m P e r c e n t   o r   d y n a m i c a b o v e A v e r a g e b e l o w A v e r a g e t o m o r r o w t o d a y y e s t e r d a y n e x t W e e k t h i s W e e k l a s t W e e k n e x t M o n t h t h i s M o n t h l a s t M o n t h n e x t Q u a r t e r t h i s Q u a r t e r l a s t Q u a r t e r n e x t Y e a r t h i s Y e a r l a s t Y e a r y e a r T o D a t e . 
 
         4 6 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         4 7 :           *   @ r e t u r n   \ K e n d o \ U I \ S p r e a d s h e e t S h e e t F i l t e r C o l u m n 
 
 
 
     L i n e   4 5   [ m a t c h :   W A V E ] : 
 
         4 3 :   
 
         4 4 :           / * * 
 
   > >   4 5 :           *   T h e   f i l t e r   s u b - t y p e ,   i f   a n y . T h e   a p p l i c a b l e   t y p e s   a c c o r d i n g   t o   t h e   m a i n   f i l t e r   a r e :   t o p t o p N u m b e r t o p P e r c e n t b o t t o m N u m b e r b o t t o m P e r c e n t   o r   d y n a m i c a b o v e A v e r a g e b e l o w A v e r a g e t o m o r r o w t o d a y y e s t e r d a y n e x t W e e k t h i s W e e k l a s t W e e k n e x t M o n t h t h i s M o n t h l a s t M o n t h n e x t Q u a r t e r t h i s Q u a r t e r l a s t Q u a r t e r n e x t Y e a r t h i s Y e a r l a s t Y e a r y e a r T o D a t e . 
 
         4 6 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         4 7 :           *   @ r e t u r n   \ K e n d o \ U I \ S p r e a d s h e e t S h e e t F i l t e r C o l u m n 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ S t e p p e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 0   [ m a t c h :   S E L E C T   ] : 
 
         2 8 :   
 
         2 9 :           / * * 
 
   > >   3 0 :           *   I n d i c a t e s   w h e t h e r   t h e   S t e p p e r   w i l l   f o r c e   t h e   u s e r   t o   f o l l o w   t h e   S t e p s   s e q u e n c e   o r   n o t .   I f   s e t   t o   " f a l s e "   i t   w i l l   a l l o w   t h e   u s e r   t o   s e l e c t   a n y   s t e p .   I f   i n   i t s   d e f a u l t   s t a t e   ( " t r u e " )   t h e   u s e r   w i l l   b e   a b l e   t o   s e l e c t   t h e   s t e p   i m m e d i a t e l y   a f t e r   t h e   c u r r e n t l y   s e l e c t e d   s t e p   o r   a n y   p r e v i o u s   s t e p . 
 
         3 1 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         3 2 :           *   @ r e t u r n   \ K e n d o \ U I \ S t e p p e r 
 
 
 
     L i n e   3 9   [ m a t c h :   S E L E C T   ] : 
 
         3 7 :   
 
         3 8 :           / * * 
 
   > >   3 9 :           *   A p p l i c a b l e   f o r   s c e n a r i o s   w h e n   k e y b o a r d   i s   u s e d   f o r   n a v i g a t i o n .   I n d i c a t e s   w h e t h e r   t h e   s e l e c t i o n   w i l l   c h a n g e   u p o n   f o c u s   c h a n g e   o r   i t   w i l l   r e q u i r e   a d d i t i o n a l   a c t i o n   ( E n t e r   o r   S p a c e b a r   k e y   p r e s s )   i n   o r d e r   t o   s e l e c t   t h e   f o c u s e d   s t e p . 
 
         4 0 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         4 1 :           *   @ r e t u r n   \ K e n d o \ U I \ S t e p p e r 
 
 
 
     L i n e   8 0   [ m a t c h :   S E L E C T   ] : 
 
         7 8 :   
 
         7 9 :           / * * 
 
   > >   8 0 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   S t e p p e r . 
 
         8 1 :           *   F i r e s   w h e n   t h e   u s e r   c l i c k s   o n   a   S t e p   t o   s e l e c t   i t . 
 
         8 2 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
     L i n e   8 1   [ m a t c h :   S E L E C T   ] : 
 
         7 9 :           / * * 
 
         8 0 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   S t e p p e r . 
 
   > >   8 1 :           *   F i r e s   w h e n   t h e   u s e r   c l i c k s   o n   a   S t e p   t o   s e l e c t   i t . 
 
         8 2 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         8 3 :           *   @ r e t u r n   \ K e n d o \ U I \ S t e p p e r 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ T a b S t r i p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   8 1   [ m a t c h :   F R O M   ] : 
 
         7 9 :   
 
         8 0 :           / * * 
 
   > >   8 1 :           *   S e t s   a n   a r r a y   w i t h   t h e   U R L s   f r o m   w h i c h   t h e   t a b s   c o n t e n t   t o   b e   l o a d e d   f r o m .   I f   o n l y   s p e c i f i c   t a b s   s h o u l d   b e   l o a d e d   v i a   A j a x ,   t h e n   y o u   s h o u l d   s e t   t h e   U R L s   t o   t h e   c o r r e s p o n d i n g   p o s i t i o n s   i n   t h e   a r r a y   a n d   s e t   t h e   o t h e r   e l e m e n t s   t o   n u l l . 
 
         8 2 :           *   @ p a r a m   a r r a y   $ v a l u e 
 
         8 3 :           *   @ r e t u r n   \ K e n d o \ U I \ T a b S t r i p 
 
 
 
     L i n e   2 1 3   [ m a t c h :   F R O M   ] : 
 
         2 1 1 :           / * * 
 
         2 1 2 :           *   S e t s   t h e   c o n t e n t L o a d   e v e n t   o f   t h e   T a b S t r i p . 
 
   > >   2 1 3 :           *   T r i g g e r e d   w h e n   c o n t e n t   i s   f e t c h e d   f r o m   a n   A J A X   r e q u e s t . 
 
         2 1 4 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         2 1 5 :           *   @ r e t u r n   \ K e n d o \ U I \ T a b S t r i p 
 
 
 
     L i n e   2 4 0   [ m a t c h :   S E L E C T   ] : 
 
         2 3 8 :   
 
         2 3 9 :           / * * 
 
   > >   2 4 0 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   T a b S t r i p . 
 
         2 4 1 :           *   T r i g g e r e d   b e f o r e   a   t a b   i s   s e l e c t e d . 
 
         2 4 2 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ T a b S t r i p I t e m . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9 6   [ m a t c h :   F R O M   ] : 
 
         9 4 :   
 
         9 5 :           / * * 
 
   > >   9 6 :           *   S p e c i f i e s   t h e   u r l   f r o m   w h i c h   t h e   i t e m   c o n t e n t   w i l l   b e   l o a d e d 
 
         9 7 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         9 8 :           *   @ r e t u r n   \ K e n d o \ U I \ T a b S t r i p I t e m 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ T a s k B o a r d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 6 2   [ m a t c h :   F R O M   ] : 
 
         2 6 0 :           / * * 
 
         2 6 1 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   T a s k B o a r d . 
 
   > >   2 6 2 :           *   F i r e d   w h e n   t h e   T a s k B o a r d   i s   b o u n d   t o   d a t a   f r o m   i t s   d a t a   s o u r c e . 
 
         2 6 3 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         2 6 4 :           *   @ r e t u r n   \ K e n d o \ U I \ T a s k B o a r d 
 
 
 
     L i n e   2 3 3   [ m a t c h :   S E L E C T   ] : 
 
         2 3 1 :   
 
         2 3 2 :           / * * 
 
   > >   2 3 3 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   T a s k B o a r d . 
 
         2 3 4 :           *   F i r e d   w h e n   t h e   u s e r   s e l e c t s   a   c a r d   i n   t h e   T a s k B o a r d . 
 
         2 3 5 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ T o o l t i p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 3 9   [ m a t c h :   F R O M   ] : 
 
         1 3 7 :   
 
         1 3 8 :           / * * 
 
   > >   1 3 9 :           *   S p e c i f i e s   t h e   o f f s e t   ( i n   p i x e l s )   b e t w e e n   t h e   T o o l t i p   a n d   t h e   a n c h o r .   I f   t h e   c a l l o u t   p r o p e r t y   i s   s e t   t o   t r u e ,   t h e   o f f s e t   i s   r e n d e r e d   f r o m   t h e   c a l l o u t   a r r o w .   I f   t h e   c a l l o u t   p r o p e r t y   i s   s e t   t o   f a l s e ,   t h e   o f f s e t   i s   r e n d e r e d   f r o m   t h e   c o n t e n t   o f   t h e   T o o l t i p . 
 
         1 4 0 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         1 4 1 :           *   @ r e t u r n   \ K e n d o \ U I \ T o o l t i p 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ T r e e L i s t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 1 2   [ m a t c h :   F R O M   ] : 
 
         3 1 0 :           / * * 
 
         3 1 1 :           *   S e t s   t h e   d a t a B o u n d   e v e n t   o f   t h e   T r e e L i s t . 
 
   > >   3 1 2 :           *   F i r e s   w h e n   t h e   w i d g e t   i s   b o u n d   t o   d a t a   f r o m   i t s   d a t a   s o u r c e .   T h e   e v e n t   h a n d l e r   f u n c t i o n   c o n t e x t   ( a v a i l a b l e   t h r o u g h   t h e   t h i s   k e y w o r d )   w i l l   b e   s e t   t o   t h e   w i d g e t   i n s t a n c e . 
 
         3 1 3 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         3 1 4 :           *   @ r e t u r n   \ K e n d o \ U I \ T r e e L i s t 
 
 
 
     L i n e   2 0 0   [ m a t c h :   S E L E C T   ] : 
 
         1 9 8 :   
 
         1 9 9 :           / * * 
 
   > >   2 0 0 :           *   I f   s e t   t o   t r u e ,   t h e   u s e r   w i l l   b e   a b l e   t o   s e l e c t   T r e e L i s t   r o w s .   B y   d e f a u l t ,   s e l e c t i o n   i s   d i s a b l e d . C a n   a l s o   b e   s e t   t o   t h e   f o l l o w i n g   s t r i n g   v a l u e s :   r o w   -   T h e   u s e r   c a n   s e l e c t   a   s i n g l e   r o w . ;   c e l l   -   T h e   u s e r   c a n   s e l e c t   a   s i n g l e   c e l l . ;   m u l t i p l e ,   r o w   -   T h e   u s e r   c a n   s e l e c t   m u l t i p l e   r o w s .   o r   m u l t i p l e ,   c e l l   -   T h e   u s e r   c a n   s e l e c t   m u l t i p l e   c e l l s . . 
 
         2 0 1 :           *   @ p a r a m   b o o l e a n | s t r i n g   $ v a l u e 
 
         2 0 2 :           *   @ r e t u r n   \ K e n d o \ U I \ T r e e L i s t 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ T r e e L i s t C o l u m n . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 6 2   [ m a t c h :   S E L E C T   ] : 
 
         1 6 0 :   
 
         1 6 1 :           / * * 
 
   > >   1 6 2 :           *   I f   s e t   t o   t r u e   t h e   t r e e l i s t   w i l l   r e n d e r   a   s e l e c t   c o l u m n   w i t h   c h e c k b o x e s   i n   e a c h   c e l l ,   t h u s   e n a b l i n g   m u l t i - r o w   s e l e c t i o n .   T h e   h e a d e r   c h e c k b o x   a l l o w s   u s e r s   t o   s e l e c t / d e s e l e c t   a l l   t h e   r o w s   o n   t h e   c u r r e n t   p a g e . 
 
         1 6 3 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 6 4 :           *   @ r e t u r n   \ K e n d o \ U I \ T r e e L i s t C o l u m n 
 
 
 
     L i n e   2 2 9   [ m a t c h :   S E L E C T   ] : 
 
         2 2 7 :   
 
         2 2 8 :           / * * 
 
   > >   2 2 9 :           *   I f   s e t   t o   t r u e ,   t h e   T r e e L i s t   w i l l   s e l e c t   a l l   c h i l d   r o w s   u p o n   p a r e n t   r o w   s e l e c t i o n   w h e n   c h e c k b o x   s e l e c t i o n   i s   u s e d . 
 
         2 3 0 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         2 3 1 :           *   @ r e t u r n   \ K e n d o \ U I \ T r e e L i s t C o l u m n 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ T r e e L i s t C o l u m n M e n u . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   S E L E C T   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   I f   s e t   t o   t r u e ,   t h e   c o l u m n   m e n u   a l l o w s   t h e   u s e r   t o   s e l e c t   ( s h o w   a n d   h i d e )   T r e e L i s t   c o l u m n s .   B y   d e f a u l t ,   t h e   c o l u m n   m e n u   a l l o w s   c o l u m n   s e l e c t i o n . 
 
         1 0 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ U I \ T r e e L i s t C o l u m n M e n u 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ T r e e L i s t M e s s a g e s C o m m a n d s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9 9   [ m a t c h :   U P D A T E   ] : 
 
         9 7 :   
 
         9 8 :           / * * 
 
   > >   9 9 :           *   D e f i n e s   t h e   t e x t   o f   t h e   U p d a t e   b u t t o n   t h a t   a p p l i e s   t h e   c h a n g e s   d u r i n g   e d i t i n g . 
 
         1 0 0 :           *   @ p a r a m   s t r i n g   $ v a l u e 
 
         1 0 1 :           *   @ r e t u r n   \ K e n d o \ U I \ T r e e L i s t M e s s a g e s C o m m a n d s 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ T r e e L i s t P d f . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9   [ m a t c h :   F R O M   ] : 
 
         7 :   
 
         8 :           / * * 
 
   > >   9 :           *   E x p o r t s   a l l   T r e e L i s t   p a g e s ,   s t a r t i n g   f r o m   t h e   f i r s t   o n e . 
 
         1 0 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         1 1 :           *   @ r e t u r n   \ K e n d o \ U I \ T r e e L i s t P d f 
 
 
 
     L i n e   8 1   [ m a t c h :   F R O M   ] : 
 
         7 9 :   
 
         8 0 :           / * * 
 
   > >   8 1 :           *   S p e c i f i e s   t h e   q u a l i t y   o f   t h e   i m a g e s   w i t h i n   t h e   e x p o r t e d   f i l e ,   f r o m   0   t o   1 . 
 
         8 2 :           *   @ p a r a m   f l o a t   $ v a l u e 
 
         8 3 :           *   @ r e t u r n   \ K e n d o \ U I \ T r e e L i s t P d f 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ T r e e V i e w . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 7 9   [ m a t c h :   S E L E C T   ] : 
 
         1 7 7 :           / * * 
 
         1 7 8 :           *   S e t s   t h e   c h a n g e   e v e n t   o f   t h e   T r e e V i e w . 
 
   > >   1 7 9 :           *   T r i g g e r e d   w h e n   t h e   s e l e c t i o n   h a s   c h a n g e d   ( e i t h e r   b y   t h e   u s e r   o r   t h r o u g h   t h e   s e l e c t   m e t h o d ) . 
 
         1 8 0 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         1 8 1 :           *   @ r e t u r n   \ K e n d o \ U I \ T r e e V i e w 
 
 
 
     L i n e   3 4 6   [ m a t c h :   S E L E C T   ] : 
 
         3 4 4 :   
 
         3 4 5 :           / * * 
 
   > >   3 4 6 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   T r e e V i e w . 
 
         3 4 7 :           *   T r i g g e r e d   w h e n   a   n o d e   i s   b e i n g   s e l e c t e d   b y   t h e   u s e r .   C a n c e l l a b l e . 
 
         3 4 8 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ U p l o a d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9 3   [ m a t c h :   S E L E C T   ] : 
 
         9 1 :   
 
         9 2 :           / * * 
 
   > >   9 3 :           *   E n a b l e s   ( i f   s e t   t o   t r u e )   o r   d i s a b l e s   ( i f   s e t   t o   f a l s e )   t h e   s e l e c t i o n   o f   m u l t i p l e   f i l e s .   I f   s e t   t o   f a l s e ,   t h e   u s e r   c a n   s e l e c t   o n l y   o n e   f i l e   a t   a   t i m e . 
 
         9 4 :           *   @ p a r a m   b o o l e a n   $ v a l u e 
 
         9 5 :           *   @ r e t u r n   \ K e n d o \ U I \ U p l o a d 
 
 
 
     L i n e   2 5 4   [ m a t c h :   S E L E C T   ] : 
 
         2 5 2 :   
 
         2 5 3 :           / * * 
 
   > >   2 5 4 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   U p l o a d . 
 
         2 5 5 :           *   F i r e s   w h e n   a   f i l e   i s   s e l e c t e d . 
 
         2 5 6 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ W i n d o w . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 0   [ m a t c h :   F R O M   ] : 
 
         1 8 :                           $ e l e m e n t - > h t m l ( $ c o n t e n t ) ; 
 
         1 9 :                   }   e l s e   { 
 
   > >   2 0 :                           / /   s e r i a l i z e   c o n t e n t   b y   r e m o v i n g   i t   f r o m   t h e   i g n o r e   l i s t 
 
         2 1 :                           $ t h i s - > i g n o r e   =   a r r a y _ d i f f ( a r r a y ( ' c o n t e n t ' ) ,   $ t h i s - > i g n o r e ) ; 
 
         2 2 :                   } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ k e n d o u i \ l i b \ U I \ W i z a r d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 2 4   [ m a t c h :   F R O M   ] : 
 
         1 2 2 :           / * * 
 
         1 2 3 :           *   S e t s   t h e   c o n t e n t L o a d   e v e n t   o f   t h e   W i z a r d . 
 
   > >   1 2 4 :           *   T r i g g e r e d   w h e n   c o n t e n t   i s   f e t c h e d   f r o m   a n   A J A X   r e q u e s t   a n d   h a s   b e e n   l o a d e d . 
 
         1 2 5 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         1 2 6 :           *   @ r e t u r n   \ K e n d o \ U I \ W i z a r d 
 
 
 
     L i n e   1 7 9   [ m a t c h :   S E L E C T   ] : 
 
         1 7 7 :   
 
         1 7 8 :           / * * 
 
   > >   1 7 9 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   W i z a r d . 
 
         1 8 0 :           *   F i r e s   w h e n   t h e   u s e r   c l i c k s   o n   t h e   S t e p p e r   o r   c l i c k s   o n   " P r e v i o u s " / " N e x t "   a c t i o n   B u t t o n s   t o   s e l e c t   a n o t h e r   s t e p . 
 
         1 8 1 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
 
 
     L i n e   1 8 0   [ m a t c h :   S E L E C T   ] : 
 
         1 7 8 :           / * * 
 
         1 7 9 :           *   S e t s   t h e   s e l e c t   e v e n t   o f   t h e   W i z a r d . 
 
   > >   1 8 0 :           *   F i r e s   w h e n   t h e   u s e r   c l i c k s   o n   t h e   S t e p p e r   o r   c l i c k s   o n   " P r e v i o u s " / " N e x t "   a c t i o n   B u t t o n s   t o   s e l e c t   a n o t h e r   s t e p . 
 
         1 8 1 :           *   @ p a r a m   s t r i n g | \ K e n d o \ J a v a S c r i p t F u n c t i o n   $ v a l u e   C a n   b e   a   J a v a S c r i p t   f u n c t i o n   d e f i n i t i o n   o r   n a m e . 
 
         1 8 2 :           *   @ r e t u r n   \ K e n d o \ U I \ W i z a r d 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a r a v e l \ l i b \ A p p \ C o n s o l e \ C o m m a n d s \ N p m \ U p d a t e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5   [ m a t c h :   U P D A T E   ] : 
 
         3 :   u s e   I l l u m i n a t e \ C o n s o l e \ C o m m a n d ; 
 
         4 :   
 
   > >   5 :   c l a s s   U p d a t e   e x t e n d s   C o m m a n d 
 
         6 :   { 
 
         7 :           / * * 
 
 
 
     L i n e   1 9   [ m a t c h :   U P D A T E   ] : 
 
         1 7 :             *   @ v a r   s t r i n g 
 
         1 8 :             * / 
 
   > >   1 9 :           p r o t e c t e d   $ d e s c r i p t i o n   =   ' W i l l   u p d a t e   a l l   n p m   d e p e n d e n c i e s   u s i n g   a   p a c k a g e   m a n a g e r   b a s e d   o n   l o c k   f i l e   o r   w h a t   t h e   u s e r   h a s   i n s t a l l e d   o t h e r w i s e ' ; 
 
         2 0 :   
 
         2 1 :           p u b l i c   f u n c t i o n   h a n d l e ( ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a r a v e l \ l i b \ A p p \ M o d e l \ P r o v i d e s F K U s a g e C o u n t s F o r E n t i t y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 0   [ m a t c h :   F R O M   ] : 
 
         1 8 :                           r e t u r n   $ U s a g e C o u n t s ; 
 
         1 9 :                   $ D Q L   =   " S E L E C T   p . I D   a s   T h i s I D ,   f . I D   a s   U s e a g e I D 
 
   > >   2 0 :                                   F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   p " ; 
 
         2 1 :                   f o r e a c h ( $ E n t i t y L i n k s   a s   $ i   = >   $ E n t i t y L i n k ) 
 
         2 2 :                           $ D Q L   . =   "   I N N E R   J O I N   " . ( $ i > 0 ? ' l ' . ( $ i - 1 ) : ' p ' ) . " . " . $ E n t i t y L i n k . "   l " . $ i ; 
 
 
 
     L i n e   1 9   [ m a t c h :   S E L E C T   ] : 
 
         1 7 :                   i f ( ! s i z e o f ( $ I D s ) ) 
 
         1 8 :                           r e t u r n   $ U s a g e C o u n t s ; 
 
   > >   1 9 :                   $ D Q L   =   " S E L E C T   p . I D   a s   T h i s I D ,   f . I D   a s   U s e a g e I D 
 
         2 0 :                                   F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   p " ; 
 
         2 1 :                   f o r e a c h ( $ E n t i t y L i n k s   a s   $ i   = >   $ E n t i t y L i n k ) 
 
 
 
     L i n e   2 2   [ m a t c h :   I N N E R   J O I N ] : 
 
         2 0 :                                   F R O M   " . $ t h i s - > g e t E n t i t y N a m e ( ) . "   p " ; 
 
         2 1 :                   f o r e a c h ( $ E n t i t y L i n k s   a s   $ i   = >   $ E n t i t y L i n k ) 
 
   > >   2 2 :                           $ D Q L   . =   "   I N N E R   J O I N   " . ( $ i > 0 ? ' l ' . ( $ i - 1 ) : ' p ' ) . " . " . $ E n t i t y L i n k . "   l " . $ i ; 
 
         2 3 :                   $ D Q L   . =   "   I N N E R   J O I N   " . ( s i z e o f ( $ E n t i t y L i n k s ) ? ' l ' . ( s i z e o f ( $ E n t i t y L i n k s ) - 1 ) : ' p ' ) . " . " . $ F K A l i a s . "   f 
 
         2 4 :                                     W H E R E   f . I D   I N   ( : f I D s ) " ; 
 
 
 
     L i n e   2 3   [ m a t c h :   I N N E R   J O I N ] : 
 
         2 1 :                   f o r e a c h ( $ E n t i t y L i n k s   a s   $ i   = >   $ E n t i t y L i n k ) 
 
         2 2 :                           $ D Q L   . =   "   I N N E R   J O I N   " . ( $ i > 0 ? ' l ' . ( $ i - 1 ) : ' p ' ) . " . " . $ E n t i t y L i n k . "   l " . $ i ; 
 
   > >   2 3 :                   $ D Q L   . =   "   I N N E R   J O I N   " . ( s i z e o f ( $ E n t i t y L i n k s ) ? ' l ' . ( s i z e o f ( $ E n t i t y L i n k s ) - 1 ) : ' p ' ) . " . " . $ F K A l i a s . "   f 
 
         2 4 :                                     W H E R E   f . I D   I N   ( : f I D s ) " ; 
 
         2 5 :                   $ I D U s a g e   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( $ D Q L ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a r a v e l \ l i b \ C o m p o s e r S c r i p t s \ P o s t A u t o l o a d D u m p . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 5   [ m a t c h :   F R O M   ] : 
 
         1 3 :           p u b l i c   s t a t i c   f u n c t i o n   p o s t I n s t a l l ( E v e n t   $ e v e n t ) 
 
         1 4 :           { 
 
   > >   1 5 :                   $ e v e n t - > g e t I O ( ) - > w r i t e E r r o r ( ' C a n n o t   i n s t a l l   f r o m   t h e   a u t o l o a d   d u m p   s c r i p t ' ) ; 
 
         1 6 :           } 
 
         1 7 :   
 
 
 
     L i n e   2 0   [ m a t c h :   F R O M   ] : 
 
         1 8 :           p u b l i c   s t a t i c   f u n c t i o n   p o s t U p d a t e ( E v e n t   $ e v e n t ) 
 
         1 9 :           { 
 
   > >   2 0 :                   $ e v e n t - > g e t I O ( ) - > w r i t e E r r o r ( ' C a n n o t   u p d a t e   f r o m   t h e   a u t o l o a d   d u m p   s c r i p t ' ) ; 
 
         2 1 :           } 
 
         2 2 :   
 
 
 
     L i n e   2 0   [ m a t c h :   U P D A T E   ] : 
 
         1 8 :           p u b l i c   s t a t i c   f u n c t i o n   p o s t U p d a t e ( E v e n t   $ e v e n t ) 
 
         1 9 :           { 
 
   > >   2 0 :                   $ e v e n t - > g e t I O ( ) - > w r i t e E r r o r ( ' C a n n o t   u p d a t e   f r o m   t h e   a u t o l o a d   d u m p   s c r i p t ' ) ; 
 
         2 1 :           } 
 
         2 2 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a r a v e l \ l i b \ C o m p o s e r S c r i p t s \ P o s t I n s t a l l . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 4   [ m a t c h :   F R O M   ] : 
 
         5 2 :           p u b l i c   s t a t i c   f u n c t i o n   p o s t U p d a t e ( E v e n t   $ e v e n t ) 
 
         5 3 :           { 
 
   > >   5 4 :                   $ e v e n t - > g e t I O ( ) - > w r i t e E r r o r ( ' C a n n o t   u p d a t e   f r o m   t h e   i n s t a l l   s c r i p t ' ) ; 
 
         5 5 :           } 
 
         5 6 :   
 
 
 
     L i n e   5 9   [ m a t c h :   F R O M   ] : 
 
         5 7 :           p u b l i c   s t a t i c   f u n c t i o n   p o s t A u t o l o a d D u m p ( E v e n t   $ e v e n t ) 
 
         5 8 :           { 
 
   > >   5 9 :                   $ e v e n t - > g e t I O ( ) - > w r i t e E r r o r ( ' C a n n o t   a u t o l o a d   d u m p   f r o m   t h e   i n s t a l l   s c r i p t ' ) ; 
 
         6 0 :           } 
 
         6 1 :   } 
 
 
 
     L i n e   5 4   [ m a t c h :   U P D A T E   ] : 
 
         5 2 :           p u b l i c   s t a t i c   f u n c t i o n   p o s t U p d a t e ( E v e n t   $ e v e n t ) 
 
         5 3 :           { 
 
   > >   5 4 :                   $ e v e n t - > g e t I O ( ) - > w r i t e E r r o r ( ' C a n n o t   u p d a t e   f r o m   t h e   i n s t a l l   s c r i p t ' ) ; 
 
         5 5 :           } 
 
         5 6 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a r a v e l \ l i b \ C o m p o s e r S c r i p t s \ P o s t U p d a t e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :           p u b l i c   s t a t i c   f u n c t i o n   p o s t I n s t a l l ( E v e n t   $ e v e n t ) 
 
         2 6 :           { 
 
   > >   2 7 :                   $ e v e n t - > g e t I O ( ) - > w r i t e E r r o r ( ' C a n n o t   i n s t a l l   f r o m   t h e   u p d a t e   s c r i p t ' ) ; 
 
         2 8 :           } 
 
         2 9 :   
 
 
 
     L i n e   3 7   [ m a t c h :   F R O M   ] : 
 
         3 5 :           p u b l i c   s t a t i c   f u n c t i o n   p o s t A u t o l o a d D u m p ( E v e n t   $ e v e n t ) 
 
         3 6 :           { 
 
   > >   3 7 :                   $ e v e n t - > g e t I O ( ) - > w r i t e E r r o r ( ' C a n n o t   a u t o l o a d   d u m p   f r o m   t h e   u p d a t e   s c r i p t ' ) ; 
 
         3 8 :           } 
 
         3 9 :   } 
 
 
 
     L i n e   5   [ m a t c h :   U P D A T E   ] : 
 
         3 :   u s e   C o m p o s e r \ S c r i p t \ E v e n t ; 
 
         4 :   
 
   > >   5 :   c l a s s   P o s t U p d a t e   e x t e n d s   C o m m a n d s 
 
         6 :   { 
 
         7 :           p u b l i c   s t a t i c   f u n c t i o n   a l l ( E v e n t   $ E v e n t ) 
 
 
 
     L i n e   2 7   [ m a t c h :   U P D A T E   ] : 
 
         2 5 :           p u b l i c   s t a t i c   f u n c t i o n   p o s t I n s t a l l ( E v e n t   $ e v e n t ) 
 
         2 6 :           { 
 
   > >   2 7 :                   $ e v e n t - > g e t I O ( ) - > w r i t e E r r o r ( ' C a n n o t   i n s t a l l   f r o m   t h e   u p d a t e   s c r i p t ' ) ; 
 
         2 8 :           } 
 
         2 9 :   
 
 
 
     L i n e   3 7   [ m a t c h :   U P D A T E   ] : 
 
         3 5 :           p u b l i c   s t a t i c   f u n c t i o n   p o s t A u t o l o a d D u m p ( E v e n t   $ e v e n t ) 
 
         3 6 :           { 
 
   > >   3 7 :                   $ e v e n t - > g e t I O ( ) - > w r i t e E r r o r ( ' C a n n o t   a u t o l o a d   d u m p   f r o m   t h e   u p d a t e   s c r i p t ' ) ; 
 
         3 8 :           } 
 
         3 9 :   } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a r a v e l \ l i b \ D o c t r i n e \ G e n e r a t e C o m m a n d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 3   [ m a t c h :   F R O M   ] : 
 
         2 1 :   	   *   @ v a r   s t r i n g 
 
         2 2 :   	   * / 
 
   > >   2 3 :   	 p r o t e c t e d   $ d e s c r i p t i o n   =   ' G e n e r a t e s   m o d e l   f i l e s   f r o m   D o c t r i n e   Y A M L   s c h e m a   f i l e s ' ; 
 
         2 4 :   
 
         2 5 :   	 / * * 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a r a v e l \ l i b \ D o c t r i n e \ L A u t h U s e r P r o v i d e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 1 0   [ m a t c h :   F R O M   ] : 
 
         1 0 8 :   
 
         1 0 9 :                           $ d q l   =   " S E L E C T   a u t h U s e r 
 
   > >   1 1 0 :                                           F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   a u t h U s e r 
 
         1 1 1 :                                           L E F T   J O I N   a u t h U s e r . a u t h _ D o m a i n   a u t h D o m a i n 
 
         1 1 2 :                                           W H E R E   ( a u t h D o m a i n . I D   I S   N U L L   O R   a u t h D o m a i n . D o m a i n N a m e   =   : d o m a i n N a m e ) " ; 
 
 
 
     L i n e   3 2 1   [ m a t c h :   F R O M   ] : 
 
         3 1 9 :                   $ c l i e n t C o u n t   = 
 
         3 2 0 :                   $ t h i s - > E M - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( c ) 
 
   > >   3 2 1 :                                                                   F R O M   A p p \ M o d e l \ E n t i t i e s \ a u t h _ O A u t h C l i e n t   c 
 
         3 2 2 :                                                                   I N N E R   J O I N   c . a u t h _ U s e r T y p e   u t 
 
         3 2 3 :                                                                   I N N E R   J O I N   u t . a u t h _ U s e r   u 
 
 
 
     L i n e   1 0 9   [ m a t c h :   S E L E C T   ] : 
 
         1 0 7 :                                   r e t u r n   n u l l ; 
 
         1 0 8 :   
 
   > >   1 0 9 :                           $ d q l   =   " S E L E C T   a u t h U s e r 
 
         1 1 0 :                                           F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   a u t h U s e r 
 
         1 1 1 :                                           L E F T   J O I N   a u t h U s e r . a u t h _ D o m a i n   a u t h D o m a i n 
 
 
 
     L i n e   3 2 0   [ m a t c h :   S E L E C T   ] : 
 
         3 1 8 :           { 
 
         3 1 9 :                   $ c l i e n t C o u n t   = 
 
   > >   3 2 0 :                   $ t h i s - > E M - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( c ) 
 
         3 2 1 :                                                                   F R O M   A p p \ M o d e l \ E n t i t i e s \ a u t h _ O A u t h C l i e n t   c 
 
         3 2 2 :                                                                   I N N E R   J O I N   c . a u t h _ U s e r T y p e   u t 
 
 
 
     L i n e   3 2 2   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 2 0 :                   $ t h i s - > E M - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( c ) 
 
         3 2 1 :                                                                   F R O M   A p p \ M o d e l \ E n t i t i e s \ a u t h _ O A u t h C l i e n t   c 
 
   > >   3 2 2 :                                                                   I N N E R   J O I N   c . a u t h _ U s e r T y p e   u t 
 
         3 2 3 :                                                                   I N N E R   J O I N   u t . a u t h _ U s e r   u 
 
         3 2 4 :                                                                   W H E R E   u . I D   =   : u s e r I D 
 
 
 
     L i n e   3 2 3   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 2 1 :                                                                   F R O M   A p p \ M o d e l \ E n t i t i e s \ a u t h _ O A u t h C l i e n t   c 
 
         3 2 2 :                                                                   I N N E R   J O I N   c . a u t h _ U s e r T y p e   u t 
 
   > >   3 2 3 :                                                                   I N N E R   J O I N   u t . a u t h _ U s e r   u 
 
         3 2 4 :                                                                   W H E R E   u . I D   =   : u s e r I D 
 
         3 2 5 :                                                                       A N D   c . I D   =   : c l i e n t I D " ) 
 
 
 
     L i n e   1 1 1   [ m a t c h :   L E F T   J O I N ] : 
 
         1 0 9 :                           $ d q l   =   " S E L E C T   a u t h U s e r 
 
         1 1 0 :                                           F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   a u t h U s e r 
 
   > >   1 1 1 :                                           L E F T   J O I N   a u t h U s e r . a u t h _ D o m a i n   a u t h D o m a i n 
 
         1 1 2 :                                           W H E R E   ( a u t h D o m a i n . I D   I S   N U L L   O R   a u t h D o m a i n . D o m a i n N a m e   =   : d o m a i n N a m e ) " ; 
 
         1 1 3 :                           f o r e a c h ( $ f i n d B y   a s   $ k e y   = >   $ v a l u e ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a r a v e l \ l i b \ D o c t r i n e \ N o t i f i a b l e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 7   [ m a t c h :   F R O M   ] : 
 
         1 5 :           { 
 
         1 6 :                   / /   U S   f o r m a t   1 X X X X X X X X X X 
 
   > >   1 7 :                   t h r o w   n e w   \ E x c e p t i o n ( ' C u r r e n t l y   n o   p h o n e   n u m b e r   a c c e s s i b l e   d i r e c t l y   f r o m   a   u s e r .     C o n s i d e r   a   c a l c u l a t e d   m e t h o d   t o   l o o k   a t   c o r r e c t   u s e r   t y p e   1 - 1   r e c o r d . ' ) ; 
 
         1 8 :           } 
 
         1 9 :   
 
 
 
     L i n e   2 3   [ m a t c h :   F R O M   ] : 
 
         2 1 :           { 
 
         2 2 :                   / /   U S   f o r m a t   + 1 X X X X X X X X X X 
 
   > >   2 3 :                   t h r o w   n e w   \ E x c e p t i o n ( ' C u r r e n t l y   n o   p h o n e   n u m b e r   a c c e s s i b l e   d i r e c t l y   f r o m   a   u s e r .     C o n s i d e r   a   c a l c u l a t e d   m e t h o d   t o   l o o k   a t   c o r r e c t   u s e r   t y p e   1 - 1   r e c o r d . ' ) ; 
 
         2 4 :           } 
 
         2 5 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a r a v e l \ l i b \ T w i l i o \ N o t i f i c a t i o n s \ T w i l i o S m s C h a n n e l . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   F R O M   ] : 
 
         2 5 :                   } 
 
         2 6 :   
 
   > >   2 7 :                   $ f r o m   =   ( $ m e s s a g e - > g e t F r o m ( )   ? :   c o n f i g ( ' s e r v i c e s . t w i l i o . f r o m ' ,   n u l l ) ) ; 
 
         2 8 :   
 
         2 9 :                   / * *   @ v a r   C l i e n t   $ C l i e n t   * / 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a r a v e l \ l i b \ T w i l i o \ N o t i f i c a t i o n s \ T w i l i o S m s M e s s a g e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6   [ m a t c h :   F R O M   ] : 
 
         4 :   { 
 
         5 :           p r o t e c t e d   $ m e s s a g e ; 
 
   > >   6 :           p r o t e c t e d   $ f r o m   =   n u l l ; 
 
         7 :   
 
         8 :           / * * 
 
 
 
     L i n e   5 0   [ m a t c h :   F R O M   ] : 
 
         4 8 :           p u b l i c   f u n c t i o n   s e t F r o m ( $ f r o m ) 
 
         4 9 :           { 
 
   > >   5 0 :                   $ t h i s - > f r o m   =   $ f r o m ; 
 
         5 1 :   
 
         5 2 :                   r e t u r n   $ t h i s ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ c o n f i g \ l a u t h . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 8   [ m a t c h :   F R O M   ] : 
 
         4 6 :                           $ S u b j e c t s   =   $ a p p - > m a k e ( ' S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ' ) 
 
         4 7 :                                   - > g e t E m ( ' r o ' ) 
 
   > >   4 8 :                                   - > c r e a t e Q u e r y ( " S E L E C T   u . I D   F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   u   I N N E R   J O I N   u . a u t h _ U s e r T y p e   t   W H E R E   u . H a s B e e n D e a c t i v a t e d = 0   A N D   u . I D   < >   : i m p e r s o n a t o r A u t h U s e r I D " ) 
 
         4 9 :                                   - > s e t P a r a m e t e r ( ' i m p e r s o n a t o r A u t h U s e r I D ' ,   $ i m p e r s o n a t o r A u t h U s e r I D ) 
 
         5 0 :                                   - > g e t R e s u l t ( ) ; 
 
 
 
     L i n e   6 7   [ m a t c h :   F R O M   ] : 
 
         6 5 :                           $ S u b j e c t s   =   $ a p p - > m a k e ( ' S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ' ) 
 
         6 6 :                                   - > g e t E m ( ' r o ' ) 
 
   > >   6 7 :                                   - > c r e a t e Q u e r y ( " S E L E C T   u . I D ,   u . E m a i l   F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   u " ) 
 
         6 8 :                                   - > g e t R e s u l t ( ) ; 
 
         6 9 :   
 
 
 
     L i n e   8 6   [ m a t c h :   F R O M   ] : 
 
         8 4 :                   ' e n a b l e d '   = >   e n v ( ' L A U T H _ L D A P _ E N A B L E D ' ,   f a l s e ) , 
 
         8 5 :   
 
   > >   8 6 :                   / /   t h e   a t t r i b u t e   f r o m   a   u s e r ' s   l d a p   p r o f i l e   t o   u t i l i z e   a s   t h e i r   e m a i l   a d d r e s s 
 
         8 7 :                   ' e m a i l _ a t t r i b u t e '   = >   e n v ( ' L A U T H _ L D A P _ E M A I L _ A T T R I B U T E ' ,   ' e m a i l A d d r e s s ' ) , 
 
         8 8 :   
 
 
 
     L i n e   1 2 4   [ m a t c h :   F R O M   ] : 
 
         1 2 2 :                   ' a u t h _ c o d e _ e x p i r a t i o n _ m i n u t e s '   = >   1 0 , 
 
         1 2 3 :   
 
   > >   1 2 4 :                   / /   e n a b l e s   p a s s p o r t   t o   a c c e p t   S S O   r e q u e s t s   f r o m   o t h e r   a p p l i c a t i o n s 
 
         1 2 5 :                   ' i d p _ e n a b l e d '   = >   f a l s e , 
 
         1 2 6 :   
 
 
 
     L i n e   1 3 0   [ m a t c h :   F R O M   ] : 
 
         1 2 8 :                   ' o i d c _ t o k e n _ i d _ m o d e l '   = >   \ S a v v i o r \ L A u t h \ S e r v i c e s \ O I D C \ T o k e n I D M o d e l : : c l a s s , 
 
         1 2 9 :   
 
   > >   1 3 0 :                   / /   w h e n   p a s s p o r t   a c c e p t s   S S O   r e q u e s t s ,   t h e   c l a s s   t h a t   w i l l   e x t r a c t   c l a i m s   f r o m   t h e   t o k e n _ i d _ m o d e l   f o r   t h e   r e s p o n s e ;   d o e s   n o t   n e e d   o v e r r i d d e n   u n l e s s   y o u   n e e d   t o   r e t u r n   v a l u e s   i n   t h e   t o k e n _ i d   r e s p o n s e   o u t s i d e   t h e   o i d c   s p e c 
 
         1 3 1 :                   ' o i d c _ c l a i m s _ e x t r a c t o r '   = >   \ S a v v i o r \ L A u t h \ S e r v i c e s \ O I D C \ C l a i m s E x t r a c t o r : : c l a s s , 
 
         1 3 2 :   
 
 
 
     L i n e   4 8   [ m a t c h :   S E L E C T   ] : 
 
         4 6 :                           $ S u b j e c t s   =   $ a p p - > m a k e ( ' S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ' ) 
 
         4 7 :                                   - > g e t E m ( ' r o ' ) 
 
   > >   4 8 :                                   - > c r e a t e Q u e r y ( " S E L E C T   u . I D   F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   u   I N N E R   J O I N   u . a u t h _ U s e r T y p e   t   W H E R E   u . H a s B e e n D e a c t i v a t e d = 0   A N D   u . I D   < >   : i m p e r s o n a t o r A u t h U s e r I D " ) 
 
         4 9 :                                   - > s e t P a r a m e t e r ( ' i m p e r s o n a t o r A u t h U s e r I D ' ,   $ i m p e r s o n a t o r A u t h U s e r I D ) 
 
         5 0 :                                   - > g e t R e s u l t ( ) ; 
 
 
 
     L i n e   6 7   [ m a t c h :   S E L E C T   ] : 
 
         6 5 :                           $ S u b j e c t s   =   $ a p p - > m a k e ( ' S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ' ) 
 
         6 6 :                                   - > g e t E m ( ' r o ' ) 
 
   > >   6 7 :                                   - > c r e a t e Q u e r y ( " S E L E C T   u . I D ,   u . E m a i l   F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   u " ) 
 
         6 8 :                                   - > g e t R e s u l t ( ) ; 
 
         6 9 :   
 
 
 
     L i n e   4 8   [ m a t c h :   I N N E R   J O I N ] : 
 
         4 6 :                           $ S u b j e c t s   =   $ a p p - > m a k e ( ' S a v v i o r \ D o c t r i n e \ E M C o n t a i n e r ' ) 
 
         4 7 :                                   - > g e t E m ( ' r o ' ) 
 
   > >   4 8 :                                   - > c r e a t e Q u e r y ( " S E L E C T   u . I D   F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   u   I N N E R   J O I N   u . a u t h _ U s e r T y p e   t   W H E R E   u . H a s B e e n D e a c t i v a t e d = 0   A N D   u . I D   < >   : i m p e r s o n a t o r A u t h U s e r I D " ) 
 
         4 9 :                                   - > s e t P a r a m e t e r ( ' i m p e r s o n a t o r A u t h U s e r I D ' ,   $ i m p e r s o n a t o r A u t h U s e r I D ) 
 
         5 0 :                                   - > g e t R e s u l t ( ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ C o n s o l e \ I m p o r t P e r m i s s i o n R u l e s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 2 1   [ m a t c h :   U P D A T E   ] : 
 
         1 1 9 :                                   $ C u r r e n t R u l e s [ $ R u l e C o d i n g K e y ] - > s e t D i s p l a y O r d e r ( $ R u l e O r d e r ) ; 
 
         1 2 0 :   
 
   > >   1 2 1 :                                   / / u p d a t e   c a t   i f   d b   d o e s n t   m a t c h   c s v 
 
         1 2 2 :                                   i f ( $ C u r r e n t R u l e s [ $ R u l e C o d i n g K e y ] - > g e t A u t h P e r m i s s i o n R u l e C a t e g o r y ( )   ! =   n u l l   & &   $ R u l e C a t e g o r y   = =   ' ' ) { 
 
         1 2 3 :                                           $ C u r r e n t R u l e s [ $ R u l e C o d i n g K e y ] - > s e t A u t h P e r m i s s i o n R u l e C a t e g o r y ( n u l l ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ C o n t r a c t s \ U s e r B a t c h J o b R u n n e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 0 7   [ m a t c h :   U P D A T E   ] : 
 
         1 0 5 :   
 
         1 0 6 :   	 	 / * * 
 
   > >   1 0 7 :   	 	   *   U p d a t e   t h e   c o m p l e t i o n   p e r c e n t a g e   f o r   t h e   s p e c i f i e d   j o b 
 
         1 0 8 :   	 	   * 
 
         1 0 9 :   	 	   *   @ p a r a m   m i x e d   $ j o b I D 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ C o n t r o l l e r s \ A d d i t i o n a l S e c u r i t y B a s e C o n t r o l l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 7 0   [ m a t c h :   S E L E C T   ] : 
 
         1 6 8 :   
 
         1 6 9 :                   i f   ( ! i s _ a r r a y ( $ Q u e s t i o n s )   | |   c o u n t ( $ Q u e s t i o n s )   ! =   $ N u m b e r O f Q u e s t i o n s R e q u i r e d ) 
 
   > >   1 7 0 :                           r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h I n p u t ( ) - > w i t h E r r o r s ( _ _ ( ' P l e a s e   s e l e c t   a n d   a n s w e r   : N u m Q u e s t i o n s   s e c u r i t y   q u e s t i o n s . ' ,   [ ' N u m Q u e s t i o n s '   = >   $ N u m b e r O f Q u e s t i o n s R e q u i r e d ] ) ) ; 
 
         1 7 1 :   
 
         1 7 2 :                   f o r e a c h ( $ A n s w e r s   A S   $ A n s w e r ) { 
 
 
 
     L i n e   1 7 4   [ m a t c h :   S E L E C T   ] : 
 
         1 7 2 :                   f o r e a c h ( $ A n s w e r s   A S   $ A n s w e r ) { 
 
         1 7 3 :                           i f ( ! i s s e t ( $ A n s w e r ) ) 
 
   > >   1 7 4 :                                   r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h I n p u t ( ) - > w i t h E r r o r s ( _ _ ( ' P l e a s e   s e l e c t   a n d   a n s w e r   : N u m Q u e s t i o n s   s e c u r i t y   q u e s t i o n s . ' ,   [ ' N u m Q u e s t i o n s '   = >   $ N u m b e r O f Q u e s t i o n s R e q u i r e d ] ) ) ; 
 
         1 7 5 :                           i f ( s t r l e n ( $ A n s w e r )   <   $ M i n A n s w e r L e n g t h ) 
 
         1 7 6 :                                   r e t u r n   r e d i r e c t ( ) - > b a c k ( ) - > w i t h I n p u t ( ) - > w i t h E r r o r s ( _ _ ( ' P l e a s e   d o u b l e   c h e c k   t h a t   a l l   a n s w e r s   a r e   a t   l e a s t   : M i n A n s w e r L e n g t h   c h a r a c t e r s   l o n g . ' ,   [ ' M i n A n s w e r L e n g t h '   = >   $ M i n A n s w e r L e n g t h ] ) ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ C o n t r o l l e r s \ A u t h e n t i c a t e s U s e r s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 3   [ m a t c h :   F R O M   ] : 
 
         6 1 :   
 
         6 2 :           / * * 
 
   > >   6 3 :             *   G e t   t h e   n e e d e d   a u t h o r i z a t i o n   c r e d e n t i a l s   f r o m   t h e   r e q u e s t . 
 
         6 4 :             * 
 
         6 5 :             *   @ p a r a m     \ I l l u m i n a t e \ H t t p \ R e q u e s t     $ r e q u e s t 
 
 
 
     L i n e   2 0 2   [ m a t c h :   F R O M   ] : 
 
         2 0 0 :                                                                 S E T   r e f r e s h T o k e n . I s R e v o k e d   =   t r u e 
 
         2 0 1 :                                                                 W H E R E   r e f r e s h T o k e n . a u t h _ O A u t h A c c e s s T o k e n   I N   ( S E L E C T   a c c e s s T o k e n . I D 
 
   > >   2 0 2 :                                                                                                                                                           F R O M   " . a u t h _ O A u t h A c c e s s T o k e n : : c l a s s . "   a c c e s s T o k e n 
 
         2 0 3 :                                                                                                                                                           W H E R E   a c c e s s T o k e n . a u t h _ U s e r   =   : U s e r I D ) " ) 
 
         2 0 4 :                                   - > s e t P a r a m e t e r ( ' U s e r I D ' ,   $ t h i s - > g u a r d ( ) - > u s e r ( ) - > g e t A u t h I d e n t i f i e r ( ) ) 
 
 
 
     L i n e   2 0 1   [ m a t c h :   S E L E C T   ] : 
 
         1 9 9 :                                   - > c r e a t e Q u e r y ( " U P D A T E   " . a u t h _ O A u t h R e f r e s h T o k e n : : c l a s s . "   r e f r e s h T o k e n 
 
         2 0 0 :                                                                 S E T   r e f r e s h T o k e n . I s R e v o k e d   =   t r u e 
 
   > >   2 0 1 :                                                                 W H E R E   r e f r e s h T o k e n . a u t h _ O A u t h A c c e s s T o k e n   I N   ( S E L E C T   a c c e s s T o k e n . I D 
 
         2 0 2 :                                                                                                                                                           F R O M   " . a u t h _ O A u t h A c c e s s T o k e n : : c l a s s . "   a c c e s s T o k e n 
 
         2 0 3 :                                                                                                                                                           W H E R E   a c c e s s T o k e n . a u t h _ U s e r   =   : U s e r I D ) " ) 
 
 
 
     L i n e   1 9 9   [ m a t c h :   U P D A T E   ] : 
 
         1 9 7 :                           $ E M C o n t a i n e r   =   a p p ( E M C o n t a i n e r : : c l a s s ) ; 
 
         1 9 8 :                           $ E M C o n t a i n e r - > g e t E M ( c o n f i g ( ' a u t h . p r o v i d e r s . u s e r s . c o n n e c t i o n ' ) ) 
 
   > >   1 9 9 :                                   - > c r e a t e Q u e r y ( " U P D A T E   " . a u t h _ O A u t h R e f r e s h T o k e n : : c l a s s . "   r e f r e s h T o k e n 
 
         2 0 0 :                                                                 S E T   r e f r e s h T o k e n . I s R e v o k e d   =   t r u e 
 
         2 0 1 :                                                                 W H E R E   r e f r e s h T o k e n . a u t h _ O A u t h A c c e s s T o k e n   I N   ( S E L E C T   a c c e s s T o k e n . I D 
 
 
 
     L i n e   2 0 7   [ m a t c h :   U P D A T E   ] : 
 
         2 0 5 :                                   - > e x e c u t e ( ) ; 
 
         2 0 6 :                           $ E M C o n t a i n e r - > g e t E M ( c o n f i g ( ' a u t h . p r o v i d e r s . u s e r s . c o n n e c t i o n ' ) ) 
 
   > >   2 0 7 :                                   - > c r e a t e Q u e r y ( " U P D A T E   " . a u t h _ O A u t h A c c e s s T o k e n : : c l a s s . "   a c c e s s T o k e n 
 
         2 0 8 :                                                                 S E T   a c c e s s T o k e n . I s R e v o k e d   =   t r u e 
 
         2 0 9 :                                                                 W H E R E   a c c e s s T o k e n . a u t h _ U s e r   =   : U s e r I D " ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ C o n t r o l l e r s \ M a n a g e s U s e r P e r m i s s i o n s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7 4   [ m a t c h :   F R O M   ] : 
 
         7 2 :           p r o t e c t e d   f u n c t i o n   _ u p d a t e U s e r P e r m i s s i o n R u l e s ( a u t h _ U s e r   $ U s e r ,   a r r a y   $ P e r m i s s i o n R u l e I D s ) 
 
         7 3 :           { 
 
   > >   7 4 :                   / /   u s e r   o b j e c t   m u s t   b e   f r o m   r w   e n t i t y   m a n a g e r 
 
         7 5 :                   / /   r e c o m m e n d e d   t h a t   t h i s   m e t h o d   c a l l   b e   w r a p p e d   i n   a   t r a n s a c t i o n 
 
         7 6 :   
 
 
 
     L i n e   1 2 4   [ m a t c h :   F R O M   ] : 
 
         1 2 2 :           p r o t e c t e d   f u n c t i o n   _ u p d a t e U s e r P e r m i s s i o n G r o u p s ( a u t h _ U s e r   $ U s e r ,   a r r a y   $ P e r m i s s i o n G r o u p I D s ) 
 
         1 2 3 :           { 
 
   > >   1 2 4 :                   / /   u s e r   o b j e c t   m u s t   b e   f r o m   r w   e n t i t y   m a n a g e r 
 
         1 2 5 :                   / /   r e c o m m e n d e d   t h a t   t h i s   m e t h o d   c a l l   b e   w r a p p e d   i n   a   t r a n s a c t i o n 
 
         1 2 6 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ E v e n t s \ A t t e m p t i n g . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 1   [ m a t c h :   F R O M   ] : 
 
         1 9 :   
 
         2 0 :           / * * 
 
   > >   2 1 :             *   I f   s o u r c e d   f r o m   a n   O A u t h   c l i e n t ,   t h e   I D   o f   t h a t   c l i e n t 
 
         2 2 :             * / 
 
         2 3 :           p u b l i c   $ O A u t h C l i e n t I D ; 
 
 
 
     L i n e   2 6   [ m a t c h :   F R O M   ] : 
 
         2 4 :   
 
         2 5 :           / * * 
 
   > >   2 6 :             *   I f   s o u r c e d   f r o m   a n   I D P ,   t h e   I D   o f   t h a t   p r o v i d e r 
 
         2 7 :             * / 
 
         2 8 :           p u b l i c   $ S S O P r o v i d e r I D ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ E v e n t s \ L o g i n . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6   [ m a t c h :   F R O M   ] : 
 
         4 :   { 
 
         5 :           / * * 
 
   > >   6 :             *   I n d i c a t e s   i f   t h e   f a i l e d   l o g i n   c a m e   f r o m   a   " r e m e m b e r "   a t t e m p t . 
 
         7 :             * / 
 
         8 :           p u b l i c   $ v i a R e m e m b e r ; 
 
 
 
     L i n e   2 6   [ m a t c h :   F R O M   ] : 
 
         2 4 :   
 
         2 5 :           / * * 
 
   > >   2 6 :             *   I f   s o u r c e d   f r o m   a n   O A u t h   c l i e n t ,   t h e   I D   o f   t h a t   c l i e n t 
 
         2 7 :             * / 
 
         2 8 :           p u b l i c   $ O A u t h C l i e n t I D ; 
 
 
 
     L i n e   3 1   [ m a t c h :   F R O M   ] : 
 
         2 9 :   
 
         3 0 :           / * * 
 
   > >   3 1 :             *   I f   s o u r c e d   f r o m   a n   I D P ,   t h e   I D   o f   t h a t   p r o v i d e r 
 
         3 2 :             * / 
 
         3 3 :           p u b l i c   $ S S O P r o v i d e r I D ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ E v e n t s \ L o g i n F a i l e d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 7   [ m a t c h :   F R O M   ] : 
 
         3 5 :   
 
         3 6 :           / * * 
 
   > >   3 7 :             *   I n d i c a t e s   i f   t h e   f a i l e d   l o g i n   c a m e   f r o m   a   " r e m e m b e r "   a t t e m p t . 
 
         3 8 :             * / 
 
         3 9 :           p u b l i c   $ v i a R e m e m b e r ; 
 
 
 
     L i n e   6 2   [ m a t c h :   F R O M   ] : 
 
         6 0 :   
 
         6 1 :           / * * 
 
   > >   6 2 :             *   I f   s o u r c e d   f r o m   a n   O A u t h   c l i e n t ,   t h e   I D   o f   t h a t   c l i e n t 
 
         6 3 :             * / 
 
         6 4 :           p u b l i c   $ O A u t h C l i e n t I D ; 
 
 
 
     L i n e   6 7   [ m a t c h :   F R O M   ] : 
 
         6 5 :   
 
         6 6 :           / * * 
 
   > >   6 7 :             *   I f   s o u r c e d   f r o m   a n   I D P ,   t h e   I D   o f   t h a t   p r o v i d e r 
 
         6 8 :             * / 
 
         6 9 :           p u b l i c   $ S S O P r o v i d e r I D ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ E v e n t s \ L o g o u t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 1   [ m a t c h :   F R O M   ] : 
 
         9 :   
 
         1 0 :           / * * 
 
   > >   1 1 :             *   I f   s o u r c e d   f r o m   a n   O A u t h   c l i e n t ,   t h e   I D   o f   t h a t   c l i e n t 
 
         1 2 :             * / 
 
         1 3 :           p u b l i c   $ O A u t h C l i e n t I D ; 
 
 
 
     L i n e   1 6   [ m a t c h :   F R O M   ] : 
 
         1 4 :   
 
         1 5 :           / * * 
 
   > >   1 6 :             *   I f   s o u r c e d   f r o m   a n   I D P ,   t h e   I D   o f   t h a t   p r o v i d e r 
 
         1 7 :             * / 
 
         1 8 :           p u b l i c   $ S S O P r o v i d e r I D ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ M o d e l \ P r o v i d e s D a t a F o r M a n a g i n g P e r m i s s i o n G r o u p s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 6   [ m a t c h :   F R O M   ] : 
 
         1 4 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n G r o u p [ ]   $ r e s   * / 
 
         1 5 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   g " . ( $ h y d r a t e P e r m i s s i o n s   ?   ' ,   r '   :   ' ' ) . " 
 
   > >   1 6 :                                                                                                                 F R O M   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n G r o u p   g 
 
         1 7 :                                                                                                                 " . ( $ h y d r a t e P e r m i s s i o n s   ?   ' L E F T   J O I N   g . a u t h _ P e r m i s s i o n R u l e   r   ' :   ' ' ) . " 
 
         1 8 :                                                                                                                 O R D E R   B Y   g . P e r m i s s i o n G r o u p N a m e " ) 
 
 
 
     L i n e   3 2   [ m a t c h :   F R O M   ] : 
 
         3 0 :             *   @ r e t u r n   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ U s e r [ ] [ ] 
 
         3 1 :             * / 
 
   > >   3 2 :           p u b l i c   f u n c t i o n   g e t P e r m i s s i o n G r o u p U s e r U t i l i z a t i o n B y P e r m i s s i o n G r o u p I D ( $ l i m i t T o U s e r s W i t h R e l a t e d U s e r R e c o r d F r o m   =   n u l l ) 
 
         3 3 :           { 
 
         3 4 :                   $ d q l   =   " S E L E C T   g ,   u " . ( ! i s _ n u l l ( $ l i m i t T o U s e r s W i t h R e l a t e d U s e r R e c o r d F r o m ) ? ' ,   x ' : ' ' ) . " 
 
 
 
     L i n e   3 5   [ m a t c h :   F R O M   ] : 
 
         3 3 :           { 
 
         3 4 :                   $ d q l   =   " S E L E C T   g ,   u " . ( ! i s _ n u l l ( $ l i m i t T o U s e r s W i t h R e l a t e d U s e r R e c o r d F r o m ) ? ' ,   x ' : ' ' ) . " 
 
   > >   3 5 :                                   F R O M   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n G r o u p   g 
 
         3 6 :                                   L E F T   J O I N   g . a u t h _ U s e r   u   " ; 
 
         3 7 :                   i f ( ! i s _ n u l l ( $ l i m i t T o U s e r s W i t h R e l a t e d U s e r R e c o r d F r o m ) ) 
 
 
 
     L i n e   6 1   [ m a t c h :   F R O M   ] : 
 
         5 9 :             *   @ r e t u r n   a r r a y 
 
         6 0 :             * / 
 
   > >   6 1 :           p u b l i c   f u n c t i o n   g e t P e r m i s s i o n G r o u p U s e r U t i l i z a t i o n C o u n t B y P e r m i s s i o n G r o u p I D ( $ l i m i t T o U s e r s W i t h R e l a t e d U s e r R e c o r d F r o m   =   n u l l ) 
 
         6 2 :           { 
 
         6 3 :                   $ U s e r U t i l i z a t i o n   =   $ t h i s - > g e t P e r m i s s i o n G r o u p U s e r U t i l i z a t i o n B y P e r m i s s i o n G r o u p I D ( $ l i m i t T o U s e r s W i t h R e l a t e d U s e r R e c o r d F r o m ) ; 
 
 
 
     L i n e   8 0   [ m a t c h :   F R O M   ] : 
 
         7 8 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n G r o u p [ ]   $ r e s   * / 
 
         7 9 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   g ,   r 
 
   > >   8 0 :                                                                                                                 F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n G r o u p   g 
 
         8 1 :                                                                                                                 L E F T   J O I N   g . a u t h _ P e r m i s s i o n R u l e   r " ) 
 
         8 2 :                                                                                   - > g e t R e s u l t ( ) ; 
 
 
 
     L i n e   1 0 7   [ m a t c h :   F R O M   ] : 
 
         1 0 5 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n G r o u p [ ]   $ r e s   * / 
 
         1 0 6 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   g 
 
   > >   1 0 7 :                                                                                                                 F R O M   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n G r o u p   g 
 
         1 0 8 :                                                                                                                 W H E R E   g . I D   I N   ( : i d s ) " ) 
 
         1 0 9 :                                                                                   - > s e t P a r a m e t e r ( ' i d s ' ,   $ I D s ) 
 
 
 
     L i n e   1 2 7   [ m a t c h :   F R O M   ] : 
 
         1 2 5 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
         1 2 6 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   g . I D 
 
   > >   1 2 7 :                                                                                                                 F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n G r o u p   g 
 
         1 2 8 :                                                                                                                 I N N E R   J O I N   g . a u t h _ U s e r   u 
 
         1 2 9 :                                                                                                                 W H E R E   u . I D   =   : u s e r I D " ) 
 
 
 
     L i n e   1 4 8   [ m a t c h :   F R O M   ] : 
 
         1 4 6 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
         1 4 7 :                   r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   g . I D 
 
   > >   1 4 8 :                                                                                                                 F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n G r o u p   g 
 
         1 4 9 :                                                                                                                 W H E R E   g . C o d i n g K e y   =   : c o d i n g K e y " ) 
 
         1 5 0 :                                                                                   - > s e t P a r a m e t e r ( ' c o d i n g K e y ' ,   $ C o d i n g K e y ) 
 
 
 
     L i n e   1 5   [ m a t c h :   S E L E C T   ] : 
 
         1 3 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
         1 4 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n G r o u p [ ]   $ r e s   * / 
 
   > >   1 5 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   g " . ( $ h y d r a t e P e r m i s s i o n s   ?   ' ,   r '   :   ' ' ) . " 
 
         1 6 :                                                                                                                 F R O M   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n G r o u p   g 
 
         1 7 :                                                                                                                 " . ( $ h y d r a t e P e r m i s s i o n s   ?   ' L E F T   J O I N   g . a u t h _ P e r m i s s i o n R u l e   r   ' :   ' ' ) . " 
 
 
 
     L i n e   3 4   [ m a t c h :   S E L E C T   ] : 
 
         3 2 :           p u b l i c   f u n c t i o n   g e t P e r m i s s i o n G r o u p U s e r U t i l i z a t i o n B y P e r m i s s i o n G r o u p I D ( $ l i m i t T o U s e r s W i t h R e l a t e d U s e r R e c o r d F r o m   =   n u l l ) 
 
         3 3 :           { 
 
   > >   3 4 :                   $ d q l   =   " S E L E C T   g ,   u " . ( ! i s _ n u l l ( $ l i m i t T o U s e r s W i t h R e l a t e d U s e r R e c o r d F r o m ) ? ' ,   x ' : ' ' ) . " 
 
         3 5 :                                   F R O M   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n G r o u p   g 
 
         3 6 :                                   L E F T   J O I N   g . a u t h _ U s e r   u   " ; 
 
 
 
     L i n e   7 9   [ m a t c h :   S E L E C T   ] : 
 
         7 7 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
         7 8 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n G r o u p [ ]   $ r e s   * / 
 
   > >   7 9 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   g ,   r 
 
         8 0 :                                                                                                                 F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n G r o u p   g 
 
         8 1 :                                                                                                                 L E F T   J O I N   g . a u t h _ P e r m i s s i o n R u l e   r " ) 
 
 
 
     L i n e   1 0 6   [ m a t c h :   S E L E C T   ] : 
 
         1 0 4 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
         1 0 5 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n G r o u p [ ]   $ r e s   * / 
 
   > >   1 0 6 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   g 
 
         1 0 7 :                                                                                                                 F R O M   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n G r o u p   g 
 
         1 0 8 :                                                                                                                 W H E R E   g . I D   I N   ( : i d s ) " ) 
 
 
 
     L i n e   1 2 6   [ m a t c h :   S E L E C T   ] : 
 
         1 2 4 :           { 
 
         1 2 5 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
   > >   1 2 6 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   g . I D 
 
         1 2 7 :                                                                                                                 F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n G r o u p   g 
 
         1 2 8 :                                                                                                                 I N N E R   J O I N   g . a u t h _ U s e r   u 
 
 
 
     L i n e   1 4 7   [ m a t c h :   S E L E C T   ] : 
 
         1 4 5 :           { 
 
         1 4 6 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
   > >   1 4 7 :                   r e t u r n   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   g . I D 
 
         1 4 8 :                                                                                                                 F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n G r o u p   g 
 
         1 4 9 :                                                                                                                 W H E R E   g . C o d i n g K e y   =   : c o d i n g K e y " ) 
 
 
 
     L i n e   1 2 8   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 2 6 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   g . I D 
 
         1 2 7 :                                                                                                                 F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n G r o u p   g 
 
   > >   1 2 8 :                                                                                                                 I N N E R   J O I N   g . a u t h _ U s e r   u 
 
         1 2 9 :                                                                                                                 W H E R E   u . I D   =   : u s e r I D " ) 
 
         1 3 0 :                                                                                   - > s e t P a r a m e t e r ( ' u s e r I D ' ,   $ U s e r I D ) 
 
 
 
     L i n e   1 7   [ m a t c h :   L E F T   J O I N ] : 
 
         1 5 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   g " . ( $ h y d r a t e P e r m i s s i o n s   ?   ' ,   r '   :   ' ' ) . " 
 
         1 6 :                                                                                                                 F R O M   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n G r o u p   g 
 
   > >   1 7 :                                                                                                                 " . ( $ h y d r a t e P e r m i s s i o n s   ?   ' L E F T   J O I N   g . a u t h _ P e r m i s s i o n R u l e   r   ' :   ' ' ) . " 
 
         1 8 :                                                                                                                 O R D E R   B Y   g . P e r m i s s i o n G r o u p N a m e " ) 
 
         1 9 :                                                                                   - > g e t R e s u l t ( ) ; 
 
 
 
     L i n e   3 6   [ m a t c h :   L E F T   J O I N ] : 
 
         3 4 :                   $ d q l   =   " S E L E C T   g ,   u " . ( ! i s _ n u l l ( $ l i m i t T o U s e r s W i t h R e l a t e d U s e r R e c o r d F r o m ) ? ' ,   x ' : ' ' ) . " 
 
         3 5 :                                   F R O M   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n G r o u p   g 
 
   > >   3 6 :                                   L E F T   J O I N   g . a u t h _ U s e r   u   " ; 
 
         3 7 :                   i f ( ! i s _ n u l l ( $ l i m i t T o U s e r s W i t h R e l a t e d U s e r R e c o r d F r o m ) ) 
 
         3 8 :                   { 
 
 
 
     L i n e   3 9   [ m a t c h :   L E F T   J O I N ] : 
 
         3 7 :                   i f ( ! i s _ n u l l ( $ l i m i t T o U s e r s W i t h R e l a t e d U s e r R e c o r d F r o m ) ) 
 
         3 8 :                   { 
 
   > >   3 9 :                           $ d q l   . =   ' L E F T   J O I N   u . ' . $ l i m i t T o U s e r s W i t h R e l a t e d U s e r R e c o r d F r o m . '   x 
 
         4 0 :                                             W H E R E   u . I D   I S   N U L L   O R   x . I D   I S   N O T   N U L L ' ; 
 
         4 1 :                   } 
 
 
 
     L i n e   8 1   [ m a t c h :   L E F T   J O I N ] : 
 
         7 9 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   g ,   r 
 
         8 0 :                                                                                                                 F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n G r o u p   g 
 
   > >   8 1 :                                                                                                                 L E F T   J O I N   g . a u t h _ P e r m i s s i o n R u l e   r " ) 
 
         8 2 :                                                                                   - > g e t R e s u l t ( ) ; 
 
         8 3 :                   $ r e t   =   [ ] ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ M o d e l \ P r o v i d e s D a t a F o r M a n a g i n g P e r m i s s i o n R u l e s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 3   [ m a t c h :   F R O M   ] : 
 
         1 1 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n R u l e C a t e g o r y [ ]   $ r e s   * / 
 
         1 2 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c ,   r 
 
   > >   1 3 :                                                                                                                 F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e C a t e g o r y   c 
 
         1 4 :                                                                                                                 I N N E R   J O I N   c . a u t h _ P e r m i s s i o n R u l e   r 
 
         1 5 :                                                                                                                 O R D E R   B Y   c . D i s p l a y O r d e r ,   c . C a t e g o r y N a m e ,   r . D i s p l a y O r d e r ,   r . R u l e N a m e " ) 
 
 
 
     L i n e   3 7   [ m a t c h :   F R O M   ] : 
 
         3 5 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n R u l e [ ]   $ r e s   * / 
 
         3 6 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r 
 
   > >   3 7 :                                                                                                                 F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e   r 
 
         3 8 :                                                                                                                 W H E R E   r . a u t h _ P e r m i s s i o n R u l e C a t e g o r y   I S   N U L L 
 
         3 9 :                                                                                                                 O R D E R   B Y   r . D i s p l a y O r d e r ,   r . R u l e N a m e " ) 
 
 
 
     L i n e   5 9   [ m a t c h :   F R O M   ] : 
 
         5 7 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n R u l e [ ]   $ r e s   * / 
 
         5 8 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r 
 
   > >   5 9 :                                                                                                                 F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e   r " ) 
 
         6 0 :                           - > g e t R e s u l t ( ) ; 
 
         6 1 :                   $ r e t   =   [ ] ; 
 
 
 
     L i n e   8 1   [ m a t c h :   F R O M   ] : 
 
         7 9 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n R u l e [ ]   $ r e s   * / 
 
         8 0 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r 
 
   > >   8 1 :                                                                                                                 F R O M   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n R u l e   r 
 
         8 2 :                                                                                                                 W H E R E   r . I D   I N   ( : i d s ) " ) 
 
         8 3 :                                                                                   - > s e t P a r a m e t e r ( ' i d s ' ,   $ I D s ) 
 
 
 
     L i n e   1 0 1   [ m a t c h :   F R O M   ] : 
 
         9 9 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
         1 0 0 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
   > >   1 0 1 :                                                                                                                 F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e   r 
 
         1 0 2 :                                                                                                                 I N N E R   J O I N   r . a u t h _ U s e r   u 
 
         1 0 3 :                                                                                                                 W H E R E   u . I D   =   : u s e r I D " ) 
 
 
 
     L i n e   1 2   [ m a t c h :   S E L E C T   ] : 
 
         1 0 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
         1 1 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n R u l e C a t e g o r y [ ]   $ r e s   * / 
 
   > >   1 2 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c ,   r 
 
         1 3 :                                                                                                                 F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e C a t e g o r y   c 
 
         1 4 :                                                                                                                 I N N E R   J O I N   c . a u t h _ P e r m i s s i o n R u l e   r 
 
 
 
     L i n e   3 6   [ m a t c h :   S E L E C T   ] : 
 
         3 4 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
         3 5 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n R u l e [ ]   $ r e s   * / 
 
   > >   3 6 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r 
 
         3 7 :                                                                                                                 F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e   r 
 
         3 8 :                                                                                                                 W H E R E   r . a u t h _ P e r m i s s i o n R u l e C a t e g o r y   I S   N U L L 
 
 
 
     L i n e   5 8   [ m a t c h :   S E L E C T   ] : 
 
         5 6 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
         5 7 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n R u l e [ ]   $ r e s   * / 
 
   > >   5 8 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r 
 
         5 9 :                                                                                                                 F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e   r " ) 
 
         6 0 :                           - > g e t R e s u l t ( ) ; 
 
 
 
     L i n e   8 0   [ m a t c h :   S E L E C T   ] : 
 
         7 8 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
         7 9 :                   / * *   @ v a r   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n R u l e [ ]   $ r e s   * / 
 
   > >   8 0 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r 
 
         8 1 :                                                                                                                 F R O M   \ A p p \ M o d e l \ E n t i t i e s \ a u t h _ P e r m i s s i o n R u l e   r 
 
         8 2 :                                                                                                                 W H E R E   r . I D   I N   ( : i d s ) " ) 
 
 
 
     L i n e   1 0 0   [ m a t c h :   S E L E C T   ] : 
 
         9 8 :           { 
 
         9 9 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
   > >   1 0 0 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
         1 0 1 :                                                                                                                 F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e   r 
 
         1 0 2 :                                                                                                                 I N N E R   J O I N   r . a u t h _ U s e r   u 
 
 
 
     L i n e   1 4   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 2 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   c ,   r 
 
         1 3 :                                                                                                                 F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e C a t e g o r y   c 
 
   > >   1 4 :                                                                                                                 I N N E R   J O I N   c . a u t h _ P e r m i s s i o n R u l e   r 
 
         1 5 :                                                                                                                 O R D E R   B Y   c . D i s p l a y O r d e r ,   c . C a t e g o r y N a m e ,   r . D i s p l a y O r d e r ,   r . R u l e N a m e " ) 
 
         1 6 :                           - > g e t R e s u l t ( ) ; 
 
 
 
     L i n e   1 0 2   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 0 0 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D 
 
         1 0 1 :                                                                                                                 F R O M   \ \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e   r 
 
   > >   1 0 2 :                                                                                                                 I N N E R   J O I N   r . a u t h _ U s e r   u 
 
         1 0 3 :                                                                                                                 W H E R E   u . I D   =   : u s e r I D " ) 
 
         1 0 4 :                                                                                   - > s e t P a r a m e t e r ( ' u s e r I D ' ,   $ U s e r I D ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ M o d e l \ P r o v i d e s D a t a F o r U s e r B a t c h J o b s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 6   [ m a t c h :   F R O M   ] : 
 
         1 4 :                   r e t u r n 
 
         1 5 :                   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   j 
 
   > >   1 6 :                                                                                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r B a t c h J o b   j 
 
         1 7 :                                                                                                   W H E R E   j . J o b N a m e   =   : j o b N a m e 
 
         1 8 :                                                                                                       A N D   j . I s C o m p l e t e d   =   f a l s e 
 
 
 
     L i n e   3 5   [ m a t c h :   F R O M   ] : 
 
         3 3 :                           r e t u r n 
 
         3 4 :                           $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   j 
 
   > >   3 5 :                                                                                                           F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r B a t c h J o b   j 
 
         3 6 :                                                                                                           W H E R E   j . J o b N a m e   I N   ( : j o b N a m e s ) 
 
         3 7 :                                                                                                           A N D   j . I s P e n d i n g   =   t r u e " ) 
 
 
 
     L i n e   4 6   [ m a t c h :   F R O M   ] : 
 
         4 4 :                           r e t u r n 
 
         4 5 :                           $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   j 
 
   > >   4 6 :                                                                                                           F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r B a t c h J o b   j 
 
         4 7 :                                                                                                           W H E R E   j . I s P e n d i n g   =   t r u e " ) 
 
         4 8 :                                                                             - > g e t R e s u l t ( ) ; 
 
 
 
     L i n e   6 6   [ m a t c h :   F R O M   ] : 
 
         6 4 :                           c a s e   ' m y s q l ' : 
 
         6 5 :                                   $ s q l   =   " S E L E C T   A V G ( T I M E _ T O _ S E C ( T I M E D I F F ( C o m p l e t e d A t ,   S t a r t e d A t ) ) )   a s   A v e r g a e S e c o n d s 
 
   > >   6 6 :                                                   F R O M   a u t h _ U s e r B a t c h J o b 
 
         6 7 :                                                   W H E R E   I s C o m p l e t e d   =   1 
 
         6 8 :                                                       A N D   H a s E r r o r s   =   0 
 
 
 
     L i n e   7 3   [ m a t c h :   F R O M   ] : 
 
         7 1 :                           c a s e   ' m s s q l ' : 
 
         7 2 :                                   $ s q l   =   " S E L E C T   A V G ( D A T E D I F F ( s ,   S t a r t e d A t ,   C o m p l e t e d A t ) )   a s   A v e r g a e S e c o n d s 
 
   > >   7 3 :                                                   F R O M   a u t h _ U s e r B a t c h J o b 
 
         7 4 :                                                   W H E R E   I s C o m p l e t e d   =   1 
 
         7 5 :                                                       A N D   H a s E r r o r s   =   0 
 
 
 
     L i n e   1 5   [ m a t c h :   S E L E C T   ] : 
 
         1 3 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
         1 4 :                   r e t u r n 
 
   > >   1 5 :                   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   j 
 
         1 6 :                                                                                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r B a t c h J o b   j 
 
         1 7 :                                                                                                   W H E R E   j . J o b N a m e   =   : j o b N a m e 
 
 
 
     L i n e   3 4   [ m a t c h :   S E L E C T   ] : 
 
         3 2 :                           / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
         3 3 :                           r e t u r n 
 
   > >   3 4 :                           $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   j 
 
         3 5 :                                                                                                           F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r B a t c h J o b   j 
 
         3 6 :                                                                                                           W H E R E   j . J o b N a m e   I N   ( : j o b N a m e s ) 
 
 
 
     L i n e   4 5   [ m a t c h :   S E L E C T   ] : 
 
         4 3 :                           / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
         4 4 :                           r e t u r n 
 
   > >   4 5 :                           $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   j 
 
         4 6 :                                                                                                           F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r B a t c h J o b   j 
 
         4 7 :                                                                                                           W H E R E   j . I s P e n d i n g   =   t r u e " ) 
 
 
 
     L i n e   6 5   [ m a t c h :   S E L E C T   ] : 
 
         6 3 :                   { 
 
         6 4 :                           c a s e   ' m y s q l ' : 
 
   > >   6 5 :                                   $ s q l   =   " S E L E C T   A V G ( T I M E _ T O _ S E C ( T I M E D I F F ( C o m p l e t e d A t ,   S t a r t e d A t ) ) )   a s   A v e r g a e S e c o n d s 
 
         6 6 :                                                   F R O M   a u t h _ U s e r B a t c h J o b 
 
         6 7 :                                                   W H E R E   I s C o m p l e t e d   =   1 
 
 
 
     L i n e   7 2   [ m a t c h :   S E L E C T   ] : 
 
         7 0 :                                   b r e a k ; 
 
         7 1 :                           c a s e   ' m s s q l ' : 
 
   > >   7 2 :                                   $ s q l   =   " S E L E C T   A V G ( D A T E D I F F ( s ,   S t a r t e d A t ,   C o m p l e t e d A t ) )   a s   A v e r g a e S e c o n d s 
 
         7 3 :                                                   F R O M   a u t h _ U s e r B a t c h J o b 
 
         7 4 :                                                   W H E R E   I s C o m p l e t e d   =   1 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ M o d e l \ P r o v i d e s D a t a F o r U s e r P e r m i s s i o n s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 8   [ m a t c h :   F R O M   ] : 
 
         1 6 :                   $ r e s   = 
 
         1 7 :                           $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R u l e C o d i n g K e y 
 
   > >   1 8 :                                                                                                           F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e   r 
 
         1 9 :                                                                                                           I N N E R   J O I N   r . a u t h _ U s e r   u 
 
         2 0 :                                                                                                           W H E R E   u . I D   =   : u s e r I D " ) 
 
 
 
     L i n e   3 8   [ m a t c h :   F R O M   ] : 
 
         3 6 :                   $ r e s   = 
 
         3 7 :                           $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R u l e C o d i n g K e y 
 
   > >   3 8 :                                                                                                           F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e   r 
 
         3 9 :                                                                                                           I N N E R   J O I N   r . a u t h _ P e r m i s s i o n G r o u p   g 
 
         4 0 :                                                                                                           I N N E R   J O I N   g . a u t h _ U s e r   u 
 
 
 
     L i n e   6 1   [ m a t c h :   F R O M   ] : 
 
         5 9 :                   / * *   @ v a r   Q u e r y   $ q r y   * / 
 
         6 0 :                   $ q r y   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   u 
 
   > >   6 1 :                                                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   u 
 
         6 2 :                                                                                                                 L E F T   J O I N   u . a u t h _ P e r m i s s i o n G r o u p   p g 
 
         6 3 :                                                                                                                 L E F T   J O I N   p g . a u t h _ P e r m i s s i o n R u l e   p r g 
 
 
 
     L i n e   8 2   [ m a t c h :   F R O M   ] : 
 
         8 0 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
         8 1 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R u l e C o d i n g K e y ,   r . R u l e N a m e ,   r . R u l e D e s c ,   r c . I D   A S   C a t e g o r y I D ,   r c . C a t e g o r y N a m e 
 
   > >   8 2 :                                                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e   r 
 
         8 3 :                                                                                                                 L E F T   J O I N   r . a u t h _ P e r m i s s i o n R u l e C a t e g o r y   r c " ) 
 
         8 4 :                                                                                   - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   1 7   [ m a t c h :   S E L E C T   ] : 
 
         1 5 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
         1 6 :                   $ r e s   = 
 
   > >   1 7 :                           $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R u l e C o d i n g K e y 
 
         1 8 :                                                                                                           F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e   r 
 
         1 9 :                                                                                                           I N N E R   J O I N   r . a u t h _ U s e r   u 
 
 
 
     L i n e   3 7   [ m a t c h :   S E L E C T   ] : 
 
         3 5 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
         3 6 :                   $ r e s   = 
 
   > >   3 7 :                           $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R u l e C o d i n g K e y 
 
         3 8 :                                                                                                           F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e   r 
 
         3 9 :                                                                                                           I N N E R   J O I N   r . a u t h _ P e r m i s s i o n G r o u p   g 
 
 
 
     L i n e   6 0   [ m a t c h :   S E L E C T   ] : 
 
         5 8 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
         5 9 :                   / * *   @ v a r   Q u e r y   $ q r y   * / 
 
   > >   6 0 :                   $ q r y   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   u 
 
         6 1 :                                                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   u 
 
         6 2 :                                                                                                                 L E F T   J O I N   u . a u t h _ P e r m i s s i o n G r o u p   p g 
 
 
 
     L i n e   8 1   [ m a t c h :   S E L E C T   ] : 
 
         7 9 :           { 
 
         8 0 :                   / * *   @ n o i n s p e c t i o n   P h p U n d e f i n e d M e t h o d I n s p e c t i o n   * / 
 
   > >   8 1 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R u l e C o d i n g K e y ,   r . R u l e N a m e ,   r . R u l e D e s c ,   r c . I D   A S   C a t e g o r y I D ,   r c . C a t e g o r y N a m e 
 
         8 2 :                                                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e   r 
 
         8 3 :                                                                                                                 L E F T   J O I N   r . a u t h _ P e r m i s s i o n R u l e C a t e g o r y   r c " ) 
 
 
 
     L i n e   1 9   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 7 :                           $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R u l e C o d i n g K e y 
 
         1 8 :                                                                                                           F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e   r 
 
   > >   1 9 :                                                                                                           I N N E R   J O I N   r . a u t h _ U s e r   u 
 
         2 0 :                                                                                                           W H E R E   u . I D   =   : u s e r I D " ) 
 
         2 1 :                                                                             - > s e t P a r a m e t e r ( ' u s e r I D ' ,   $ u s e r I D ) 
 
 
 
     L i n e   3 9   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 7 :                           $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . R u l e C o d i n g K e y 
 
         3 8 :                                                                                                           F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e   r 
 
   > >   3 9 :                                                                                                           I N N E R   J O I N   r . a u t h _ P e r m i s s i o n G r o u p   g 
 
         4 0 :                                                                                                           I N N E R   J O I N   g . a u t h _ U s e r   u 
 
         4 1 :                                                                                                           W H E R E   u . I D   =   : u s e r I D " ) 
 
 
 
     L i n e   4 0   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 8 :                                                                                                           F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e   r 
 
         3 9 :                                                                                                           I N N E R   J O I N   r . a u t h _ P e r m i s s i o n G r o u p   g 
 
   > >   4 0 :                                                                                                           I N N E R   J O I N   g . a u t h _ U s e r   u 
 
         4 1 :                                                                                                           W H E R E   u . I D   =   : u s e r I D " ) 
 
         4 2 :                                                                             - > s e t P a r a m e t e r ( ' u s e r I D ' ,   $ u s e r I D ) 
 
 
 
     L i n e   6 2   [ m a t c h :   L E F T   J O I N ] : 
 
         6 0 :                   $ q r y   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   u 
 
         6 1 :                                                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   u 
 
   > >   6 2 :                                                                                                                 L E F T   J O I N   u . a u t h _ P e r m i s s i o n G r o u p   p g 
 
         6 3 :                                                                                                                 L E F T   J O I N   p g . a u t h _ P e r m i s s i o n R u l e   p r g 
 
         6 4 :                                                                                                                 L E F T   J O I N   u . a u t h _ P e r m i s s i o n R u l e   p r u 
 
 
 
     L i n e   6 3   [ m a t c h :   L E F T   J O I N ] : 
 
         6 1 :                                                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   u 
 
         6 2 :                                                                                                                 L E F T   J O I N   u . a u t h _ P e r m i s s i o n G r o u p   p g 
 
   > >   6 3 :                                                                                                                 L E F T   J O I N   p g . a u t h _ P e r m i s s i o n R u l e   p r g 
 
         6 4 :                                                                                                                 L E F T   J O I N   u . a u t h _ P e r m i s s i o n R u l e   p r u 
 
         6 5 :                                                                                                                 W H E R E   ( p r g . R u l e C o d i n g K e y   =   : k e y 
 
 
 
     L i n e   6 4   [ m a t c h :   L E F T   J O I N ] : 
 
         6 2 :                                                                                                                 L E F T   J O I N   u . a u t h _ P e r m i s s i o n G r o u p   p g 
 
         6 3 :                                                                                                                 L E F T   J O I N   p g . a u t h _ P e r m i s s i o n R u l e   p r g 
 
   > >   6 4 :                                                                                                                 L E F T   J O I N   u . a u t h _ P e r m i s s i o n R u l e   p r u 
 
         6 5 :                                                                                                                 W H E R E   ( p r g . R u l e C o d i n g K e y   =   : k e y 
 
         6 6 :                                                                                                                       O R   p r u . R u l e C o d i n g K e y   =   : k e y ) " 
 
 
 
     L i n e   8 3   [ m a t c h :   L E F T   J O I N ] : 
 
         8 1 :                   $ r e s   =   $ t h i s - > g e t E n t i t y M a n a g e r ( ) - > c r e a t e Q u e r y ( " S E L E C T   r . I D ,   r . R u l e C o d i n g K e y ,   r . R u l e N a m e ,   r . R u l e D e s c ,   r c . I D   A S   C a t e g o r y I D ,   r c . C a t e g o r y N a m e 
 
         8 2 :                                                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ P e r m i s s i o n R u l e   r 
 
   > >   8 3 :                                                                                                                 L E F T   J O I N   r . a u t h _ P e r m i s s i o n R u l e C a t e g o r y   r c " ) 
 
         8 4 :                                                                                   - > g e t A r r a y R e s u l t ( ) ; 
 
         8 5 :                   $ r e t   =   [ ] ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ N o t i f i c a t i o n s \ R e s e t P a s s w o r d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 5   [ m a t c h :   F R O M   ] : 
 
         2 3 :   
 
         2 4 :           / * * 
 
   > >   2 5 :             *   T h e   o p t i o n a l   o v e r r i d e   f r o m   a d d r e s s   f o r   t h i s   e m a i l 
 
         2 6 :             * 
 
         2 7 :             *   @ v a r   s t r i n g | n u l l 
 
 
 
     L i n e   3 2   [ m a t c h :   F R O M   ] : 
 
         3 0 :   
 
         3 1 :           / * * 
 
   > >   3 2 :             *   T h e   o p t i o n a l   o v e r r i d e   f r o m   a d d r e s s   n a m e   f o r   t h i s   e m a i l 
 
         3 3 :             * 
 
         3 4 :             *   @ v a r   s t r i n g | n u l l 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ N o t i f i c a t i o n s \ V e r i f y R e g i s t e r e d A c c o u n t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 2   [ m a t c h :   F R O M   ] : 
 
         3 0 :   
 
         3 1 :           / * * 
 
   > >   3 2 :             *   T h e   o p t i o n a l   o v e r r i d e   f r o m   a d d r e s s   f o r   t h i s   e m a i l 
 
         3 3 :             * 
 
         3 4 :             *   @ v a r   s t r i n g | n u l l 
 
 
 
     L i n e   3 9   [ m a t c h :   F R O M   ] : 
 
         3 7 :   
 
         3 8 :           / * * 
 
   > >   3 9 :             *   T h e   o p t i o n a l   o v e r r i d e   f r o m   a d d r e s s   n a m e   f o r   t h i s   e m a i l 
 
         4 0 :             * 
 
         4 1 :             *   @ v a r   s t r i n g | n u l l 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ S e r v i c e s \ O A u t h B r i d g e \ C l i e n t R e p o s i t o r y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 5   [ m a t c h :   F R O M   ] : 
 
         3 3 :                   / /   F i r s t ,   w e   w i l l   v e r i f y   t h a t   t h e   c l i e n t   e x i s t s   a n d   i s   a u t h o r i z e d   t o   c r e a t e   p e r s o n a l 
 
         3 4 :                   / /   a c c e s s   t o k e n s .   G e n e r a l l y   p e r s o n a l   a c c e s s   t o k e n s   a r e   o n l y   g e n e r a t e d   b y   t h e   u s e r 
 
   > >   3 5 :                   / /   f r o m   t h e   m a i n   i n t e r f a c e .   W e ' l l   o n l y   l e t   c e r t a i n   c l i e n t s   g e n e r a t e   t h e   t o k e n s . 
 
         3 6 :                   $ r e c o r d   =   $ t h i s - > c l i e n t s - > f i n d A c t i v e ( $ c l i e n t I d e n t i f i e r ) ; 
 
         3 7 :   
 
 
 
     L i n e   6 1   [ m a t c h :   F R O M   ] : 
 
         5 9 :                   / /   F i r s t ,   w e   w i l l   v e r i f y   t h a t   t h e   c l i e n t   e x i s t s   a n d   i s   a u t h o r i z e d   t o   c r e a t e   p e r s o n a l 
 
         6 0 :                   / /   a c c e s s   t o k e n s .   G e n e r a l l y   p e r s o n a l   a c c e s s   t o k e n s   a r e   o n l y   g e n e r a t e d   b y   t h e   u s e r 
 
   > >   6 1 :                   / /   f r o m   t h e   m a i n   i n t e r f a c e .   W e ' l l   o n l y   l e t   c e r t a i n   c l i e n t s   g e n e r a t e   t h e   t o k e n s . 
 
         6 2 :                   $ r e c o r d   =   $ t h i s - > c l i e n t s - > f i n d A c t i v e ( $ c l i e n t I d e n t i f i e r ) ; 
 
         6 3 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ S e r v i c e s \ O A u t h B r i d g e \ U s e r R e p o s i t o r y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 1   [ m a t c h :   F R O M   ] : 
 
         2 9 :           { 
 
         3 0 :                   i f   ( i s _ n u l l ( $ m o d e l   =   c o n f i g ( ' a u t h . p r o v i d e r s . ' . c o n f i g ( ' a u t h . g u a r d s . a p i . p r o v i d e r ' ) . ' . m o d e l ' ) ) ) 
 
   > >   3 1 :                           t h r o w   n e w   R u n t i m e E x c e p t i o n ( ' U n a b l e   t o   d e t e r m i n e   a u t h e n t i c a t i o n   m o d e l   f r o m   c o n f i g u r a t i o n . ' ) ; 
 
         3 2 :   
 
         3 3 :                   $ p r o v i d e r   =   A u t h : : c r e a t e U s e r P r o v i d e r ( c o n f i g ( ' a u t h . g u a r d s . a p i . p r o v i d e r ' ) ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ S e r v i c e s \ S S O \ O A u t h P r o v i d e r A g e n t . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 8 5   [ m a t c h :   F R O M   ] : 
 
         3 8 3 :                   { 
 
         3 8 4 :                           i f ( ! a r r a y _ k e y _ e x i s t s ( ' i d _ t o k e n ' ,   $ A g e n t D a t a [ ' a c c e s s _ t o k e n ' ] - > g e t V a l u e s ( ) ) ) 
 
   > >   3 8 5 :                                   t h r o w   n e w   E x c e p t i o n ( ' E x p e c t e d   u s e r   i n f o r m a t i o n   f r o m   I D P   t o k e n   I D   n o t   s u p p l i e d ' ) ; 
 
         3 8 6 :   
 
         3 8 7 :                           t r y   { 
 
 
 
     L i n e   3 9 4   [ m a t c h :   F R O M   ] : 
 
         3 9 2 :                                   $ T o k e n I D U s e r I n f o   =   $ T o k e n I D C l a i m s - > a l l ( ) ; 
 
         3 9 3 :                           }   c a t c h ( E x c e p t i o n )   { 
 
   > >   3 9 4 :                                   t h r o w   n e w   E x c e p t i o n ( ' U s e r   i n f o r m a t i o n   f r o m   I D P   t o k e n   I D   c o u l d   n o t   b e   i n t e r p r e t e d ' ) ; 
 
         3 9 5 :                           } 
 
         3 9 6 :                   } 
 
 
 
     L i n e   1 2 9   [ m a t c h :   U P D A T E   ] : 
 
         1 2 7 :                   { 
 
         1 2 8 :                           i f ( $ D e b u g L o g g i n g ) 
 
   > >   1 2 9 :                                   L o g : : d e b u g ( ' S S O   A c c e s s   V e r i f i c a t i o n :   U s e r   v e r i f i e d ;   u s e r   d a t a   u p d a t e   n o t   e n a b l e d ' ) ; 
 
         1 3 0 :                           r e t u r n   n e w   R e t u r n V a l u e ( t r u e ) ; 
 
         1 3 1 :                   } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ S e r v i c e s \ A c c e s s T o k e n R e p o s i t o r y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9 1   [ m a t c h :   F R O M   ] : 
 
         8 9 :                   / * *   @ v a r   a u t h _ O A u t h A c c e s s T o k e n | n u l l   $ t o k e n   * / 
 
         9 0 :                   $ t o k e n   =   $ t h i s - > c o n n - > c r e a t e Q u e r y ( " S E L E C T   t 
 
   > >   9 1 :                                                                                         F R O M   " . a u t h _ O A u t h A c c e s s T o k e n : : c l a s s . "   t 
 
         9 2 :                                                                                         I N N E R   J O I N   t . a u t h _ O A u t h C l i e n t   c 
 
         9 3 :                                                                                         I N N E R   J O I N   t . a u t h _ U s e r   u 
 
 
 
     L i n e   9 0   [ m a t c h :   S E L E C T   ] : 
 
         8 8 :           { 
 
         8 9 :                   / * *   @ v a r   a u t h _ O A u t h A c c e s s T o k e n | n u l l   $ t o k e n   * / 
 
   > >   9 0 :                   $ t o k e n   =   $ t h i s - > c o n n - > c r e a t e Q u e r y ( " S E L E C T   t 
 
         9 1 :                                                                                         F R O M   " . a u t h _ O A u t h A c c e s s T o k e n : : c l a s s . "   t 
 
         9 2 :                                                                                         I N N E R   J O I N   t . a u t h _ O A u t h C l i e n t   c 
 
 
 
     L i n e   9 2   [ m a t c h :   I N N E R   J O I N ] : 
 
         9 0 :                   $ t o k e n   =   $ t h i s - > c o n n - > c r e a t e Q u e r y ( " S E L E C T   t 
 
         9 1 :                                                                                         F R O M   " . a u t h _ O A u t h A c c e s s T o k e n : : c l a s s . "   t 
 
   > >   9 2 :                                                                                         I N N E R   J O I N   t . a u t h _ O A u t h C l i e n t   c 
 
         9 3 :                                                                                         I N N E R   J O I N   t . a u t h _ U s e r   u 
 
         9 4 :                                                                                         W H E R E   u . I D   =   : u s e r I D 
 
 
 
     L i n e   9 3   [ m a t c h :   I N N E R   J O I N ] : 
 
         9 1 :                                                                                         F R O M   " . a u t h _ O A u t h A c c e s s T o k e n : : c l a s s . "   t 
 
         9 2 :                                                                                         I N N E R   J O I N   t . a u t h _ O A u t h C l i e n t   c 
 
   > >   9 3 :                                                                                         I N N E R   J O I N   t . a u t h _ U s e r   u 
 
         9 4 :                                                                                         W H E R E   u . I D   =   : u s e r I D 
 
         9 5 :                                                                                             A N D   c . I D   =   : c l i e n t I D 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ S e r v i c e s \ C l i e n t R e p o s i t o r y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 5 4   [ m a t c h :   U P D A T E   ] : 
 
         1 5 2 :   
 
         1 5 3 :           / * * 
 
   > >   1 5 4 :             *   U p d a t e   t h e   g i v e n   c l i e n t . 
 
         1 5 5 :             * 
 
         1 5 6 :             *   @ p a r a m     a u t h _ O A u t h C l i e n t     $ c l i e n t 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ S e r v i c e s \ L d a p C o n n e c t o r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 1   [ m a t c h :   - > s e l e c t ( ] : 
 
         4 9 :                   $ q u e r y   =   $ t h i s - > l d a p M a n a g e r - > b u i l d L d a p Q u e r y ( ) ; 
 
         5 0 :                   i f ( ! i s _ n u l l ( $ s e l e c t ) ) 
 
   > >   5 1 :                           $ q u e r y - > s e l e c t ( $ s e l e c t ) ; 
 
         5 2 :                   r e t u r n   $ q u e r y 
 
         5 3 :                           - > f r o m U s e r s ( ) 
 
 
 
     L i n e   6 9   [ m a t c h :   - > s e l e c t ( ] : 
 
         6 7 :                   $ q u e r y   =   $ t h i s - > l d a p M a n a g e r - > b u i l d L d a p Q u e r y ( ) ; 
 
         6 8 :                   i f ( ! i s _ n u l l ( $ s e l e c t ) ) 
 
   > >   6 9 :                           $ q u e r y - > s e l e c t ( $ s e l e c t ) ; 
 
         7 0 :                   r e t u r n   $ q u e r y 
 
         7 1 :                           - > f r o m U s e r s ( ) 
 
 
 
     L i n e   8 7   [ m a t c h :   - > s e l e c t ( ] : 
 
         8 5 :                   $ q u e r y   =   $ t h i s - > l d a p M a n a g e r - > b u i l d L d a p Q u e r y ( ) ; 
 
         8 6 :                   i f ( ! i s _ n u l l ( $ s e l e c t ) ) 
 
   > >   8 7 :                           $ q u e r y - > s e l e c t ( $ s e l e c t ) ; 
 
         8 8 :                   r e t u r n   $ q u e r y 
 
         8 9 :                           - > f r o m U s e r s ( ) 
 
 
 
     L i n e   4 7   [ m a t c h :   S E L E C T   ] : 
 
         4 5 :             *   @ t h r o w s   \ L d a p T o o l s \ E x c e p t i o n \ M u l t i R e s u l t E x c e p t i o n 
 
         4 6 :             * / 
 
   > >   4 7 :           p u b l i c   f u n c t i o n   g e t S i n g l e A c c o u n t W i t h E m a i l ( $ e m a i l ,   $ s e l e c t   =   n u l l ) 
 
         4 8 :           { 
 
         4 9 :                   $ q u e r y   =   $ t h i s - > l d a p M a n a g e r - > b u i l d L d a p Q u e r y ( ) ; 
 
 
 
     L i n e   6 5   [ m a t c h :   S E L E C T   ] : 
 
         6 3 :             *   @ t h r o w s   \ L d a p T o o l s \ E x c e p t i o n \ M u l t i R e s u l t E x c e p t i o n 
 
         6 4 :             * / 
 
   > >   6 5 :           p u b l i c   f u n c t i o n   g e t S i n g l e A c c o u n t W i t h G u i d ( $ g u i d ,   $ s e l e c t   =   n u l l ) 
 
         6 6 :           { 
 
         6 7 :                   $ q u e r y   =   $ t h i s - > l d a p M a n a g e r - > b u i l d L d a p Q u e r y ( ) ; 
 
 
 
     L i n e   8 3   [ m a t c h :   S E L E C T   ] : 
 
         8 1 :             *   @ t h r o w s   \ L d a p T o o l s \ E x c e p t i o n \ M u l t i R e s u l t E x c e p t i o n 
 
         8 2 :             * / 
 
   > >   8 3 :           p u b l i c   f u n c t i o n   g e t S i n g l e A c c o u n t W i t h U s e r n a m e ( $ u s e r n a m e ,   $ s e l e c t   =   n u l l ) 
 
         8 4 :           { 
 
         8 5 :                   $ q u e r y   =   $ t h i s - > l d a p M a n a g e r - > b u i l d L d a p Q u e r y ( ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ S e r v i c e s \ R e f r e s h T o k e n R e p o s i t o r y . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   8 3   [ m a t c h :   F R O M   ] : 
 
         8 1 :                   / * *   @ v a r   a u t h _ O A u t h R e f r e s h T o k e n | n u l l   $ r e f r e s h T o k e n   * / 
 
         8 2 :                   $ r e f r e s h T o k e n   =   $ t h i s - > c o n n - > c r e a t e Q u e r y ( " S E L E C T   r e f r e s h T o k e n 
 
   > >   8 3 :                                                                                                       F R O M   " . a u t h _ O A u t h R e f r e s h T o k e n : : c l a s s . "   r e f r e s h T o k e n 
 
         8 4 :                                                                                                       I N N E R   J O I N   r e f r e s h T o k e n . a u t h _ O A u t h A c c e s s T o k e n   a c c e s s T o k e n 
 
         8 5 :                                                                                                       W H E R E   a c c e s s T o k e n . A c c e s s T o k e n   =   : a c c e s s T o k e n " ) 
 
 
 
     L i n e   8 2   [ m a t c h :   S E L E C T   ] : 
 
         8 0 :           { 
 
         8 1 :                   / * *   @ v a r   a u t h _ O A u t h R e f r e s h T o k e n | n u l l   $ r e f r e s h T o k e n   * / 
 
   > >   8 2 :                   $ r e f r e s h T o k e n   =   $ t h i s - > c o n n - > c r e a t e Q u e r y ( " S E L E C T   r e f r e s h T o k e n 
 
         8 3 :                                                                                                       F R O M   " . a u t h _ O A u t h R e f r e s h T o k e n : : c l a s s . "   r e f r e s h T o k e n 
 
         8 4 :                                                                                                       I N N E R   J O I N   r e f r e s h T o k e n . a u t h _ O A u t h A c c e s s T o k e n   a c c e s s T o k e n 
 
 
 
     L i n e   8 4   [ m a t c h :   I N N E R   J O I N ] : 
 
         8 2 :                   $ r e f r e s h T o k e n   =   $ t h i s - > c o n n - > c r e a t e Q u e r y ( " S E L E C T   r e f r e s h T o k e n 
 
         8 3 :                                                                                                       F R O M   " . a u t h _ O A u t h R e f r e s h T o k e n : : c l a s s . "   r e f r e s h T o k e n 
 
   > >   8 4 :                                                                                                       I N N E R   J O I N   r e f r e s h T o k e n . a u t h _ O A u t h A c c e s s T o k e n   a c c e s s T o k e n 
 
         8 5 :                                                                                                       W H E R E   a c c e s s T o k e n . A c c e s s T o k e n   =   : a c c e s s T o k e n " ) 
 
         8 6 :                                                                           - > s e t P a r a m e t e r ( ' a c c e s s T o k e n ' ,   $ t o k e n I d ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ S e r v i c e s \ R e t r i e v e s A n d V a l i d a t e s U s e r F o r G u a r d s . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 8   [ m a t c h :   F R O M   ] : 
 
         3 6 :                                                           i f ( $ L d a p U s e r B y G u i d - > h a s ( c o n f i g ( ' l a u t h . l d a p . e m a i l _ a t t r i b u t e ' ) )   & &   s t r l e n ( $ L d a p U s e r B y G u i d - > g e t ( c o n f i g ( ' l a u t h . l d a p . e m a i l _ a t t r i b u t e ' ) ) ) )   / /   E m a i l   i s   s e t   o n   l d a p   u s e r 
 
         3 7 :                                                           { 
 
   > >   3 8 :                                                                   i f ( s t r t o l o w e r ( $ L d a p U s e r B y G u i d - > g e t ( c o n f i g ( ' l a u t h . l d a p . e m a i l _ a t t r i b u t e ' ) ) )   = = =   s t r t o l o w e r ( $ u s e r - > g e t U s e r E m a i l ( ) ) )   / /   E m a i l   f r o m   l d a p   u s e r   m a t c h e d   e m a i l   o n   c o r r e s p o n d i n g   a u t h _ U s e r   r e c o r d 
 
         3 9 :                                                                   { 
 
         4 0 :                                                                           i f ( $ L d a p U s e r B y G u i d - > h a s ( ' e n a b l e d ' ) ) 
 
 
 
     L i n e   5 2   [ m a t c h :   F R O M   ] : 
 
         5 0 :                                                                           } 
 
         5 1 :                                                                   } 
 
   > >   5 2 :                                                                   e l s e   / /   E m a i l   f r o m   l d a p   u s e r   i s   d i f f e r e n t   t h a n   a u t h _ U s e r   r e c o r d 
 
         5 3 :                                                                   { 
 
         5 4 :                                                                           t h r o w   ( n e w   L d a p A u t h e n t i c a t i o n E x c e p t i o n ( L d a p A u t h e n t i c a t i o n E x c e p t i o n : : L D A P _ E R R O R _ R E A S O N _ E M A I L _ M I S M A T C H _ O N _ M A T C H I N G _ G U I D ) ) - > s e t D e t a i l s ( ' G U I D :   ' . $ u s e r - > g e t L D A P G u i d ( ) . '   L D A P :   ' . $ L d a p U s e r B y G u i d - > g e t ( c o n f i g ( ' l a u t h . l d a p . e m a i l _ a t t r i b u t e ' ) ) . '   U S E R :   ' . $ u s e r - > g e t U s e r E m a i l ( ) ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ S e r v i c e s \ S S O D a t a P r o v i d e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 4   [ m a t c h :   - > s e l e c t ( ] : 
 
         3 2 :                   $ q b   =   $ t h i s - > e m - > c r e a t e Q u e r y B u i l d e r ( ) ; 
 
         3 3 :   
 
   > >   3 4 :                   $ c o u n t   =   $ q b - > s e l e c t ( $ q b - > e x p r ( ) - > c o u n t ( ' a u t h _ S S O P r o v i d e r . I D ' ) ) 
 
         3 5 :                           - > f r o m ( a u t h _ S S O P r o v i d e r : : c l a s s ,   ' a u t h _ S S O P r o v i d e r ' ) 
 
         3 6 :                           - > g e t Q u e r y ( ) 
 
 
 
     L i n e   2 6 7   [ m a t c h :   - > s e l e c t ( ] : 
 
         2 6 5 :           { 
 
         2 6 6 :                   r e t u r n   $ t h i s - > e m - > c r e a t e Q u e r y B u i l d e r ( ) 
 
   > >   2 6 7 :                           - > s e l e c t ( ' a u t h _ S S O F i e l d V a l u e H a n d l e r ' ) 
 
         2 6 8 :                           - > f r o m ( a u t h _ S S O F i e l d V a l u e H a n d l e r : : c l a s s ,   ' a u t h _ S S O F i e l d V a l u e H a n d l e r ' ) 
 
         2 6 9 :                           - > i n n e r J o i n ( ' a u t h _ S S O F i e l d V a l u e H a n d l e r . a u t h _ S S O P r o v i d e r ' ,   ' a u t h _ S S O P r o v i d e r ' ) 
 
 
 
     L i n e   2 8 8   [ m a t c h :   - > s e l e c t ( ] : 
 
         2 8 6 :   
 
         2 8 7 :                   r e t u r n   $ E M - > c r e a t e Q u e r y B u i l d e r ( ) 
 
   > >   2 8 8 :                           - > s e l e c t ( ' 
 
         2 8 9 :                                   a u t h _ U s e r S S O F i e l d V a l u e , 
 
         2 9 0 :                                   a u t h _ S S O F i e l d 
 
 
 
     L i n e   3 1 2   [ m a t c h :   - > s e l e c t ( ] : 
 
         3 1 0 :   
 
         3 1 1 :                   $ r e s   =   $ E M - > c r e a t e Q u e r y B u i l d e r ( ) 
 
   > >   3 1 2 :                           - > s e l e c t ( ' 
 
         3 1 3 :                                   a u t h _ U s e r S S O F i e l d V a l u e , 
 
         3 1 4 :                                   a u t h _ S S O F i e l d 
 
 
 
     L i n e   4 5   [ m a t c h :   F R O M   ] : 
 
         4 3 :           { 
 
         4 4 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( a u t h U s e r . I D ) 
 
   > >   4 5 :                                                                                 F R O M   " . a u t h _ U s e r : : c l a s s . "   a u t h U s e r 
 
         4 6 :                                                                                 I N N E R   J O I N   a u t h U s e r . a u t h _ S S O P r o v i d e r   s s o P r o v i d e r   W I T H   s s o P r o v i d e r . I D   =   : S S O P r o v i d e r I D 
 
         4 7 :                                                                                 L E F T   J O I N   a u t h U s e r . a u t h _ D o m a i n   a u t h D o m a i n 
 
 
 
     L i n e   6 7   [ m a t c h :   F R O M   ] : 
 
         6 5 :   
 
         6 6 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   s s o P r o v i d e r . I D 
 
   > >   6 7 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O P r o v i d e r   s s o P r o v i d e r 
 
         6 8 :                                                                                 W H E R E   s s o P r o v i d e r . P r o v i d e r U R L S e l e c t o r   =   : s e l e c t o r " ) 
 
         6 9 :                                                   - > s e t P a r a m e t e r ( ' s e l e c t o r ' ,   $ U R L S e l e c t o r ) 
 
 
 
     L i n e   8 6   [ m a t c h :   F R O M   ] : 
 
         8 4 :   
 
         8 5 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   s s o P r o v i d e r ,   s s o P r o v i d e r T y p e ,   s s o P r o v i d e r U s e r T y p e ,   s s o P r o v i d e r S A M L ,   s s o P r o v i d e r O A u t h ,   s s o P r o v i d e r O A u t h S c o p e ,   s s o P r o v i d e r O A u t h C l a i m ,   s s o P r o v i d e r O A u t h L o g o u t P a r a m e t e r ,   a u t h _ S S O P r o v i d e r O A u t h A p p r o v a l P r o m p t P a r a m e t e r V a l u e 
 
   > >   8 6 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O P r o v i d e r   s s o P r o v i d e r 
 
         8 7 :                                                                                 I N N E R   J O I N   s s o P r o v i d e r . a u t h _ S S O P r o v i d e r T y p e   s s o P r o v i d e r T y p e 
 
         8 8 :                                                                                 I N N E R   J O I N   s s o P r o v i d e r . a u t h _ U s e r T y p e   s s o P r o v i d e r U s e r T y p e 
 
 
 
     L i n e   1 1 3   [ m a t c h :   F R O M   ] : 
 
         1 1 1 :   
 
         1 1 2 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   s s o F i e l d M a p p i n g . P r o v i d e r F i e l d N a m e ,   s s o F i e l d . C o d i n g K e y 
 
   > >   1 1 3 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O F i e l d M a p p i n g   s s o F i e l d M a p p i n g 
 
         1 1 4 :                                                                                 I N N E R   J O I N   s s o F i e l d M a p p i n g . a u t h _ S S O P r o v i d e r   s s o P r o v i d e r 
 
         1 1 5 :                                                                                 I N N E R   J O I N   s s o F i e l d M a p p i n g . a u t h _ S S O F i e l d   s s o F i e l d 
 
 
 
     L i n e   1 3 5   [ m a t c h :   F R O M   ] : 
 
         1 3 3 :   
 
         1 3 4 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   s s o F i e l d . C o d i n g K e y ,   s s o F i e l d . I s S e r i a l i z e d D a t a T y p e 
 
   > >   1 3 5 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O F i e l d M a p p i n g   s s o F i e l d M a p p i n g 
 
         1 3 6 :                                                                                 I N N E R   J O I N   s s o F i e l d M a p p i n g . a u t h _ S S O P r o v i d e r   s s o P r o v i d e r 
 
         1 3 7 :                                                                                 I N N E R   J O I N   s s o F i e l d M a p p i n g . a u t h _ S S O F i e l d   s s o F i e l d 
 
 
 
     L i n e   1 6 1   [ m a t c h :   F R O M   ] : 
 
         1 5 9 :   
 
         1 6 0 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   a u t h U s e r . I D 
 
   > >   1 6 1 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   a u t h U s e r 
 
         1 6 2 :                                                                                 I N N E R   J O I N   a u t h U s e r . a u t h _ S S O P r o v i d e r   s s o P r o v i d e r 
 
         1 6 3 :                                                                                 L E F T   J O I N   a u t h U s e r . a u t h _ D o m a i n   a u t h D o m a i n 
 
 
 
     L i n e   1 8 6   [ m a t c h :   F R O M   ] : 
 
         1 8 4 :   
 
         1 8 5 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   u s e r S S O F i e l d V a l u e . C u r r e n t F i e l d V a l u e ,   s s o F i e l d . C o d i n g K e y 
 
   > >   1 8 6 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   a u t h U s e r 
 
         1 8 7 :                                                                                 I N N E R   J O I N   a u t h U s e r . a u t h _ U s e r S S O F i e l d V a l u e   u s e r S S O F i e l d V a l u e 
 
         1 8 8 :                                                                                 I N N E R   J O I N   u s e r S S O F i e l d V a l u e . a u t h _ S S O F i e l d   s s o F i e l d 
 
 
 
     L i n e   2 0 8   [ m a t c h :   F R O M   ] : 
 
         2 0 6 :   
 
         2 0 7 :                   $ r e s   =   $ E M - > c r e a t e Q u e r y ( " S E L E C T   s s o F i e l d 
 
   > >   2 0 8 :                                                                     F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O F i e l d   s s o F i e l d 
 
         2 0 9 :                                                                     W H E R E   s s o F i e l d . C o d i n g K e y   I N   ( : k e y s ) " ) 
 
         2 1 0 :                                       - > s e t P a r a m e t e r ( ' k e y s ' ,   $ F i e l d K e y s ) 
 
 
 
     L i n e   2 3 0   [ m a t c h :   F R O M   ] : 
 
         2 2 8 :   
 
         2 2 9 :                   $ r e s   =   $ E M - > c r e a t e Q u e r y ( " S E L E C T   u s e r S S O F i e l d V a l u e ,   s s o F i e l d 
 
   > >   2 3 0 :                                                                     F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r S S O F i e l d V a l u e   u s e r S S O F i e l d V a l u e 
 
         2 3 1 :                                                                     I N N E R   J O I N   u s e r S S O F i e l d V a l u e . a u t h _ U s e r   a u t h U s e r 
 
         2 3 2 :                                                                     I N N E R   J O I N   u s e r S S O F i e l d V a l u e . a u t h _ S S O F i e l d   s s o F i e l d 
 
 
 
     L i n e   2 5 2   [ m a t c h :   F R O M   ] : 
 
         2 5 0 :           { 
 
         2 5 1 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   p r o v i d e r . P r o v i d e r N a m e ,   p r o v i d e r . P r o v i d e r U R L S e l e c t o r 
 
   > >   2 5 2 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O P r o v i d e r   p r o v i d e r 
 
         2 5 3 :                                                                                 W H E R E   p r o v i d e r . I D   =   : i d " ) 
 
         2 5 4 :                                                   - > s e t P a r a m e t e r ( ' i d ' ,   $ P r o v i d e r I D ) 
 
 
 
     L i n e   3 3 5   [ m a t c h :   F R O M   ] : 
 
         3 3 3 :           { 
 
         3 3 4 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( p r o v i d e r ) 
 
   > >   3 3 5 :                                                                                 F R O M   \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O P r o v i d e r   p r o v i d e r 
 
         3 3 6 :                                                                                 W H E R E   p r o v i d e r . I D   =   : i d 
 
         3 3 7 :                                                                                     A N D   p r o v i d e r . I s A c t i v e   =   t r u e " ) 
 
 
 
     L i n e   3 5 0   [ m a t c h :   F R O M   ] : 
 
         3 4 8 :           { 
 
         3 4 9 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   a u t h D o m a i n . I D 
 
   > >   3 5 0 :                                                                                 F R O M   " . a u t h _ D o m a i n : : c l a s s . "   a u t h D o m a i n 
 
         3 5 1 :                                                                                 W H E R E   a u t h D o m a i n . D o m a i n N a m e   =   : d o m a i n N a m e " ) 
 
         3 5 2 :                                                   - > s e t P a r a m e t e r ( ' d o m a i n N a m e ' ,   $ F o r D o m a i n ) 
 
 
 
     L i n e   4 4   [ m a t c h :   S E L E C T   ] : 
 
         4 2 :           p u b l i c   f u n c t i o n   e m a i l I s I n U s e F o r S S O P r o v i d e r ( $ s s o P r o v i d e r I D ,   $ e m a i l ,   $ F o r D o m a i n ) 
 
         4 3 :           { 
 
   > >   4 4 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( a u t h U s e r . I D ) 
 
         4 5 :                                                                                 F R O M   " . a u t h _ U s e r : : c l a s s . "   a u t h U s e r 
 
         4 6 :                                                                                 I N N E R   J O I N   a u t h U s e r . a u t h _ S S O P r o v i d e r   s s o P r o v i d e r   W I T H   s s o P r o v i d e r . I D   =   : S S O P r o v i d e r I D 
 
 
 
     L i n e   6 6   [ m a t c h :   S E L E C T   ] : 
 
         6 4 :                           r e t u r n   $ t h i s - > p r o v i d e r I D s B y S e l e c t o r [ $ U R L S e l e c t o r ] ; 
 
         6 5 :   
 
   > >   6 6 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   s s o P r o v i d e r . I D 
 
         6 7 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O P r o v i d e r   s s o P r o v i d e r 
 
         6 8 :                                                                                 W H E R E   s s o P r o v i d e r . P r o v i d e r U R L S e l e c t o r   =   : s e l e c t o r " ) 
 
 
 
     L i n e   8 5   [ m a t c h :   S E L E C T   ] : 
 
         8 3 :                           r e t u r n   $ t h i s - > p r o v i d e r I n f o B y I D [ $ P r o v i d e r I D ] ; 
 
         8 4 :   
 
   > >   8 5 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   s s o P r o v i d e r ,   s s o P r o v i d e r T y p e ,   s s o P r o v i d e r U s e r T y p e ,   s s o P r o v i d e r S A M L ,   s s o P r o v i d e r O A u t h ,   s s o P r o v i d e r O A u t h S c o p e ,   s s o P r o v i d e r O A u t h C l a i m ,   s s o P r o v i d e r O A u t h L o g o u t P a r a m e t e r ,   a u t h _ S S O P r o v i d e r O A u t h A p p r o v a l P r o m p t P a r a m e t e r V a l u e 
 
         8 6 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O P r o v i d e r   s s o P r o v i d e r 
 
         8 7 :                                                                                 I N N E R   J O I N   s s o P r o v i d e r . a u t h _ S S O P r o v i d e r T y p e   s s o P r o v i d e r T y p e 
 
 
 
     L i n e   1 1 2   [ m a t c h :   S E L E C T   ] : 
 
         1 1 0 :                           r e t u r n   $ t h i s - > p r o v i d e r F i e l d M a p p i n g B y I D [ $ P r o v i d e r I D ] ; 
 
         1 1 1 :   
 
   > >   1 1 2 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   s s o F i e l d M a p p i n g . P r o v i d e r F i e l d N a m e ,   s s o F i e l d . C o d i n g K e y 
 
         1 1 3 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O F i e l d M a p p i n g   s s o F i e l d M a p p i n g 
 
         1 1 4 :                                                                                 I N N E R   J O I N   s s o F i e l d M a p p i n g . a u t h _ S S O P r o v i d e r   s s o P r o v i d e r 
 
 
 
     L i n e   1 3 4   [ m a t c h :   S E L E C T   ] : 
 
         1 3 2 :                           r e t u r n   $ t h i s - > p r o v i d e r F i e l d I s S e r i a l i z e d D a t a T y p e M a p p i n g [ $ P r o v i d e r I D ] ; 
 
         1 3 3 :   
 
   > >   1 3 4 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   s s o F i e l d . C o d i n g K e y ,   s s o F i e l d . I s S e r i a l i z e d D a t a T y p e 
 
         1 3 5 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O F i e l d M a p p i n g   s s o F i e l d M a p p i n g 
 
         1 3 6 :                                                                                 I N N E R   J O I N   s s o F i e l d M a p p i n g . a u t h _ S S O P r o v i d e r   s s o P r o v i d e r 
 
 
 
     L i n e   1 6 0   [ m a t c h :   S E L E C T   ] : 
 
         1 5 8 :                           r e t u r n   $ t h i s - > p r o v i d e r I D T o U s e r I D M a p p i n g [ $ C o m p o s i t e K e y ] ; 
 
         1 5 9 :   
 
   > >   1 6 0 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   a u t h U s e r . I D 
 
         1 6 1 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   a u t h U s e r 
 
         1 6 2 :                                                                                 I N N E R   J O I N   a u t h U s e r . a u t h _ S S O P r o v i d e r   s s o P r o v i d e r 
 
 
 
     L i n e   1 8 5   [ m a t c h :   S E L E C T   ] : 
 
         1 8 3 :                           r e t u r n   $ t h i s - > c u r r e n t V a l u e s F o r U s e r B y I D [ $ U s e r I D ] ; 
 
         1 8 4 :   
 
   > >   1 8 5 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   u s e r S S O F i e l d V a l u e . C u r r e n t F i e l d V a l u e ,   s s o F i e l d . C o d i n g K e y 
 
         1 8 6 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   a u t h U s e r 
 
         1 8 7 :                                                                                 I N N E R   J O I N   a u t h U s e r . a u t h _ U s e r S S O F i e l d V a l u e   u s e r S S O F i e l d V a l u e 
 
 
 
     L i n e   2 0 7   [ m a t c h :   S E L E C T   ] : 
 
         2 0 5 :                           r e t u r n   [ ] ; 
 
         2 0 6 :   
 
   > >   2 0 7 :                   $ r e s   =   $ E M - > c r e a t e Q u e r y ( " S E L E C T   s s o F i e l d 
 
         2 0 8 :                                                                     F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O F i e l d   s s o F i e l d 
 
         2 0 9 :                                                                     W H E R E   s s o F i e l d . C o d i n g K e y   I N   ( : k e y s ) " ) 
 
 
 
     L i n e   2 2 9   [ m a t c h :   S E L E C T   ] : 
 
         2 2 7 :                           r e t u r n   [ ] ; 
 
         2 2 8 :   
 
   > >   2 2 9 :                   $ r e s   =   $ E M - > c r e a t e Q u e r y ( " S E L E C T   u s e r S S O F i e l d V a l u e ,   s s o F i e l d 
 
         2 3 0 :                                                                     F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r S S O F i e l d V a l u e   u s e r S S O F i e l d V a l u e 
 
         2 3 1 :                                                                     I N N E R   J O I N   u s e r S S O F i e l d V a l u e . a u t h _ U s e r   a u t h U s e r 
 
 
 
     L i n e   2 5 1   [ m a t c h :   S E L E C T   ] : 
 
         2 4 9 :           p u b l i c   f u n c t i o n   g e t P r o v i d e r N a m e A n d U R L S e l e c t o r ( $ P r o v i d e r I D ) 
 
         2 5 0 :           { 
 
   > >   2 5 1 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   p r o v i d e r . P r o v i d e r N a m e ,   p r o v i d e r . P r o v i d e r U R L S e l e c t o r 
 
         2 5 2 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O P r o v i d e r   p r o v i d e r 
 
         2 5 3 :                                                                                 W H E R E   p r o v i d e r . I D   =   : i d " ) 
 
 
 
     L i n e   3 3 4   [ m a t c h :   S E L E C T   ] : 
 
         3 3 2 :           p u b l i c   f u n c t i o n   d o e s P r o v i d e r I D E x i s t A n d A c t i v e ( $ P r o v i d e r I D ) 
 
         3 3 3 :           { 
 
   > >   3 3 4 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( p r o v i d e r ) 
 
         3 3 5 :                                                                                 F R O M   \ A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O P r o v i d e r   p r o v i d e r 
 
         3 3 6 :                                                                                 W H E R E   p r o v i d e r . I D   =   : i d 
 
 
 
     L i n e   3 4 9   [ m a t c h :   S E L E C T   ] : 
 
         3 4 7 :           p u b l i c   f u n c t i o n   l o o k u p D o m a i n I D F o r N e w U s e r ( $ F o r D o m a i n ) 
 
         3 4 8 :           { 
 
   > >   3 4 9 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   a u t h D o m a i n . I D 
 
         3 5 0 :                                                                                 F R O M   " . a u t h _ D o m a i n : : c l a s s . "   a u t h D o m a i n 
 
         3 5 1 :                                                                                 W H E R E   a u t h D o m a i n . D o m a i n N a m e   =   : d o m a i n N a m e " ) 
 
 
 
     L i n e   4 6   [ m a t c h :   I N N E R   J O I N ] : 
 
         4 4 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( a u t h U s e r . I D ) 
 
         4 5 :                                                                                 F R O M   " . a u t h _ U s e r : : c l a s s . "   a u t h U s e r 
 
   > >   4 6 :                                                                                 I N N E R   J O I N   a u t h U s e r . a u t h _ S S O P r o v i d e r   s s o P r o v i d e r   W I T H   s s o P r o v i d e r . I D   =   : S S O P r o v i d e r I D 
 
         4 7 :                                                                                 L E F T   J O I N   a u t h U s e r . a u t h _ D o m a i n   a u t h D o m a i n 
 
         4 8 :                                                                                 W H E R E   a u t h U s e r . E m a i l   =   : E m a i l 
 
 
 
     L i n e   8 7   [ m a t c h :   I N N E R   J O I N ] : 
 
         8 5 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   s s o P r o v i d e r ,   s s o P r o v i d e r T y p e ,   s s o P r o v i d e r U s e r T y p e ,   s s o P r o v i d e r S A M L ,   s s o P r o v i d e r O A u t h ,   s s o P r o v i d e r O A u t h S c o p e ,   s s o P r o v i d e r O A u t h C l a i m ,   s s o P r o v i d e r O A u t h L o g o u t P a r a m e t e r ,   a u t h _ S S O P r o v i d e r O A u t h A p p r o v a l P r o m p t P a r a m e t e r V a l u e 
 
         8 6 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O P r o v i d e r   s s o P r o v i d e r 
 
   > >   8 7 :                                                                                 I N N E R   J O I N   s s o P r o v i d e r . a u t h _ S S O P r o v i d e r T y p e   s s o P r o v i d e r T y p e 
 
         8 8 :                                                                                 I N N E R   J O I N   s s o P r o v i d e r . a u t h _ U s e r T y p e   s s o P r o v i d e r U s e r T y p e 
 
         8 9 :                                                                                 L E F T   J O I N   s s o P r o v i d e r . a u t h _ S S O P r o v i d e r S A M L   s s o P r o v i d e r S A M L 
 
 
 
     L i n e   8 8   [ m a t c h :   I N N E R   J O I N ] : 
 
         8 6 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O P r o v i d e r   s s o P r o v i d e r 
 
         8 7 :                                                                                 I N N E R   J O I N   s s o P r o v i d e r . a u t h _ S S O P r o v i d e r T y p e   s s o P r o v i d e r T y p e 
 
   > >   8 8 :                                                                                 I N N E R   J O I N   s s o P r o v i d e r . a u t h _ U s e r T y p e   s s o P r o v i d e r U s e r T y p e 
 
         8 9 :                                                                                 L E F T   J O I N   s s o P r o v i d e r . a u t h _ S S O P r o v i d e r S A M L   s s o P r o v i d e r S A M L 
 
         9 0 :                                                                                 L E F T   J O I N   s s o P r o v i d e r . a u t h _ S S O P r o v i d e r O A u t h   s s o P r o v i d e r O A u t h 
 
 
 
     L i n e   1 1 4   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 1 2 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   s s o F i e l d M a p p i n g . P r o v i d e r F i e l d N a m e ,   s s o F i e l d . C o d i n g K e y 
 
         1 1 3 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O F i e l d M a p p i n g   s s o F i e l d M a p p i n g 
 
   > >   1 1 4 :                                                                                 I N N E R   J O I N   s s o F i e l d M a p p i n g . a u t h _ S S O P r o v i d e r   s s o P r o v i d e r 
 
         1 1 5 :                                                                                 I N N E R   J O I N   s s o F i e l d M a p p i n g . a u t h _ S S O F i e l d   s s o F i e l d 
 
         1 1 6 :                                                                                 W H E R E   s s o P r o v i d e r . I D   =   : i d " ) 
 
 
 
     L i n e   1 1 5   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 1 3 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O F i e l d M a p p i n g   s s o F i e l d M a p p i n g 
 
         1 1 4 :                                                                                 I N N E R   J O I N   s s o F i e l d M a p p i n g . a u t h _ S S O P r o v i d e r   s s o P r o v i d e r 
 
   > >   1 1 5 :                                                                                 I N N E R   J O I N   s s o F i e l d M a p p i n g . a u t h _ S S O F i e l d   s s o F i e l d 
 
         1 1 6 :                                                                                 W H E R E   s s o P r o v i d e r . I D   =   : i d " ) 
 
         1 1 7 :                                                   - > s e t P a r a m e t e r ( ' i d ' ,   $ P r o v i d e r I D ) 
 
 
 
     L i n e   1 3 6   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 3 4 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   s s o F i e l d . C o d i n g K e y ,   s s o F i e l d . I s S e r i a l i z e d D a t a T y p e 
 
         1 3 5 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O F i e l d M a p p i n g   s s o F i e l d M a p p i n g 
 
   > >   1 3 6 :                                                                                 I N N E R   J O I N   s s o F i e l d M a p p i n g . a u t h _ S S O P r o v i d e r   s s o P r o v i d e r 
 
         1 3 7 :                                                                                 I N N E R   J O I N   s s o F i e l d M a p p i n g . a u t h _ S S O F i e l d   s s o F i e l d 
 
         1 3 8 :                                                                                 W H E R E   s s o P r o v i d e r . I D   =   : i d " ) 
 
 
 
     L i n e   1 3 7   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 3 5 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ S S O F i e l d M a p p i n g   s s o F i e l d M a p p i n g 
 
         1 3 6 :                                                                                 I N N E R   J O I N   s s o F i e l d M a p p i n g . a u t h _ S S O P r o v i d e r   s s o P r o v i d e r 
 
   > >   1 3 7 :                                                                                 I N N E R   J O I N   s s o F i e l d M a p p i n g . a u t h _ S S O F i e l d   s s o F i e l d 
 
         1 3 8 :                                                                                 W H E R E   s s o P r o v i d e r . I D   =   : i d " ) 
 
         1 3 9 :                                                   - > s e t P a r a m e t e r ( ' i d ' ,   $ P r o v i d e r I D ) 
 
 
 
     L i n e   1 6 2   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 6 0 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   a u t h U s e r . I D 
 
         1 6 1 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   a u t h U s e r 
 
   > >   1 6 2 :                                                                                 I N N E R   J O I N   a u t h U s e r . a u t h _ S S O P r o v i d e r   s s o P r o v i d e r 
 
         1 6 3 :                                                                                 L E F T   J O I N   a u t h U s e r . a u t h _ D o m a i n   a u t h D o m a i n 
 
         1 6 4 :                                                                                 W H E R E   s s o P r o v i d e r . I D   =   : p r o v i d e r I D 
 
 
 
     L i n e   1 8 7   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 8 5 :                   $ r e s   =   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   u s e r S S O F i e l d V a l u e . C u r r e n t F i e l d V a l u e ,   s s o F i e l d . C o d i n g K e y 
 
         1 8 6 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   a u t h U s e r 
 
   > >   1 8 7 :                                                                                 I N N E R   J O I N   a u t h U s e r . a u t h _ U s e r S S O F i e l d V a l u e   u s e r S S O F i e l d V a l u e 
 
         1 8 8 :                                                                                 I N N E R   J O I N   u s e r S S O F i e l d V a l u e . a u t h _ S S O F i e l d   s s o F i e l d 
 
         1 8 9 :                                                                                 W H E R E   a u t h U s e r . I D   =   : u s e r I D " ) 
 
 
 
     L i n e   1 8 8   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 8 6 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   a u t h U s e r 
 
         1 8 7 :                                                                                 I N N E R   J O I N   a u t h U s e r . a u t h _ U s e r S S O F i e l d V a l u e   u s e r S S O F i e l d V a l u e 
 
   > >   1 8 8 :                                                                                 I N N E R   J O I N   u s e r S S O F i e l d V a l u e . a u t h _ S S O F i e l d   s s o F i e l d 
 
         1 8 9 :                                                                                 W H E R E   a u t h U s e r . I D   =   : u s e r I D " ) 
 
         1 9 0 :                                                   - > s e t P a r a m e t e r ( ' u s e r I D ' ,   $ U s e r I D ) 
 
 
 
     L i n e   2 3 1   [ m a t c h :   I N N E R   J O I N ] : 
 
         2 2 9 :                   $ r e s   =   $ E M - > c r e a t e Q u e r y ( " S E L E C T   u s e r S S O F i e l d V a l u e ,   s s o F i e l d 
 
         2 3 0 :                                                                     F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r S S O F i e l d V a l u e   u s e r S S O F i e l d V a l u e 
 
   > >   2 3 1 :                                                                     I N N E R   J O I N   u s e r S S O F i e l d V a l u e . a u t h _ U s e r   a u t h U s e r 
 
         2 3 2 :                                                                     I N N E R   J O I N   u s e r S S O F i e l d V a l u e . a u t h _ S S O F i e l d   s s o F i e l d 
 
         2 3 3 :                                                                     W H E R E   a u t h U s e r . I D   =   : u s e r I D 
 
 
 
     L i n e   2 3 2   [ m a t c h :   I N N E R   J O I N ] : 
 
         2 3 0 :                                                                     F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r S S O F i e l d V a l u e   u s e r S S O F i e l d V a l u e 
 
         2 3 1 :                                                                     I N N E R   J O I N   u s e r S S O F i e l d V a l u e . a u t h _ U s e r   a u t h U s e r 
 
   > >   2 3 2 :                                                                     I N N E R   J O I N   u s e r S S O F i e l d V a l u e . a u t h _ S S O F i e l d   s s o F i e l d 
 
         2 3 3 :                                                                     W H E R E   a u t h U s e r . I D   =   : u s e r I D 
 
         2 3 4 :                                                                         A N D   s s o F i e l d . C o d i n g K e y   I N   ( : f i e l d K e y s ) " ) 
 
 
 
     L i n e   4 7   [ m a t c h :   L E F T   J O I N ] : 
 
         4 5 :                                                                                 F R O M   " . a u t h _ U s e r : : c l a s s . "   a u t h U s e r 
 
         4 6 :                                                                                 I N N E R   J O I N   a u t h U s e r . a u t h _ S S O P r o v i d e r   s s o P r o v i d e r   W I T H   s s o P r o v i d e r . I D   =   : S S O P r o v i d e r I D 
 
   > >   4 7 :                                                                                 L E F T   J O I N   a u t h U s e r . a u t h _ D o m a i n   a u t h D o m a i n 
 
         4 8 :                                                                                 W H E R E   a u t h U s e r . E m a i l   =   : E m a i l 
 
         4 9 :                                                                                     A N D   ( a u t h D o m a i n . I D   I S   N U L L   O R   a u t h D o m a i n . D o m a i n N a m e   =   : d o m a i n N a m e ) " ) 
 
 
 
     L i n e   8 9   [ m a t c h :   L E F T   J O I N ] : 
 
         8 7 :                                                                                 I N N E R   J O I N   s s o P r o v i d e r . a u t h _ S S O P r o v i d e r T y p e   s s o P r o v i d e r T y p e 
 
         8 8 :                                                                                 I N N E R   J O I N   s s o P r o v i d e r . a u t h _ U s e r T y p e   s s o P r o v i d e r U s e r T y p e 
 
   > >   8 9 :                                                                                 L E F T   J O I N   s s o P r o v i d e r . a u t h _ S S O P r o v i d e r S A M L   s s o P r o v i d e r S A M L 
 
         9 0 :                                                                                 L E F T   J O I N   s s o P r o v i d e r . a u t h _ S S O P r o v i d e r O A u t h   s s o P r o v i d e r O A u t h 
 
         9 1 :                                                                                 L E F T   J O I N   s s o P r o v i d e r O A u t h . a u t h _ S S O P r o v i d e r O A u t h S c o p e   s s o P r o v i d e r O A u t h S c o p e 
 
 
 
     L i n e   9 0   [ m a t c h :   L E F T   J O I N ] : 
 
         8 8 :                                                                                 I N N E R   J O I N   s s o P r o v i d e r . a u t h _ U s e r T y p e   s s o P r o v i d e r U s e r T y p e 
 
         8 9 :                                                                                 L E F T   J O I N   s s o P r o v i d e r . a u t h _ S S O P r o v i d e r S A M L   s s o P r o v i d e r S A M L 
 
   > >   9 0 :                                                                                 L E F T   J O I N   s s o P r o v i d e r . a u t h _ S S O P r o v i d e r O A u t h   s s o P r o v i d e r O A u t h 
 
         9 1 :                                                                                 L E F T   J O I N   s s o P r o v i d e r O A u t h . a u t h _ S S O P r o v i d e r O A u t h S c o p e   s s o P r o v i d e r O A u t h S c o p e 
 
         9 2 :                                                                                 L E F T   J O I N   s s o P r o v i d e r O A u t h . a u t h _ S S O P r o v i d e r O A u t h C l a i m   s s o P r o v i d e r O A u t h C l a i m 
 
 
 
     L i n e   9 1   [ m a t c h :   L E F T   J O I N ] : 
 
         8 9 :                                                                                 L E F T   J O I N   s s o P r o v i d e r . a u t h _ S S O P r o v i d e r S A M L   s s o P r o v i d e r S A M L 
 
         9 0 :                                                                                 L E F T   J O I N   s s o P r o v i d e r . a u t h _ S S O P r o v i d e r O A u t h   s s o P r o v i d e r O A u t h 
 
   > >   9 1 :                                                                                 L E F T   J O I N   s s o P r o v i d e r O A u t h . a u t h _ S S O P r o v i d e r O A u t h S c o p e   s s o P r o v i d e r O A u t h S c o p e 
 
         9 2 :                                                                                 L E F T   J O I N   s s o P r o v i d e r O A u t h . a u t h _ S S O P r o v i d e r O A u t h C l a i m   s s o P r o v i d e r O A u t h C l a i m 
 
         9 3 :                                                                                 L E F T   J O I N   s s o P r o v i d e r O A u t h . a u t h _ S S O P r o v i d e r O A u t h L o g o u t P a r a m e t e r   s s o P r o v i d e r O A u t h L o g o u t P a r a m e t e r 
 
 
 
     L i n e   9 2   [ m a t c h :   L E F T   J O I N ] : 
 
         9 0 :                                                                                 L E F T   J O I N   s s o P r o v i d e r . a u t h _ S S O P r o v i d e r O A u t h   s s o P r o v i d e r O A u t h 
 
         9 1 :                                                                                 L E F T   J O I N   s s o P r o v i d e r O A u t h . a u t h _ S S O P r o v i d e r O A u t h S c o p e   s s o P r o v i d e r O A u t h S c o p e 
 
   > >   9 2 :                                                                                 L E F T   J O I N   s s o P r o v i d e r O A u t h . a u t h _ S S O P r o v i d e r O A u t h C l a i m   s s o P r o v i d e r O A u t h C l a i m 
 
         9 3 :                                                                                 L E F T   J O I N   s s o P r o v i d e r O A u t h . a u t h _ S S O P r o v i d e r O A u t h L o g o u t P a r a m e t e r   s s o P r o v i d e r O A u t h L o g o u t P a r a m e t e r 
 
         9 4 :                                                                                 L E F T   J O I N   s s o P r o v i d e r O A u t h . a u t h _ S S O P r o v i d e r O A u t h A p p r o v a l P r o m p t P a r a m e t e r V a l u e   a u t h _ S S O P r o v i d e r O A u t h A p p r o v a l P r o m p t P a r a m e t e r V a l u e 
 
 
 
     L i n e   9 3   [ m a t c h :   L E F T   J O I N ] : 
 
         9 1 :                                                                                 L E F T   J O I N   s s o P r o v i d e r O A u t h . a u t h _ S S O P r o v i d e r O A u t h S c o p e   s s o P r o v i d e r O A u t h S c o p e 
 
         9 2 :                                                                                 L E F T   J O I N   s s o P r o v i d e r O A u t h . a u t h _ S S O P r o v i d e r O A u t h C l a i m   s s o P r o v i d e r O A u t h C l a i m 
 
   > >   9 3 :                                                                                 L E F T   J O I N   s s o P r o v i d e r O A u t h . a u t h _ S S O P r o v i d e r O A u t h L o g o u t P a r a m e t e r   s s o P r o v i d e r O A u t h L o g o u t P a r a m e t e r 
 
         9 4 :                                                                                 L E F T   J O I N   s s o P r o v i d e r O A u t h . a u t h _ S S O P r o v i d e r O A u t h A p p r o v a l P r o m p t P a r a m e t e r V a l u e   a u t h _ S S O P r o v i d e r O A u t h A p p r o v a l P r o m p t P a r a m e t e r V a l u e 
 
         9 5 :                                                                                 W H E R E   s s o P r o v i d e r . I D   =   : i d " ) 
 
 
 
     L i n e   9 4   [ m a t c h :   L E F T   J O I N ] : 
 
         9 2 :                                                                                 L E F T   J O I N   s s o P r o v i d e r O A u t h . a u t h _ S S O P r o v i d e r O A u t h C l a i m   s s o P r o v i d e r O A u t h C l a i m 
 
         9 3 :                                                                                 L E F T   J O I N   s s o P r o v i d e r O A u t h . a u t h _ S S O P r o v i d e r O A u t h L o g o u t P a r a m e t e r   s s o P r o v i d e r O A u t h L o g o u t P a r a m e t e r 
 
   > >   9 4 :                                                                                 L E F T   J O I N   s s o P r o v i d e r O A u t h . a u t h _ S S O P r o v i d e r O A u t h A p p r o v a l P r o m p t P a r a m e t e r V a l u e   a u t h _ S S O P r o v i d e r O A u t h A p p r o v a l P r o m p t P a r a m e t e r V a l u e 
 
         9 5 :                                                                                 W H E R E   s s o P r o v i d e r . I D   =   : i d " ) 
 
         9 6 :                                                   - > s e t P a r a m e t e r ( ' i d ' ,   $ P r o v i d e r I D ) 
 
 
 
     L i n e   1 6 3   [ m a t c h :   L E F T   J O I N ] : 
 
         1 6 1 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ a u t h _ U s e r   a u t h U s e r 
 
         1 6 2 :                                                                                 I N N E R   J O I N   a u t h U s e r . a u t h _ S S O P r o v i d e r   s s o P r o v i d e r 
 
   > >   1 6 3 :                                                                                 L E F T   J O I N   a u t h U s e r . a u t h _ D o m a i n   a u t h D o m a i n 
 
         1 6 4 :                                                                                 W H E R E   s s o P r o v i d e r . I D   =   : p r o v i d e r I D 
 
         1 6 5 :                                                                                     A N D   a u t h U s e r . S S O P r o v i d e r U s e r I D   =   : p r o v i d e r U s e r I D 
 
 
 
     L i n e   3 6   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         3 4 :                   $ c o u n t   =   $ q b - > s e l e c t ( $ q b - > e x p r ( ) - > c o u n t ( ' a u t h _ S S O P r o v i d e r . I D ' ) ) 
 
         3 5 :                           - > f r o m ( a u t h _ S S O P r o v i d e r : : c l a s s ,   ' a u t h _ S S O P r o v i d e r ' ) 
 
   > >   3 6 :                           - > g e t Q u e r y ( ) 
 
         3 7 :                           - > g e t S i n g l e S c a l a r R e s u l t ( ) ; 
 
         3 8 :   
 
 
 
     L i n e   2 7 2   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         2 7 0 :                           - > i n n e r J o i n ( ' a u t h _ S S O P r o v i d e r . a u t h _ U s e r ' ,   ' a u t h _ U s e r ' ,   J o i n : : W I T H ,   ' a u t h _ U s e r . I D   =   : U s e r I D ' ) 
 
         2 7 1 :                           - > s e t P a r a m e t e r ( ' U s e r I D ' ,   $ a u t h U s e r I D ) 
 
   > >   2 7 2 :                           - > g e t Q u e r y ( ) 
 
         2 7 3 :                           - > g e t O n e O r N u l l R e s u l t ( Q u e r y : : H Y D R A T E _ A R R A Y ) ; 
 
         2 7 4 :   
 
 
 
     L i n e   2 9 6   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         2 9 4 :                           - > i n n e r J o i n ( ' a u t h _ U s e r S S O F i e l d V a l u e . a u t h _ U s e r ' ,   ' a u t h _ U s e r ' ,   J o i n : : W I T H ,   ' a u t h _ U s e r . I D   =   : U s e r I D ' ) 
 
         2 9 5 :                           - > s e t P a r a m e t e r ( ' U s e r I D ' ,   $ a u t h U s e r I D ) 
 
   > >   2 9 6 :                           - > g e t Q u e r y ( ) 
 
         2 9 7 :                           - > g e t A r r a y R e s u l t ( ) ; 
 
         2 9 8 :           } 
 
 
 
     L i n e   3 2 1   [ m a t c h :   g e t Q u e r y ( ) ] : 
 
         3 1 9 :                           - > s e t P a r a m e t e r ( ' U s e r I D ' ,   $ a u t h U s e r I D ) 
 
         3 2 0 :                           - > s e t P a r a m e t e r ( ' S S O F i e l d C o d i n g K e y ' ,   $ a u t h S S O F i e l d C o d i n g K e y ) 
 
   > >   3 2 1 :                           - > g e t Q u e r y ( ) 
 
         3 2 2 :                           - > g e t O n e O r N u l l R e s u l t ( Q u e r y : : H Y D R A T E _ A R R A Y ) ; 
 
         3 2 3 :                   i f ( $ r e s [ ' a u t h _ S S O F i e l d ' ] [ ' I s S e r i a l i z e d D a t a T y p e ' ]   & &   ! i s _ n u l l ( $ r e s [ ' C u r r e n t F i e l d V a l u e ' ] ) ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ S e r v i c e s \ S S O M a n a g e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 5 0   [ m a t c h :   F R O M   ] : 
 
         5 4 8 :                   e l s e 
 
         5 4 9 :                   { 
 
   > >   5 5 0 :                           t h r o w   n e w   E x c e p t i o n ( ' U n k n o w n   r e s p o n s e   t y p e   f r o m   S S O   p r o v i d e r   a g e n t   i m p l e m e n t a t i o n ' ) ; 
 
         5 5 1 :                   } 
 
         5 5 2 :           } 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ l i b \ S e r v i c e s \ U s e r B a t c h J o b R u n n e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 8 5   [ m a t c h :   F R O M   ] : 
 
         1 8 3 :                           r e t u r n   n u l l ; 
 
         1 8 4 :                   $ I n t e r v a l   =   n e w   \ D a t e I n t e r v a l ( ' P T ' . r o u n d ( $ A v e r a g e S e c o n d s , 0 ) . ' S ' ) ; 
 
   > >   1 8 5 :                   $ F r o m   =   n e w   \ D a t e T i m e ; 
 
         1 8 6 :                   $ T o   =   c l o n e   $ F r o m ; 
 
         1 8 7 :                   $ T o   =   $ T o - > a d d ( $ I n t e r v a l ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ r e s o u r c e s \ v i e w s \ a u t h \ g o o g l e _ a u t h e n t i c a t o r . b l a d e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 2   [ m a t c h :   F R O M   ] : 
 
         4 0 :                                                                   < d i v   c l a s s = " c o l " > 
 
         4 1 :                                                                           < p   c l a s s = " t e x t - c e n t e r   m b - 2   s m a l l " > 
 
   > >   4 2 :                                                                                   { {   _ _ ( ' T o   f i n i s h   s e t   u p ,   e n t e r   t h e   G o o g l e   A u t h e n t i c a t o r   s e c r e t   f r o m   y o u r   m o b i l e   a p p   b e l o w ' )   } } . 
 
         4 3 :                                                                           < / p > 
 
         4 4 :                                                                   < / d i v > 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ r e s o u r c e s \ v i e w s \ a u t h \ s e c u r i t y _ q u e s t i o n s . b l a d e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   S E L E C T   ] : 
 
         2 5 :                                                                                   < d i v   c l a s s = " c o l - x s - 1 2 " > 
 
         2 6 :                                                                                           < l a b e l   f o r = " q u e s t i o n _ { { $ i } } "   c l a s s = " r e q u i r e d " > { {   _ _ ( ' Q u e s t i o n ' )   } }   { { $ i } } : < / l a b e l > 
 
   > >   2 7 :                                                                                           { ! !   F o r m : : s e l e c t ( ' q u e s t i o n [ '   .   $ i   .   ' ] ' ,   $ Q u e s t i o n s ,   n u l l ,   [ ' c l a s s '   = >   ' f o r m - c o n t r o l   s e c u r i t y - q u e s t i o n ' ,   ' i d '   = >   ' q u e s t i o n _ '   .   $ i ,   ' p l a c e h o l d e r '   = >   _ _ ( ' -   P l e a s e   S e l e c t   - ' ) ] )   ! ! } 
 
         2 8 :                                                                                   < / d i v > 
 
         2 9 :                                                                           < / d i v > 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l a u t h \ v i e w s \ p e r m i s s i o n s \ p a r t i a l s \ p e r m i s s i o n _ g r o u p _ f o r m . b l a d e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 0 5   [ m a t c h :   F R O M   ] : 
 
         1 0 3 :                                                                                                                   { {   _ _ ( ' N o   p e r m i s s i o n   r u l e s   c o n f i g u r e d   f o r   t h i s   c a t e g o r y ' )   } } 
 
         1 0 4 :                                                                                                           @ e l s e 
 
   > >   1 0 5 :                                                                                                                   { {   _ _ ( ' H a s   n o   p e r m i s s i o n s   f r o m   t h i s   c a t e g o r y ' )   } } 
 
         1 0 6 :                                                                                                           @ e n d i f 
 
         1 0 7 :                                                                                                   < / i > < / l i > 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l e d i \ a p p \ F i e l d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 1   [ m a t c h :   F R O M   ] : 
 
         2 9 :           / * * 
 
         3 0 :             *   T h i s   i s   t h e   n a m e   o f   t h e   c o l u m n   i n   w h i c h   t h i s   f i e l d 
 
   > >   3 1 :             *   s h o u l d   u s e   f o r   t h e   v a l u e ,   c o m i n g   f r o m   a   q u e r y 
 
         3 2 :             * 
 
         3 3 :             *   @ v a r   s t r i n g 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l t a s k s c h e d u l e r \ l i b \ C o n s o l e \ I g n i t e S i n g l e S p a r k . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 4   [ m a t c h :   F R O M   ] : 
 
         2 2 :             *   @ v a r   s t r i n g 
 
         2 3 :             * / 
 
   > >   2 4 :           p r o t e c t e d   $ d e s c r i p t i o n   =   ' R u n s   a   t a s k   f r o m   a   c r e a t e d   s p a r k ' ; 
 
         2 5 :   
 
         2 6 :           / * * 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l t a s k s c h e d u l e r \ l i b \ C o n t r a c t s \ T a s k P a r a m e t e r I n t e r f a c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   7   [ m a t c h :   S E L E C T   ] : 
 
         5 :           c o n s t   V A L U E _ T Y P E _ T E X T   =   ' t e x t ' ; 
 
         6 :           c o n s t   V A L U E _ T Y P E _ D A T E   =   ' d a t e ' ; 
 
   > >   7 :           c o n s t   V A L U E _ T Y P E _ S E L E C T   =   ' s e l e c t ' ; 
 
         8 :   
 
         9 :           / * * 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ l t a s k s c h e d u l e r \ l i b \ S e r v i c e s \ L T S D a t a P r o v i d e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 5   [ m a t c h :   F R O M   ] : 
 
         2 3 :           { 
 
         2 4 :                   r e t u r n   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   t t 
 
   > >   2 5 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k T y p e   t t 
 
         2 6 :                                                                                 W H E R E   t t . T y p e K e y   =   : t t K e y " ) 
 
         2 7 :                                                   - > s e t P a r a m e t e r ( ' t t K e y ' ,   $ T a s k T y p e K e y ) 
 
 
 
     L i n e   4 2   [ m a t c h :   F R O M   ] : 
 
         4 0 :   
 
         4 1 :                   r e t u r n   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   t 
 
   > >   4 2 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k   t 
 
         4 3 :                                                                                 I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
         4 4 :                                                                                 W H E R E   t t . T y p e K e y   =   : t t K e y 
 
 
 
     L i n e   5 8   [ m a t c h :   F R O M   ] : 
 
         5 6 :           { 
 
         5 7 :                   r e t u r n   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   o 
 
   > >   5 8 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ O w n e r   o 
 
         5 9 :                                                                                 W H E R E   o . O w n e r K e y   =   : o K e y " ) 
 
         6 0 :                                                   - > s e t P a r a m e t e r ( ' o K e y ' ,   $ O w n e r K e y ) 
 
 
 
     L i n e   7 1   [ m a t c h :   F R O M   ] : 
 
         6 9 :           { 
 
         7 0 :                   $ d q l   =   " S E L E C T   t . I D ,   t . T a s k N a m e ,   t . T a s k C l a s s ,   t . G l o b a l D i s a b l e d 
 
   > >   7 1 :                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k   t 
 
         7 2 :                                   I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
         7 3 :                                   W H E R E   t . C a n n o t A d d T o N e w S c h e d u l e s   =   f a l s e 
 
 
 
     L i n e   9 6   [ m a t c h :   F R O M   ] : 
 
         9 4 :                                                 P A R T I A L   t . { I D ,   T a s k N a m e ,   T a s k C l a s s ,   G l o b a l D i s a b l e d } , 
 
         9 5 :                                                 t s p 
 
   > >   9 6 :                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k S c h e d u l e   t s 
 
         9 7 :                                 I N N E R   J O I N   t s . l t s _ T a s k   t 
 
         9 8 :                                 I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
 
 
     L i n e   1 3 6   [ m a t c h :   F R O M   ] : 
 
         1 3 4 :           { 
 
         1 3 5 :                   r e t u r n   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   t t 
 
   > >   1 3 6 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k T y p e   t t " ) 
 
         1 3 7 :                                                   - > g e t A r r a y R e s u l t ( ) ; 
 
         1 3 8 :           } 
 
 
 
     L i n e   1 7 1   [ m a t c h :   F R O M   ] : 
 
         1 6 9 :                                                                                 P A R T I A L   o . { I D ,   O w n e r K e y } , 
 
         1 7 0 :                                                                                 t s p 
 
   > >   1 7 1 :                                                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k S c h e d u l e   t s 
 
         1 7 2 :                                                                   I N N E R   J O I N   t s . l t s _ T a s k   t 
 
         1 7 3 :                                                                   I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
 
 
     L i n e   2 0 6   [ m a t c h :   F R O M   ] : 
 
         2 0 4 :                                                                                 P A R T I A L   o . { I D ,   O w n e r K e y } , 
 
         2 0 5 :                                                                                 t s p 
 
   > >   2 0 6 :                                                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k S c h e d u l e   t s 
 
         2 0 7 :                                                                   I N N E R   J O I N   t s . l t s _ T a s k   t 
 
         2 0 8 :                                                                   I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
 
 
     L i n e   2 5 9   [ m a t c h :   F R O M   ] : 
 
         2 5 7 :                                                                                         P A R T I A L   t . { I D } , 
 
         2 5 8 :                                                                                         P A R T I A L   t s o . { I D } 
 
   > >   2 5 9 :                                                                           F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k S c h e d u l e   t s 
 
         2 6 0 :                                                                           I N N E R   J O I N   t s . l t s _ T a s k S c h e d u l e H i s t o r y   t s h 
 
         2 6 1 :                                                                           I N N E R   J O I N   t s . l t s _ T a s k   t 
 
 
 
     L i n e   3 3 8   [ m a t c h :   F R O M   ] : 
 
         3 3 6 :   
 
         3 3 7 :                   r e t u r n   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   s ,   t s ,   t s p ,   t ,   t t ,   o 
 
   > >   3 3 8 :                                                                                 F R O M   A p p \ M o d e l \ E n t i t i e s \ l t s _ T a s k S c h e d u l e S p a r k   s 
 
         3 3 9 :                                                                                 I N N E R   J O I N   s . l t s _ T a s k S c h e d u l e   t s 
 
         3 4 0 :                                                                                 L E F T   J O I N   t s . l t s _ T a s k S c h e d u l e P a r a m e t e r   t s p 
 
 
 
     L i n e   3 5 8   [ m a t c h :   F R O M   ] : 
 
         3 5 6 :           { 
 
         3 5 7 :                   r e t u r n   ( $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( s ) 
 
   > >   3 5 8 :                                                                                   F R O M   A p p \ M o d e l \ E n t i t i e s \ l t s _ T a s k S c h e d u l e S p a r k   s 
 
         3 5 9 :                                                                                   I N N E R   J O I N   s . l t s _ T a s k S c h e d u l e   t s 
 
         3 6 0 :                                                                                   W H E R E   t s . I D   =   : s c h e d u l e I D 
 
 
 
     L i n e   3 7 4   [ m a t c h :   F R O M   ] : 
 
         3 7 2 :                   $ E x p i r a t i o n T i m e   =   ( n e w   D a t e T i m e ( ) ) - > s u b ( n e w   D a t e I n t e r v a l ( ' P T 1 M ' ) ) ; 
 
         3 7 3 :                   r e t u r n   a r r a y _ c o l u m n ( $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   s . I D 
 
   > >   3 7 4 :                                                                                                           F R O M   A p p \ M o d e l \ E n t i t i e s \ l t s _ T a s k S c h e d u l e S p a r k   s 
 
         3 7 5 :                                                                                                           W H E R E   s . I s I g n i t e d   =   f a l s e 
 
         3 7 6 :                                                                                                               A N D   s . S p a r k D T   <   : e x p i r a t i o n " ) 
 
 
 
     L i n e   4 0 4   [ m a t c h :   F R O M   ] : 
 
         4 0 2 :                           $ Q u e r y P a r a m s [ ' s c h e d u l e I D ' ]   =   $ O p t i o n a l C o m p a r e S c h e d u l e I D ; 
 
         4 0 3 :                   r e t u r n   ( $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( s ) 
 
   > >   4 0 4 :                                                                                   F R O M   A p p \ M o d e l \ E n t i t i e s \ l t s _ T a s k S c h e d u l e   s 
 
         4 0 5 :                                                                                   I N N E R   J O I N   s . l t s _ T a s k   t 
 
         4 0 6 :                                                                                   L E F T   J O I N   s . l t s _ O w n e r   o 
 
 
 
     L i n e   2 4   [ m a t c h :   S E L E C T   ] : 
 
         2 2 :           p u b l i c   f u n c t i o n   g e t T a s k T y p e I n f o r m a t i o n ( $ T a s k T y p e K e y ) 
 
         2 3 :           { 
 
   > >   2 4 :                   r e t u r n   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   t t 
 
         2 5 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k T y p e   t t 
 
         2 6 :                                                                                 W H E R E   t t . T y p e K e y   =   : t t K e y " ) 
 
 
 
     L i n e   4 1   [ m a t c h :   S E L E C T   ] : 
 
         3 9 :                           r e t u r n   n u l l ; 
 
         4 0 :   
 
   > >   4 1 :                   r e t u r n   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   t 
 
         4 2 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k   t 
 
         4 3 :                                                                                 I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
 
 
     L i n e   5 7   [ m a t c h :   S E L E C T   ] : 
 
         5 5 :           p u b l i c   f u n c t i o n   g e t O w n e r I n f o r m a t i o n ( $ O w n e r K e y ) 
 
         5 6 :           { 
 
   > >   5 7 :                   r e t u r n   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   o 
 
         5 8 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ O w n e r   o 
 
         5 9 :                                                                                 W H E R E   o . O w n e r K e y   =   : o K e y " ) 
 
 
 
     L i n e   7 0   [ m a t c h :   S E L E C T   ] : 
 
         6 8 :           p u b l i c   f u n c t i o n   g e t T a s k I n f o r m a t i o n T h a t C a n B e A d d e d T o S c h e d u l e ( $ T a s k T y p e K e y ) 
 
         6 9 :           { 
 
   > >   7 0 :                   $ d q l   =   " S E L E C T   t . I D ,   t . T a s k N a m e ,   t . T a s k C l a s s ,   t . G l o b a l D i s a b l e d 
 
         7 1 :                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k   t 
 
         7 2 :                                   I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
 
 
     L i n e   9 3   [ m a t c h :   S E L E C T   ] : 
 
         9 1 :   
 
         9 2 :                   $ q u e r y   =   $ t h i s - > e m - > c r e a t e Q u e r y ( ) ; 
 
   > >   9 3 :                   $ d q l   =   " S E L E C T   P A R T I A L   t s . { I D ,   D a y O f W e e k ,   T i m e O f D a y ,   I s M o n t h l y ,   I s D i s a b l e d ,   I s M o n t h E n d } , 
 
         9 4 :                                                 P A R T I A L   t . { I D ,   T a s k N a m e ,   T a s k C l a s s ,   G l o b a l D i s a b l e d } , 
 
         9 5 :                                                 t s p 
 
 
 
     L i n e   1 3 5   [ m a t c h :   S E L E C T   ] : 
 
         1 3 3 :           p u b l i c   f u n c t i o n   g e t A l l T a s k T y p e I n f o ( ) 
 
         1 3 4 :           { 
 
   > >   1 3 5 :                   r e t u r n   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   t t 
 
         1 3 6 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k T y p e   t t " ) 
 
         1 3 7 :                                                   - > g e t A r r a y R e s u l t ( ) ; 
 
 
 
     L i n e   1 6 7   [ m a t c h :   S E L E C T   ] : 
 
         1 6 5 :                           $ I s I n F i r s t W e e k O f M o n t h L e s s W i n d o w   =   ( b c c o m p ( $ N o w L e s s W i n d o w - > f o r m a t ( ' j ' ) , ' 7 ' )   < =   0 ) ; 
 
         1 6 6 :   
 
   > >   1 6 7 :                           $ w i t h i n W i n d o w D Q L   =   " S E L E C T   P A R T I A L   t s . { I D ,   D a y O f W e e k ,   T i m e O f D a y ,   L a s t E n a b l e d D T ,   O w n e r I D ,   L a s t E d i t D T ,   I s M o n t h E n d } , 
 
         1 6 8 :                                                                                 P A R T I A L   t . { I D ,   T a s k C l a s s ,   L a s t G l o b a l E n a b l e d D T } , 
 
         1 6 9 :                                                                                 P A R T I A L   o . { I D ,   O w n e r K e y } , 
 
 
 
     L i n e   2 0 2   [ m a t c h :   S E L E C T   ] : 
 
         2 0 0 :                           i f ( $ I s T o d a y L a s t D a y O f M o n t h ) 
 
         2 0 1 :                           { 
 
   > >   2 0 2 :                                   $ m o n t h E n d W i n d o w D Q L   =   " S E L E C T   P A R T I A L   t s . { I D ,   D a y O f W e e k ,   T i m e O f D a y ,   L a s t E n a b l e d D T ,   O w n e r I D ,   L a s t E d i t D T ,   I s M o n t h E n d } , 
 
         2 0 3 :                                                                                 P A R T I A L   t . { I D ,   T a s k C l a s s ,   L a s t G l o b a l E n a b l e d D T } , 
 
         2 0 4 :                                                                                 P A R T I A L   o . { I D ,   O w n e r K e y } , 
 
 
 
     L i n e   2 5 5   [ m a t c h :   S E L E C T   ] : 
 
         2 5 3 :                           i f ( s i z e o f ( $ s c h e d u l e s T o R u n B y I D ) ) 
 
         2 5 4 :                           { 
 
   > >   2 5 5 :                                   $ h i s t o r y Q u e r y D Q L   =   " S E L E C T   P A R T I A L   t s . { I D } , 
 
         2 5 6 :                                                                                         P A R T I A L   t s h . { I D ,   R u n S t a r t D T ,   R u n E n d D T ,   R u n S u c c e s s ,   I s R e t r y ,   O w n e r I D } , 
 
         2 5 7 :                                                                                         P A R T I A L   t . { I D } , 
 
 
 
     L i n e   3 3 7   [ m a t c h :   S E L E C T   ] : 
 
         3 3 5 :                           r e t u r n   n u l l ; 
 
         3 3 6 :   
 
   > >   3 3 7 :                   r e t u r n   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   s ,   t s ,   t s p ,   t ,   t t ,   o 
 
         3 3 8 :                                                                                 F R O M   A p p \ M o d e l \ E n t i t i e s \ l t s _ T a s k S c h e d u l e S p a r k   s 
 
         3 3 9 :                                                                                 I N N E R   J O I N   s . l t s _ T a s k S c h e d u l e   t s 
 
 
 
     L i n e   3 5 7   [ m a t c h :   S E L E C T   ] : 
 
         3 5 5 :           p u b l i c   f u n c t i o n   d o e s S c h e d u l e H a v e S p a r k L o c k ( $ S c h e d u l e I D ) 
 
         3 5 6 :           { 
 
   > >   3 5 7 :                   r e t u r n   ( $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( s ) 
 
         3 5 8 :                                                                                   F R O M   A p p \ M o d e l \ E n t i t i e s \ l t s _ T a s k S c h e d u l e S p a r k   s 
 
         3 5 9 :                                                                                   I N N E R   J O I N   s . l t s _ T a s k S c h e d u l e   t s 
 
 
 
     L i n e   3 7 3   [ m a t c h :   S E L E C T   ] : 
 
         3 7 1 :           { 
 
         3 7 2 :                   $ E x p i r a t i o n T i m e   =   ( n e w   D a t e T i m e ( ) ) - > s u b ( n e w   D a t e I n t e r v a l ( ' P T 1 M ' ) ) ; 
 
   > >   3 7 3 :                   r e t u r n   a r r a y _ c o l u m n ( $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   s . I D 
 
         3 7 4 :                                                                                                           F R O M   A p p \ M o d e l \ E n t i t i e s \ l t s _ T a s k S c h e d u l e S p a r k   s 
 
         3 7 5 :                                                                                                           W H E R E   s . I s I g n i t e d   =   f a l s e 
 
 
 
     L i n e   4 0 3   [ m a t c h :   S E L E C T   ] : 
 
         4 0 1 :                   i f ( ! i s _ n u l l ( $ O p t i o n a l C o m p a r e S c h e d u l e I D ) ) 
 
         4 0 2 :                           $ Q u e r y P a r a m s [ ' s c h e d u l e I D ' ]   =   $ O p t i o n a l C o m p a r e S c h e d u l e I D ; 
 
   > >   4 0 3 :                   r e t u r n   ( $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( s ) 
 
         4 0 4 :                                                                                   F R O M   A p p \ M o d e l \ E n t i t i e s \ l t s _ T a s k S c h e d u l e   s 
 
         4 0 5 :                                                                                   I N N E R   J O I N   s . l t s _ T a s k   t 
 
 
 
     L i n e   4 3   [ m a t c h :   I N N E R   J O I N ] : 
 
         4 1 :                   r e t u r n   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   t 
 
         4 2 :                                                                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k   t 
 
   > >   4 3 :                                                                                 I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
         4 4 :                                                                                 W H E R E   t t . T y p e K e y   =   : t t K e y 
 
         4 5 :                                                                                     A N D   t . I D   =   : t I D " ) 
 
 
 
     L i n e   7 2   [ m a t c h :   I N N E R   J O I N ] : 
 
         7 0 :                   $ d q l   =   " S E L E C T   t . I D ,   t . T a s k N a m e ,   t . T a s k C l a s s ,   t . G l o b a l D i s a b l e d 
 
         7 1 :                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k   t 
 
   > >   7 2 :                                   I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
         7 3 :                                   W H E R E   t . C a n n o t A d d T o N e w S c h e d u l e s   =   f a l s e 
 
         7 4 :                                   A N D   t t . T y p e K e y   =   : t t K e y " ; 
 
 
 
     L i n e   9 7   [ m a t c h :   I N N E R   J O I N ] : 
 
         9 5 :                                                 t s p 
 
         9 6 :                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k S c h e d u l e   t s 
 
   > >   9 7 :                                 I N N E R   J O I N   t s . l t s _ T a s k   t 
 
         9 8 :                                 I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
         9 9 :                                 L E F T   J O I N   t s . l t s _ T a s k S c h e d u l e P a r a m e t e r   t s p 
 
 
 
     L i n e   9 8   [ m a t c h :   I N N E R   J O I N ] : 
 
         9 6 :                                 F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k S c h e d u l e   t s 
 
         9 7 :                                 I N N E R   J O I N   t s . l t s _ T a s k   t 
 
   > >   9 8 :                                 I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
         9 9 :                                 L E F T   J O I N   t s . l t s _ T a s k S c h e d u l e P a r a m e t e r   t s p 
 
         1 0 0 :                                 L E F T   J O I N   t s . l t s _ O w n e r   o 
 
 
 
     L i n e   1 7 2   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 7 0 :                                                                                 t s p 
 
         1 7 1 :                                                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k S c h e d u l e   t s 
 
   > >   1 7 2 :                                                                   I N N E R   J O I N   t s . l t s _ T a s k   t 
 
         1 7 3 :                                                                   I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
         1 7 4 :                                                                   L E F T   J O I N   t s . l t s _ O w n e r   o 
 
 
 
     L i n e   1 7 3   [ m a t c h :   I N N E R   J O I N ] : 
 
         1 7 1 :                                                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k S c h e d u l e   t s 
 
         1 7 2 :                                                                   I N N E R   J O I N   t s . l t s _ T a s k   t 
 
   > >   1 7 3 :                                                                   I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
         1 7 4 :                                                                   L E F T   J O I N   t s . l t s _ O w n e r   o 
 
         1 7 5 :                                                                   L E F T   J O I N   t s . l t s _ T a s k S c h e d u l e P a r a m e t e r   t s p 
 
 
 
     L i n e   2 0 7   [ m a t c h :   I N N E R   J O I N ] : 
 
         2 0 5 :                                                                                 t s p 
 
         2 0 6 :                                                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k S c h e d u l e   t s 
 
   > >   2 0 7 :                                                                   I N N E R   J O I N   t s . l t s _ T a s k   t 
 
         2 0 8 :                                                                   I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
         2 0 9 :                                                                   L E F T   J O I N   t s . l t s _ O w n e r   o 
 
 
 
     L i n e   2 0 8   [ m a t c h :   I N N E R   J O I N ] : 
 
         2 0 6 :                                                                   F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k S c h e d u l e   t s 
 
         2 0 7 :                                                                   I N N E R   J O I N   t s . l t s _ T a s k   t 
 
   > >   2 0 8 :                                                                   I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
         2 0 9 :                                                                   L E F T   J O I N   t s . l t s _ O w n e r   o 
 
         2 1 0 :                                                                   L E F T   J O I N   t s . l t s _ T a s k S c h e d u l e P a r a m e t e r   t s p 
 
 
 
     L i n e   2 6 0   [ m a t c h :   I N N E R   J O I N ] : 
 
         2 5 8 :                                                                                         P A R T I A L   t s o . { I D } 
 
         2 5 9 :                                                                           F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k S c h e d u l e   t s 
 
   > >   2 6 0 :                                                                           I N N E R   J O I N   t s . l t s _ T a s k S c h e d u l e H i s t o r y   t s h 
 
         2 6 1 :                                                                           I N N E R   J O I N   t s . l t s _ T a s k   t 
 
         2 6 2 :                                                                           L E F T   J O I N   t s . l t s _ O w n e r   t s o 
 
 
 
     L i n e   2 6 1   [ m a t c h :   I N N E R   J O I N ] : 
 
         2 5 9 :                                                                           F R O M   A p p \ \ M o d e l \ \ E n t i t i e s \ \ l t s _ T a s k S c h e d u l e   t s 
 
         2 6 0 :                                                                           I N N E R   J O I N   t s . l t s _ T a s k S c h e d u l e H i s t o r y   t s h 
 
   > >   2 6 1 :                                                                           I N N E R   J O I N   t s . l t s _ T a s k   t 
 
         2 6 2 :                                                                           L E F T   J O I N   t s . l t s _ O w n e r   t s o 
 
         2 6 3 :                                                                           L E F T   J O I N   t s h . l t s _ O w n e r   o 
 
 
 
     L i n e   3 3 9   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 3 7 :                   r e t u r n   $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   s ,   t s ,   t s p ,   t ,   t t ,   o 
 
         3 3 8 :                                                                                 F R O M   A p p \ M o d e l \ E n t i t i e s \ l t s _ T a s k S c h e d u l e S p a r k   s 
 
   > >   3 3 9 :                                                                                 I N N E R   J O I N   s . l t s _ T a s k S c h e d u l e   t s 
 
         3 4 0 :                                                                                 L E F T   J O I N   t s . l t s _ T a s k S c h e d u l e P a r a m e t e r   t s p 
 
         3 4 1 :                                                                                 I N N E R   J O I N   t s . l t s _ T a s k   t 
 
 
 
     L i n e   3 4 1   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 3 9 :                                                                                 I N N E R   J O I N   s . l t s _ T a s k S c h e d u l e   t s 
 
         3 4 0 :                                                                                 L E F T   J O I N   t s . l t s _ T a s k S c h e d u l e P a r a m e t e r   t s p 
 
   > >   3 4 1 :                                                                                 I N N E R   J O I N   t s . l t s _ T a s k   t 
 
         3 4 2 :                                                                                 I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
         3 4 3 :                                                                                 L E F T   J O I N   t s . l t s _ O w n e r   o 
 
 
 
     L i n e   3 4 2   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 4 0 :                                                                                 L E F T   J O I N   t s . l t s _ T a s k S c h e d u l e P a r a m e t e r   t s p 
 
         3 4 1 :                                                                                 I N N E R   J O I N   t s . l t s _ T a s k   t 
 
   > >   3 4 2 :                                                                                 I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
         3 4 3 :                                                                                 L E F T   J O I N   t s . l t s _ O w n e r   o 
 
         3 4 4 :                                                                                 W H E R E   s . I D   =   : s p a r k I D 
 
 
 
     L i n e   3 5 9   [ m a t c h :   I N N E R   J O I N ] : 
 
         3 5 7 :                   r e t u r n   ( $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( s ) 
 
         3 5 8 :                                                                                   F R O M   A p p \ M o d e l \ E n t i t i e s \ l t s _ T a s k S c h e d u l e S p a r k   s 
 
   > >   3 5 9 :                                                                                   I N N E R   J O I N   s . l t s _ T a s k S c h e d u l e   t s 
 
         3 6 0 :                                                                                   W H E R E   t s . I D   =   : s c h e d u l e I D 
 
         3 6 1 :                                                                                       A N D   s . I s I g n i t e d   =   f a l s e 
 
 
 
     L i n e   4 0 5   [ m a t c h :   I N N E R   J O I N ] : 
 
         4 0 3 :                   r e t u r n   ( $ t h i s - > e m - > c r e a t e Q u e r y ( " S E L E C T   C O U N T ( s ) 
 
         4 0 4 :                                                                                   F R O M   A p p \ M o d e l \ E n t i t i e s \ l t s _ T a s k S c h e d u l e   s 
 
   > >   4 0 5 :                                                                                   I N N E R   J O I N   s . l t s _ T a s k   t 
 
         4 0 6 :                                                                                   L E F T   J O I N   s . l t s _ O w n e r   o 
 
         4 0 7 :                                                                                   W H E R E   t . I D   =   : t a s k I D 
 
 
 
     L i n e   9 9   [ m a t c h :   L E F T   J O I N ] : 
 
         9 7 :                                 I N N E R   J O I N   t s . l t s _ T a s k   t 
 
         9 8 :                                 I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
   > >   9 9 :                                 L E F T   J O I N   t s . l t s _ T a s k S c h e d u l e P a r a m e t e r   t s p 
 
         1 0 0 :                                 L E F T   J O I N   t s . l t s _ O w n e r   o 
 
         1 0 1 :                                 W H E R E   t t . T y p e K e y   =   : t t K e y " ; 
 
 
 
     L i n e   1 0 0   [ m a t c h :   L E F T   J O I N ] : 
 
         9 8 :                                 I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
         9 9 :                                 L E F T   J O I N   t s . l t s _ T a s k S c h e d u l e P a r a m e t e r   t s p 
 
   > >   1 0 0 :                                 L E F T   J O I N   t s . l t s _ O w n e r   o 
 
         1 0 1 :                                 W H E R E   t t . T y p e K e y   =   : t t K e y " ; 
 
         1 0 2 :                   i f ( ! i s _ n u l l ( $ O w n e r K e y ) ) 
 
 
 
     L i n e   1 7 4   [ m a t c h :   L E F T   J O I N ] : 
 
         1 7 2 :                                                                   I N N E R   J O I N   t s . l t s _ T a s k   t 
 
         1 7 3 :                                                                   I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
   > >   1 7 4 :                                                                   L E F T   J O I N   t s . l t s _ O w n e r   o 
 
         1 7 5 :                                                                   L E F T   J O I N   t s . l t s _ T a s k S c h e d u l e P a r a m e t e r   t s p 
 
         1 7 6 :                                                                   W H E R E   t s . T i m e O f D a y   < =   ' " . $ N o w - > f o r m a t ( ' H : i : s ' ) . " ' 
 
 
 
     L i n e   1 7 5   [ m a t c h :   L E F T   J O I N ] : 
 
         1 7 3 :                                                                   I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
         1 7 4 :                                                                   L E F T   J O I N   t s . l t s _ O w n e r   o 
 
   > >   1 7 5 :                                                                   L E F T   J O I N   t s . l t s _ T a s k S c h e d u l e P a r a m e t e r   t s p 
 
         1 7 6 :                                                                   W H E R E   t s . T i m e O f D a y   < =   ' " . $ N o w - > f o r m a t ( ' H : i : s ' ) . " ' 
 
         1 7 7 :                                                                       A N D   t s . T i m e O f D a y   >   ' " . $ N o w L e s s W i n d o w - > f o r m a t ( ' H : i : s ' ) . " ' 
 
 
 
     L i n e   2 0 9   [ m a t c h :   L E F T   J O I N ] : 
 
         2 0 7 :                                                                   I N N E R   J O I N   t s . l t s _ T a s k   t 
 
         2 0 8 :                                                                   I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
   > >   2 0 9 :                                                                   L E F T   J O I N   t s . l t s _ O w n e r   o 
 
         2 1 0 :                                                                   L E F T   J O I N   t s . l t s _ T a s k S c h e d u l e P a r a m e t e r   t s p 
 
         2 1 1 :                                                                   W H E R E   t s . I s M o n t h E n d   =   t r u e 
 
 
 
     L i n e   2 1 0   [ m a t c h :   L E F T   J O I N ] : 
 
         2 0 8 :                                                                   I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
         2 0 9 :                                                                   L E F T   J O I N   t s . l t s _ O w n e r   o 
 
   > >   2 1 0 :                                                                   L E F T   J O I N   t s . l t s _ T a s k S c h e d u l e P a r a m e t e r   t s p 
 
         2 1 1 :                                                                   W H E R E   t s . I s M o n t h E n d   =   t r u e 
 
         2 1 2 :                                                                       A N D   t s . T i m e O f D a y   < =   : n o w T i m e 
 
 
 
     L i n e   2 6 2   [ m a t c h :   L E F T   J O I N ] : 
 
         2 6 0 :                                                                           I N N E R   J O I N   t s . l t s _ T a s k S c h e d u l e H i s t o r y   t s h 
 
         2 6 1 :                                                                           I N N E R   J O I N   t s . l t s _ T a s k   t 
 
   > >   2 6 2 :                                                                           L E F T   J O I N   t s . l t s _ O w n e r   t s o 
 
         2 6 3 :                                                                           L E F T   J O I N   t s h . l t s _ O w n e r   o 
 
         2 6 4 :                                                                           W H E R E   ( " . i m p l o d e ( ' )   O R   ( ' ,   $ h i s t o r y W h e r e P a r t s ) . " ) 
 
 
 
     L i n e   2 6 3   [ m a t c h :   L E F T   J O I N ] : 
 
         2 6 1 :                                                                           I N N E R   J O I N   t s . l t s _ T a s k   t 
 
         2 6 2 :                                                                           L E F T   J O I N   t s . l t s _ O w n e r   t s o 
 
   > >   2 6 3 :                                                                           L E F T   J O I N   t s h . l t s _ O w n e r   o 
 
         2 6 4 :                                                                           W H E R E   ( " . i m p l o d e ( ' )   O R   ( ' ,   $ h i s t o r y W h e r e P a r t s ) . " ) 
 
         2 6 5 :                                                                           O R D E R   B Y   t s . I D ,   t s h . R u n S u c c e s s   D E S C " ; 
 
 
 
     L i n e   3 4 0   [ m a t c h :   L E F T   J O I N ] : 
 
         3 3 8 :                                                                                 F R O M   A p p \ M o d e l \ E n t i t i e s \ l t s _ T a s k S c h e d u l e S p a r k   s 
 
         3 3 9 :                                                                                 I N N E R   J O I N   s . l t s _ T a s k S c h e d u l e   t s 
 
   > >   3 4 0 :                                                                                 L E F T   J O I N   t s . l t s _ T a s k S c h e d u l e P a r a m e t e r   t s p 
 
         3 4 1 :                                                                                 I N N E R   J O I N   t s . l t s _ T a s k   t 
 
         3 4 2 :                                                                                 I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
 
 
     L i n e   3 4 3   [ m a t c h :   L E F T   J O I N ] : 
 
         3 4 1 :                                                                                 I N N E R   J O I N   t s . l t s _ T a s k   t 
 
         3 4 2 :                                                                                 I N N E R   J O I N   t . l t s _ T a s k T y p e   t t 
 
   > >   3 4 3 :                                                                                 L E F T   J O I N   t s . l t s _ O w n e r   o 
 
         3 4 4 :                                                                                 W H E R E   s . I D   =   : s p a r k I D 
 
         3 4 5 :                                                                                     A N D   s . I s I g n i t e d   =   f a l s e 
 
 
 
     L i n e   4 0 6   [ m a t c h :   L E F T   J O I N ] : 
 
         4 0 4 :                                                                                   F R O M   A p p \ M o d e l \ E n t i t i e s \ l t s _ T a s k S c h e d u l e   s 
 
         4 0 5 :                                                                                   I N N E R   J O I N   s . l t s _ T a s k   t 
 
   > >   4 0 6 :                                                                                   L E F T   J O I N   s . l t s _ O w n e r   o 
 
         4 0 7 :                                                                                   W H E R E   t . I D   =   : t a s k I D 
 
         4 0 8 :                                                                                       A N D   s . D a y O f W e e k   =   : d a y O f W e e k 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ m e t a d a t a \ l i b \ C a c h e a b l e E n t i t y M e t a d a t a I n t e r f a c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6   [ m a t c h :   F R O M   ] : 
 
         4 :   { 
 
         5 :           / * * 
 
   > >   6 :             *   W h e n   e n t i t y   m e t a d a t a   i s   u n s e r i a l i z e d   f r o m   t h e   c a c h e ,   t h i s   f u n c t i o n   r e - b i n d s   t h e   M e t a d a t a F a c t o r y 
 
         7 :             * 
 
         8 :             *   @ p a r a m   M e t a d a t a F a c t o r y   $ f a c t o r y 
 
 
 
     L i n e   1 5   [ m a t c h :   F R O M   ] : 
 
         1 3 :   
 
         1 4 :           / * * 
 
   > >   1 5 :             *   P e r f o r m s   a c t i o n s   n e e d e d   a f t e r   t h e   m e t a d a t a   i s   u n s e r i a l i z e d   f r o m   t h e   c a c h e 
 
         1 6 :             * 
 
         1 7 :             *   @ r e t u r n   v o i d 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ m e t a d a t a \ l i b \ E n t i t y M e t a d a t a I n t e r f a c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   8 1   [ m a t c h :   F R O M   ] : 
 
         7 9 :   
 
         8 0 :           / * * 
 
   > >   8 1 :             *   A c c e s s   a   f i e l d   o b j e c t   f r o m   t h i s   e n t i t y 
 
         8 2 :             *   W h e n   c a n C h a i n   i s   t r u e ,   w i l l   p e r m i t   a c c e s s i n g   f i e l d s   i n   l i n k e d   e n t i t i e s   f o r   a s s o c i a t i o n   f i e l d s 
 
         8 3 :             * 
 
 
 
     L i n e   2 2 5   [ m a t c h :   F R O M   ] : 
 
         2 2 3 :   
 
         2 2 4 :           / * * 
 
   > >   2 2 5 :             *   R e m o v e s   t h e   s p e c i f i e d   f i e l d   n a m e   f r o m   w h a t e v e r   g r o u p   i t   m a y   b e   i n .     W i l l   n o t   e r r o r   i f   n o t   i n   a   g r o u p . 
 
         2 2 6 :             * 
 
         2 2 7 :             *   @ p a r a m   s t r i n g   $ f i e l d N a m e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ m e t a d a t a \ l i b \ F i e l d M e t a d a t a A s s o c i a t i o n I n t e r f a c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 3 1   [ m a t c h :   F R O M   ] : 
 
         2 2 9 :   
 
         2 3 0 :           / * * 
 
   > >   2 3 1 :             *   W h e t h e r   o r   n o t   t h i s   a s s o c i a t i o n   t y p e   r e p r e s e n t s   a   r e l a t i o n s h i p   t o   m u l t i p l e   r e c o r d s   o f   a n o t h e r   e n t i t y   w h e r e   a n y   g i v e n   r e c o r d   o n   t h e   r e l a t e d   a s s o c i a t i o n   r e l a t e s   b a c k   t o   j u s t   o n e   r e c o r d   f r o m   t h i s   e n t i t y 
 
         2 3 2 :             * 
 
         2 3 3 :             *   @ r e t u r n   b o o l e a n 
 
 
 
     L i n e   2 3 8   [ m a t c h :   F R O M   ] : 
 
         2 3 6 :   
 
         2 3 7 :           / * * 
 
   > >   2 3 8 :             *   W h e t h e r   o r   n o t   t h i s   a s s o c i a t i o n   t y p e   r e p r e s e n t s   a   r e l a t i o n s h i p   t o   a   s i n g l e   r e c o r d   o f   a n o t h e r   e n t i t y   w h e r e   t h e   r e c o r d   o n   t h e   r e l a t e d   a s s o c i a t i o n   r e l a t e s   b a c k   t o   j u s t   t h a t   s a m e   s i n g l e   r e c o r d   f r o m   t h i s   e n t i t y 
 
         2 3 9 :             * 
 
         2 4 0 :             *   @ r e t u r n   b o o l e a n 
 
 
 
     L i n e   2 4 5   [ m a t c h :   F R O M   ] : 
 
         2 4 3 :   
 
         2 4 4 :           / * * 
 
   > >   2 4 5 :             *   W h e t h e r   o r   n o t   t h i s   a s s o c i a t i o n   t y p e   r e p r e s e n t s   a   r e l a t i o n s h i p   t o   a   s i n g l e   r e c o r d   o f   a n o t h e r   e n t i t y   w h e r e   t h e   r e c o r d   o n   t h e   r e l a t e d   a s s o c i a t i o n   c a n   r e l a t e   b a c k   t o   a n y   n u m b e r   o f   r e c o r d s   f r o m   t h i s   e n t i t y 
 
         2 4 6 :             * 
 
         2 4 7 :             *   @ r e t u r n   b o o l e a n 
 
 
 
     L i n e   2 5 2   [ m a t c h :   F R O M   ] : 
 
         2 5 0 :   
 
         2 5 1 :           / * * 
 
   > >   2 5 2 :             *   W h e t h e r   o r   n o t   t h i s   a s s o c i a t i o n   t y p e   r e p r e s e n t s   a   r e l a t i o n s h i p   t o   m u l t i p l e   r e c o r d s   o f   a n o t h e r   e n t i t y   w h e r e   a n y   g i v e n   r e c o r d   o n   t h e   r e l a t e d   a s s o c i a t i o n   c a n   r e l a t e   b a c k   t o   a n y   n u m b e r   o f   r e c o r d s   f r o m   t h i s   e n t i t y 
 
         2 5 3 :             * 
 
         2 5 4 :             *   @ r e t u r n   b o o l e a n 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ m e t a d a t a \ l i b \ F i e l d M e t a d a t a F i e l d I n t e r f a c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 8 9   [ m a t c h :   F R O M   ] : 
 
         2 8 7 :   
 
         2 8 8 :           / * * 
 
   > >   2 8 9 :             *   S e t s   a n   o v e r r i d e   f o r   t h e   c u l t u r e   t h a t   s h o u l d   b e   u s e d   t o   d e t e r m i n e   t h e   t y p e   o f   c u r r e n c y .     I f   n o t   p r o v i d e d ,   t h e   c u r r e n c y   f r o m   t h e   s e t   c u l t u r e   c o d e   w i l l   b e   u s e d   i n s t e a d . 
 
         2 9 0 :             * 
 
         2 9 1 :             *   @ p a r a m   s t r i n g   $ c u r r e n c y C u l t u r e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ m e t a d a t a \ l i b \ F i e l d M e t a d a t a I n t e r f a c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 2 1   [ m a t c h :   S E L E C T   ] : 
 
         1 1 9 :   
 
         1 2 0 :           / * * 
 
   > >   1 2 1 :             *   G e t s   w h e t h e r   o r   n o t   t h e   u s e r   c a n   s e l e c t   a   d i f f e r e n t   f i l t e r   o p e r a t o r   o t h e r   t h a n   t h e   o n e   d e f a u l t e d   t o   w h e n   f i l t e r i n g   o n   t h i s   f i e l d 
 
         1 2 2 :             * 
 
         1 2 3 :             *   @ r e t u r n   b o o l 
 
 
 
     L i n e   3 9 4   [ m a t c h :   S E L E C T   ] : 
 
         3 9 2 :   
 
         3 9 3 :           / * * 
 
   > >   3 9 4 :             *   W h e t h e r   o r   n o t   t h e   u s e r   c a n   s e l e c t   a   d i f f e r e n t   f i l t e r   o p e r a t o r   o t h e r   t h a n   t h e   o n e   d e f a u l t e d   t o   w h e n   f i l t e r i n g   o n   t h i s   f i e l d 
 
         3 9 5 :             * 
 
         3 9 6 :             *   @ p a r a m   b o o l   $ d e f a u l t F i l t e r O p e r a t o r C a n C h a n g e I n R e c o r d L i s t s 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ u i \ l i b \ F o r m \ D r i v e r \ D r i v e r I n t e r f a c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   9 4   [ m a t c h :   F R O M   ] : 
 
         9 2 :                   / * * 
 
         9 3 :                     *   T e l l s   t h e   d r i v e r   t o   a d d   a   f i e l d   t o   t h e   f o r m 
 
   > >   9 4 :                     *       t y p e   -   O n e   o f   t h e   F I E L D T Y P E   c o n s t a n t s   f r o m   t h e   F o r m   c l a s s 
 
         9 5 :                     *   S p e c i f y   a   f i e l d G r o u p R e f   r e t u r n e d   b y   a   c a l l   t o   " a d d F i e l d G r o u p "   t o   a d d   t h e   f i e l d   t o   a   g r o u p ,   o t h e r w i s e   i t   w i l l   b e   d i s p l a y e d   b e f o r e   a l l   g r o u p s 
 
         9 6 :                     *   I f   a   f i e l d G r o u p R e f   i s   s u p p l i e d   i n   a d d i t i o n   t o   a   p a r e n t F i e l d R e f ,   t h e   g r o u p   w i l l   h a v e   n o   m e a n i n g .     F o r   c o n t i n u i t y ,   t h e   p a r e n t F i e l d R e f ' s   g r o u p R e f   c a n   b e   p a s s e d ,   b u t   i t   j u s t   w o n ' t   b e   u t i l i z e d   s i n c e   g r o u p i n g   i s n ' t   r e c u r s i v e 
 
 
 
     L i n e   1 5 2   [ m a t c h :   F R O M   ] : 
 
         1 5 0 :   	 	 / * * 
 
         1 5 1 :   	 	   *   T h e r e   a r e   t w o   a r r a y s   p a s s e d ;   t h e   f i r s t   o n e   i s   a l l   o p t i o n s   t o   b e   d i s p l a y e d ,   a n d   t h e   s e c o n d   i s   t h e   a r r a y   i n d e x e s   f r o m 
 
   > >   1 5 2 :                     *   t h e   f i r s t   a r r a y   t h a t   a r e   f i l t e r e d   o u t   f r o m   t h e   c u r r e n t   d a t a   s e t   ( w h e n   p e r t i n e n t ) .     T h i s   m e t h o d   i s   i n t e n d e d   s p e c i f i c a l l y   f o r 
 
         1 5 3 :   	 	   *   T Y P E _ A S S O C _ S E L E C T _ S I N G L E   a n d   T Y P E _ A S S O C _ S E L E C T _ M U L T I .     I n   e a c h   a r r a y ,   t h e   v a l u e s   s h o u l d   b e   t h e   i n d e x   a n d   t h e   d i s p l a y   t h e   v a l u e   i n   t h e   a r r a y 
 
         1 5 4 :   	 	   * 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ u i \ l i b \ G r i d \ D a t a E x p o r t e r \ R e m o t e \ R e s p o n s e \ E x c e l . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 1 7   [ m a t c h :   F R O M   ] : 
 
         1 1 5 :                   i f ( $ t h i s - > w i d t h   = = =   ' a u t o ' ) 
 
         1 1 6 :                   { 
 
   > >   1 1 7 :                           / /   c h a n g e d   t h i s   f r o m   A U T O S I Z E _ M E T H O D _ A P P R O X   s i n c e   i t   r e q u i r e s   c a l l i n g   \ P h p O f f i c e \ P h p S p r e a d s h e e t \ S h a r e d \ F o n t : : s e t T r u e T y p e F o n t P a t h ( )   t o   s e t   w h e r e   T T F   f i l e s   a r e   o n   t h e   s y s t e m 
 
         1 1 8 :                           / /   c o u l d   d e t e c t   w i n d o w s   ( s t r t o u p p e r ( s u b s t r ( P H P _ O S ,   0 ,   3 ) )   = = =   ' W I N ' )   a n d   s e t   " C : / W i n d o w s / F o n t s / "   i n   t h i s   c a s e ,   b u t   t h e n   t h e   b e h a v i o r   w o u l d   v a r y   f r o m   p l a t f o r m   t o   p l a t f o r m   ( s i n c e   L i n u x   d o e n s ' t   r e a l l y   h a v e   a   s t a n d a r d   l o c a t i o n ) 
 
         1 1 9 :                           / /   t h e   o t h e r   o p t i o n   t o   h a v e   E X A C T   w o u l d   b e   t o   i m p o s e   a n o t h e r   p a r a m e t e r   y o u   h a v e   t o   p a s s   t o   s e t C o l u m n W i d t h   s o   i f   y o u   s p e c i f y   " a u t o "   y o u   m u s t   s p e c i f y   t h e   p a t h 
 
 
 
     L i n e   1 1 8   [ m a t c h :   F R O M   ] : 
 
         1 1 6 :                   { 
 
         1 1 7 :                           / /   c h a n g e d   t h i s   f r o m   A U T O S I Z E _ M E T H O D _ A P P R O X   s i n c e   i t   r e q u i r e s   c a l l i n g   \ P h p O f f i c e \ P h p S p r e a d s h e e t \ S h a r e d \ F o n t : : s e t T r u e T y p e F o n t P a t h ( )   t o   s e t   w h e r e   T T F   f i l e s   a r e   o n   t h e   s y s t e m 
 
   > >   1 1 8 :                           / /   c o u l d   d e t e c t   w i n d o w s   ( s t r t o u p p e r ( s u b s t r ( P H P _ O S ,   0 ,   3 ) )   = = =   ' W I N ' )   a n d   s e t   " C : / W i n d o w s / F o n t s / "   i n   t h i s   c a s e ,   b u t   t h e n   t h e   b e h a v i o r   w o u l d   v a r y   f r o m   p l a t f o r m   t o   p l a t f o r m   ( s i n c e   L i n u x   d o e n s ' t   r e a l l y   h a v e   a   s t a n d a r d   l o c a t i o n ) 
 
         1 1 9 :                           / /   t h e   o t h e r   o p t i o n   t o   h a v e   E X A C T   w o u l d   b e   t o   i m p o s e   a n o t h e r   p a r a m e t e r   y o u   h a v e   t o   p a s s   t o   s e t C o l u m n W i d t h   s o   i f   y o u   s p e c i f y   " a u t o "   y o u   m u s t   s p e c i f y   t h e   p a t h 
 
         1 2 0 :                           / /   @ T O D O :   r e v i s i t   t h i s   l a t e r   i f   A P P R O X   d o e s n ' t   w o r k   w e l l   e n o u g h 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ u i \ l i b \ G r i d \ D a t a E x p o r t e r \ R e m o t e \ R e s p o n s e \ R e m o t e D a t a E x p o r t e r R e s p o n s e I n t e r f a c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 0   [ m a t c h :   F R O M   ] : 
 
         3 8 :           
 
         3 9 :           / * * 
 
   > >   4 0 :             *   U s i n g   t h e   d a t a   a r r a y   p r o v i d e d ,   e x p o r t   t h e   " f i e l d s T o I n c l u d e "   f r o m   t h a t   a r r a y   i n   t h e   o r d e r   s p e c i f i e d . 
 
         4 1 :             *   T h e   c o l u m n   h e a d i n g s   f o r   t h e s e   f i e l d s   s h o u l d   b e   l o c a t e d   i n   " f i e l d N a m e s "   i n d e x e d   b y   t h e   f i e l d   n a m e . 
 
         4 2 :             *   R e t u r n s   t h e   s t r i n g   r e p r e s e n t a t i o n   o f   t h e   f i l e   u n l e s s   a   f i l e   n a m e   h a s   b e e n   s p e c i f i e d   i n   o u t p u t F i l e T o B r o w s e r . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ u i \ l i b \ G r i d \ D a t a S o u r c e \ L o c a l D a t a . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   3 8   [ m a t c h :   F R O M   ] : 
 
         3 6 :   	 { 
 
         3 7 :   	 	 i f ( s i z e o f ( $ d a t a )   ! = =   s i z e o f ( $ t h i s - > _ d a t a ) ) 
 
   > >   3 8 :   	 	 	 t h r o w   n e w   \ E x c e p t i o n ( ' L o c a l D a t a : : s e t D a t a   c a n   o n l y   b e   u s e d   t o   m o d i f y   e x i s t i n g   r e c o r d s   r e t u r n e d   f r o m   g e t D a t a .     A d d i n g   o r   r e m o v i n g   r e c o r d s   i s   n o t   c u r r e n t l y   s u p p o r t e d ' ) ; 
 
         3 9 :   
 
         4 0 :   	 	 $ t h i s - > _ d a t a   =   $ d a t a ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ u i \ l i b \ G r i d \ D r i v e r \ D r i v e r I n t e r f a c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 2   [ m a t c h :   F R O M   ] : 
 
         6 0 :   
 
         6 1 :                   / * * 
 
   > >   6 2 :                     *   T e l l s   t h e   d r i v e r   t o   a l w a y s   u s e   t h e   c u r r e n c y   f r o m   t h e   s p e c i f i e d   c u l t u r e ,   r e g a r d l e s s   o f   w h a t   t h e   d e f a u l t   c u l t u r e   c o d e   i s   s e t   t o . 
 
         6 3 :                     *   I f   t h i s   i s   n o t   p r o v i d e d ,   t h e   c u r r e n c y   f r o m   t h e   d e f a u l t   c u l t u r e   c o d e   w i l l   b e   u s e d   i n s t e a d . 
 
         6 4 :                     * 
 
 
 
     L i n e   6 3   [ m a t c h :   F R O M   ] : 
 
         6 1 :                   / * * 
 
         6 2 :                     *   T e l l s   t h e   d r i v e r   t o   a l w a y s   u s e   t h e   c u r r e n c y   f r o m   t h e   s p e c i f i e d   c u l t u r e ,   r e g a r d l e s s   o f   w h a t   t h e   d e f a u l t   c u l t u r e   c o d e   i s   s e t   t o . 
 
   > >   6 3 :                     *   I f   t h i s   i s   n o t   p r o v i d e d ,   t h e   c u r r e n c y   f r o m   t h e   d e f a u l t   c u l t u r e   c o d e   w i l l   b e   u s e d   i n s t e a d . 
 
         6 4 :                     * 
 
         6 5 :                     *   @ p a r a m   s t r i n g   $ c u r r e n c y C u l t u r e 
 
 
 
     L i n e   8 0   [ m a t c h :   F R O M   ] : 
 
         7 8 :   	 	 / * * 
 
         7 9 :   	 	   *   T e l l s   t h e   d r i v e r   t o   a d d   a   c o l u m n   t o   t h e   g r i d 
 
   > >   8 0 :                     *       t y p e   -   O n e   o f   t h e   C O L U M N T Y P E   c o n s t a n t s   f r o m   t h e   G r i d   c l a s s 
 
         8 1 :   	 	   * 
 
         8 2 :   	 	   *   @ p a r a m   s t r i n g   $ d a t a S o u r c e N a m e 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ u i \ l i b \ G r i d \ D r i v e r \ K e n d o U I D r i v e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   6 3 2   [ m a t c h :   S E L E C T   ] : 
 
         6 3 0 :                   { 
 
         6 3 1 :                           i f ( $ t h i s - > _ g r i d I n f o [ ' r e c o r d S e l e c t ' ] ! = = ' s i n g l e ' ) 
 
   > >   6 3 2 :                                   t h r o w   n e w   D r i v e r E x c e p t i o n ( ' S i n g l e   r e c o r d   s e l e c t   m o d e   f o r   g r i d   i s   r e q u i r e d   w h e n   t h e   m e n u   i s   b e i n g   d i s p l a y e d   a s   b u t t o n s ' ) ; 
 
         6 3 3 :   
 
         6 3 4 :                           i f ( $ t h i s - > _ m e n u A s B u t t o n s U s e D r o p d o w n   & &   ( ( i s s e t ( $ t h i s - > _ g r i d I n f o [ ' v i e w A c t i o n M e n u I t e m I n d e x ' ] )   & &   s i z e o f ( $ t h i s - > _ g r i d M e n u I t e m s )   >   2 )   | |   ( ! i s s e t ( $ t h i s - > _ g r i d I n f o [ ' v i e w A c t i o n M e n u I t e m I n d e x ' ] )   & &   s i z e o f ( $ t h i s - > _ g r i d M e n u I t e m s )   >   1 ) ) ) 
 
 
 
     L i n e   8 2 1   [ m a t c h :   S E L E C T   ] : 
 
         8 1 9 :                   i f ( s i z e o f ( $ t h i s - > _ g r i d M e n u I t e m s )   & &   ( $ t h i s - > _ m e n u A s B u t t o n s   = = =   F A L S E ) ) 
 
         8 2 0 :                   { 
 
   > >   8 2 1 :                           $ t e m p l a t e   . =   ' < s e l e c t   i d = " ' . $ t h i s - > _ g r i d I D . ' _ t o o l b a r - s e l e c t "   c l a s s = " k e n d o - d r o p d o w n " > 
 
         8 2 2 :                                                           < o p t i o n   v a l u e = " " > C h o o s e   A c t i o n < / o p t i o n > ' ; 
 
         8 2 3 :                           f o r e a c h ( $ t h i s - > _ g r i d M e n u I t e m s   a s   $ m e n u I t e m ) 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ u i \ l i b \ G r i d \ M e n u \ T e m p l a t e \ A b s t r a c t M e n u T e m p l a t e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 7   [ m a t c h :   S E L E C T   ] : 
 
         2 5 :   	 	 	 	 $ t h i s - > a d d A c t i o n ( $ a c t i o n R e f ,   $ a c t i o n ) ; 
 
         2 6 :   	 	 	 } 
 
   > >   2 7 :   	 	 	 $ t h i s - > _ r e c o r d S e l e c t   =   $ r e q u i r e s R e c o r d S e l e c t i o n ; 
 
         2 8 :   	 	 	 $ t h i s - > _ m u l t i R e c o r d s   =   $ c a n S e l e c t M u l t i p l e R e c o r d s ; 
 
         2 9 :   	 	 } 
 
 
 
     L i n e   8 6   [ m a t c h :   S E L E C T   ] : 
 
         8 4 :   	 	 p u b l i c   f u n c t i o n   r e q u i r e s R e c o r d S e l e c t i o n ( ) 
 
         8 5 :   	 	 { 
 
   > >   8 6 :   	 	 	 r e t u r n   $ t h i s - > _ r e c o r d S e l e c t   ?   t r u e   :   f a l s e ; 
 
         8 7 :   	 	 } 
 
         8 8 :   	 	 
 
 
 
     L i n e   9 1   [ m a t c h :   S E L E C T   ] : 
 
         8 9 :   	 	 p u b l i c   f u n c t i o n   c a n S e l e c t M u l t i p l e R e c o r d s ( ) 
 
         9 0 :   	 	 { 
 
   > >   9 1 :   	 	 	 r e t u r n   ( $ t h i s - > _ r e c o r d S e l e c t   & &   $ t h i s - > _ m u l t i R e c o r d s )   ?   t r u e   :   f a l s e ; 
 
         9 2 :   	 	 } 
 
         9 3 :   
 
 
 
     L i n e   9 9   [ m a t c h :   S E L E C T   ] : 
 
         9 7 :                   p u b l i c   f u n c t i o n   s e t R e q u i r e s R e c o r d S e l e c t i o n ( $ r e q u i r e s R e c o r d S e l e c t i o n ) 
 
         9 8 :   	 	 { 
 
   > >   9 9 :   	 	 	 $ t h i s - > _ r e c o r d S e l e c t   =   $ r e q u i r e s R e c o r d S e l e c t i o n ; 
 
         1 0 0 :   	 	 } 
 
         1 0 1 :   
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ u i \ l i b \ G r i d \ R e m o t e R e s p o n s e \ D r i v e r \ D r i v e r I n t e r f a c e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 1   [ m a t c h :   F R O M   ] : 
 
         3 9 :   
 
         4 0 :           / * * 
 
   > >   4 1 :             *   B a s e d   o n   t h e   p r o v i d e d   p a r a m e t e r s   f r o m   t h e   g r i d   r e q u e s t ,   i n d i c a t e s   i f   f i e l d   s o r t i n g   i s   p r e s e n t 
 
         4 2 :             * 
 
         4 3 :             *   @ p a r a m   a r r a y   $ p a r a m s 
 
 
 
     L i n e   5 0   [ m a t c h :   F R O M   ] : 
 
         4 8 :   
 
         4 9 :           / * * 
 
   > >   5 0 :             *   G e t s   a n   a r r a y   o f   f i e l d s   t o   s o r t   o n   ( i n d e x e d   b y   f i e l d   n a m e )   a n d   t h e   v a l u e   c o n t a i n i n g   d i r e c t i o n   ( D I R _ A S C   o r   D I R _ D E S C   c o n s t a n t   f r o m   \ S a v v i o r \ M e t a d a t a \ O r d e r i n g \ O r d e r B y F i e l d ) 
 
         5 1 :             * 
 
         5 2 :             *   @ p a r a m   a r r a y   $ p a r a m s 
 
 
 
     L i n e   5 9   [ m a t c h :   F R O M   ] : 
 
         5 7 :   
 
         5 8 :           / * * 
 
   > >   5 9 :             *   B a s e d   o n   t h e   p r o v i d e d   p a r a m e t e r s   f r o m   t h e   g r i d   r e q u e s t ,   i n d i c a t e s   i f   f i e l d   f i l t e r i n g   i s   p r e s e n t 
 
         6 0 :             * 
 
         6 1 :             *   @ p a r a m   a r r a y   $ p a r a m s 
 
 
 
     L i n e   6 8   [ m a t c h :   F R O M   ] : 
 
         6 6 :   
 
         6 7 :           / * * 
 
   > >   6 8 :             *   B a s e d   o n   t h e   p r o v i d e d   p a r a m e t e r s   f r o m   t h e   g r i d   r e q u e s t ,   w i l l   c o n f i g u r e   t h e   p r o v i d e d   e m p t y   f i l t e r   g r o u p   w i t h   s p e c i f i e d   f i l t e r s 
 
         6 9 :             * 
 
         7 0 :             *   @ p a r a m   \ S a v v i o r \ M e t a d a t a \ F i l t e r \ F i l t e r G r o u p   $ F i l t e r G r o u p 
 
 
 
     L i n e   8 7   [ m a t c h :   F R O M   ] : 
 
         8 5 :   
 
         8 6 :           / * * 
 
   > >   8 7 :             *   B a s e d   o n   t h e   p r o v i d e d   p a r a m e t e r s   f r o m   t h e   g r i d   r e q u e s t ,   w i l l   r e t u r n   a n   a r r a y   o f   f i e l d   n a m e s   f o r   e x p o r t ,   o r   n u l l   i f   n o t   f o u n d 
 
         8 8 :             * 
 
         8 9 :             *   @ p a r a m   a r r a y   $ p a r a m s 
 
 
 
     L i n e   9 6   [ m a t c h :   F R O M   ] : 
 
         9 4 :   
 
         9 5 :           / * * 
 
   > >   9 6 :             *   B a s e d   o n   t h e   p r o v i d e d   p a r a m e t e r s   f r o m   t h e   g r i d   r e q u e s t ,   w i l l   r e t u r n   a n   a r r a y   o f   f i e l d   d i s p l a y   n a m e s   f o r   t h e   e x p o r t ,   o r   n u l l   i f   n o t   f o u n d 
 
         9 7 :             *   T h e s e   t i t l e s   w i l l   b e   i n d e x e d   b y   t h e   f i e l d   n a m e s   r e t u r n e d   f r o m   g e t E x p o r t F i e l d N a m e s 
 
         9 8 :             * 
 
 
 
     L i n e   9 7   [ m a t c h :   F R O M   ] : 
 
         9 5 :           / * * 
 
         9 6 :             *   B a s e d   o n   t h e   p r o v i d e d   p a r a m e t e r s   f r o m   t h e   g r i d   r e q u e s t ,   w i l l   r e t u r n   a n   a r r a y   o f   f i e l d   d i s p l a y   n a m e s   f o r   t h e   e x p o r t ,   o r   n u l l   i f   n o t   f o u n d 
 
   > >   9 7 :             *   T h e s e   t i t l e s   w i l l   b e   i n d e x e d   b y   t h e   f i e l d   n a m e s   r e t u r n e d   f r o m   g e t E x p o r t F i e l d N a m e s 
 
         9 8 :             * 
 
         9 9 :             *   @ p a r a m   a r r a y   $ p a r a m s 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ u i \ l i b \ G r i d \ R e m o t e R e s p o n s e \ D r i v e r \ K e n d o U I D r i v e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   4 3 4   [ m a t c h :   F R O M   ] : 
 
         4 3 2 :                   s w i t c h   ( $ k e n d o T o k e n ) 
 
         4 3 3 :                   { 
 
   > >   4 3 4 :                           c a s e   ' d ' :   / /   T h e   d a y   o f   t h e   m o n t h ,   f r o m   1   t h r o u g h   3 1 
 
         4 3 5 :                                   r e t u r n   ' j ' ; 
 
         4 3 6 :                           c a s e   ' d d ' :   / /   T h e   d a y   o f   t h e   m o n t h ,   f r o m   0 1   t h r o u g h   3 1 . 
 
 
 
     L i n e   4 3 6   [ m a t c h :   F R O M   ] : 
 
         4 3 4 :                           c a s e   ' d ' :   / /   T h e   d a y   o f   t h e   m o n t h ,   f r o m   1   t h r o u g h   3 1 
 
         4 3 5 :                                   r e t u r n   ' j ' ; 
 
   > >   4 3 6 :                           c a s e   ' d d ' :   / /   T h e   d a y   o f   t h e   m o n t h ,   f r o m   0 1   t h r o u g h   3 1 . 
 
         4 3 7 :                                   r e t u r n   ' d ' ; 
 
         4 3 8 :                           c a s e   ' d d d ' :   / /   T h e   a b b r e v i a t e d   n a m e   o f   t h e   d a y   o f   t h e   w e e k . 
 
 
 
     L i n e   4 4 2   [ m a t c h :   F R O M   ] : 
 
         4 4 0 :                           c a s e   ' d d d d ' :   / /   T h e   f u l l   n a m e   o f   t h e   d a y   o f   t h e   w e e k . 
 
         4 4 1 :                                   r e t u r n   ' l ' ; 
 
   > >   4 4 2 :                           c a s e   ' M ' :   / /   T h e   m o n t h ,   f r o m   1   t h r o u g h   1 2 . 
 
         4 4 3 :                                   r e t u r n   ' n ' ; 
 
         4 4 4 :                           c a s e   ' M M ' :   / /   T h e   m o n t h ,   f r o m   0 1   t h r o u g h   1 2 . 
 
 
 
     L i n e   4 4 4   [ m a t c h :   F R O M   ] : 
 
         4 4 2 :                           c a s e   ' M ' :   / /   T h e   m o n t h ,   f r o m   1   t h r o u g h   1 2 . 
 
         4 4 3 :                                   r e t u r n   ' n ' ; 
 
   > >   4 4 4 :                           c a s e   ' M M ' :   / /   T h e   m o n t h ,   f r o m   0 1   t h r o u g h   1 2 . 
 
         4 4 5 :                                   r e t u r n   ' m ' ; 
 
         4 4 6 :                           c a s e   ' M M M ' :   / /   T h e   a b b r e v i a t e d   n a m e   o f   t h e   m o n t h . 
 
 
 
     L i n e   4 5 0   [ m a t c h :   F R O M   ] : 
 
         4 4 8 :                           c a s e   ' M M M M ' :   / /   T h e   f u l l   n a m e   o f   t h e   m o n t h . 
 
         4 4 9 :                                   r e t u r n   ' F ' ; 
 
   > >   4 5 0 :                           c a s e   ' h ' :   / /   T h e   h o u r ,   u s i n g   a   1 2 - h o u r   c l o c k   f r o m   1   t o   1 2 . 
 
         4 5 1 :                                   r e t u r n   ' g ' ; 
 
         4 5 2 :                           c a s e   ' h h ' :   / /   T h e   h o u r ,   u s i n g   a   1 2 - h o u r   c l o c k   f r o m   0 1   t o   1 2 . 
 
 
 
     L i n e   4 5 2   [ m a t c h :   F R O M   ] : 
 
         4 5 0 :                           c a s e   ' h ' :   / /   T h e   h o u r ,   u s i n g   a   1 2 - h o u r   c l o c k   f r o m   1   t o   1 2 . 
 
         4 5 1 :                                   r e t u r n   ' g ' ; 
 
   > >   4 5 2 :                           c a s e   ' h h ' :   / /   T h e   h o u r ,   u s i n g   a   1 2 - h o u r   c l o c k   f r o m   0 1   t o   1 2 . 
 
         4 5 3 :                                   r e t u r n   ' h ' ; 
 
         4 5 4 :                           c a s e   ' H ' :   / /   T h e   h o u r ,   u s i n g   a   2 4 - h o u r   c l o c k   f r o m   1   t o   2 3 . 
 
 
 
     L i n e   4 5 4   [ m a t c h :   F R O M   ] : 
 
         4 5 2 :                           c a s e   ' h h ' :   / /   T h e   h o u r ,   u s i n g   a   1 2 - h o u r   c l o c k   f r o m   0 1   t o   1 2 . 
 
         4 5 3 :                                   r e t u r n   ' h ' ; 
 
   > >   4 5 4 :                           c a s e   ' H ' :   / /   T h e   h o u r ,   u s i n g   a   2 4 - h o u r   c l o c k   f r o m   1   t o   2 3 . 
 
         4 5 5 :                                   r e t u r n   ' G ' ; 
 
         4 5 6 :                           c a s e   ' H H ' :   / /   T h e   h o u r ,   u s i n g   a   2 4 - h o u r   c l o c k   f r o m   0 1   t o   2 3 . 
 
 
 
     L i n e   4 5 6   [ m a t c h :   F R O M   ] : 
 
         4 5 4 :                           c a s e   ' H ' :   / /   T h e   h o u r ,   u s i n g   a   2 4 - h o u r   c l o c k   f r o m   1   t o   2 3 . 
 
         4 5 5 :                                   r e t u r n   ' G ' ; 
 
   > >   4 5 6 :                           c a s e   ' H H ' :   / /   T h e   h o u r ,   u s i n g   a   2 4 - h o u r   c l o c k   f r o m   0 1   t o   2 3 . 
 
         4 5 7 :                                   r e t u r n   ' H ' ; 
 
         4 5 8 :                           c a s e   ' m m ' :   / /   T h e   m i n u t e ,   f r o m   0 0   t h r o u g h   5 9 . 
 
 
 
     L i n e   4 5 8   [ m a t c h :   F R O M   ] : 
 
         4 5 6 :                           c a s e   ' H H ' :   / /   T h e   h o u r ,   u s i n g   a   2 4 - h o u r   c l o c k   f r o m   0 1   t o   2 3 . 
 
         4 5 7 :                                   r e t u r n   ' H ' ; 
 
   > >   4 5 8 :                           c a s e   ' m m ' :   / /   T h e   m i n u t e ,   f r o m   0 0   t h r o u g h   5 9 . 
 
         4 5 9 :                                   r e t u r n   ' i ' ; 
 
         4 6 0 :                           c a s e   ' s s ' :   / /   T h e   s e c o n d ,   f r o m   0 0   t h r o u g h   5 9 . 
 
 
 
     L i n e   4 6 0   [ m a t c h :   F R O M   ] : 
 
         4 5 8 :                           c a s e   ' m m ' :   / /   T h e   m i n u t e ,   f r o m   0 0   t h r o u g h   5 9 . 
 
         4 5 9 :                                   r e t u r n   ' i ' ; 
 
   > >   4 6 0 :                           c a s e   ' s s ' :   / /   T h e   s e c o n d ,   f r o m   0 0   t h r o u g h   5 9 . 
 
         4 6 1 :                                   r e t u r n   ' s ' ; 
 
         4 6 2 :                           c a s e   ' t t ' :   / /   T h e   A M / P M   d e s i g n a t o r . 
 
 
 
     L i n e   4 6 4   [ m a t c h :   F R O M   ] : 
 
         4 6 2 :                           c a s e   ' t t ' :   / /   T h e   A M / P M   d e s i g n a t o r . 
 
         4 6 3 :                                   r e t u r n   ' A ' ; 
 
   > >   4 6 4 :                           c a s e   ' y y ' :   / /   T h e   l a s t   t w o   c h a r a c t e r s   f r o m   y e a r   v a l u e . 
 
         4 6 5 :                                   r e t u r n   ' y ' ; 
 
         4 6 6 :                           c a s e   ' y y y y ' :   / /   T h e   y e a r   f u l l   v a l u e . 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ u i \ l i b \ G r i d \ R e m o t e R e s p o n s e \ G r i d R e s p o n s e . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   2 1   [ m a t c h :   F R O M   ] : 
 
         1 9 :           u s e   C o n v e r t s M e t a d a t a T y p e s T o G r i d T y p e s ; 
 
         2 0 :   
 
   > >   2 1 :           c o n s t   R E S P O N S E _ M O D E _ G R I D   =   1 ;   / /   t h e   r e s p o n s e   f r o m   t h e   d r i v e r   n e e d e d   t o   p o p u l a t e   t h e   g r i d 
 
         2 2 :           c o n s t   R E S P O N S E _ M O D E _ E X P O R T   =   2 ;   / /   a   f i l e   d o w n l o a d   o f   t h e   g r i d   d a t a 
 
         2 3 :           c o n s t   R E S P O N S E _ M O D E _ L O C A L _ D A T A _ O B J E C T   =   3 ;   / /   t h e   l o c a l   d a t a   o b j e c t   i f   i t   n e e d s   m a n i p u l a t e d   b y   t h e   c a l l i n g   s c r i p t   b e f o r e   b e i n g   s e n t   t o   t h e   g r i d   o r   e x p o r t e d 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ u i \ l i b \ G r i d \ G r i d . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   5 1 8   [ m a t c h :   F R O M   ] : 
 
         5 1 6 :   	 p r i v a t e   f u n c t i o n   _ g e t P o t e n t i a l C o l u m n N a m e s I n D i s p l a y M a s k ( E n t i t y M e t a d a t a I n t e r f a c e   $ E n t i t y M e t a d a t a ,   $ f i e l d P r e f i x   =   ' ' ) 
 
         5 1 7 :           { 
 
   > >   5 1 8 :                   / /   t h i s   m e t h o d   w i l l   b e   " g r e e d y "   w h e n   c a l c u l a t i n g   p o s s i b l e   f i e l d   n a m e s   ( n o t   c o n s i d e r i n g   w h i c h   f i e l d s   w i l l   a c t u a l l y   b e   o n   t h e   g r i d ) ,   s i n c e   t h e s e   d e t e r m i n a t i o n s   w i l l   a l r e a d y   b e   m a d e   w h e n   t h e   c o l u m n s   a r e   s e t u p   f r o m   t h e   m e t a d a t a 
 
         5 1 9 :                   $ F i e l d s I n D i s p l a y M a s k   =   [ ] ; 
 
         5 2 0 :                   $ D i s p l a y M a s k   =   $ E n t i t y M e t a d a t a - > g e t D i s p l a y M a s k ( ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ u i \ l i b \ R e c o r d D i s p l a y \ D r i v e r \ F o r m B u i l d e r D r i v e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 0 2   [ m a t c h :   F R O M   ] : 
 
         1 0 0 :                           { 
 
         1 0 1 :                                   i f ( ! i s _ n u l l ( $ f i e l d G r o u p R e f ) ) 
 
   > >   1 0 2 :                                           t h r o w   n e w   D r i v e r E x c e p t i o n ( ' N e s t e d   d i s p l a y s   c a n n o t   b e   i n   a   g r o u p   f o r   t h e   f r o m   b u i l d e r   r e c o r d   d i s p l a y   d r i v e r ' ) ; 
 
         1 0 3 :                                   i f ( ! i s _ n u l l ( $ p a r e n t F i e l d R e f ) ) 
 
         1 0 4 :                                           t h r o w   n e w   D r i v e r E x c e p t i o n ( ' N e s t e d   d i s p l a y s   c a n n o t   b e   i n   a n o t h e r   n e s t e d   d i s p l a y   f o r   t h e   f o r m   b u i l d e r   r e c o r d   d i s p l a y   d r i v e r ' ) ; 
 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F I L E :   C : \ i n e t p u b \ p o r t a l - l i v e \ v e n d o r \ s a v v i o r \ u i \ p u b l i c \ f o r m \ j s \ f i l e - u p l o a d \ s e r v e r \ p h p \ U p l o a d H a n d l e r . p h p 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
     L i n e   1 3 9   [ m a t c h :   F R O M   ] : 
 
         1 3 7 :                                           / /   M a k e   s u r e   t h a t   t h i s   d i r e c t o r y   d o e s n ' t   a l l o w   e x e c u t i o n   o f   f i l e s   i f   y o u 
 
         1 3 8 :                                           / /   d o n ' t   p o s e   a n y   r e s t r i c t i o n s   o n   t h e   t y p e   o f   u p l o a d e d   f i l e s ,   e . g .   b y 
 
   > >   1 3 9 :                                           / /   c o p y i n g   t h e   . h t a c c e s s   f i l e   f r o m   t h e   f i l e s   d i r e c t o r y   f o r   A p a c h e : 
 
         1 4 0 :                                           / / ' u p l o a d _ d i r '   = >   d i r n a m e ( $ t h i s - > g e t _ s e r v e r _ v a r ( ' S C R I P T _ F I L E N A M E ' ) ) . ' / t h u m b / ' , 
 
         1 4 1 :                                           / / ' u p l o a d _ u r l '   = >   $ t h i s - > g e t _ f u l l _ u r l ( ) . ' / t h u m b / ' , 
 
 
 
     L i n e   1 1 8 9   [ m a t c h :   F R O M   ] : 
 
         1 1 8 7 :                   } 
 
         1 1 8 8 :                   $ f i l e _ p a t h   =   $ t h i s - > g e t _ u p l o a d _ p a t h ( $ f i l e _ n a m e ,   $ t h i s - > g e t _ v e r s i o n _ p a r a m ( ) ) ; 
 
   > >   1 1 8 9 :                   / /   P r e v e n t   b r o w s e r s   f r o m   M I M E - s n i f f i n g   t h e   c o n t e n t - t y p e : 
 
         1 1 9 0 :                   $ t h i s - > h e a d e r ( ' X - C o n t e n t - T y p e - O p t i o n s :   n o s n i f f ' ) ; 
 
         1 1 9 1 :                   i f   ( ! p r e g _ m a t c h ( $ t h i s - > o p t i o n s [ ' i n l i n e _ f i l e _ t y p e s ' ] ,   $ f i l e _ n a m e ) )   { 
 
 
 
     L i n e   1 2 2 6   [ m a t c h :   F R O M   ] : 
 
         1 2 2 4 :                   $ t h i s - > h e a d e r ( ' C a c h e - C o n t r o l :   n o - s t o r e ,   n o - c a c h e ,   m u s t - r e v a l i d a t e ' ) ; 
 
         1 2 2 5 :                   $ t h i s - > h e a d e r ( ' C o n t e n t - D i s p o s i t i o n :   i n l i n e ;   f i l e n a m e = " f i l e s . j s o n " ' ) ; 
 
   > >   1 2 2 6 :                   / /   P r e v e n t   I n t e r n e t   E x p l o r e r   f r o m   M I M E - s n i f f i n g   t h e   c o n t e n t - t y p e : 
 
         1 2 2 7 :                   $ t h i s - > h e a d e r ( ' X - C o n t e n t - T y p e - O p t i o n s :   n o s n i f f ' ) ; 
 
         1 2 2 8 :                   i f   ( $ t h i s - > o p t i o n s [ ' a c c e s s _ c o n t r o l _ a l l o w _ o r i g i n ' ] )   { 
 
 
 
 