a:14:{i:0;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:24:"fv2_shipping_doship_form";s:4:"nome";s:0:"";s:4:"tipo";s:0:"";s:5:"parms";s:0:"";s:6:"codigo";s:0:"";}i:1;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:24:"fv2_shipping_doship_form";s:4:"nome";s:11:"B1_onChange";s:4:"tipo";s:1:"A";s:5:"parms";s:0:"";s:6:"codigo";s:15:"billtoupdate();";}i:2;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:24:"fv2_shipping_doship_form";s:4:"nome";s:13:"FROM_onChange";s:4:"tipo";s:1:"A";s:5:"parms";s:0:"";s:6:"codigo";s:15:"originupdate();";}i:3;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:24:"fv2_shipping_doship_form";s:4:"nome";s:19:"P_O_NUMBER_onChange";s:4:"tipo";s:1:"A";s:5:"parms";s:0:"";s:6:"codigo";s:45:"pochange();
billtoupdate();
shiptoupdate();";}i:4;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:24:"fv2_shipping_doship_form";s:4:"nome";s:11:"S1_onChange";s:4:"tipo";s:1:"A";s:5:"parms";s:0:"";s:6:"codigo";s:15:"shiptoupdate();";}i:5;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:24:"fv2_shipping_doship_form";s:4:"nome";s:12:"billtoupdate";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:892:"$getadd="select prefix,name,address1,address2,city,state,zip_code,country from veratex2.custbill
where bcode='{B1}'";
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}='';
		}

";}i:6;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:24:"fv2_shipping_doship_form";s:4:"nome";s:13:"onAfterUpdate";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:0:"";}i:7;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:24:"fv2_shipping_doship_form";s:4:"nome";s:9:"onLoadAll";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:157:"[var_bcode]={B1};
[var_scode]={S1};
originupdate();
billtoupdate();
shiptoupdate();
if({status}=='$')
{
readonlyon();
}
else
{
readonlyoff();
}
";}i:8;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:24:"fv2_shipping_doship_form";s:4:"nome";s:12:"originupdate";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:794:"$getadd="select prefix,name,address1,address2,city,state,zip_code from veratex2.supref
where code='{from}'";
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='';
		}
{Dname}=$prefix.' '.$name;
	
if (isset({rs[0][2]}))
	{
	{Dadd1}={rs[0][2]};	
		}
else
	{
     {Dadd1}='';
		}
if (isset({rs[0][3]}))
	{
	{Dadd2}={rs[0][3]};	
		}
else
	{
     {Dadd2}='';
		}
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='';
			}
	{Dadd3}=$city." ".$state."  ".$zip;

";}i:9;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:24:"fv2_shipping_doship_form";s:4:"nome";s:8:"pochange";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:681:"$check_sql = "SELECT
bcode,
scode,
terms,
terms2,
ship_via,
how,
howwho,
addcharge,
addfor
"
   . " FROM `order`"
   . " WHERE `order` = '" . {p_o_number} . "'";
sc_lookup(rs, $check_sql);

if (isset({rs[0][0]}))     // Row found
{
    {b1} = {rs[0][0]};
    {s1} = {rs[0][1]};
		{terms} = {rs[0][2]};
    {terms2} = {rs[0][3]};
		{via1} = {rs[0][4]};
    {how} = {rs[0][5]};
		{howwho} = {rs[0][6]};
    {add_charge} = {rs[0][7]};
		 {add_ons} = {rs[0][8]};
}
		else     // No row found
{
	{b1} = '';
    {s1} = '';
		{terms} = '';
    {terms2} = '';
		{via1} = '';
    {how} = '';
		{howwho} = '';
    {add_charge} = '';
		 {add_ons} = '';
}";}i:10;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:24:"fv2_shipping_doship_form";s:4:"nome";s:11:"readonlyoff";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:729:"sc_field_readonly({p_o_number},off);
sc_field_readonly({date},off);
sc_field_readonly({att},off);
sc_field_readonly({b1},off);
sc_field_readonly({s1},off);
sc_field_readonly({via1},off);
sc_field_readonly({how},off);
sc_field_readonly({howwho},off);
sc_field_readonly({from},off);
sc_field_readonly({add_charge},off);
sc_field_readonly({add_ons},off);
sc_field_readonly({spec},off);
sc_field_readonly({spoke},off);
sc_field_readonly({rdate},off);
sc_field_readonly({sdate},off);
sc_field_readonly({bl},off);
sc_field_readonly({pro},off);
sc_field_readonly({comment},off);
sc_btn_display('lockrecord','on');
sc_btn_display('unlockrecord','off');
sc_btn_display('delete','on');
sc_btn_display('update','on');
";}i:11;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:24:"fv2_shipping_doship_form";s:4:"nome";s:10:"readonlyon";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:713:"sc_field_readonly({p_o_number},on);
sc_field_readonly({date},on);
sc_field_readonly({att},on);
sc_field_readonly({b1},on);
sc_field_readonly({s1},on);
sc_field_readonly({via1},on);
sc_field_readonly({how},on);
sc_field_readonly({howwho},on);
sc_field_readonly({from},on);
sc_field_readonly({add_charge},on);
sc_field_readonly({add_ons},on);
sc_field_readonly({spec},on);
sc_field_readonly({spoke},on);
sc_field_readonly({rdate},on);
sc_field_readonly({sdate},on);
sc_field_readonly({bl},on);
sc_field_readonly({pro},on);
sc_field_readonly({comment},on);
sc_btn_display('lockrecord','off');
sc_btn_display('unlockrecord','on');
sc_btn_display('delete','off');
sc_btn_display('update','off');
";}i:12;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:24:"fv2_shipping_doship_form";s:4:"nome";s:11:"refreshform";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:47:"sc_redir( fv2_shipping_doship_form,"","_self");";}i:13;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:24:"fv2_shipping_doship_form";s:4:"nome";s:12:"shiptoupdate";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:888:"$getadd="select prefix,name,address1,address2,city,state,zip_code,country from veratex2.custship
where scode='{S1}'";
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}='';
		}";}}