Documentation

This commit is contained in:
sparkyx 2024-12-14 17:22:08 +01:00
parent 20b5f741d1
commit 3d89ad3f19
3 changed files with 9 additions and 8 deletions

View file

@ -1023,7 +1023,7 @@ class Acc_Ledger_Purchase extends Acc_Ledger
$acc_pay->grpt=$acseq;
$acc_pay->jrn=$mp->get_parameter('ledger_target');
$acc_pay->periode=$tperiode;
$acc_pay->type=($famount>=0)?'d':'c';
$acc_pay->type=($famount>=0)?'d':'c';
$let_other=$acc_pay->insert_jrnx();
// insert into operation_currency
@ -1065,11 +1065,11 @@ class Acc_Ledger_Purchase extends Acc_Ledger
$r1=$this->get_id($internal);
$r2=$this->get_id($acinternal);
/*
* add lettering
*/
$oletter=new Lettering($this->db);
$oletter->insert_couple($let_client,$let_other);
/*
* add lettering
*/
$oletter=new Lettering($this->db);
$oletter->insert_couple($let_client,$let_other);
/* set the flag paid */
$Res=$this->db->exec_sql("update jrn set jr_rapt='paid' where jr_id=$1",array($r1));

View file

@ -185,7 +185,7 @@ class Anc_Plan
function exist()
{
$a=$this->db->count_sql("select pa_id from plan_analytique where pa_id=$1",
array($this->pa_id));
array($this->id));
return ($a==0)?false:true;
@ -193,7 +193,7 @@ class Anc_Plan
/**
*@brief return an HTML string containing hidden input type to
* hold the differant PA_ID
*@param $p_array contains a array, it is the result of the fct
*@param $p_array array contains a array, it is the result of the fct
* Anc_Plan::get_list
*@return html string
*@see Anc_Plan::get_list

View file

@ -4,6 +4,7 @@
/**
* @var $str_anc String HTML contains the detail of analytic
* @var $g_user Noalyss_User inherited , it is the connected user
*/
$str_anc="";
global $div,$g_parameter,$cn,$access,$jr_id,$obj;