a:7:{i:0;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:25:"fv2_dye_n3case_multi_form";s:4:"nome";s:23:"dye_update_n3case_dorec";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:383:"$dyelot=[var_dyelot];

$check_sql = "SELECT SUM(yds) FROM n3case
WHERE dye_lot = '[var_dyelot]'";
sc_lookup(erg,$check_sql);

if(isset({erg[0][0]}))
{
$new_yds={erg[0][0]};
$update_phrase = "
UPDATE fairlanevrtx2.dorec
set c1yards = '{$new_yds}'
WHERE  fairlanevrtx2.dorec.dye_lot = '{$dyelot}'
";
sc_exec_sql($update_phrase);
sc_master_value('c1yards', $new_yds);
}	";}i:1;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:25:"fv2_dye_n3case_multi_form";s:4:"nome";s:13:"onAfterDelete";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:26:"dye_update_n3case_dorec();";}i:2;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:25:"fv2_dye_n3case_multi_form";s:4:"nome";s:16:"onAfterDeleteAll";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:26:"dye_update_n3case_dorec();";}i:3;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:25:"fv2_dye_n3case_multi_form";s:4:"nome";s:13:"onAfterInsert";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:28:"dye_update_n3case_dorec();
";}i:4;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:25:"fv2_dye_n3case_multi_form";s:4:"nome";s:16:"onAfterInsertAll";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:26:"dye_update_n3case_dorec();";}i:5;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:25:"fv2_dye_n3case_multi_form";s:4:"nome";s:13:"onAfterUpdate";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:26:"dye_update_n3case_dorec();";}i:6;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:25:"fv2_dye_n3case_multi_form";s:4:"nome";s:16:"onAfterUpdateAll";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:26:"dye_update_n3case_dorec();";}}