Fix: Correction mauvaise alimentation devise compte bancaire
Qual: Ajout date sur boites
This commit is contained in:
parent
5c76af21b2
commit
39f52fc427
@ -202,6 +202,7 @@ if ($_GET["action"] == 'create')
|
|||||||
$form->select_currency($selectedcode, 'account_currency_code');
|
$form->select_currency($selectedcode, 'account_currency_code');
|
||||||
*/
|
*/
|
||||||
print $langs->trans("Currency".$conf->monnaie);
|
print $langs->trans("Currency".$conf->monnaie);
|
||||||
|
print '<input type="hidden" name="account_currency_code" value="'.$conf->monnaie.'">';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Pays
|
// Pays
|
||||||
@ -320,6 +321,7 @@ else
|
|||||||
$form->select_currency($selectedcode, 'account_currency_code');
|
$form->select_currency($selectedcode, 'account_currency_code');
|
||||||
*/
|
*/
|
||||||
print $langs->trans("Currency".$conf->monnaie);
|
print $langs->trans("Currency".$conf->monnaie);
|
||||||
|
print '<input type="hidden" name="account_currency_code" value="'.$conf->monnaie.'">';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
print '<tr><td valign="top">'.$langs->trans("BalanceMinimalAllowed").'</td>';
|
print '<tr><td valign="top">'.$langs->trans("BalanceMinimalAllowed").'</td>';
|
||||||
@ -430,6 +432,7 @@ else
|
|||||||
$form->select_currency($selectedcode, 'account_currency_code');
|
$form->select_currency($selectedcode, 'account_currency_code');
|
||||||
*/
|
*/
|
||||||
print $langs->trans("Currency".$conf->monnaie);
|
print $langs->trans("Currency".$conf->monnaie);
|
||||||
|
print '<input type="hidden" name="account_currency_code" value="'.$conf->monnaie.'">';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
print '<tr><td valign="top">'.$langs->trans("BalanceMinimalAllowed").'</td>';
|
print '<tr><td valign="top">'.$langs->trans("BalanceMinimalAllowed").'</td>';
|
||||||
|
|||||||
@ -71,7 +71,7 @@ class box_commandes extends ModeleBoxes {
|
|||||||
{
|
{
|
||||||
|
|
||||||
$sql = "SELECT s.nom, s.rowid as socid,";
|
$sql = "SELECT s.nom, s.rowid as socid,";
|
||||||
$sql.= " p.ref, ".$db->pdate("p.date_commande")." as dp, p.rowid,";
|
$sql.= " p.ref, p.tms, p.rowid,";
|
||||||
$sql.= " p.fk_statut, p.facture";
|
$sql.= " p.fk_statut, p.facture";
|
||||||
if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= ", sc.fk_soc, sc.fk_user";
|
if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= ", sc.fk_soc, sc.fk_user";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."commande as p";
|
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."commande as p";
|
||||||
@ -106,8 +106,13 @@ class box_commandes extends ModeleBoxes {
|
|||||||
'text' => $objp->nom,
|
'text' => $objp->nom,
|
||||||
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->socid);
|
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->socid);
|
||||||
|
|
||||||
$this->info_box_contents[$i][2] = array(
|
$this->info_box_contents[$i][2] = array('align' => 'right',
|
||||||
|
'text' => dolibarr_print_date($objp->tms,'day'),
|
||||||
|
);
|
||||||
|
|
||||||
|
$this->info_box_contents[$i][3] = array(
|
||||||
'align' => 'right',
|
'align' => 'right',
|
||||||
|
'width' => 18,
|
||||||
'text' => $commandestatic->LibStatut($objp->fk_statut,$objp->facturee,3));
|
'text' => $commandestatic->LibStatut($objp->fk_statut,$objp->facturee,3));
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
@ -122,11 +127,13 @@ class box_commandes extends ModeleBoxes {
|
|||||||
$this->info_box_contents[$i][1] = array('text'=>' ');
|
$this->info_box_contents[$i][1] = array('text'=>' ');
|
||||||
$this->info_box_contents[$i][2] = array('text'=>' ');
|
$this->info_box_contents[$i][2] = array('text'=>' ');
|
||||||
$this->info_box_contents[$i][3] = array('text'=>' ');
|
$this->info_box_contents[$i][3] = array('text'=>' ');
|
||||||
|
$this->info_box_contents[$i][4] = array('text'=>' ');
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[$i][0] = array('text'=>' ');
|
$this->info_box_contents[$i][0] = array('text'=>' ');
|
||||||
$this->info_box_contents[$i][1] = array('text'=>' ');
|
$this->info_box_contents[$i][1] = array('text'=>' ');
|
||||||
$this->info_box_contents[$i][2] = array('text'=>' ');
|
$this->info_box_contents[$i][2] = array('text'=>' ');
|
||||||
$this->info_box_contents[$i][3] = array('text'=>' ');
|
$this->info_box_contents[$i][3] = array('text'=>' ');
|
||||||
|
$this->info_box_contents[$i][4] = array('text'=>' ');
|
||||||
}
|
}
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -61,14 +61,13 @@ class box_comptes extends ModeleBoxes {
|
|||||||
*/
|
*/
|
||||||
function loadBox($max=5)
|
function loadBox($max=5)
|
||||||
{
|
{
|
||||||
global $user, $langs, $db;
|
global $user, $langs, $db, $conf;
|
||||||
$langs->load("boxes");
|
|
||||||
|
|
||||||
$this->info_box_head = array('text' => $langs->trans("BoxTitleCurrentAccounts"));
|
$this->info_box_head = array('text' => $langs->trans("BoxTitleCurrentAccounts"));
|
||||||
|
|
||||||
if ($user->rights->banque->lire)
|
if ($user->rights->banque->lire)
|
||||||
{
|
{
|
||||||
$sql = "SELECT rowid, label, bank, number";
|
$sql = "SELECT rowid, label, bank, number, currency_code";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."bank_account";
|
$sql .= " FROM ".MAIN_DB_PREFIX."bank_account";
|
||||||
$sql .= " WHERE clos = 0 AND courant = 1";
|
$sql .= " WHERE clos = 0 AND courant = 1";
|
||||||
$sql .= " ORDER BY label";
|
$sql .= " ORDER BY label";
|
||||||
@ -92,19 +91,21 @@ class box_comptes extends ModeleBoxes {
|
|||||||
|
|
||||||
$this->info_box_contents[$i][0] = array('align' => 'left',
|
$this->info_box_contents[$i][0] = array('align' => 'left',
|
||||||
'logo' => $this->boximg,
|
'logo' => $this->boximg,
|
||||||
'text' => stripslashes($objp->label),
|
'text' => $objp->label,
|
||||||
'url' => DOL_URL_ROOT."/compta/bank/account.php?account=".$objp->rowid);
|
'url' => DOL_URL_ROOT."/compta/bank/account.php?account=".$objp->rowid);
|
||||||
|
|
||||||
|
/*
|
||||||
$this->info_box_contents[$i][1] = array('align' => 'left',
|
$this->info_box_contents[$i][1] = array('align' => 'left',
|
||||||
'text' => stripslashes($objp->bank)
|
'text' => $objp->bank
|
||||||
|
);
|
||||||
|
*/
|
||||||
|
|
||||||
|
$this->info_box_contents[$i][1] = array('align' => 'left',
|
||||||
|
'text' => $objp->number
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$i][2] = array('align' => 'left',
|
$this->info_box_contents[$i][2] = array('align' => 'right',
|
||||||
'text' => stripslashes($objp->number)
|
'text' => price($acc->solde()).' '.$langs->trans("Currency".$objp->currency_code)
|
||||||
);
|
|
||||||
|
|
||||||
$this->info_box_contents[$i][3] = array('align' => 'right',
|
|
||||||
'text' => price($acc->solde())
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
@ -115,14 +116,14 @@ class box_comptes extends ModeleBoxes {
|
|||||||
|
|
||||||
$this->info_box_contents[$i][0] = array('align' => 'right',
|
$this->info_box_contents[$i][0] = array('align' => 'right',
|
||||||
//'width' => '75%',
|
//'width' => '75%',
|
||||||
'colspan' => '4',
|
'colspan' => '3',
|
||||||
'class' => 'liste_total',
|
'class' => 'liste_total',
|
||||||
'text' => $langs->trans('Total')
|
'text' => $langs->trans('Total')
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$i][1] = array('align' => 'right',
|
$this->info_box_contents[$i][1] = array('align' => 'right',
|
||||||
'class' => 'liste_total',
|
'class' => 'liste_total',
|
||||||
'text' => price($solde_total)
|
'text' => price($solde_total).' '.$langs->trans("Currency".$conf->monnaie)
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -72,7 +72,7 @@ class box_factures extends ModeleBoxes {
|
|||||||
if ($user->rights->facture->lire)
|
if ($user->rights->facture->lire)
|
||||||
{
|
{
|
||||||
$sql = "SELECT f.rowid as facid, f.facnumber, f.type, f.amount, ".$db->pdate("f.datef")." as df,";
|
$sql = "SELECT f.rowid as facid, f.facnumber, f.type, f.amount, ".$db->pdate("f.datef")." as df,";
|
||||||
$sql.= " f.paye, f.fk_statut,";
|
$sql.= " f.paye, f.fk_statut, f.datec,";
|
||||||
$sql.= " s.nom, s.rowid as socid";
|
$sql.= " s.nom, s.rowid as socid";
|
||||||
if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= ", sc.fk_soc, sc.fk_user";
|
if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= ", sc.fk_soc, sc.fk_user";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."facture as f";
|
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."facture as f";
|
||||||
@ -109,11 +109,16 @@ class box_factures extends ModeleBoxes {
|
|||||||
|
|
||||||
$this->info_box_contents[$i][1] = array('align' => 'left',
|
$this->info_box_contents[$i][1] = array('align' => 'left',
|
||||||
'text' => $objp->nom,
|
'text' => $objp->nom,
|
||||||
'maxlength'=>44,
|
'maxlength'=>40,
|
||||||
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->socid);
|
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->socid);
|
||||||
|
|
||||||
$this->info_box_contents[$i][2] = array(
|
$this->info_box_contents[$i][2] = array('align' => 'right',
|
||||||
|
'text' => dolibarr_print_date($objp->datec,'day'),
|
||||||
|
);
|
||||||
|
|
||||||
|
$this->info_box_contents[$i][3] = array(
|
||||||
'align' => 'right',
|
'align' => 'right',
|
||||||
|
'width' => 18,
|
||||||
'text' => $facturestatic->LibStatut($objp->paye,$objp->fk_statut,3));
|
'text' => $facturestatic->LibStatut($objp->paye,$objp->fk_statut,3));
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
@ -128,11 +133,13 @@ class box_factures extends ModeleBoxes {
|
|||||||
$this->info_box_contents[$i][1] = array('text'=>' ');
|
$this->info_box_contents[$i][1] = array('text'=>' ');
|
||||||
$this->info_box_contents[$i][2] = array('text'=>' ');
|
$this->info_box_contents[$i][2] = array('text'=>' ');
|
||||||
$this->info_box_contents[$i][3] = array('text'=>' ');
|
$this->info_box_contents[$i][3] = array('text'=>' ');
|
||||||
|
$this->info_box_contents[$i][4] = array('text'=>' ');
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[$i][0] = array('text'=>' ');
|
$this->info_box_contents[$i][0] = array('text'=>' ');
|
||||||
$this->info_box_contents[$i][1] = array('text'=>' ');
|
$this->info_box_contents[$i][1] = array('text'=>' ');
|
||||||
$this->info_box_contents[$i][2] = array('text'=>' ');
|
$this->info_box_contents[$i][2] = array('text'=>' ');
|
||||||
$this->info_box_contents[$i][3] = array('text'=>' ');
|
$this->info_box_contents[$i][3] = array('text'=>' ');
|
||||||
|
$this->info_box_contents[$i][4] = array('text'=>' ');
|
||||||
}
|
}
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -73,8 +73,8 @@ class box_factures_fourn extends ModeleBoxes {
|
|||||||
if ($user->rights->fournisseur->facture->lire)
|
if ($user->rights->fournisseur->facture->lire)
|
||||||
{
|
{
|
||||||
$sql = "SELECT s.nom, s.rowid as socid,";
|
$sql = "SELECT s.nom, s.rowid as socid,";
|
||||||
$sql.= " f.facnumber, f.amount,".$db->pdate("f.datef")." as df,";
|
$sql.= " f.rowid as facid, f.facnumber, f.amount,".$db->pdate("f.datef")." as df,";
|
||||||
$sql.= " f.paye, f.fk_statut, f.rowid as facid";
|
$sql.= " f.paye, f.fk_statut, f.datec";
|
||||||
if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= ", sc.fk_soc, sc.fk_user";
|
if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= ", sc.fk_soc, sc.fk_user";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."facture_fourn as f";
|
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."facture_fourn as f";
|
||||||
if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
||||||
@ -110,6 +110,11 @@ class box_factures_fourn extends ModeleBoxes {
|
|||||||
|
|
||||||
$this->info_box_contents[$i][2] = array(
|
$this->info_box_contents[$i][2] = array(
|
||||||
'align' => 'right',
|
'align' => 'right',
|
||||||
|
'text' => dolibarr_print_date($objp->datec,'day'));
|
||||||
|
|
||||||
|
$this->info_box_contents[$i][3] = array(
|
||||||
|
'align' => 'right',
|
||||||
|
'width' => 18,
|
||||||
'text' => $facturestatic->LibStatut($objp->paye,$objp->fk_statut,3));
|
'text' => $facturestatic->LibStatut($objp->paye,$objp->fk_statut,3));
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -18,7 +18,6 @@
|
|||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
* $Source$
|
* $Source$
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -62,7 +61,6 @@ class box_produits extends ModeleBoxes {
|
|||||||
function loadBox($max=5)
|
function loadBox($max=5)
|
||||||
{
|
{
|
||||||
global $user, $langs, $db, $conf;
|
global $user, $langs, $db, $conf;
|
||||||
$langs->load("boxes");
|
|
||||||
|
|
||||||
$productstatic=new Product($db);
|
$productstatic=new Product($db);
|
||||||
|
|
||||||
@ -70,7 +68,7 @@ class box_produits extends ModeleBoxes {
|
|||||||
|
|
||||||
if ($user->rights->produit->lire)
|
if ($user->rights->produit->lire)
|
||||||
{
|
{
|
||||||
$sql = "SELECT p.label, p.rowid, p.price, p.fk_product_type, p.envente";
|
$sql = "SELECT p.rowid, p.label, p.price, p.price_base_type, p.price_ttc, p.fk_product_type, p.tms, p.envente";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."product as p";
|
$sql .= " FROM ".MAIN_DB_PREFIX."product as p";
|
||||||
if ($conf->categorie->enabled && !$user->rights->categorie->voir)
|
if ($conf->categorie->enabled && !$user->rights->categorie->voir)
|
||||||
{
|
{
|
||||||
@ -111,12 +109,32 @@ class box_produits extends ModeleBoxes {
|
|||||||
'text' => $objp->label,
|
'text' => $objp->label,
|
||||||
'url' => DOL_URL_ROOT."/product/fiche.php?id=".$objp->rowid);
|
'url' => DOL_URL_ROOT."/product/fiche.php?id=".$objp->rowid);
|
||||||
|
|
||||||
|
if ($objp->price_base_type == 'HT')
|
||||||
|
{
|
||||||
|
$price=price($objp->price);
|
||||||
|
$price_base_type=$langs->trans("HT");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$price=price($objp->price_ttc);
|
||||||
|
$price_base_type=$langs->trans("TTC");
|
||||||
|
}
|
||||||
$this->info_box_contents[$i][1] = array(
|
$this->info_box_contents[$i][1] = array(
|
||||||
'align' => 'right',
|
'align' => 'right',
|
||||||
'text' => price($objp->price));
|
'text' => $price);
|
||||||
|
|
||||||
$this->info_box_contents[$i][2] = array(
|
$this->info_box_contents[$i][2] = array(
|
||||||
|
'align' => 'center',
|
||||||
|
'width' => 20,
|
||||||
|
'text' => $price_base_type);
|
||||||
|
|
||||||
|
$this->info_box_contents[$i][3] = array(
|
||||||
'align' => 'right',
|
'align' => 'right',
|
||||||
|
'text' => dolibarr_print_date($objp->tms,'day'));
|
||||||
|
|
||||||
|
$this->info_box_contents[$i][4] = array(
|
||||||
|
'align' => 'right',
|
||||||
|
'width' => 18,
|
||||||
'text' => $productstatic->LibStatut($objp->envente,3));
|
'text' => $productstatic->LibStatut($objp->envente,3));
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
|
|||||||
@ -73,7 +73,7 @@ class box_propales extends ModeleBoxes {
|
|||||||
{
|
{
|
||||||
|
|
||||||
$sql = "SELECT s.nom, s.rowid as socid,";
|
$sql = "SELECT s.nom, s.rowid as socid,";
|
||||||
$sql.= " p.ref, p.fk_statut, ".$db->pdate("p.datep")." as dp, p.rowid";
|
$sql.= " p.rowid, p.ref, p.fk_statut, ".$db->pdate("p.datep")." as dp, p.datec";
|
||||||
if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= ", sc.fk_soc, sc.fk_user";
|
if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= ", sc.fk_soc, sc.fk_user";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."propal as p";
|
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."propal as p";
|
||||||
if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
||||||
@ -109,6 +109,11 @@ class box_propales extends ModeleBoxes {
|
|||||||
|
|
||||||
$this->info_box_contents[$i][2] = array(
|
$this->info_box_contents[$i][2] = array(
|
||||||
'align' => 'right',
|
'align' => 'right',
|
||||||
|
'text' => dolibarr_print_date($objp->datec,'day'));
|
||||||
|
|
||||||
|
$this->info_box_contents[$i][3] = array(
|
||||||
|
'align' => 'right',
|
||||||
|
'width' => 18,
|
||||||
'text' => $propalstatic->LibStatut($objp->fk_statut,3));
|
'text' => $propalstatic->LibStatut($objp->fk_statut,3));
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
@ -123,11 +128,13 @@ class box_propales extends ModeleBoxes {
|
|||||||
$this->info_box_contents[$i][1] = array('text'=>' ');
|
$this->info_box_contents[$i][1] = array('text'=>' ');
|
||||||
$this->info_box_contents[$i][2] = array('text'=>' ');
|
$this->info_box_contents[$i][2] = array('text'=>' ');
|
||||||
$this->info_box_contents[$i][3] = array('text'=>' ');
|
$this->info_box_contents[$i][3] = array('text'=>' ');
|
||||||
|
$this->info_box_contents[$i][4] = array('text'=>' ');
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[$i][0] = array('text'=>' ');
|
$this->info_box_contents[$i][0] = array('text'=>' ');
|
||||||
$this->info_box_contents[$i][1] = array('text'=>' ');
|
$this->info_box_contents[$i][1] = array('text'=>' ');
|
||||||
$this->info_box_contents[$i][2] = array('text'=>' ');
|
$this->info_box_contents[$i][2] = array('text'=>' ');
|
||||||
$this->info_box_contents[$i][3] = array('text'=>' ');
|
$this->info_box_contents[$i][3] = array('text'=>' ');
|
||||||
|
$this->info_box_contents[$i][4] = array('text'=>' ');
|
||||||
}
|
}
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -63,7 +63,6 @@ class box_prospect extends ModeleBoxes {
|
|||||||
function loadBox($max=5)
|
function loadBox($max=5)
|
||||||
{
|
{
|
||||||
global $user, $langs, $db;
|
global $user, $langs, $db;
|
||||||
$langs->load("boxes");
|
|
||||||
|
|
||||||
$this->info_box_head = array('text' => $langs->trans("BoxTitleLastProspects",$max));
|
$this->info_box_head = array('text' => $langs->trans("BoxTitleLastProspects",$max));
|
||||||
|
|
||||||
@ -99,10 +98,11 @@ class box_prospect extends ModeleBoxes {
|
|||||||
'text' => stripslashes($objp->nom),
|
'text' => stripslashes($objp->nom),
|
||||||
'url' => DOL_URL_ROOT."/comm/prospect/fiche.php?id=".$objp->socid);
|
'url' => DOL_URL_ROOT."/comm/prospect/fiche.php?id=".$objp->socid);
|
||||||
|
|
||||||
$this->info_box_contents[$i][1] = array('align' => 'ce,ter',
|
$this->info_box_contents[$i][1] = array('align' => 'right',
|
||||||
'text' => dolibarr_print_date($objp->dc, "day"));
|
'text' => dolibarr_print_date($objp->dc, "day"));
|
||||||
|
|
||||||
$this->info_box_contents[$i][2] = array('align' => 'right',
|
$this->info_box_contents[$i][2] = array('align' => 'right',
|
||||||
|
'width' => 18,
|
||||||
'text' => $prospectstatic->LibStatut($objp->fk_stcomm,3));
|
'text' => $prospectstatic->LibStatut($objp->fk_stcomm,3));
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2005-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2005-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005-2006 Regis Houssin <regis.houssin@cap-networks.com>
|
* Copyright (C) 2005-2006 Regis Houssin <regis.houssin@cap-networks.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -61,13 +61,18 @@ class box_services_vendus extends ModeleBoxes {
|
|||||||
function loadBox($max=5)
|
function loadBox($max=5)
|
||||||
{
|
{
|
||||||
global $user, $langs, $db, $conf;
|
global $user, $langs, $db, $conf;
|
||||||
$langs->load("boxes");
|
|
||||||
|
include_once(DOL_DOCUMENT_ROOT."/contrat/contrat.class.php");
|
||||||
|
$contratlignestatic=new ContratLigne($db);
|
||||||
|
|
||||||
$this->info_box_head = array('text' => $langs->trans("BoxLastProductsInContract",$max));
|
$this->info_box_head = array('text' => $langs->trans("BoxLastProductsInContract",$max));
|
||||||
|
|
||||||
if ($user->rights->produit->lire && $user->rights->contrat->lire)
|
if ($user->rights->produit->lire && $user->rights->contrat->lire)
|
||||||
{
|
{
|
||||||
$sql = "SELECT s.nom, s.rowid as socid, c.rowid, cd.rowid as cdid, p.rowid as pid, p.label, p.fk_product_type";
|
$sql = "SELECT s.nom, s.rowid as socid,";
|
||||||
|
$sql.= " c.rowid,";
|
||||||
|
$sql.= " cd.rowid as cdid, cd.tms as datem, cd.statut,";
|
||||||
|
$sql.= " p.rowid as pid, p.label, p.fk_product_type";
|
||||||
if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= ", sc.fk_soc, sc.fk_user";
|
if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= ", sc.fk_soc, sc.fk_user";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."contrat as c, ".MAIN_DB_PREFIX."contratdet as cd, ".MAIN_DB_PREFIX."product as p";
|
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."contrat as c, ".MAIN_DB_PREFIX."contratdet as cd, ".MAIN_DB_PREFIX."product as p";
|
||||||
if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
||||||
@ -127,6 +132,14 @@ class box_services_vendus extends ModeleBoxes {
|
|||||||
'maxlength' => 40,
|
'maxlength' => 40,
|
||||||
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->socid);
|
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->socid);
|
||||||
|
|
||||||
|
$this->info_box_contents[$i][2] = array('align' => 'right',
|
||||||
|
'text' => dolibarr_print_date($objp->datem,'day'));
|
||||||
|
|
||||||
|
$this->info_box_contents[$i][3] = array('align' => 'right',
|
||||||
|
'text' => $contratlignestatic->LibStatut($objp->statut,3),
|
||||||
|
'width' => 18
|
||||||
|
);
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,8 +19,8 @@ BoxTotalUnpayedSuppliersBills=Total unpayed supplier's invoices
|
|||||||
BoxTitleLastBooks=Last %s recorded books
|
BoxTitleLastBooks=Last %s recorded books
|
||||||
BoxTitleNbOfCustomers=Nombre de client
|
BoxTitleNbOfCustomers=Nombre de client
|
||||||
BoxTitleLastRssInfos=Last %s news from %s
|
BoxTitleLastRssInfos=Last %s news from %s
|
||||||
BoxTitleLastProducts=Last %s recorded products/services
|
BoxTitleLastProducts=Last %s modified products/services
|
||||||
BoxTitleLastCustomerOrders=Last %s customer orders
|
BoxTitleLastCustomerOrders=Last %s modified customer orders
|
||||||
BoxTitleLastSuppliers=Last %s recorded suppliers
|
BoxTitleLastSuppliers=Last %s recorded suppliers
|
||||||
BoxTitleLastCustomers=Last %s recorded customers
|
BoxTitleLastCustomers=Last %s recorded customers
|
||||||
BoxTitleLastPropals=Last %s recorded proposals
|
BoxTitleLastPropals=Last %s recorded proposals
|
||||||
|
|||||||
@ -391,6 +391,7 @@ CountryCA=Canada
|
|||||||
Currencyeuros=Euros
|
Currencyeuros=Euros
|
||||||
CurrencyCHF=Swiss Francs
|
CurrencyCHF=Swiss Francs
|
||||||
CurrencyEUR=Euros
|
CurrencyEUR=Euros
|
||||||
|
CurrencyFRF=Francs Français
|
||||||
CurrencyGBP=GB Pounds
|
CurrencyGBP=GB Pounds
|
||||||
CurrencyUSD=Dollar US
|
CurrencyUSD=Dollar US
|
||||||
# Week day
|
# Week day
|
||||||
|
|||||||
@ -19,7 +19,7 @@ BoxTotalUnpayedSuppliersBills=Total des factures fournisseurs impay
|
|||||||
BoxTitleLastBooks=Derniers % livres enregistrés
|
BoxTitleLastBooks=Derniers % livres enregistrés
|
||||||
BoxTitleNbOfCustomers=Nombre de clients
|
BoxTitleNbOfCustomers=Nombre de clients
|
||||||
BoxTitleLastRssInfos=%s dernières nouvelles sur %s
|
BoxTitleLastRssInfos=%s dernières nouvelles sur %s
|
||||||
BoxTitleLastProducts=%s derniers produits/services enregistrés
|
BoxTitleLastProducts=%s derniers produits/services modifiés
|
||||||
BoxTitleLastCustomerOrders=%s dernières commandes clients
|
BoxTitleLastCustomerOrders=%s dernières commandes clients
|
||||||
BoxTitleLastSuppliers=%s derniers fournisseurs enregistrés
|
BoxTitleLastSuppliers=%s derniers fournisseurs enregistrés
|
||||||
BoxTitleLastCustomers=%s derniers clients enregistrés
|
BoxTitleLastCustomers=%s derniers clients enregistrés
|
||||||
|
|||||||
@ -355,3 +355,4 @@ CurrencyCHF=Francs suisses
|
|||||||
CurrencyEUR=Euros
|
CurrencyEUR=Euros
|
||||||
CurrencyGBP=Livre sterling
|
CurrencyGBP=Livre sterling
|
||||||
CurrencyUSD=Dollar US
|
CurrencyUSD=Dollar US
|
||||||
|
CurrencyFRF=Francs Français
|
||||||
|
|||||||
@ -20,7 +20,7 @@ BoxTitleLastBooks=Les %s derniers ouvrages enregistr
|
|||||||
BoxTitleNbOfCustomers=Nombre de clients
|
BoxTitleNbOfCustomers=Nombre de clients
|
||||||
BoxTitleLastRssInfos=Les %s dernières infos de %s
|
BoxTitleLastRssInfos=Les %s dernières infos de %s
|
||||||
BoxTitleLastProducts=Les %s derniers produits/services enregistrés
|
BoxTitleLastProducts=Les %s derniers produits/services enregistrés
|
||||||
BoxTitleLastCustomerOrders=Les %s dernières commandes clients
|
BoxTitleLastCustomerOrders=Les %s dernières commandes clients modifiées
|
||||||
BoxTitleLastSuppliers=Les %s derniers fournisseurs enregistrés
|
BoxTitleLastSuppliers=Les %s derniers fournisseurs enregistrés
|
||||||
BoxTitleLastCustomers=Les %s derniers clients enregistrés
|
BoxTitleLastCustomers=Les %s derniers clients enregistrés
|
||||||
BoxTitleLastPropals=Les %s dernières propositions enregistrés
|
BoxTitleLastPropals=Les %s dernières propositions enregistrés
|
||||||
|
|||||||
@ -392,6 +392,7 @@ CountryCA=Canada
|
|||||||
Currencyeuros=Euros
|
Currencyeuros=Euros
|
||||||
CurrencyCHF=Francs suisses
|
CurrencyCHF=Francs suisses
|
||||||
CurrencyEUR=Euros
|
CurrencyEUR=Euros
|
||||||
|
CurrencyFRF=Francs Français
|
||||||
CurrencyGBP=Livre sterling
|
CurrencyGBP=Livre sterling
|
||||||
CurrencyUSD=Dollar US
|
CurrencyUSD=Dollar US
|
||||||
# Week day
|
# Week day
|
||||||
|
|||||||
@ -11,6 +11,10 @@
|
|||||||
-- Nettoyage champ ref table llx_bank_account
|
-- Nettoyage champ ref table llx_bank_account
|
||||||
update llx_bank_account set ref=concat('ACCOUNT',rowid) where (ref='' or ref is null);
|
update llx_bank_account set ref=concat('ACCOUNT',rowid) where (ref='' or ref is null);
|
||||||
|
|
||||||
|
update llx_bank_account set currency_code='EU' where (currency_code IS NULL or currency_code='');
|
||||||
|
alter table llx_bank_account modify currency_code varchar(3) NOT NULL;
|
||||||
|
update llx_bank_account set currency_code='EUR' where (currency_code IS NULL or currency_code='' or currency_code='EU');
|
||||||
|
|
||||||
-- Sequence de requete pour nettoyage et correction champ type table llx_bank_url
|
-- Sequence de requete pour nettoyage et correction champ type table llx_bank_url
|
||||||
update llx_bank_url set type='company' where (type is null or type = '') and url like '%compta/fiche.php?socid=%';
|
update llx_bank_url set type='company' where (type is null or type = '') and url like '%compta/fiche.php?socid=%';
|
||||||
alter table llx_bank_url modify `type` enum("","?","company","payment","payment_supplier","member","subscription","donation","sc","payment_sc");
|
alter table llx_bank_url modify `type` enum("","?","company","payment","payment_supplier","member","subscription","donation","sc","payment_sc");
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
-- =============================================================================
|
-- =============================================================================
|
||||||
-- Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- it under the terms of the GNU General Public License as published by
|
-- it under the terms of the GNU General Public License as published by
|
||||||
@ -47,7 +47,7 @@ create table llx_bank_account
|
|||||||
rappro smallint DEFAULT 1,
|
rappro smallint DEFAULT 1,
|
||||||
url varchar(128),
|
url varchar(128),
|
||||||
account_number varchar(8),
|
account_number varchar(8),
|
||||||
currency_code varchar(2) NOT NULL,
|
currency_code varchar(3) NOT NULL,
|
||||||
min_allowed integer DEFAULT 0,
|
min_allowed integer DEFAULT 0,
|
||||||
min_desired integer DEFAULT 0,
|
min_desired integer DEFAULT 0,
|
||||||
comment varchar(254)
|
comment varchar(254)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user