'."\n";
$openedDashBoard .= '
'."\n";
- $openedDashBoard .= ' '."\n";
+ $openedDashBoard .= ' '."\n";
$openedDashBoard .= ' '."\n";
// Show the span for the total of record
diff --git a/htdocs/supplier_proposal/class/supplier_proposal.class.php b/htdocs/supplier_proposal/class/supplier_proposal.class.php
index 19c36bcaa22..3e69fbc167f 100644
--- a/htdocs/supplier_proposal/class/supplier_proposal.class.php
+++ b/htdocs/supplier_proposal/class/supplier_proposal.class.php
@@ -70,7 +70,7 @@ class SupplierProposal extends CommonObject
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
- public $picto = 'propal';
+ public $picto = 'supplier_proposal';
/**
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
@@ -2225,7 +2225,7 @@ class SupplierProposal extends CommonObject
*/
public function getLibStatut($mode = 0)
{
- return $this->LibStatut($this->statut, $mode);
+ return $this->LibStatut((isset($this->statut) ? $this->statut : $this->status), $mode);
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
@@ -2555,17 +2555,16 @@ class SupplierProposal extends CommonObject
$url = '';
$result = '';
- $label = ''.$langs->trans("ShowSupplierProposal").'';
- if (!empty($this->ref))
- $label .= '
'.$langs->trans('Ref').': '.$this->ref;
- if (!empty($this->ref_fourn))
- $label .= '
'.$langs->trans('RefSupplier').': '.$this->ref_fourn;
- if (!empty($this->total_ht))
- $label .= '
'.$langs->trans('AmountHT').': '.price($this->total_ht, 0, $langs, 0, -1, -1, $conf->currency);
- if (!empty($this->total_tva))
- $label .= '
'.$langs->trans('VAT').': '.price($this->total_tva, 0, $langs, 0, -1, -1, $conf->currency);
- if (!empty($this->total_ttc))
- $label .= '
'.$langs->trans('AmountTTC').': '.price($this->total_ttc, 0, $langs, 0, -1, -1, $conf->currency);
+ $label = ''.$langs->trans("SupplierProposal").'';
+ if (!empty($this->ref)) $label .= '
'.$langs->trans('Ref').': '.$this->ref;
+ if (!empty($this->ref_fourn)) $label .= '
'.$langs->trans('RefSupplier').': '.$this->ref_fourn;
+ if (!empty($this->total_ht)) $label .= '
'.$langs->trans('AmountHT').': '.price($this->total_ht, 0, $langs, 0, -1, -1, $conf->currency);
+ if (!empty($this->total_tva)) $label .= '
'.$langs->trans('VAT').': '.price($this->total_tva, 0, $langs, 0, -1, -1, $conf->currency);
+ if (!empty($this->total_ttc)) $label .= '
'.$langs->trans('AmountTTC').': '.price($this->total_ttc, 0, $langs, 0, -1, -1, $conf->currency);
+ if (isset($this->status)) {
+ $label .= '
'.$langs->trans("Status").": ".$this->getLibStatut(5);
+ }
+
if ($option == '') {
$url = DOL_URL_ROOT.'/supplier_proposal/card.php?id='.$this->id.$get_params;
}
@@ -2597,8 +2596,6 @@ class SupplierProposal extends CommonObject
$linkstart .= $linkclose.'>';
$linkend = '';
- $picto = 'supplier_proposal';
-
$result .= $linkstart;
if ($withpicto) $result .= img_object(($notooltip ? '' : $label), $this->picto, ($notooltip ? (($withpicto != 2) ? 'class="paddingright"' : '') : 'class="'.(($withpicto != 2) ? 'paddingright ' : '').'classfortooltip"'), 0, 0, $notooltip ? 0 : 1);
if ($withpicto != 2) $result .= $this->ref;
diff --git a/htdocs/supplier_proposal/list.php b/htdocs/supplier_proposal/list.php
index c778536685e..28dbc3e12b8 100644
--- a/htdocs/supplier_proposal/list.php
+++ b/htdocs/supplier_proposal/list.php
@@ -259,7 +259,7 @@ if ($sall || $search_product_category > 0) $sql = 'SELECT DISTINCT';
$sql .= ' s.rowid as socid, s.nom as name, s.town, s.zip, s.fk_pays, s.client, s.code_client,';
$sql .= " typent.code as typent_code,";
$sql .= " state.code_departement as state_code, state.nom as state_name,";
-$sql .= ' sp.rowid, sp.note_private, sp.total_ht, sp.tva as total_vat, sp.total as total_ttc, sp.localtax1, sp.localtax2, sp.ref, sp.fk_statut, sp.fk_user_author, sp.date_valid, sp.date_livraison as dp,';
+$sql .= ' sp.rowid, sp.note_private, sp.total_ht, sp.tva as total_vat, sp.total as total_ttc, sp.localtax1, sp.localtax2, sp.ref, sp.fk_statut as status, sp.fk_user_author, sp.date_valid, sp.date_livraison as dp,';
$sql .= ' sp.fk_multicurrency, sp.multicurrency_code, sp.multicurrency_tx, sp.multicurrency_total_ht, sp.multicurrency_total_tva as multicurrency_total_vat, sp.multicurrency_total_ttc,';
$sql .= ' sp.datec as date_creation, sp.tms as date_update,';
$sql .= " p.rowid as project_id, p.ref as project_ref,";
@@ -695,6 +695,13 @@ if ($resql)
$objectstatic->ref = $obj->ref;
$objectstatic->note_public = $obj->note_public;
$objectstatic->note_private = $obj->note_private;
+ $objectstatic->status = $obj->status;
+
+ // Company
+ $companystatic->id = $obj->socid;
+ $companystatic->name = $obj->name;
+ $companystatic->client = $obj->client;
+ $companystatic->code_client = $obj->code_client;
print '';
@@ -728,14 +735,6 @@ if ($resql)
if (!$i) $totalarray['nbfield']++;
}
- $url = DOL_URL_ROOT.'/comm/card.php?socid='.$obj->socid;
-
- // Company
- $companystatic->id = $obj->socid;
- $companystatic->name = $obj->name;
- $companystatic->client = $obj->client;
- $companystatic->code_client = $obj->code_client;
-
// Thirdparty
if (!empty($arrayfields['s.nom']['checked']))
{
@@ -901,7 +900,7 @@ if ($resql)
// Status
if (!empty($arrayfields['sp.fk_statut']['checked']))
{
- print '| '.$objectstatic->LibStatut($obj->fk_statut, 5)." | \n";
+ print ''.$objectstatic->getLibStatut(5)." | \n";
if (!$i) $totalarray['nbfield']++;
}
diff --git a/htdocs/theme/eldy/info-box.inc.php b/htdocs/theme/eldy/info-box.inc.php
index 86d2f96ead3..0473cb15584 100644
--- a/htdocs/theme/eldy/info-box.inc.php
+++ b/htdocs/theme/eldy/info-box.inc.php
@@ -204,35 +204,35 @@ if (GETPOSTISSET('THEME_AGRESSIVENESS_RATIO')) $conf->global->THEME_AGRESSIVENES
opacity: 0.95;
}
-.bg-infoxbox-project{
+.bg-infobox-project{
color: global->THEME_AGRESSIVENESS_RATIO); ?> !important;
}
-.bg-infoxbox-action{
+.bg-infobox-action{
color: global->THEME_AGRESSIVENESS_RATIO); ?> !important;
}
-.bg-infoxbox-propal,
-.bg-infoxbox-facture,
-.bg-infoxbox-commande{
+.bg-infobox-propal,
+.bg-infobox-facture,
+.bg-infobox-commande{
color: global->THEME_AGRESSIVENESS_RATIO); ?> !important;
}
-.bg-infoxbox-supplier_proposal,
-.bg-infoxbox-invoice_supplier,
-.bg-infoxbox-order_supplier{
+.bg-infobox-supplier_proposal,
+.bg-infobox-invoice_supplier,
+.bg-infobox-order_supplier{
color: global->THEME_AGRESSIVENESS_RATIO); ?> !important;
}
-.bg-infoxbox-contrat, .bg-infoxbox-ticket{
+.bg-infobox-contrat, .bg-infobox-ticket{
color: global->THEME_AGRESSIVENESS_RATIO); ?> !important;
}
-.bg-infoxbox-bank_account{
+.bg-infobox-bank_account{
color: global->THEME_AGRESSIVENESS_RATIO); ?> !important;
}
-.bg-infoxbox-adherent{
+.bg-infobox-adherent{
color: global->THEME_AGRESSIVENESS_RATIO); ?> !important;
}
-.bg-infoxbox-expensereport{
+.bg-infobox-expensereport{
color: global->THEME_AGRESSIVENESS_RATIO); ?> !important;
}
-.bg-infoxbox-holiday{
+.bg-infobox-holiday{
color: global->THEME_AGRESSIVENESS_RATIO); ?> !important;
}
@@ -242,7 +242,7 @@ if (GETPOSTISSET('THEME_AGRESSIVENESS_RATIO')) $conf->global->THEME_AGRESSIVENES
}
.fa-dol-propal:before,
.fa-dol-supplier_proposal:before {
- content: "\f2b5";
+ content: "\f573";
}
.fa-dol-facture:before,
.fa-dol-invoice_supplier:before {
diff --git a/htdocs/theme/md/info-box.inc.php b/htdocs/theme/md/info-box.inc.php
index ad1f037ab1e..d9b467f130b 100644
--- a/htdocs/theme/md/info-box.inc.php
+++ b/htdocs/theme/md/info-box.inc.php
@@ -110,35 +110,35 @@ include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
if (!isset($conf->global->THEME_AGRESSIVENESS_RATIO)) $conf->global->THEME_AGRESSIVENESS_RATIO = -100;
if (GETPOSTISSET('THEME_AGRESSIVENESS_RATIO')) $conf->global->THEME_AGRESSIVENESS_RATIO = GETPOST('THEME_AGRESSIVENESS_RATIO', 'int');
?>
-.bg-infoxbox-project i.fa{
+.bg-infobox-project i.fa{
color: global->THEME_AGRESSIVENESS_RATIO); ?> !important;
}
-.bg-infoxbox-action i.fa{
+.bg-infobox-action i.fa{
color: global->THEME_AGRESSIVENESS_RATIO); ?> !important;
}
-.bg-infoxbox-propal i.fa,
-.bg-infoxbox-facture i.fa,
-.bg-infoxbox-commande i.fa{
+.bg-infobox-propal i.fa,
+.bg-infobox-facture i.fa,
+.bg-infobox-commande i.fa{
color: global->THEME_AGRESSIVENESS_RATIO); ?> !important;
}
-.bg-infoxbox-supplier_proposal i.fa,
-.bg-infoxbox-invoice_supplier i.fa,
-.bg-infoxbox-order_supplier i.fa{
+.bg-infobox-supplier_proposal i.fa,
+.bg-infobox-invoice_supplier i.fa,
+.bg-infobox-order_supplier i.fa{
color: global->THEME_AGRESSIVENESS_RATIO); ?> !important;
}
-.bg-infoxbox-contrat i.fa, .bg-infoxbox-ticket i.fa{
+.bg-infobox-contrat i.fa, .bg-infobox-ticket i.fa{
color: global->THEME_AGRESSIVENESS_RATIO); ?> !important;
}
-.bg-infoxbox-bank_account i.fa{
+.bg-infobox-bank_account i.fa{
color: global->THEME_AGRESSIVENESS_RATIO); ?> !important;
}
-.bg-infoxbox-adherent i.fa{
+.bg-infobox-adherent i.fa{
color: global->THEME_AGRESSIVENESS_RATIO); ?> !important;
}
-.bg-infoxbox-expensereport i.fa{
+.bg-infobox-expensereport i.fa{
color: global->THEME_AGRESSIVENESS_RATIO); ?> !important;
}
-.bg-infoxbox-holiday i.fa{
+.bg-infobox-holiday i.fa{
color: global->THEME_AGRESSIVENESS_RATIO); ?> !important;
}