a:3:{i:0;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:26:"beam_bysale_edit_view_grid";s:4:"nome";s:13:"onAfterInsert";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:12:"updMaster();";}i:1;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:26:"beam_bysale_edit_view_grid";s:4:"nome";s:13:"onAfterUpdate";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:12:"updMaster();";}i:2;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:26:"beam_bysale_edit_view_grid";s:4:"nome";s:9:"updMaster";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:320:"sc_lookup(dataset,"SELECT SUM(lbs_sold)
                  FROM bysale
                   WHERE p_o_number = {p_o_number}");
$master_lbssold = {dataset[0][0]};
sc_master_value('lbs_sold', $master_lbssold);
sc_exec_sql("UPDATE warppo
             SET lbs_sold = $master_lbssold	
WHERE P_O_NUMBER = {P_O_NUMBER}");
";}}