Payment : Add the flag is paid
This commit is contained in:
parent
835e5c147e
commit
b4cb79b31e
2 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue