44#[\AllowDynamicProperties]
50 "quick_code"=>
"quick_code",
53 "sql_ledger"=>
"sql_ledger"
75 $a=
new Noalyss_user($p_init);
81 $this->start=$aLimite[0]->first_day();
82 $this->end=$aLimite[1]->last_day();
86 $this->start=
'01.01.'.$exercice;
87 $this->end=
'31.12.'.$exercice;
95 if (array_key_exists($p_string, $this->variable))
97 $idx=$this->variable[$p_string];
101 throw new Exception(__FILE__.
":".__LINE__.$p_string.
'Erreur attribut inexistant');
106 if (array_key_exists($p_string, $this->variable))
108 $idx=$this->variable[$p_string];
109 $this->
$idx=$p_value;
112 throw new Exception(__FILE__.
":".__LINE__.$p_string.
'Erreur attribut inexistant');
122 $first=$this->
db->get_value(
'select j_debit from jrnx where j_id=$1', array($j_id1));
123 if ($this->
db->count()==0)
124 throw new Exception(
'Opération non existante');
126 $second=$this->
db->get_value(
'select j_debit from jrnx where j_id=$1', array($j_id2));
127 if ($this->
db->count()==0)
128 throw new Exception(
'Opération non existante');
129 $sql_already=
"select distinct(jl_id)
131 left outer join letter_deb using (jl_id)
132 left outer join letter_cred using (jl_id)
134 letter_deb.j_id = $1 or letter_cred.j_id=$1";
136 $already=$this->
db->get_array($sql_already, array($j_id1));
137 if (count($already)>0)
139 if (count($already)==1)
142 $let1=$this->
db->get_value(
"select distinct(jl_id)
144 left outer join letter_deb using (jl_id)
145 left outer join letter_cred using (jl_id)
147 letter_deb.j_id = $1 or letter_cred.j_id=$1", array($j_id1));
155 $already=$this->
db->get_array($sql_already, array($j_id2));
156 if (count($already)>0)
158 if (count($already)==1)
161 $let2=$this->
db->get_value(
"select distinct(jl_id)
163 left outer join letter_deb using (jl_id)
164 left outer join letter_cred using (jl_id)
166 letter_deb.j_id = $1 or letter_cred.j_id=$1", array($j_id2));
175 if ($let1!=0&&$let1==$let2)
183 if ($let1==0&&$let2==0)
185 $jl_id=$this->
db->get_next_seq(
"jnt_letter_jl_id_seq");
186 $this->
db->exec_sql(
'insert into jnt_letter(jl_id) values($1)', array($jl_id));
187 }
elseif ($let1==0&&$let2!=0)
191 }
elseif ($let1!=0&&$let2==0) {
194 throw new \Exception (
"LET179 invalid");
202 $ld_id=$this->
db->get_value(
'insert into letter_deb(j_id,jl_id) values($1,$2) returning ld_id',
203 array($j_id1, $jl_id));
208 $lc_id=$this->
db->get_value(
'insert into letter_cred(j_id,jl_id) values($1,$2) returning lc_id',
209 array($j_id1, $jl_id));
215 $ld_id=$this->
db->get_value(
'insert into letter_deb(j_id,jl_id) values($1,$2) returning ld_id',
216 array($j_id2, $jl_id));
221 $lc_id=$this->
db->get_value(
'insert into letter_cred(j_id,jl_id) values($1,$2) returning lc_id',
222 array($j_id2, $jl_id));
228 return var_export(self::$variable,
true);
250 if (!isset(
$p_array[
'letter_j_id']))
253 $this->
db->exec_sql(
'delete from jnt_letter where jl_id=$1', array(
$p_array[
'jnt_id']));
256 $nb_letter_j_id=count(
$p_array[
'letter_j_id']);
258 if ($nb_letter_j_id == 0 ) {
259 $this->
db->exec_sql(
'delete from jnt_letter where jl_id=$1', array(
$p_array[
'jnt_id']));
266 $this->
db->exec_sql(
'delete from jnt_letter where jl_id=$1', array(
$p_array[
'jnt_id']));
268 $jl_id=$this->
db->get_next_seq(
"jnt_letter_jl_id_seq");
269 $this->
db->exec_sql(
'insert into jnt_letter(jl_id) values($1)', array($jl_id));
272 $deb=$this->
db->get_value(
'select j_debit,j_montant from jrnx where j_id=$1', array(
$p_array[
'j_id']));
276 $ld_id=$this->
db->get_value(
'insert into letter_deb(j_id,jl_id) values($1,$2) returning ld_id',
281 $lc_id=$this->
db->get_value(
'insert into letter_cred(j_id,jl_id) values($1,$2) returning lc_id',
285 for (
$i=0;
$i<$nb_letter_j_id;
$i++)
290 $deb=$this->
db->get_value(
'select j_debit,j_montant from jrnx where j_id=$1',
295 $ld_id=$this->
db->get_value(
'insert into letter_deb(j_id,jl_id) values($1,$2) returning ld_id',
300 $lc_id=$this->
db->get_value(
'insert into letter_cred(j_id,jl_id) values($1,$2) returning lc_id',
304 $acc_reconciliation_lettering->insert_reconcilied(
$p_array[
'ck'][
$i],
$p_array[
'j_id']);
308 catch (Exception $exc)
310 echo $exc->getMessage();
312 $this->
db->rollback();
346 include(NOALYSS_TEMPLATE.
'/letter_all.php');
347 $r=ob_get_contents();
354 $sql=
"select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,
355 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,jr_pj_number,
356 coalesce(comptaproc.get_letter_jnt(j_id),-1) as letter
357 from jrnx join jrn on (j_grpt = jr_grpt_id)
359 j_id in (select j_id from letter_cred where jl_id=$1
361 select j_id from letter_deb where jl_id=$1)
364 $this->linked=$this->
db->get_array(
$sql, array($p_jlid));
376 include(NOALYSS_TEMPLATE.
'/letter_all.php');
377 $r=ob_get_contents();
388 $this->get_letter_diff();
391 include(NOALYSS_TEMPLATE.
'/letter_all.php');
392 $r=ob_get_contents();
403 $this->get_unletter();
406 include(NOALYSS_TEMPLATE.
'/letter_all.php');
407 $r=ob_get_contents();
417 $this->
db->exec_sql(
"delete from letter_cred lc where jl_id not in (select jl_id from letter_deb)");
418 $this->
db->exec_sql(
"delete from letter_deb lc where jl_id not in (select jl_id from letter_cred)");
443 throw new Exception(
"[$p_type] is no unknown");
448 $j_debit=$this->
db->get_value(
'select j_Debit from jrnx where j_id=$1', array($p_jid));
449 $amount_init=$this->
db->get_value(
'select j_montant from jrnx where j_id=$1', array($p_jid));
451 $this->get_filter($p_jid);
453 $sql=
"select distinct(jl_id) from jnt_letter left outer join letter_deb using (jl_id) left outer join letter_cred using (jl_id)
454 where letter_deb.j_id = $1 or letter_cred.j_id=$2";
455 $a_jnt_id=$this->
db->get_array(
$sql, array($p_jid, $p_jid));
457 if (count($a_jnt_id)==0)
463 $jnt_id=$a_jnt_id[0][
'jl_id'];
467 require_once NOALYSS_TEMPLATE.
'/letter_prop.php';
468 $r=ob_get_contents();
470 $r.=HtmlInput::hidden(
'j_id', $p_jid);
471 $r.=HtmlInput::hidden(
'jnt_id', $jnt_id);
485 throw new Exception(
'load not implemented');
488 public function delete()
490 throw new Exception(
'delete not implemented');
508 parent::__construct($p_init);
509 $this->account=$p_account;
510 $this->object_type=
'account';
525 if (isset($this->fil_deb))
527 switch ($this->fil_deb)
530 $filter_deb=
" and j_debit='t' ";
533 $filter_deb=
" and j_debit='f' ";
541 if (isset($this->fil_amount_max)&&
542 isset($this->fil_amount_min)&&
543 isNumber($this->fil_amount_max)==1&&
544 isNumber($this->fil_amount_min)==1&&
545 ($this->fil_amount_max!=0||$this->fil_amount_min!=0))
546 $filter_amount=
" and (j_montant >= $this->fil_amount_min and j_montant<=$this->fil_amount_max "
547 .
" or (coalesce(comptaproc.get_letter_jnt($p_jid),-1)= coalesce(comptaproc.get_letter_jnt(j_id),-1) "
548 .
" and coalesce(comptaproc.get_letter_jnt($p_jid),-1) <> -1 )) ";
550 select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,
551 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
552 coalesce(comptaproc.get_letter_jnt(j_id),-1) as letter,
554 round(j_montant/currency_rate,4) as currency_amount,
557 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
558 from jrnx join jrn on (j_grpt = jr_grpt_id)
559 where j_poste = $1 and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
560 and $this->sql_ledger
563 order by j_date,j_id";
565 $this->
content=$this->
db->get_array(
$sql, array($this->account, $this->start, $this->end));
573 $sql=
" with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
575 ( 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
576 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)) ,
577 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
578 select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
579 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
580 coalesce(let_diff.jl_id,-1) as letter,
581 diff_letter1 as letter_diff,
582 round(j_montant/currency_rate,4) as currency_amount,
586 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
587 from jrnx join jrn on (j_grpt = jr_grpt_id)
588 left join letter_jl using (j_id)
589 left join let_diff using (jl_id)
590 where j_poste = $1 and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
591 and $this->sql_ledger
593 order by j_date,j_id";
594 $this->
content=$this->
db->get_array(
$sql, array($this->account, $this->start, $this->end));
603 with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
605 ( 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
606 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)) ,
607 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
608 select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
609 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
610 let_diff.jl_id as letter,
611 diff_letter1 as letter_diff,
612 round(j_montant/currency_rate,4) as currency_amount,
616 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
617 from jrnx join jrn on (j_grpt = jr_grpt_id)
618 join letter_jl using (j_id)
619 left join let_diff using (jl_id)
620 where j_poste = $1 and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
621 and $this->sql_ledger
622 order by j_date,j_id";
623 $this->
content=$this->
db->get_array(
$sql, array($this->account, $this->start, $this->end));
632 with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
634 ( 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
635 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)) ,
636 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
637 select distinct j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
638 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
639 let_diff.jl_id as letter,
640 diff_letter1 as letter_diff,
641 round(j_montant/currency_rate,4) as currency_amount,
645 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
647 jrnx join jrn on (j_grpt = jr_grpt_id)
648 join letter_jl using (j_id)
649 join let_diff using (jl_id)
650 where j_poste = $1 and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
651 and $this->sql_ledger
652 and diff_letter1 <> 0
653 order by j_date,j_id";
654 $this->
content=$this->
db->get_array(
$sql, array($this->account, $this->start, $this->end));
663 with letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
664 select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
665 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
668 round(j_montant/currency_rate,4) as currency_amount,
672 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
673 from jrnx join jrn on (j_grpt = jr_grpt_id)
674 where j_poste = $1 and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
675 and $this->sql_ledger
676 and j_id not in (select j_id from letter_jl)
677 order by j_date,j_id";
678 $this->
content=$this->
db->get_array(
$sql, array($this->account, $this->start, $this->end));
699 parent::__construct($p_init);
700 $this->quick_code=$p_qcode;
701 $this->object_type=
'card';
716 if (isset($this->fil_deb))
718 switch ($this->fil_deb)
721 $filter_deb=
" and j_debit='t' ";
724 $filter_deb=
" and j_debit='f' ";
732 if (isset($this->fil_amount_max)&&
733 isset($this->fil_amount_min)&&
734 isNumber($this->fil_amount_max)==1&&
735 isNumber($this->fil_amount_min)==1&&
736 ($this->fil_amount_max!=0||$this->fil_amount_min!=0))
737 $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 )) ";
739 with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
741 ( 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
742 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)) ,
743 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
744 select distinct j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
745 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
746 coalesce(let_diff.jl_id,-1) as letter,
747 diff_letter1 as letter_diff,
748 round(j_montant/currency_rate,4) as currency_amount,
751 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
752 from jrnx join jrn on (j_grpt = jr_grpt_id)
753 left join letter_jl using (j_id)
754 left join let_diff using (jl_id)
755 where j_qcode = upper($1) and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
756 and $this->sql_ledger
759 order by j_date,j_id";
761 $this->
content=$this->
db->get_array(
$sql, array($this->quick_code, $this->start, $this->end));
770 with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
772 ( 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
773 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)) ,
774 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
775 select DISTINCT j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
776 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
777 coalesce(let_diff.jl_id,-1) as letter,
778 diff_letter1 as letter_diff,
779 round(j_montant/currency_rate,4) as currency_amount,
783 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
784 from jrnx join jrn on (j_grpt = jr_grpt_id)
785 left join letter_jl using (j_id)
786 left join let_diff using (jl_id)
787 where j_qcode = upper($1) and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
788 and $this->sql_ledger
790 order by j_date,j_id";
791 $this->
content=$this->
db->get_array(
$sql, array($this->quick_code, $this->start, $this->end));
800 with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
802 ( 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
803 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)) ,
804 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
805 select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
806 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
807 let_diff.jl_id as letter,
808 diff_letter1 as letter_diff,
809 round(j_montant/currency_rate,4) as currency_amount,
813 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
814 from jrnx join jrn on (j_grpt = jr_grpt_id)
815 join letter_jl using (j_id)
816 left join let_diff using (jl_id)
817 where j_qcode = upper($1) and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
818 and $this->sql_ledger
819 order by j_date,j_id";
820 $this->
content=$this->
db->get_array(
$sql, array($this->quick_code, $this->start, $this->end));
830 with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
832 ( 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
833 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)) ,
834 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
835 select distinct j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
836 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
837 let_diff.jl_id as letter,
838 diff_letter1 as letter_diff,
839 round(j_montant/currency_rate,4) as currency_amount,
843 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
844 from jrnx join jrn on (j_grpt = jr_grpt_id)
845 left join letter_jl using (j_id)
846 left join let_diff using (jl_id)
847 where j_qcode = upper($1) and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
848 and $this->sql_ledger
850 order by j_date,j_id";
851 $this->
content=$this->
db->get_array(
$sql, array($this->quick_code, $this->start, $this->end));
860 select j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
861 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
864 round(j_montant/currency_rate,4) as currency_amount,
868 (select cr_code_iso from currency where currency_id=currency.id) as cr_code_iso
869 from jrnx join jrn on (j_grpt = jr_grpt_id)
870 where j_qcode = upper($1) and j_date >= to_date($2,'DD.MM.YYYY') and j_date <= to_date ($3,'DD.MM.YYYY')
871 and $this->sql_ledger
872 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) )
873 order by j_date,j_id";
874 $this->
content=$this->
db->get_array(
$sql, array($this->quick_code, $this->start, $this->end));
900 $sql_let=(
$p_type==
'unlet')?
' let_diff.jl_id is null and':
'';
901 $sql=
" with let_diff as (select jl_id,deb_amount-cred_amount as diff_letter1
903 ( 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
904 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)) ,
905 letter_jl as (select jl_id,j_id from letter_cred union all select jl_id,j_id from letter_deb)
906 select DISTINCT j_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,jr_pj_number,
907 j_montant,j_debit,jr_comment,jr_internal,jr_id,jr_def_id,
908 coalesce(let_diff.jl_id,-1) as letter,
909 diff_letter1 as letter_diff,
910 extract ('days' from coalesce(jr_date_paid,now())-jr_date) as day_paid,
912 from jrnx join jrn on (j_grpt = jr_grpt_id)
913 join jrn_def as jd1 on (jrn.jr_def_id=jd1.jrn_def_id)
914 left join letter_jl using (j_id)
915 left join let_diff using (jl_id)
919 and j_date >= to_date($2,'DD.MM.YYYY')
920 and {$this->sql_ledger}
921 and jrn_def_type in ('VEN','ACH')
922 order by j_date,j_id";
923 $this->
content=$this->
db->get_array(
$sql, array($this->quick_code, $this->start));
noalyss_str_replace($search, $replace, $string)
record_log($p_message)
Record an error message into the log file of the server or in the log folder of NOALYSS Record also t...
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_diff()
lettered operation with a different amount
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