210 |
|
|
211 |
// quantity |
// quantity |
212 |
//-- |
//-- |
213 |
$quant=(isset(${"e_quant$i"}))?${"e_quant$i"}:"0"; |
$quant=(isset(${"e_quant$i"}))?${"e_quant$i"}:"1"; |
214 |
$Quantity=new widget("text"); |
$Quantity=new widget("text"); |
215 |
$Quantity->SetReadOnly($pview_only); |
$Quantity->SetReadOnly($pview_only); |
216 |
$Quantity->table=1; |
$Quantity->table=1; |
619 |
StartSql($p_cn); |
StartSql($p_cn); |
620 |
$r=InsertJrnx($p_cn,'d',$p_user->id,$p_jrn,$poste,$e_date,round($amount,2)+round($sum_vat,2),$seq,$periode); |
$r=InsertJrnx($p_cn,'d',$p_user->id,$p_jrn,$poste,$e_date,round($amount,2)+round($sum_vat,2),$seq,$periode); |
621 |
if ( $r == false) { $Rollback($p_cn);exit("error __FILE__ __LINE__");} |
if ( $r == false) { $Rollback($p_cn);exit("error __FILE__ __LINE__");} |
622 |
|
|
623 |
// Credit = goods |
// Credit = goods |
624 |
for ( $i = 0; $i < $nb_item;$i++) { |
for ( $i = 0; $i < $nb_item;$i++) { |
625 |
if ( isNumber($a_good[$i]) == 0 ) continue; |
if ( isNumber($a_good[$i]) == 0 ) continue; |