a:26:{i:0;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:14:"BCODE_onChange";s:4:"tipo";s:1:"A";s:5:"parms";s:0:"";s:6:"codigo";s:61:"[var_bcode]={bcode};
billtoupdate();
customerfieldupdate();";}i:1;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:18:"FINISH_NO_onChange";s:4:"tipo";s:1:"A";s:5:"parms";s:0:"";s:6:"codigo";s:15:"changefinish();";}i:2;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:13:"HECO_onChange";s:4:"tipo";s:1:"A";s:5:"parms";s:0:"";s:6:"codigo";s:11:"heupdate();";}i:3;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:13:"LDCO_onChange";s:4:"tipo";s:1:"A";s:5:"parms";s:0:"";s:6:"codigo";s:11:"ldupdate();";}i:4;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:14:"ORDER_onChange";s:4:"tipo";s:1:"A";s:5:"parms";s:0:"";s:6:"codigo";s:14:"termschange();";}i:5;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:17:"QUOTE_NO_onChange";s:4:"tipo";s:1:"A";s:5:"parms";s:0:"";s:6:"codigo";s:14:"quotechange();";}i:6;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:14:"SCODE_onChange";s:4:"tipo";s:1:"A";s:5:"parms";s:0:"";s:6:"codigo";s:15:"shiptoupdate();";}i:7;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:12:"SHE_onChange";s:4:"tipo";s:1:"A";s:5:"parms";s:0:"";s:6:"codigo";s:12:"shechange();";}i:8;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:12:"SLD_onChange";s:4:"tipo";s:1:"A";s:5:"parms";s:0:"";s:6:"codigo";s:12:"sldchange();";}i:9;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:14:"STYLE_onChange";s:4:"tipo";s:1:"A";s:5:"parms";s:0:"";s:6:"codigo";s:320:"$check_sql = "SELECT width, `desc`"
   . " FROM veratex2.line"
   . " WHERE style = '" . {style} . "'";
sc_lookup(rs, $check_sql);

if (isset({rs[0][0]}))     // Row found
{
    {width} = {rs[0][0]};
    {bill_descr} = {rs[0][1]};
}
		else     // No row found
{
		    {width} = '';
    {bill_descr} = '';
}";}i:10;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:14:"TERMS_onChange";s:4:"tipo";s:1:"A";s:5:"parms";s:0:"";s:6:"codigo";s:14:"termschange();";}i:11;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:12:"billtoupdate";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:990:"$getadd="select prefix,name,address1,address2,city,state,zip_code,country,
salesman,terms,terms2 from veratex2.custbill
where bcode='{bcode}'";
sc_lookup(rs,$getadd);	
if (isset({rs[0][0]}))
	{
	$prefix={rs[0][0]};	
		}
else
	{
     $prefix='';
		}
if (isset({rs[0][1]}))
	{
	$name={rs[0][1]};	
		}
else
	{
     $name='';
		}
if (isset({rs[0][2]}))
	{
	{Badd1}={rs[0][2]};	
		}
else
	{
     {Badd1}='';
		}
if (isset({rs[0][3]}))
	{
	{Badd2}={rs[0][3]};	
		}
else
	{
     {Badd2}='';
		}
if (isset({rs[0][4]}))
{
$city={rs[0][4]};
}
else
	{
		$city='';
	}
if (isset({rs[0][5]}))
{
	$state={rs[0][5]};
}
else
	{
		$state='';
		}
if (isset({rs[0][6]}))
	{
		$zip={rs[0][6]};
}
else
	{
		$zip='';
			}
{bname}=$prefix.' '.$name;
		{Badd3}=$city." ".$state."  ".$zip;

if (isset({rs[0][7]}))
	{
	{Badd4}={rs[0][7]};	
		}
else
	{
     {Badd4}='';
		}
{salesman}={rs[0][8]};
	{terms}={rs[0][9]};
		{terms2}={rs[0][10]};

";}i:12;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:12:"changefinish";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:201:"$getadd="select fin_long_name from veratex2.finish 
where our_fin_no='{finish_no}'";
sc_lookup(rs,$getadd);	
if (isset({rs[0][0]}))
	{
	{finish}={rs[0][0]};	
		}
else
	{
     {finish}='';
		}";}i:13;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:19:"customerfieldupdate";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:285:"$getadd="select salesman,terms,terms2 from veratex2.custbill 
where bcode='{bcode}'";
sc_lookup(rs,$getadd);	
if (isset({rs[0][0]}))
	{
	{salesman}={rs[0][0]};	
		}
if (isset({rs[0][1]}))
	{
	{terms}={rs[0][1]};	
		}
if (isset({rs[0][2]}))
	{
	{terms2}={rs[0][2]};	
		}
";}i:14;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:8:"heupdate";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:900:"$getadd="select prefix,name,address1,address2,city,state,zip_code,country from veratex2.custship
where scode='{heco}'";
sc_lookup(rs,$getadd);	
if (isset({rs[0][0]}))
	{
	$prefix={rs[0][0]};	
		}
else
	{
     $prefix='';
		}
if (isset({rs[0][1]}))
	{
	$name={rs[0][1]};	
		}
else
	{
     $name='';
		}
if (isset({rs[0][2]}))
	{
	{HEadd1}={rs[0][2]};	
		}
else
	{
     {HEadd1}='';
		}
if (isset({rs[0][3]}))
	{
	{HEadd2}={rs[0][3]};	
		}
else
	{
     {HEadd2}='';
		}
if (isset({rs[0][4]}))
{
$city={rs[0][4]};
}
else
	{
		$city='';
	}
if (isset({rs[0][5]}))
{
	$state={rs[0][5]};
}
else
	{
		$state='';
		}
if (isset({rs[0][6]}))
	{
		$zip={rs[0][6]};
}
else
	{
		$zip='';
			}
{hename}=$prefix.' '.$name;
		{HEadd3}=$city." ".$state."  ".$zip;

if (isset({rs[0][7]}))
	{
	{HEadd4}={rs[0][7]};	
		}
else
	{
     {HEadd4}='';
		}
";}i:15;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:8:"ldupdate";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:900:"$getadd="select prefix,name,address1,address2,city,state,zip_code,country from veratex2.custship
where scode='{ldco}'";
sc_lookup(rs,$getadd);	
if (isset({rs[0][0]}))
	{
	$prefix={rs[0][0]};	
		}
else
	{
     $prefix='';
		}
if (isset({rs[0][1]}))
	{
	$name={rs[0][1]};	
		}
else
	{
     $name='';
		}
if (isset({rs[0][2]}))
	{
	{LDadd1}={rs[0][2]};	
		}
else
	{
     {LDadd1}='';
		}
if (isset({rs[0][3]}))
	{
	{LDadd2}={rs[0][3]};	
		}
else
	{
     {LDadd2}='';
		}
if (isset({rs[0][4]}))
{
$city={rs[0][4]};
}
else
	{
		$city='';
	}
if (isset({rs[0][5]}))
{
	$state={rs[0][5]};
}
else
	{
		$state='';
		}
if (isset({rs[0][6]}))
	{
		$zip={rs[0][6]};
}
else
	{
		$zip='';
			}
{ldname}=$prefix.' '.$name;
		{LDadd3}=$city." ".$state."  ".$zip;

if (isset({rs[0][7]}))
	{
	{LDadd4}={rs[0][7]};	
		}
else
	{
     {LDadd4}='';
		}
";}i:16;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:13:"onAfterInsert";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:34:"sc_commit_trans();
refreshform();";}i:17;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:13:"onAfterUpdate";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:14:"refreshform();";}i:18;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:14:"onBeforeUpdate";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:0:"";}i:19;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:9:"onLoadAll";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:154:"[var_terms]={terms};
[var_bcode]={bcode};
[var_style]={style};
billtoupdate();
shiptoupdate();
sldchange();
shechange();
ldupdate();
heupdate();
";}i:20;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:11:"quotechange";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:733:"$getadd="select `desc`,width,base_price,unit,yds,tubes,put_up,finish,finish_no,style from veratex2.prices 
where quote_no='{quote_no}'";
sc_lookup(rs,$getadd);	
if (isset({rs[0][0]}))
	{
	{bill_descr}={rs[0][0]};	
		}
if (isset({rs[0][1]}))
	{
	{width}={rs[0][1]};	
		}
if (isset({rs[0][2]}))
	{
	{bp}={rs[0][2]};	
		}
if (isset({rs[0][3]}))
	{
	{lin_sq}={rs[0][3]};	
		}
if (isset({rs[0][4]}))
	{
	{rolls}={rs[0][4]};	
		}
if (isset({rs[0][5]}))
	{
	{tubes}={rs[0][5]};	
		}
if (isset({rs[0][6]}))
	{
	{put_up}={rs[0][6]};	
		}
if (isset({rs[0][7]}))
	{
	{finish}={rs[0][7]};	
		}
if (isset({rs[0][8]}))
	{
	{finish_no}={rs[0][8]};	
		}
if (isset({rs[0][9]}))
	{
	{style}={rs[0][9]};	
		}
";}i:21;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:11:"refreshform";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:46:"sc_redir("fv2_orders_orders_form","","_self");";}i:22;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:9:"shechange";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:181:"if({she}=='N')
	{
{headd1}='';
{headd2}='';
{headd3}='';
{headd4}='';
{hename}='';
{submithe}='';
		}
if({she}=='Y')
{
{submithe}='Submit Head End For Approval To:';
}
";}i:23;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:12:"shiptoupdate";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:893:"$getadd="select prefix,name,address1,address2,city,state,zip_code,country from veratex2.custship
where scode='{scode}'";
sc_lookup(rs,$getadd);	
if (isset({rs[0][0]}))
	{
	$prefix={rs[0][0]};	
		}
else
	{
     $prefix='';
		}
if (isset({rs[0][1]}))
	{
	$name={rs[0][1]};	
		}
else
	{
     $name='';
		}
if (isset({rs[0][2]}))
	{
	{Sadd1}={rs[0][2]};	
		}
else
	{
     {Sadd1}='';
		}
if (isset({rs[0][3]}))
	{
	{Sadd2}={rs[0][3]};	
		}
else
	{
     {Sadd2}='';
		}
if (isset({rs[0][4]}))
{
$city={rs[0][4]};
}
else
	{
		$city='';
	}
if (isset({rs[0][5]}))
{
	$state={rs[0][5]};
}
else
	{
		$state='';
		}
if (isset({rs[0][6]}))
	{
		$zip={rs[0][6]};
}
else
	{
		$zip='';
			}
{sname}=$prefix.' '.$name;
		{Sadd3}=$city." ".$state."  ".$zip;

if (isset({rs[0][7]}))
	{
	{Sadd4}={rs[0][7]};	
		}
else
	{
     {Sadd4}='';
		}
";}i:24;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:9:"sldchange";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:181:"if({sld}=='N')
	{
{ldadd1}='';
{ldadd2}='';
{ldadd3}='';
{ldadd4}='';
{ldname}='';
{submitld}='';
		}
if({sld}=='Y')
	{
{submitld}='Submit Lab Dip For Approval To:';
		}";}i:25;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:22:"fv2_orders_orders_form";s:4:"nome";s:11:"termschange";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:173:"$getadd="select ddays from veratex2.terms 
where terms='{terms}'";
sc_lookup(rs,$getadd);	
if (isset({rs[0][0]}))
{
	{dday}={rs[0][0]};	
}
else
{
     {dday}='';
}";}}