ÿÿ  CHHVBScriptEngine       ÿþÿ	( G e n e r a l )    ÿþÿ( D e c l a r a t i o n s ) ÿþÿ' ( D e c l a r a t i o n s )  
 ÿþÿÿ  
 ' F o r m u l a :   B U N D L E P R E I S E  
 ' D e s c r i p t i o n :   D i g i t a l   D a t a   -   Z i e h t   p a s s e n d e n   P r e i s   f ü r   B u n d l e - A r t i k e l  
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 '   D i e s e   Z e i l e n f o r m e l   V K   e r m i t t e l t   f ü r   B u n d l e - S u b - A r t i k e l   d i e   p a s s e n d e n  
 '   E i n z e l p r e i s e .  
 '  
 '   S e t z t   v o r a u s ,   d a s   i n   d e r   M E S O N I C . I N I   d e r   S c h a l t e r   P r i c e c a l c u l a t i o n = 0   i m    
 '   A b s c h n i t t   [ M a c r o o p t i o n ]   g e s e t z t   i s t .  
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 '   C o p y r i g h t   ( c )   2 0 2 1   b y   D i g i t a l   D a t a   G m b H  
 '  
 '   D i g i t a l   D a t a   G m b H   "   L u d w i g - R i n n - S t r a s s e   1 6   "   D - 3 5 4 5 2   H e u c h e l h e i m  
 '   T e l . :   0 6 4 1 / 2 0 2 3 6 0   "   E - M a i l :   i n f o - f l o w ( a t ) d i g i t a l d a t a . w o r k s  
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 '   C r e a t i o n   D a t e   /   A u t h o r :       0 1 . 0 6 . 2 0 2 1   /   M P  
 '   V e r s i o n   D a t e   /   E d i t o r :         1 0 . 0 8 . 2 0 2 1   /   M P  
 '   V e r s i o n   N u m b e r :                       3 . 0 . 0 . 5  
  
 F u n c t i o n   F o r m u l a   ( )  
  
 	 O n   E r r o r   R e s u m e   N e x t  
 	  
 	 ' # # # # # # # # # #   s e t   v a r i a b l e s   # # # # # # # # # #  
 	  
 	 A r t i k e l N u m m e r   =   V a l u e ( 0 , 1 6 5 )  
 	 M a k r o B e z u g   =   V a l u e ( 0 , 8 6 8 )  
 	  
 	 ' # # # # # # # # # #   p r e p a r i n g   p a r t   # # # # # # # # # #  
 	  
 	 ' R e s e t   E r r o r   V a r  
 	 E r r . C l e a r  
 	 	  
 	 '   D i e   F o r m e l   s o l l   a u c h   f ü r   I d e n t - A r t i k e l   a u s g e f ü h r t   w e r d e n  
 	 M a i n P r o d u c t E n t r y  
 	  
 	 '   M e n g e n ä n d e r u n g   s o l l   n i c h t   d e n   P r e i s   n e u   h o l e n  
 	 I n v o i c i n g . P r i c e F r o m F o r m u l a  
 	  
 	 ' # # # # # # # # # #   m a i n   p a r t   # # # # # # # # # #  
 	 	  
 	 '   M a k r o - S u b - A r t i k e l - L o g i k  
 	 I f   M a k r o B e z u g   < >   " 0 0 0 0 "   A n d   C W L S t a r t . G l o b a l P r o p e r t y ( 2 0 )   < >   A r t i k e l N u m m e r   T h e n  
 	 	 	  
 	 	 ' V a l u e ( 2 6 , 5 0 0 )   =   2  
 	 	 	  
 	 	 S Q L Q u e r y   =   " "  
 	 	 S Q L Q u e r y   =   S Q L Q u e r y   &   " S E L E C T   d b o . F N D D _ G E T _ M A C R O S U B A R T I C L E _ P R I C E   ( "  
 	 	 S Q L Q u e r y   =   S Q L Q u e r y   &   " y y y y ,   "  
 	 	 S Q L Q u e r y   =   S Q L Q u e r y   &   " ' ~ ~ ~ ~ ' ,   "  
 	 	 S Q L Q u e r y   =   S Q L Q u e r y   &   " ' "   &   C W L S t a r t . G l o b a l P r o p e r t y ( 2 0 )   &   " ' ,   "  
 	 	 S Q L Q u e r y   =   S Q L Q u e r y   &   " ' "   &   A r t i k e l N u m m e r   &   " ' "  
 	 	 S Q L Q u e r y   =   S Q L Q u e r y   &   " )   - - ( N O L O C K ) "  
  
 	 	 S e t   C o n n     =   C W L S t a r t . C u r r e n t C o m p a n y . C o n n e c t i o n  
 	 	 S e t   r e s u l t   =   C o n n . S e l e c t ( S Q L Q u e r y )  
  
 	 	 I f   E r r . N u m b e r   < >   0   T h e n  
 	 	 	 M s g b o x   " F e h l e r   :   "   &   v b N e w l i n e   &   E r r . N u m b e r   &   "   -   "   &   E r r . D e s c r i p t i o n ,   v b E x c l a m a t i o n ,   " F e h l e r   i n   d e r   Z F V - F o r m e l   B U N D L E P R E I S E "  
 	 	 E l s e  
 	 	 	 B u n d l e P r e i s   =   r e s u l t . v a l u e ( 0 )  
 	 	 	  
 	 	 	 ' m s g b o x   A r t i k e l N u m m e r   &   "   -   "   &   B u n d l e P r e i s  
 	 	 	  
 	 	 	 I f   B u n d l e P r e i s   < >   - 9 9 9   T h e n  
 	 	 	 	 I n v o i c i n g . P r i c e   =   B u n d l e P r e i s  
 	 	 	 E l s e  
 	 	 	 	 '   w e n n   k e i n   P r e i s   g e f u n d e n   w u r d e ,   k a n n   e r   a u c h   n i c h t   g e s e t z t   w e r d e n  
 	 	 	 	 I n v o i c i n g . P r i c e   =   0  
 	 	 	 E n d   I f  
 	 	 	  
 	 	 E n d   I f  
 	 	  
 	 E l s e  
 	 	 '   B e h a n d l u n g   d e r   n o r m a l e n   A r t i k e l  
 	 	 V K M a k r o   =   V a l u e ( 2 1 , 3 7 )  
 	 	 I f   L e n ( V K M a k r o )   >   0   T h e n  
 	 	 	 '   E s   g i b t   e i n   V K - M a k r o !   w i r   h a b e n   e i n e n   M a k r o - H a u p t a r t i k e l  
 	 	 	 V a l u e ( 2 6 , 5 0 0 )   =   1  
 	 	 	 I n v o i c i n g . D i s c o u n t 1   =   - 1 0 0  
 	 	 	 I n v o i c i n g . F a c t o r 1   =   I n v o i c i n g . P r i c e  
 	 	 	 C W L S t a r t . G l o b a l P r o p e r t y ( 2 0 )   =   A r t i k e l N u m m e r  
 	 	 E l s e    
 	 	 	 '   E i n   n o r m a l e r   A r t i k e l ,   o h n e   M a k r o - b e z u g   h a t   k e i n e   A u s w i r k u n g e n  
 	 	 	 V a l u e ( 2 6 , 5 0 0 )   =   0  
 	 	 	 C W L S t a r t . G l o b a l P r o p e r t y ( 2 0 )   =   " "  
 	 	 E n d   I f  
 	 	  
 	 E n d   I f  
 	  
 	 I n v o i c i n g . C a l c T o t a l ( )  
 	  
 	 ' V a l u e ( 2 6 , 5 0 0 )   =   3  
 	 F o r m u l a   =   1 	 ' s u c c e s s f u l  
 E n d   F u n c t i o n  
  
 ÿþÿ' E n d   o f   ( D e c l a r a t i o n s )  
  
 r m u l a   =   1 	 ' s u c c e s s f u l  
 E n d   F u n c t i o n  
  
 ÿþÿ' E n d   o f   ( D e c l a r a t i o n s )  
  
 f  
 	 	  
 	 E n d   I f  
 	  
 	 F o r m u l a   =   1 	 ' s u c c e s s f u l  
 E n d   F u n c t i o n  
  
 ÿþÿ' E n d   o f   ( D e c l a r a t i o n s )  
  
 