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);