41 "quick_code"=>
"quick_code",
44 "sql_ledger"=>
"sql_ledger"
66 $a=
new Noalyss_user($p_init);
72 $this->start=$aLimite[0]->first_day();
73 $this->end=$aLimite[1]->last_day();
77 $this->start=
'01.01.'.$exercice;
78 $this->end=
'31.12.'.$exercice;
86 if (array_key_exists($p_string, $this->variable))
88 $idx=$this->variable[$p_string];
92 throw new Exception(__FILE__.
":".__LINE__.$p_string.
'Erreur attribut inexistant');
97 if (array_key_exists($p_string, $this->variable))
99 $idx=$this->variable[$p_string];
100 $this->
$idx=$p_value;
103 throw new Exception(__FILE__.
":".__LINE__.$p_string.
'Erreur attribut inexistant');
113 $first=$this->
db->get_value(
'select j_debit from jrnx where j_id=$1', array($j_id1));
114 if ($this->
db->count()==0)
115 throw new Exception(
'Opération non existante');
117 $second=$this->
db->get_value(
'select j_debit from jrnx where j_id=$1', array($j_id2));
118 if ($this->
db->count()==0)
119 throw new Exception(
'Opération non existante');
120 $sql_already=
"select distinct(jl_id)
122 left outer join letter_deb using (jl_id)
123 left outer join letter_cred using (jl_id)
125 letter_deb.j_id = $1 or letter_cred.j_id=$1";
127 $already=$this->
db->get_array($sql_already, array($j_id1));
128 if (count($already)>0)
130 if (count($already)==1)
133 $let1=$this->
db->get_value(
"select distinct(jl_id)
135 left outer join letter_deb using (jl_id)
136 left outer join letter_cred using (jl_id)
138 letter_deb.j_id = $1 or letter_cred.j_id=$1", array($j_id1));
146 $already=$this->
db->get_array($sql_already, array($j_id2));
147 if (count($already)>0)
149 if (count($already)==1)
152 $let2=$this->
db->get_value(
"select distinct(jl_id)
154 left outer join letter_deb using (jl_id)
155 left outer join letter_cred using (jl_id)
157 letter_deb.j_id = $1 or letter_cred.j_id=$1", array($j_id2));
166 if ($let1!=0&&$let1==$let2)
174 if ($let1==0&&$let2==0)
176 $jl_id=$this->
db->get_next_seq(
"jnt_letter_jl_id_seq");
177 $this->
db->exec_sql(
'insert into jnt_letter(jl_id) values($1)', array($jl_id));
178 }
elseif ($let1==0&&$let2!=0)
182 }
elseif ($let1!=0&&$let2==0) {
185 throw new \Exception (
"LET179 invalid");
193 $ld_id=$this->
db->get_value(
'insert into letter_deb(j_id,jl_id) values($1,$2) returning ld_id',
194 array($j_id1, $jl_id));
199 $lc_id=$this->
db->get_value(
'insert into letter_cred(j_id,jl_id) values($1,$2) returning lc_id',
200 array($j_id1, $jl_id));
206 $ld_id=$this->
db->get_value(
'insert into letter_deb(j_id,jl_id) values($1,$2) returning ld_id',
207 array($j_id2, $jl_id));
212 $lc_id=$this->
db->get_value(
'insert into letter_cred(j_id,jl_id) values($1,$2) returning lc_id',
213 array($j_id2, $jl_id));
219 return var_export(self::$variable,
true);
241 if (!isset(
$p_array[
'letter_j_id']))
244 $this->
db->exec_sql(
'delete from jnt_letter where jl_id=$1', array(
$p_array[
'jnt_id']));
247 $nb_letter_j_id=count(
$p_array[
'letter_j_id']);
249 if ($nb_letter_j_id == 0 ) {
250 $this->
db->exec_sql(
'delete from jnt_letter where jl_id=$1', array(
$p_array[
'jnt_id']));
257 $this->
db->exec_sql(
'delete from jnt_letter where jl_id=$1', array(
$p_array[
'jnt_id']));
259 $jl_id=$this->
db->get_next_seq(
"jnt_letter_jl_id_seq");
260 $this->
db->exec_sql(
'insert into jnt_letter(jl_id) values($1)', array($jl_id));
263 $deb=$this->
db->get_value(
'select j_debit,j_montant from jrnx where j_id=$1', array(
$p_array[
'j_id']));
267 $ld_id=$this->
db->get_value(
'insert into letter_deb(j_id,jl_id) values($1,$2) returning ld_id',
272 $lc_id=$this->
db->get_value(
'insert into letter_cred(j_id,jl_id) values($1,$2) returning lc_id',
276 for (
$i=0;
$i<$nb_letter_j_id;
$i++)
281 $deb=$this->
db->get_value(
'select j_debit,j_montant from jrnx where j_id=$1',
286 $ld_id=$this->
db->get_value(
'insert into letter_deb(j_id,jl_id) values($1,$2) returning ld_id',
291 $lc_id=$this->
db->get_value(
'insert into letter_cred(j_id,jl_id) values($1,$2) returning lc_id',
295 $acc_reconciliation_lettering->insert_reconcilied(
$p_array[
'ck'][
$i],
$p_array[
'j_id']);
299 catch (Exception $exc)
301 echo $exc->getMessage();
302 error_log($exc->getTraceAsString());
303 $this->
db->rollback();
337 include(NOALYSS_TEMPLATE.
'/letter_all.php');
338 $r=ob_get_contents();
345 $sql=
"select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,
346 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,jr_pj_number,
347 coalesce(comptaproc.get_letter_jnt(j_id),-1) as letter
348 from jrnx join jrn on (j_grpt = jr_grpt_id)
350 j_id in (select j_id from letter_cred where jl_id=$1
352 select j_id from letter_deb where jl_id=$1)
355 $this->linked=$this->
db->get_array(
$sql, array($p_jlid));
367 include(NOALYSS_TEMPLATE.
'/letter_all.php');
368 $r=ob_get_contents();
379 $this->get_letter_diff();
382 include(NOALYSS_TEMPLATE.
'/letter_all.php');
383 $r=ob_get_contents();
394 $this->get_unletter();
397 include(NOALYSS_TEMPLATE.
'/letter_all.php');
398 $r=ob_get_contents();
408 $this->
db->exec_sql(
"delete from letter_cred lc where jl_id not in (select jl_id from letter_deb)");
409 $this->
db->exec_sql(
"delete from letter_deb lc where jl_id not in (select jl_id from letter_cred)");
434 throw new Exception(
"[$p_type] is no unknown");
439 $j_debit=$this->
db->get_value(
'select j_Debit from jrnx where j_id=$1', array($p_jid));
440 $amount_init=$this->
db->get_value(
'select j_montant from jrnx where j_id=$1', array($p_jid));
442 $this->get_filter($p_jid);
444 $sql=
"select distinct(jl_id) from jnt_letter left outer join letter_deb using (jl_id) left outer join letter_cred using (jl_id)
445 where letter_deb.j_id = $1 or letter_cred.j_id=$2";
446 $a_jnt_id=$this->
db->get_array(
$sql, array($p_jid, $p_jid));
448 if (count($a_jnt_id)==0)
454 $jnt_id=$a_jnt_id[0][
'jl_id'];
458 require_once NOALYSS_TEMPLATE.
'/letter_prop.php';
459 $r=ob_get_contents();
461 $r.=HtmlInput::hidden(
'j_id', $p_jid);
462 $r.=HtmlInput::hidden(
'jnt_id', $jnt_id);
476 throw new Exception(
'load not implemented');
479 public function delete()
481 throw new Exception(
'delete not implemented');
495 parent::__construct($p_init);
496 $this->account=$p_account;
497 $this->object_type=
'account';
512 if (isset($this->fil_deb))
514 switch ($this->fil_deb)
517 $filter_deb=
" and j_debit='t' ";
520 $filter_deb=
" and j_debit='f' ";
528 if (isset($this->fil_amount_max)&&
529 isset($this->fil_amount_min)&&
530 isNumber($this->fil_amount_max)==1&&
531 isNumber($this->fil_amount_min)==1&&
532 ($this->fil_amount_max!=0||$this->fil_amount_min!=0))
533 $filter_amount=
" and (j_montant >= $this->fil_amount_min and j_montant<=$this->fil_amount_max "
534 .
" or (coalesce(comptaproc.get_letter_jnt($p_jid),-1)= coalesce(comptaproc.get_letter_jnt(j_id),-1) "
535 .
" and coalesce(comptaproc.get_letter_jnt($p_jid),-1) <> -1 )) ";
537 select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,
538 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
539 coalesce(comptaproc.get_letter_jnt(j_id),-1) as letter,
541 round(j_montant/currency_rate,4) as currency_amount,
544 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
545 from jrnx join jrn on (j_grpt = jr_grpt_id)
546 where j_poste = $1 and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
547 and $this->sql_ledger
550 order by j_date,j_id";
552 $this->
content=$this->
db->get_array(
$sql, array($this->account, $this->start, $this->end));
560 $sql=
" with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
562 ( 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
563 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)) ,
564 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
565 select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
566 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
567 coalesce(let_diff.jl_id,-1) as letter,
568 diff_letter1 as letter_diff,
569 round(j_montant/currency_rate,4) as currency_amount,
573 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
574 from jrnx join jrn on (j_grpt = jr_grpt_id)
575 left join letter_jl using (j_id)
576 left join let_diff using (jl_id)
577 where j_poste = $1 and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
578 and $this->sql_ledger
580 order by j_date,j_id";
581 $this->
content=$this->
db->get_array(
$sql, array($this->account, $this->start, $this->end));
590 with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
592 ( 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
593 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)) ,
594 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
595 select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
596 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
597 let_diff.jl_id as letter,
598 diff_letter1 as letter_diff,
599 round(j_montant/currency_rate,4) as currency_amount,
603 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
604 from jrnx join jrn on (j_grpt = jr_grpt_id)
605 join letter_jl using (j_id)
606 left join let_diff using (jl_id)
607 where j_poste = $1 and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
608 and $this->sql_ledger
609 order by j_date,j_id";
610 $this->
content=$this->
db->get_array(
$sql, array($this->account, $this->start, $this->end));
619 with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
621 ( 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
622 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)) ,
623 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
624 select distinct j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
625 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
626 let_diff.jl_id as letter,
627 diff_letter1 as letter_diff,
628 round(j_montant/currency_rate,4) as currency_amount,
632 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
634 jrnx join jrn on (j_grpt = jr_grpt_id)
635 join letter_jl using (j_id)
636 join let_diff using (jl_id)
637 where j_poste = $1 and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
638 and $this->sql_ledger
639 and diff_letter1 <> 0
640 order by j_date,j_id";
641 $this->
content=$this->
db->get_array(
$sql, array($this->account, $this->start, $this->end));
650 with letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
651 select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
652 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
655 round(j_montant/currency_rate,4) as currency_amount,
659 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
660 from jrnx join jrn on (j_grpt = jr_grpt_id)
661 where j_poste = $1 and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
662 and $this->sql_ledger
663 and j_id not in (select j_id from letter_jl)
664 order by j_date,j_id";
665 $this->
content=$this->
db->get_array(
$sql, array($this->account, $this->start, $this->end));
685 parent::__construct($p_init);
686 $this->quick_code=$p_qcode;
687 $this->object_type=
'card';
702 if (isset($this->fil_deb))
704 switch ($this->fil_deb)
707 $filter_deb=
" and j_debit='t' ";
710 $filter_deb=
" and j_debit='f' ";
718 if (isset($this->fil_amount_max)&&
719 isset($this->fil_amount_min)&&
720 isNumber($this->fil_amount_max)==1&&
721 isNumber($this->fil_amount_min)==1&&
722 ($this->fil_amount_max!=0||$this->fil_amount_min!=0))
723 $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 )) ";
725 with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
727 ( 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
728 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)) ,
729 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
730 select distinct j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
731 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
732 coalesce(let_diff.jl_id,-1) as letter,
733 diff_letter1 as letter_diff,
734 round(j_montant/currency_rate,4) as currency_amount,
737 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
738 from jrnx join jrn on (j_grpt = jr_grpt_id)
739 left join letter_jl using (j_id)
740 left join let_diff using (jl_id)
741 where j_qcode = upper($1) and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
742 and $this->sql_ledger
745 order by j_date,j_id";
747 $this->
content=$this->
db->get_array(
$sql, array($this->quick_code, $this->start, $this->end));
756 with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
758 ( 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
759 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)) ,
760 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
761 select DISTINCT j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
762 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
763 coalesce(let_diff.jl_id,-1) as letter,
764 diff_letter1 as letter_diff,
765 round(j_montant/currency_rate,4) as currency_amount,
769 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
770 from jrnx join jrn on (j_grpt = jr_grpt_id)
771 left join letter_jl using (j_id)
772 left join let_diff using (jl_id)
773 where j_qcode = upper($1) and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
774 and $this->sql_ledger
776 order by j_date,j_id";
777 $this->
content=$this->
db->get_array(
$sql, array($this->quick_code, $this->start, $this->end));
786 with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
788 ( 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
789 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)) ,
790 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
791 select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
792 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
793 let_diff.jl_id as letter,
794 diff_letter1 as letter_diff,
795 round(j_montant/currency_rate,4) as currency_amount,
799 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
800 from jrnx join jrn on (j_grpt = jr_grpt_id)
801 join letter_jl using (j_id)
802 left join let_diff using (jl_id)
803 where j_qcode = upper($1) and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
804 and $this->sql_ledger
805 order by j_date,j_id";
806 $this->
content=$this->
db->get_array(
$sql, array($this->quick_code, $this->start, $this->end));
812 with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
814 ( 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
815 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)) ,
816 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
817 select distinct j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
818 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
819 let_diff.jl_id as letter,
820 diff_letter1 as letter_diff,
821 round(j_montant/currency_rate,4) as currency_amount,
825 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
826 from jrnx join jrn on (j_grpt = jr_grpt_id)
827 left join letter_jl using (j_id)
828 left join let_diff using (jl_id)
829 where j_qcode = upper($1) and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
830 and $this->sql_ledger
832 order by j_date,j_id";
833 $this->
content=$this->
db->get_array(
$sql, array($this->quick_code, $this->start, $this->end));
842 select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
843 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
846 round(j_montant/currency_rate,4) as currency_amount,
850 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
851 from jrnx join jrn on (j_grpt = jr_grpt_id)
852 where j_qcode = upper($1) and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
853 and $this->sql_ledger
854 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) )
855 order by j_date,j_id";
856 $this->
content=$this->
db->get_array(
$sql, array($this->quick_code, $this->start, $this->end));
882 $sql_let=(
$p_type==
'unlet')?
' let_diff.jl_id is null and':
'';
883 $sql=
" with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
885 ( 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
886 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)) ,
887 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
888 select DISTINCT j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
889 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
890 coalesce(let_diff.jl_id,-1) as letter,
891 diff_letter1 as letter_diff,
892 extract ('days' from coalesce(jr_date_paid,now())-jr_date) as day_paid,
894 from jrnx join jrn on (j_grpt = jr_grpt_id)
895 join jrn_def as jd1 on (jrn.jr_def_id=jd1.jrn_def_id)
896 left join letter_jl using (j_id)
897 left join let_diff using (jl_id)
901 and j_date >= to_date($2,'DD.MM.YYYY')
902 and {$this->sql_ledger}
903 and jrn_def_type in ('VEN','ACH')
904 order by j_date,j_id";
905 $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']
this class let you insert reconcilied operation from Lettering\save without calling auto_letter
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)
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
$variable
$variable (array) data member
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
if( $delta< 0) elseif( $delta==0)
for($i=0;$i< $nb_jrn;$i++) $deb