Bug : Update payment doesn't work in ACH / VEN

This commit is contained in:
Dany De Bontridder 2010-07-17 20:58:38 +00:00
parent 085eaaca7e
commit 15b704f33a

View file

@ -1835,10 +1835,9 @@ jr_comment||' ('||jr_internal||')'||case when jr_pj_number is not null and jr_pj
foreach ($p_array as $name=>$paid)
{
list ($id) = sscanf ($name,"rd_paid%d");
if ( $id == null ) continue;
$paid=($paid=='on')?'paid':'';
$sql="update jrn set jr_rapt='$paid' where jr_id=$id";
$sql="update jrn set jr_rapt='paid' where jr_id=$id";
$Res=$this->db->exec_sql($sql);
}