40 "quick_code"=>
"quick_code",
43 "sql_ledger"=>
"sql_ledger"
60 $a=
new Noalyss_user($p_init);
66 $this->start=$aLimite[0]->first_day();
67 $this->end=$aLimite[1]->last_day();
71 $this->start=
'01.01.'.$exercice;
72 $this->end=
'31.12.'.$exercice;
80 if (array_key_exists($p_string, $this->variable))
82 $idx=$this->variable[$p_string];
86 throw new Exception(__FILE__.
":".__LINE__.$p_string.
'Erreur attribut inexistant');
91 if (array_key_exists($p_string, $this->variable))
93 $idx=$this->variable[$p_string];
97 throw new Exception(__FILE__.
":".__LINE__.$p_string.
'Erreur attribut inexistant');
107 $first=$this->
db->get_value(
'select j_debit from jrnx where j_id=$1', array($j_id1));
108 if ($this->
db->count()==0)
109 throw new Exception(
'Opération non existante');
111 $second=$this->
db->get_value(
'select j_debit from jrnx where j_id=$1', array($j_id2));
112 if ($this->
db->count()==0)
113 throw new Exception(
'Opération non existante');
114 $sql_already=
"select distinct(jl_id)
116 left outer join letter_deb using (jl_id)
117 left outer join letter_cred using (jl_id)
119 letter_deb.j_id = $1 or letter_cred.j_id=$1";
121 $already=$this->
db->get_array($sql_already, array($j_id1));
122 if (count($already)>0)
124 if (count($already)==1)
127 $let1=$this->
db->get_value(
"select distinct(jl_id)
129 left outer join letter_deb using (jl_id)
130 left outer join letter_cred using (jl_id)
132 letter_deb.j_id = $1 or letter_cred.j_id=$1", array($j_id1));
140 $already=$this->
db->get_array($sql_already, array($j_id2));
141 if (count($already)>0)
143 if (count($already)==1)
146 $let2=$this->
db->get_value(
"select distinct(jl_id)
148 left outer join letter_deb using (jl_id)
149 left outer join letter_cred using (jl_id)
151 letter_deb.j_id = $1 or letter_cred.j_id=$1", array($j_id2));
160 if ($let1!=0&&$let1==$let2)
164 if ($let1!=0&&$let2!=0&&$let1!=$let2)
168 if ($let1==0&&$let2==0)
170 $jl_id=$this->
db->get_next_seq(
"jnt_letter_jl_id_seq");
171 $this->
db->exec_sql(
'insert into jnt_letter(jl_id) values($1)', array($jl_id));
174 if ($let1==0&&$let2!=0)
176 if ($let1!=0&&$let2==0)
184 $ld_id=$this->
db->get_value(
'insert into letter_deb(j_id,jl_id) values($1,$2) returning ld_id',
185 array($j_id1, $jl_id));
190 $lc_id=$this->
db->get_value(
'insert into letter_cred(j_id,jl_id) values($1,$2) returning lc_id',
191 array($j_id1, $jl_id));
197 $ld_id=$this->
db->get_value(
'insert into letter_deb(j_id,jl_id) values($1,$2) returning ld_id',
198 array($j_id2, $jl_id));
203 $lc_id=$this->
db->get_value(
'insert into letter_cred(j_id,jl_id) values($1,$2) returning lc_id',
204 array($j_id2, $jl_id));
232 if (!isset(
$p_array[
'letter_j_id']))
235 $this->
db->exec_sql(
'delete from jnt_letter where jl_id=$1', array(
$p_array[
'jnt_id']));
238 $nb_letter_j_id=count(
$p_array[
'letter_j_id']);
240 if ($nb_letter_j_id == 0 ) {
241 $this->
db->exec_sql(
'delete from jnt_letter where jl_id=$1', array(
$p_array[
'jnt_id']));
248 $this->
db->exec_sql(
'delete from jnt_letter where jl_id=$1', array(
$p_array[
'jnt_id']));
250 $jl_id=$this->
db->get_next_seq(
"jnt_letter_jl_id_seq");
251 $this->
db->exec_sql(
'insert into jnt_letter(jl_id) values($1)', array($jl_id));
254 $deb=$this->
db->get_value(
'select j_debit,j_montant from jrnx where j_id=$1', array(
$p_array[
'j_id']));
258 $ld_id=$this->
db->get_value(
'insert into letter_deb(j_id,jl_id) values($1,$2) returning ld_id',
263 $lc_id=$this->
db->get_value(
'insert into letter_cred(j_id,jl_id) values($1,$2) returning lc_id',
267 for (
$i=0;
$i<$nb_letter_j_id;
$i++)
272 $deb=$this->
db->get_value(
'select j_debit,j_montant from jrnx where j_id=$1',
277 $ld_id=$this->
db->get_value(
'insert into letter_deb(j_id,jl_id) values($1,$2) returning ld_id',
282 $lc_id=$this->
db->get_value(
'insert into letter_cred(j_id,jl_id) values($1,$2) returning lc_id',
286 $acc_reconciliation_lettering->insert_reconcilied(
$p_array[
'ck'][
$i],
$p_array[
'j_id']);
290 catch (Exception $exc)
292 echo $exc->getMessage();
293 error_log($exc->getTraceAsString());
294 $this->
db->rollback();
328 include(NOALYSS_TEMPLATE.
'/letter_all.php');
329 $r=ob_get_contents();
336 $sql=
"select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,
337 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,jr_pj_number,
338 coalesce(comptaproc.get_letter_jnt(j_id),-1) as letter
339 from jrnx join jrn on (j_grpt = jr_grpt_id)
341 j_id in (select j_id from letter_cred where jl_id=$1
343 select j_id from letter_deb where jl_id=$1)
346 $this->linked=$this->
db->get_array(
$sql, array($p_jlid));
358 include(NOALYSS_TEMPLATE.
'/letter_all.php');
359 $r=ob_get_contents();
370 $this->get_letter_diff();
373 include(NOALYSS_TEMPLATE.
'/letter_all.php');
374 $r=ob_get_contents();
385 $this->get_unletter();
388 include(NOALYSS_TEMPLATE.
'/letter_all.php');
389 $r=ob_get_contents();
399 $this->
db->exec_sql(
"delete from letter_cred lc where jl_id not in (select jl_id from letter_deb)");
400 $this->
db->exec_sql(
"delete from letter_deb lc where jl_id not in (select jl_id from letter_cred)");
425 throw new Exception(
"[$p_type] is no unknown");
430 $j_debit=$this->
db->get_value(
'select j_Debit from jrnx where j_id=$1', array($p_jid));
431 $amount_init=$this->
db->get_value(
'select j_montant from jrnx where j_id=$1', array($p_jid));
433 $this->get_filter($p_jid);
435 $sql=
"select distinct(jl_id) from jnt_letter left outer join letter_deb using (jl_id) left outer join letter_cred using (jl_id)
436 where letter_deb.j_id = $1 or letter_cred.j_id=$2";
437 $a_jnt_id=$this->
db->get_array(
$sql, array($p_jid, $p_jid));
439 if (count($a_jnt_id)==0)
445 $jnt_id=$a_jnt_id[0][
'jl_id'];
449 require_once NOALYSS_TEMPLATE.
'/letter_prop.php';
450 $r=ob_get_contents();
467 throw new Exception(
'load not implemented');
470 public function delete()
472 throw new Exception(
'delete not implemented');
486 parent::__construct($p_init);
487 $this->account=$p_account;
488 $this->object_type=
'account';
503 if (isset($this->fil_deb))
505 switch ($this->fil_deb)
508 $filter_deb=
" and j_debit='t' ";
511 $filter_deb=
" and j_debit='f' ";
519 if (isset($this->fil_amount_max)&&
520 isset($this->fil_amount_min)&&
521 isNumber($this->fil_amount_max)==1&&
522 isNumber($this->fil_amount_min)==1&&
523 ($this->fil_amount_max!=0||$this->fil_amount_min!=0))
524 $filter_amount=
" and (j_montant >= $this->fil_amount_min and j_montant<=$this->fil_amount_max "
525 .
" or (coalesce(comptaproc.get_letter_jnt($p_jid),-1)= coalesce(comptaproc.get_letter_jnt(j_id),-1) "
526 .
" and coalesce(comptaproc.get_letter_jnt($p_jid),-1) <> -1 )) ";
528 select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,
529 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
530 coalesce(comptaproc.get_letter_jnt(j_id),-1) as letter,
532 round(j_montant/currency_rate,4) as currency_amount,
535 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
536 from jrnx join jrn on (j_grpt = jr_grpt_id)
537 where j_poste = $1 and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
538 and $this->sql_ledger
541 order by j_date,j_id";
543 $this->
content=$this->
db->get_array(
$sql, array($this->account, $this->start, $this->end));
551 $sql=
" with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
553 ( select jl_id,coalesce(sum(j_montant),0) as cred_amount from letter_cred join jrnx using (j_id) group by jl_id) as CRED
554 left join (select jl_id,coalesce(sum(j_montant),0) as deb_amount from letter_deb join jrnx using (j_id) group by jl_id) as DEB using (jl_id)) ,
555 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
556 select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
557 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
558 coalesce(let_diff.jl_id,-1) as letter,
559 diff_letter1 as letter_diff,
560 round(j_montant/currency_rate,4) as currency_amount,
564 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
565 from jrnx join jrn on (j_grpt = jr_grpt_id)
566 left join letter_jl using (j_id)
567 left join let_diff using (jl_id)
568 where j_poste = $1 and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
569 and $this->sql_ledger
571 order by j_date,j_id";
572 $this->
content=$this->
db->get_array(
$sql, array($this->account, $this->start, $this->end));
581 with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
583 ( select jl_id,coalesce(sum(j_montant),0) as cred_amount from letter_cred join jrnx using (j_id) group by jl_id) as CRED
584 left join (select jl_id,coalesce(sum(j_montant),0) as deb_amount from letter_deb join jrnx using (j_id) group by jl_id) as DEB using (jl_id)) ,
585 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
586 select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
587 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
588 let_diff.jl_id as letter,
589 diff_letter1 as letter_diff,
590 round(j_montant/currency_rate,4) as currency_amount,
594 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
595 from jrnx join jrn on (j_grpt = jr_grpt_id)
596 join letter_jl using (j_id)
597 left join let_diff using (jl_id)
598 where j_poste = $1 and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
599 and $this->sql_ledger
600 order by j_date,j_id";
601 $this->
content=$this->
db->get_array(
$sql, array($this->account, $this->start, $this->end));
610 with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
612 ( select jl_id,coalesce(sum(j_montant),0) as cred_amount from letter_cred join jrnx using (j_id) group by jl_id) as CRED
613 left join (select jl_id,coalesce(sum(j_montant),0) as deb_amount from letter_deb join jrnx using (j_id) group by jl_id) as DEB using (jl_id)) ,
614 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
615 select distinct j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
616 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
617 let_diff.jl_id as letter,
618 diff_letter1 as letter_diff,
619 round(j_montant/currency_rate,4) as currency_amount,
623 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
625 jrnx join jrn on (j_grpt = jr_grpt_id)
626 join letter_jl using (j_id)
627 join let_diff using (jl_id)
628 where j_poste = $1 and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
629 and $this->sql_ledger
630 and diff_letter1 <> 0
631 order by j_date,j_id";
632 $this->
content=$this->
db->get_array(
$sql, array($this->account, $this->start, $this->end));
641 with letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
642 select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
643 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
646 round(j_montant/currency_rate,4) as currency_amount,
650 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
651 from jrnx join jrn on (j_grpt = jr_grpt_id)
652 where j_poste = $1 and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
653 and $this->sql_ledger
654 and j_id not in (select j_id from letter_jl)
655 order by j_date,j_id";
656 $this->
content=$this->
db->get_array(
$sql, array($this->account, $this->start, $this->end));
675 parent::__construct($p_init);
676 $this->quick_code=$p_qcode;
677 $this->object_type=
'card';
692 if (isset($this->fil_deb))
694 switch ($this->fil_deb)
697 $filter_deb=
" and j_debit='t' ";
700 $filter_deb=
" and j_debit='f' ";
708 if (isset($this->fil_amount_max)&&
709 isset($this->fil_amount_min)&&
710 isNumber($this->fil_amount_max)==1&&
711 isNumber($this->fil_amount_min)==1&&
712 ($this->fil_amount_max!=0||$this->fil_amount_min!=0))
713 $filter_amount=
" and (j_montant between $this->fil_amount_min and $this->fil_amount_max or (coalesce(comptaproc.get_letter_jnt($p_jid),-1)= coalesce(comptaproc.get_letter_jnt(j_id),-1) and coalesce(comptaproc.get_letter_jnt($p_jid),-1) <> -1 )) ";
715 with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
717 ( select jl_id,coalesce(sum(j_montant),0) as cred_amount from letter_cred join jrnx using (j_id) group by jl_id) as CRED
718 left join (select jl_id,coalesce(sum(j_montant),0) as deb_amount from letter_deb join jrnx using (j_id) group by jl_id) as DEB using (jl_id)) ,
719 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
720 select distinct j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
721 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
722 coalesce(let_diff.jl_id,-1) as letter,
723 diff_letter1 as letter_diff,
724 round(j_montant/currency_rate,4) as currency_amount,
727 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
728 from jrnx join jrn on (j_grpt = jr_grpt_id)
729 left join letter_jl using (j_id)
730 left join let_diff using (jl_id)
731 where j_qcode = upper($1) and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
732 and $this->sql_ledger
735 order by j_date,j_id";
737 $this->
content=$this->
db->get_array(
$sql, array($this->quick_code, $this->start, $this->end));
746 with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
748 ( select jl_id,coalesce(sum(j_montant),0) as cred_amount from letter_cred join jrnx using (j_id) group by jl_id) as CRED
749 left join (select jl_id,coalesce(sum(j_montant),0) as deb_amount from letter_deb join jrnx using (j_id) group by jl_id) as DEB using (jl_id)) ,
750 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
751 select DISTINCT j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
752 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
753 coalesce(let_diff.jl_id,-1) as letter,
754 diff_letter1 as letter_diff,
755 round(j_montant/currency_rate,4) as currency_amount,
759 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
760 from jrnx join jrn on (j_grpt = jr_grpt_id)
761 left join letter_jl using (j_id)
762 left join let_diff using (jl_id)
763 where j_qcode = upper($1) and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
764 and $this->sql_ledger
766 order by j_date,j_id";
767 $this->
content=$this->
db->get_array(
$sql, array($this->quick_code, $this->start, $this->end));
776 with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
778 ( select jl_id,coalesce(sum(j_montant),0) as cred_amount from letter_cred join jrnx using (j_id) group by jl_id) as CRED
779 left join (select jl_id,coalesce(sum(j_montant),0) as deb_amount from letter_deb join jrnx using (j_id) group by jl_id) as DEB using (jl_id)) ,
780 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
781 select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
782 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
783 let_diff.jl_id as letter,
784 diff_letter1 as letter_diff,
785 round(j_montant/currency_rate,4) as currency_amount,
789 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
790 from jrnx join jrn on (j_grpt = jr_grpt_id)
791 join letter_jl using (j_id)
792 left join let_diff using (jl_id)
793 where j_qcode = upper($1) and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
794 and $this->sql_ledger
795 order by j_date,j_id";
796 $this->
content=$this->
db->get_array(
$sql, array($this->quick_code, $this->start, $this->end));
802 with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
804 ( select jl_id,coalesce(sum(j_montant),0) as cred_amount from letter_cred join jrnx using (j_id) group by jl_id) as CRED
805 left join (select jl_id,coalesce(sum(j_montant),0) as deb_amount from letter_deb join jrnx using (j_id) group by jl_id) as DEB using (jl_id)) ,
806 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
807 select distinct j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
808 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
809 let_diff.jl_id as letter,
810 diff_letter1 as letter_diff,
811 round(j_montant/currency_rate,4) as currency_amount,
815 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
816 from jrnx join jrn on (j_grpt = jr_grpt_id)
817 left join letter_jl using (j_id)
818 left join let_diff using (jl_id)
819 where j_qcode = upper($1) and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
820 and $this->sql_ledger
822 order by j_date,j_id";
823 $this->
content=$this->
db->get_array(
$sql, array($this->quick_code, $this->start, $this->end));
832 select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
833 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
836 round(j_montant/currency_rate,4) as currency_amount,
840 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
841 from jrnx join jrn on (j_grpt = jr_grpt_id)
842 where j_qcode = upper($1) and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
843 and $this->sql_ledger
844 and j_id not in (select j_id from letter_deb join jnt_letter using (jl_id) union select j_id from letter_cred join jnt_letter using (jl_id) )
845 order by j_date,j_id";
846 $this->
content=$this->
db->get_array(
$sql, array($this->quick_code, $this->start, $this->end));
872 $sql_let=(
$p_type==
'unlet')?
' let_diff.jl_id is null and':
'';
873 $sql=
" with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
875 ( select jl_id,coalesce(sum(j_montant),0) as cred_amount from letter_cred join jrnx using (j_id) group by jl_id) as CRED
876 left join (select jl_id,coalesce(sum(j_montant),0) as deb_amount from letter_deb join jrnx using (j_id) group by jl_id) as DEB using (jl_id)) ,
877 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
878 select DISTINCT j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
879 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
880 coalesce(let_diff.jl_id,-1) as letter,
881 diff_letter1 as letter_diff,
882 extract ('days' from coalesce(jr_date_paid,now())-jr_date) as day_paid,
884 from jrnx join jrn on (j_grpt = jr_grpt_id)
885 join jrn_def as jd1 on (jrn.jr_def_id=jd1.jrn_def_id)
886 left join letter_jl using (j_id)
887 left join let_diff using (jl_id)
891 and j_date >= to_date($2,'DD.MM.YYYY')
892 and {$this->sql_ledger}
893 and jrn_def_type in ('VEN','ACH')
894 order by j_date,j_id";
895 $this->
content=$this->
db->get_array(
$sql, array($this->quick_code, $this->start));
noalyss_str_replace($search, $replace, $string)
catch(Exception $exc) if(! $g_user->can_write_action($ag_id)) $r
catch(Exception $e) $exercice
else $card content[$j]['j_montant']
only for operation retrieved thanks a account (jrnx.j_poste) manage the accounting entries for a give...
get_all()
fills this->content with all the operation for the this->account(jrnx.j_poste)
get_unletter()
same as get_all but only for unlettered operation
get_letter_diff()
same as get_all but only for lettered operation
get_letter()
same as get_all but only for lettered operation
__construct($p_init, $p_account=null)
get_filter($p_jid=0)
fills the this->content, datas are filtered thanks
only for operation retrieved thanks a quick_code manage the accounting entries for a given card
get_letter()
same as get_all but only for lettered operation
__construct($p_init, $p_qcode=null)
constructor
get_unletter()
same as get_all but only for unlettered operation
get_balance_ageing($p_type)
fill $this->content with the rows from this query Columns are
get_all()
fills this->content with all the operation for the this->quick_code(j_qcode)
get_filter($p_jid=0)
fills the this->content, datas are filtered thanks
mother class for the lettering by account and by card use the tables jnt_letter, letter_deb and lette...
show_list($p_type)
wrapper : it call show_all, show_lettered or show_not_lettered depending of the parameter
__construct( $p_init)
constructor
show_not_lettered()
show only the not lettered records from jrnx it fills the array $this->content
remove_incoherent()
for some reason , sometimes, a record in letter_X doesn't have his counterpart in letter_Y
show_lettered_diff()
show only the lettered records from jrnx it fills the array $this->content
seek($cond, $p_array=null)
retrieve * row thanks a condition
show_all()
show all the record from jrnx and their status (linked or not) it fills the array $this->content
insert_couple($j_id1, $j_id2)
Use to just insert a couple of lettered operation but do not make a link between operation.
show_lettered()
show only the lettered records from jrnx it fills the array $this->content
set_parameter($p_string, $p_value)
save($p_array)
save from array, letter the accounting (or card) and create a link between operation
For the periode tables parm_periode and jrn_periode.
for($i=0;$i< $nb_jrn;$i++) $deb