noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
invoice-display.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 18/08/24
20/*!
21 * \file
22 * \brief display invoice for supplier or customer to pay, late or for today
23 */
24if ( empty($array)) {
25 echo _("Aucune facture");
26 return;
27}
29foreach ($array as $item):
30 /**
31 * item : jr_id, jr_internal,jr_date , jr_comment, jr_pj_number,jr_montant,jr_ech
32 */
33 $ech=\DateTime::createFromFormat("Y-m-d", $item['jr_ech']);
34
35 $today=new \DateTime();
36 if ( $aParam['time_limit'] == 'P' && $today->format('ymd')>$ech->format('ymd') )
37 continue;
38 $p++;
39 $class=($p&1)?' odd ':'even';
40?>
41<div class="row <?=$class?>">
42 <div class="col-2">
43 <?=$ech->format('d.m.y')?>
44 </div>
45 <div class="col-2">
46 <?=\HtmlInput::detail_op($item['jr_id'],$item['jr_pj_number'])?>
47 </div>
48 <div class="col">
49 <?=h($item['jr_comment'])?>
50 <?=h($item['jr_date'])?>
51 </div>
52 <div class="col-2">
53 <?=nbm($item['jr_montant'],2)?>
54 </div>
55</div>
56
57<?php
59if ($p == 0) {
60 echo _("Aucune facture");
61 return;
62}
63?>
64
nbm($p_number, $p_dec=2)
format the number with a sep.
if(isset($tot['tva'][$a]))($tot['tva'][$a])?></td ><?php else endforeach
h( $row[ 'oa_description'])
_("actif, passif,charge,...")
$p
Definition calendar.php:9