Definition at line 27 of file class_bank_item.php.
Bank_Item::__construct |
( |
|
$id = -1 | ) |
|
Bank_Item::show_delete |
( |
|
$ctl | ) |
|
Definition at line 135 of file class_bank_item.php.
References $cn, $id, and $msg.
139 $bi=
new Temp_Bank_Sql($cn,
$id);
141 if ( $bi->jrn_def_id !=
'')
143 $jrn=$cn->get_value(
'select jrn_def_name from jrn_def where jrn_def_id=$1',
144 array($bi->jrn_def_id));
146 require_once(
'template/delete_item.php');
Bank_Item::show_item |
( |
|
$ctl | ) |
|
show a dialog box to reconciliate or remove a record, is using the $_GET[id] for importbank.import_temp
Definition at line 36 of file class_bank_item.php.
References $amount, $cn, $date, $extra, $id, $msg, and $name.
40 $bi=
new Temp_Bank_Sql($cn,
$id);
42 if ( $bi->jrn_def_id !=
'')
44 $jrn=$cn->get_value(
'select jrn_def_name from jrn_def where jrn_def_id=$1',
45 array($bi->jrn_def_id));
47 $w->jrn=$bi->jrn_def_id;
51 $w->set_dblclick(
"fill_ipopcard(this);");
52 $w->set_attribute(
'ipopup',
'ipopcard');
53 $w->set_attribute(
'label',
'e_third');
54 $w->set_attribute(
'typecard',
'deb');
55 $w->set_callback(
'filter_card');
56 $w->set_function(
'fill_data');
57 $w->set_attribute(
'inp',
'fiche');
59 $w->choice=
"choice_suggest".$ctl;
61 $wConcerned=
new IConcerned();
62 $wConcerned->name=
"e_concerned".$id;
63 $wConcerned->amount_id=abs($bi->amount);
64 $wConcerned->extra2=
'paid';
65 $wConcerned->label=_(
'op. concernée');
67 $wConcerned->value=$bi->tp_rec;
68 $wConcerned->tiers=$w->name;
71 if ( $bi->f_id != null)
73 $w->value=$cn->get_value(
'select ad_value from fiche_detail where f_id=$1 and ad_id=23',array($bi->f_id));
74 $name=$cn->get_value(
'select ad_value from fiche_detail where f_id=$1 and ad_id=1',array($bi->f_id));
76 $third=
new IText(
'tp_third');
77 $third->value=$bi->tp_third;
79 $extra=
new IText(
'tp_extra');
80 $extra->value=$bi->tp_extra;
81 if ( strlen($bi->libelle) > 20)
83 $libelle=
new ITextArea(
'libelle');
84 $libelle->value=$bi->libelle;
91 $libelle=
new IText(
'libelle');
92 $libelle->value=$bi->libelle;
93 $libelle->size=strlen($bi->libelle);
98 $date=
new IDate(
'tp_date');
99 $date->value=$bi->tp_date;
107 $status=
'Erreur : '.$bi->tp_error_msg;
115 $wConcerned->readOnly=
true;
117 $third->readOnly=
true;
119 $libelle->readOnly=
true;
120 $date->readOnly=
true;
129 $remove=
new ICheckBox(
'remove');
130 $recup=
new ICheckBox(
'recup');
133 require_once(
'template/detail_item.php');
Definition at line 149 of file class_bank_item.php.
References $cn.
152 $bi_sql=
new Temp_Bank_Sql($cn,$this->
id);
153 $bi_sql->f_id=$this->f_id;
154 $bi_sql->status=$this->status;
155 $bi_sql->tp_rec=$this->tp_rec;
The documentation for this class was generated from the following file: