6?><?php require_once NOALYSS_TEMPLATE.
'/ledger_detail_top.php'; ?>
7<div
class=
"content" style=
"padding:0;">
13 <form
class=
"print" onsubmit=
"return op_save(this);">
25 $date->setReadOnly(
true);
40 <?php echo _(
"Date paiement")?>
44 $date_paid =
new IDate(
'p_date_paid');
46 echo $date_paid->input();
54 echo
td(_(
'Fournisseur'));
67 $itext->value = strip_tags(
$obj->det->jr_pj_number);
75 $itext->value = strip_tags(
$obj->det->jr_comment??
"");
77 echo
td(_(
'Libellé')) .
td(
$itext->input(),
' colspan="2" ');
95 <
td style=
"width:50%;height:100%;vertical-align:top;text-align: center">
96 <
table style=
"width:99%;height:8rem;vertical-align:top;">
98 <
td style=
"text-align:center;vertical-align: top">
102 <
td style=
"text-align:center;vertical-align: top">
105 $inote->style=
' class="itextarea" style="width:90%;height:100%;"';
114 <div
id=
"operation_tag_td<?=$div?>">
137 <
table class=
"result" style=
"margin-left:4px">
142 echo
th(_(
'Quick Code'));
143 echo
th(_(
'Description'));
145 echo
th(_(
'Prix/Un.'),
'style="text-align:right"');
146 echo
th(_(
'Quantité'),
'style="text-align:right"');
147 if (
$owner->MY_TVA_USE ==
'Y')
149 echo
th(_(
'Taux TVA'),
'style="text-align:right"');
154 echo
th(_(
'Non ded'),
'style="text-align:right"');
156 if (
$owner->MY_TVA_USE ==
'Y')
158 echo
th(_(
'HTVA'),
'style="text-align:right"');
159 echo
th(_(
'TVA ND'),
'style="text-align:right"');
160 echo
th(_(
'TVA'),
'style="text-align:right"');
161 echo
th(_(
'TVAC'),
'style="text-align:right"');
163 echo
th(_(
'Total'),
'style="text-align:right"');
164 if (
$obj->det->currency_id != 0 ) {
165 $currency=
$obj->db->get_value(
"select cr_code_iso from currency where id=$1",
166 [
$obj->det->currency_id]);
169 if (
$owner->MY_ANALYTIC !=
'nu' )
172 $a_anc =
$anc->get_list(
' order by pa_id ');
186 '<th colspan="' . $x .
'">'
187 . _(
'Compt. Analytique') .Anc_Plan::hidden($a_anc).
194 for (
$e = 0;
$e < count(
$obj->det->array);
$e++)
204 if (
$owner->MY_TVA_USE ==
'Y' &&
$q[
'qp_vat_code'] !=
'')
209 $sym_tva =
h($tva->get_parameter(
'label'));
211 if (
$owner->MY_UPDLAB ==
'Y')
215 $input =
new IText(
"e_march" .
$q[
'j_id'] .
"_label", $l_lib);
216 $input->css_size =
"100%";
227 $row.=
td($sym_tva,
'style="text-align:center"');
229 $no_ded = bcadd(
$q[
'qp_dep_priv'],
$q[
'qp_nd_amount']);
230 $row.=
td(
nbm($no_ded),
' style="text-align:right"');
231 $htva =
$q[
'qp_price'];
235 $tva_rounded=round(
$q[
'qp_vat'],2);
236 $tvac = bcadd($htva, $tva_rounded);
237 $tvac = bcadd($tvac,
$q[
'qp_nd_tva']);
238 $tvac = bcadd($tvac,
$q[
'qp_nd_tva_recup']);
239 $tvac = bcsub ($tvac,
$q[
'qp_vat_sided']);
240 if (
$owner->MY_TVA_USE ==
'Y')
242 $tva_amount_nd = bcadd(
$q[
'qp_nd_tva_recup'],
$q[
'qp_nd_tva']);
244 if (
$q[
'qp_vat_sided'] <> 0)
246 $class =
' style="text-decoration:line-through"';
255 if (
$owner->MY_ANALYTIC !=
"nu" )
261 $anc_op->j_id =
$q[
'j_id'];
262 $anc_op->in_div=
$div;
263 $side=(
$q[
'j_debit'] ==
'f')?
'C':
'D';
275 $class=(
$e%2==0)?
' class="even"':
'class="odd"';
279 if (
$obj->det->currency_id != 0 ) {
280 $value=
$obj->db->get_value(
"select oc_amount+oc_vat_amount from operation_currency where j_id=$1",[
$q[
'j_id']]);
288 if (
$owner->MY_TVA_USE ==
'Y')
289 $row =
td(_(
'Total'),
' style="font-style:italic;text-align:right;font-weight: bolder;width:auto" colspan="6"');
291 $row =
td(_(
'Total'),
' style="font-style:italic;text-align:right;font-weight: bolder;width:auto" colspan="6"');
300 if (
$owner->MY_TVA_USE ==
'N') {
304 if (
$owner->MY_TVA_USE ==
'Y')
312 if (
$obj->det->currency_id !=
"" &&
$obj->det->currency_id > 0)
328 if (
$obj->det->currency_id !=
"" &&
$obj->det->currency_id > 0)
331 $four_space=
" ".
" ".
" ".
" ";
334 echo _(
"Taux utilisé"),
" ",
nbm(
$obj->det->currency_rate,4),$four_space;
335 echo _(
"Taux Réf"),
" ",
nbm(
$obj->det->currency_rate_ref,4).$four_space;
343require_once NOALYSS_TEMPLATE.
'/ledger_detail_bottom.php';
format_date($p_date, $p_from_format='YYYY-MM-DD', $p_to_format='DD.MM.YYYY')
format the date, when taken from the database the format is MM-DD-YYYY
th($p_string, $p_extra='', $raw='')
tr($p_string, $p_extra='')
td($p_string='', $p_extra='')
surround the string with td
nbm($p_number, $p_dec=2)
format the number with a sep.
global $g_user
if no group available , then stop
h( $row[ 'oa_description'])
display currency , convert to euro , and save them if used.
Acc_Tva is used for to map the table tva_rate parameter are.
static display_row($p_jrn_id, &$sum_euro, &$sum_currency, $decalage=0)
display the additional_tax in the ledger_detail for Sales and Purchase
this class is used to show the form for entering an operation only FOR analytic operation to save it,...
Concerns the Analytic plan (table plan_analytique)
define Class fiche and fiche def, those class are using class attribut. When adding or modifing new c...
Html Input : Input a date format dd.mm.yyyy The property title should be set to indicate what it is e...
Manage the TEXTAREA html element.
Class to manage the company parameter (address, name...)
concerns the tags linked to an accountancy writing
static button_search($p_jr, $p_div)
Show a button to select tag for Search.
$sum_add_tax
display additional tax if any + currency