Payment : Add the flag is paid

This commit is contained in:
Dany De Bontridder 2008-11-26 21:55:15 +00:00
parent 835e5c147e
commit b4cb79b31e
2 changed files with 5 additions and 0 deletions

View file

@ -470,6 +470,9 @@ class Acc_Ledger_Purchase extends Acc_Ledger {
$r1=$this->get_id($internal);
$r2=$this->get_id($acinternal);
/* set the flag paid */
$Res=ExecSqlParam($this->db,"update jrn set jr_rapt='paid' where jr_id=$1",array($r1));
/* Reconcialiation */
$rec=new Acc_Reconciliation($this->db);
$rec->set_jr_id($r1);

View file

@ -347,6 +347,8 @@ class Acc_Ledger_Sold extends Acc_Ledger {
$r1=$this->get_id($internal);
$r2=$this->get_id($acinternal);
/* set the flag paid */
$Res=ExecSqlParam($this->db,"update jrn set jr_rapt='paid' where jr_id=$1",array($r1));
/* Reconcialiation */
$rec=new Acc_Reconciliation($this->db);