27 require
'../../main.inc.php';
28 require_once DOL_DOCUMENT_ROOT.
'/compta/bank/class/account.class.php';
31 $langs->loadLangs(array(
'banks',
'categories'));
34 if (empty($user->rights->banque->lire)) {
53 $obj = $db->fetch_object(
$resql);
54 $valeur = $obj->amount;
70 print
'<table class="noborder" width="100%" cellpadding="2">';
71 print
"<tr class=\"liste_titre\">";
72 echo
'<td colspan="2">'.$langs->trans(
"Summary").
'</td>';
76 $sql =
"SELECT sum(amount) as amount FROM ".MAIN_DB_PREFIX.
"paiement";
78 print
"<tr class=\"oddeven\"><td>Somme des paiements (associes a une facture)</td><td align=\"right\">".price($paiem).
"</td></tr>";
81 $sql =
"SELECT sum(amount) as amount FROM ".MAIN_DB_PREFIX.
"bank WHERE amount > 0";
83 print
"<tr class=\"oddeven\"><td>Somme des credits</td><td align=\"right\">".price($credits).
"</td></tr>";
86 $sql =
"SELECT sum(amount) as amount FROM ".MAIN_DB_PREFIX.
"bank WHERE amount < 0";
88 print
"<tr class=\"oddeven\"><td>Somme des debits</td><td align=\"right\">".price($debits).
"</td></tr>";
91 $sql =
"SELECT sum(amount) as amount FROM ".MAIN_DB_PREFIX.
"bank ";
93 print
"<tr class=\"oddeven\"><td>".$langs->trans(
"BankBalance").
"</td><td align=\"right\">".
price($solde).
"</td></tr>";
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.
if(empty($user->rights->banque->lire)) valeur($sql)
Get result of sql for field amount.
if(isModEnabled('facture') &&!empty($user->rights->facture->lire)) if((isModEnabled('fournisseur') &&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD) && $user->hasRight("fournisseur", "facture", "lire"))||(isModEnabled('supplier_invoice') && $user->hasRight("supplier_invoice", "lire"))) if(isModEnabled('don') &&!empty($user->rights->don->lire)) if(isModEnabled('tax') &&!empty($user->rights->tax->charges->lire)) if(isModEnabled('facture') &&isModEnabled('commande') && $user->hasRight("commande", "lire") &&empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER)) $resql
Social contributions to pay.
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
price($amount, $form=0, $outlangs='', $trunc=1, $rounding=-1, $forcerounding=-1, $currency_code='')
Function to format a value into an amount for visual output Function used into PDF and HTML pages.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.