noalyss Version-10
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
status_operation_event-main_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 17/04/23
20/*!
21 * \file
22 * \brief main display for situation
23 */
24$http=new \HttpInput();
28
30
31// Supplier late and now
32$supplier_now=$Ledger->get_supplier_now();
33$supplier_late=$Ledger->get_supplier_late();
34
35// Customer late and now
36$customer_now=$Ledger->get_customer_now();
37$customer_late=$Ledger->get_customer_late();
38
39$gDossier_id=Dossier::id();
40
41// var refresh : string javascript code to refresh this widget
42$refresh=sprintf("event_display_main('%s')",Dossier::id());
43
50
51?>
52<div id="content">
53 <div id="so_event_main_id">
54 <div class="sect1">
55 <h2> <?=_("Action")?></h2>
56 <div class="sect1_today <?=($nb_last_operation>0)?"highlight":""?> ">
57 <h3>
58 <?php echo date('d.m.y'); ?>
59 </h3>
60
61 <?php if ($nb_last_operation>0): ?>
62 <A class="mtitle" style="font-weight: bolder;"onclick="event_display_detail(<?=$gDossier_id?>,'action_now')">
63 <span class="notice">
64 <?php echo count($last_operation) ?>
65 &nbsp;<?php echo _("détail"); ?>
66 </span>
67 </A>
68 <?php else: ?>
69 0
70 <?php endif; ?>
71 </div>
72 <div class="sect1_late <?=($nb_late_operation>0)?"highlight":""?>">
73 <h3>
74 <?php echo _('En retard') ?>
75 </h3>
76 <?php if ($nb_late_operation >0): ?>
77 <A class="mtitle" style="font-weight: bolder" onclick="event_display_detail(<?=$gDossier_id?>,'action_late')">
78 <span class="notice"><?php echo count($late_operation) ?>
79 &nbsp;<?php echo _("détail"); ?>
80 </span>
81 </A>
82 <?php else: ?>
83 0
84 <?php endif; ?>
85 </div>
86 </div>
87 <div class="sect1">
88 <h2>
89 <?php echo _("Paiement fournisseur"); ?>
90 </h2>
91
92 <div class="sect1_today <?=($nb_supplier_now>0)?"highlight":""?>">
93 <h3>
94 <?php echo date('d.m.y'); ?>
95 </h3>
96 <?php if ($nb_supplier_now >0): ?>
97 <A class="mtitle" style="font-weight: bolder" onclick="event_display_detail(<?=$gDossier_id?>,'supplier_now')">
98 <span class="notice"><?php echo count($supplier_now) ?>&nbsp;<?php echo _("détail"); ?></span>
99
100 </A>
101 <?php else: ?>
102 0
103 <?php endif; ?>
104 </div>
105 <div class="sect1_late <?=($nb_supplier_late>0)?"highlight":""?>">
106 <h3>
107 <?php echo _('En retard') ?>
108 </h3>
109 <?php if ( $nb_supplier_late >0): ?>
110 <A class="mtitle" style="font-weight: bolder" onclick="event_display_detail(<?=$gDossier_id?>,'supplier_late')">
111 <span class="notice"><?php echo count($supplier_late) ?>&nbsp;<?php echo _("détail"); ?></span>
112
113 </A>
114 <?php else: ?>
115 0
116 <?php endif; ?>
117 </div>
118 </div>
119
120 <div class="sect1">
121 <h2>
122 <?php echo _("Paiement client"); ?>
123 </h2>
124
125 <div class="sect1_today <?=($nb_customer_now>0)?"highlight":""?>">
126 <h3>
127 <?php echo date('d.m.y'); ?>
128 </h3>
129 <?php if ($nb_customer_now>0): ?>
130 <A class="mtitle" style="font-weight: bolder" onclick="event_display_detail(<?=$gDossier_id?>,'customer_now')">
131 <span class="notice"><?php echo count($customer_now) ?>&nbsp;<?php echo _("détail"); ?></span>
132
133 </A>
134 <?php else: ?>
135 0
136 <?php endif; ?>
137 </div>
138 <div class="sect1_late <?=($nb_customer_late>0)?"highlight":""?>">
139 <h3>
140 <?php echo _('En retard') ?>
141 </h3>
142 <?php if ($nb_customer_late >0): ?>
143 <A class="mtitle" style="font-weight: bolder" onclick="event_display_detail(<?=$gDossier_id?>,'customer_late')">
144 <span class="notice"><?php echo count($customer_late) ?>&nbsp;<?php echo _("détail"); ?></span>
145
146 </A>
147 <?php else: ?>
148 0
149 <?php endif; ?>
150 </div>
151 </div>
152
153 </div>
154
155
156</div>
h2($p_string, $p_class="", $raw="")
Definition ac_common.php:68
span($p_string, $p_extra='')
Definition ac_common.php:43
foreach(array( 'l', 'gDossier') as $a) if(is_numeric($l)==false) $Ledger
$opd_description style
_("actif, passif,charge,...")
Class for jrn, class acc_ledger for manipulating the ledger AND some acc.
class_action for manipulating actions action can be :