noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
tax_detail-display_form.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 *
5 * NOALYSS is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * NOALYSS is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with NOALYSS; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18*/
19// Copyright Author Dany De Bontridder danydb@aevalys.eu 26/07/24
20/*!
21 * \file
22 * \brief display a form for detail of tax
23 */
24global $cn;
25$http=new \HttpInput();
26$ivatnumber = new ITva_Popup("vat_code");
27$ivatnumber->value=$http->get("vat_code","string","");
28$idatestart = new IDate("from");
29$idateend = new IDate("to");
30
31global $g_user, $http;
32
33$a_limit = $g_user->get_limit_current_exercice();
34$idatestart->value = $http->get('from', 'date', $a_limit[0]);
35$idateend->value = $http->get('to', 'date', $a_limit[1]);
36
37
38?>
39<div class="content">
40<p class="text-muted">
41 Il peut y avoir des différences entre la TVA calculée et à récupérer à cause de TVA Non Déductible, reprise
42 à charge du gérant ou d'arrondi.
43</p>
44 <form method="GET">
45 <div class="form-inline">
46 <label for="from">Début</label>
47 <?= $idatestart->input(); ?>
48 <label for="to">Jusque</label>
49 <?= $idateend->input(); ?>
50
51 <label for="vat_code">Code TVA</label>
52 <?= $ivatnumber->input(); ?>
53 <label for="p_jrn">Journal</label>
54 <?php
55 $a_ledger_purchase=$g_user->get_ledger('ACH',3);
56 $a_ledger_sale=$g_user->get_ledger('VEN',3);
57 $a_ledger=array_merge($a_ledger_sale??[],$a_ledger_purchase??[]);
58 if ( DEBUGNOALYSS > 1 ) echo \Noalyss\Dbg::hidden_info("a_ledger",$a_ledger);
59 $select_value=array();
60 $select_value[]=array('value'=>-1,"label"=>'Tous vente et Achat');
61 foreach($a_ledger as $i_ledger) :
62 $select_value[]=array("value"=>$i_ledger["jrn_def_id"],"label"=>$i_ledger['jrn_def_name']);
63 endforeach;
64 $select=new \ISelect("p_jrn");
65 $select->value=$select_value;
66 $select->selected=$http->get("p_jrn","number",-1);
67 echo $select->input();
68 ?>
69 </div>
70
71
72 <ul class="aligned-block">
73 <li>
74
75 <?= HtmlInput::submit("display", _("Afficher")); ?>
76 </li>
77 </ul>
78 <?php
79 echo \HtmlInput::hidden("ac", $http->request("ac"));
80 echo \Dossier::hidden();
81 ?>
82 </form>
83
84</div>
85<hr>
p($p_string)
Definition ac_common.php:39
global $g_user
if no group available , then stop
margin jrn_def_name
Html Input : Input a date format dd.mm.yyyy The property title should be set to indicate what it is e...
let you choose a TVA in a popup