From b4cb79b31ed234eaae85700f6fe762ed76be75b0 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Wed, 26 Nov 2008 21:55:15 +0000 Subject: [PATCH] Payment : Add the flag is paid --- include/class_acc_ledger_purchase.php | 3 +++ include/class_acc_ledger_sold.php | 2 ++ 2 files changed, 5 insertions(+) diff --git a/include/class_acc_ledger_purchase.php b/include/class_acc_ledger_purchase.php index f1b6e2cc2..4fbd415de 100644 --- a/include/class_acc_ledger_purchase.php +++ b/include/class_acc_ledger_purchase.php @@ -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); diff --git a/include/class_acc_ledger_sold.php b/include/class_acc_ledger_sold.php index 7e88a8227..0a3b7fe37 100644 --- a/include/class_acc_ledger_sold.php +++ b/include/class_acc_ledger_sold.php @@ -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);