diff --git a/htdocs/adherents/subscription/list.php b/htdocs/adherents/subscription/list.php
index bf18a851efb..6b76fc3d502 100644
--- a/htdocs/adherents/subscription/list.php
+++ b/htdocs/adherents/subscription/list.php
@@ -496,11 +496,14 @@ while ($i < min($num, $limit)) {
$adherent->morphy = $obj->morphy;
$adherent->email = $obj->email;
$adherent->typeid = $obj->type;
+ $adherent->datefin = $db->jdate($obj->datef);
$typeid = ($obj->fk_type > 0 ? $obj->fk_type : $adherent->typeid);
$adht = new AdherentType($db);
$adht->fetch($typeid);
+ $adherent->need_subscription = $adht->subscription;
+
print '
';
// Ref
diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php
index b4c63365bf8..453abff36b2 100644
--- a/htdocs/comm/propal/list.php
+++ b/htdocs/comm/propal/list.php
@@ -1532,7 +1532,7 @@ if ($resql) {
}
// Amount HT
if (!empty($arrayfields['p.total_ht']['checked'])) {
- print '| '.price($obj->total_ht)." | \n";
+ print ''.price($obj->total_ht)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
@@ -1543,7 +1543,7 @@ if ($resql) {
}
// Amount VAT
if (!empty($arrayfields['p.total_tva']['checked'])) {
- print ''.price($obj->total_tva)." | \n";
+ print ''.price($obj->total_tva)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
@@ -1554,7 +1554,7 @@ if ($resql) {
}
// Amount TTC
if (!empty($arrayfields['p.total_ttc']['checked'])) {
- print ''.price($obj->total_ttc)." | \n";
+ print ''.price($obj->total_ttc)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
@@ -1563,9 +1563,9 @@ if ($resql) {
}
$totalarray['val']['p.total_ttc'] += $obj->total_ttc;
}
- // Amount invoiced
+ // Amount invoiced HT
if (!empty($arrayfields['p.total_ht_invoiced']['checked'])) {
- print ''.price($totalInvoicedHT)." | \n";
+ print ''.price($totalInvoicedHT)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
@@ -1574,9 +1574,9 @@ if ($resql) {
}
$totalarray['val']['p.total_ht_invoiced'] += $totalInvoicedHT;
}
- // Amount invoiced
+ // Amount invoiced TTC
if (!empty($arrayfields['p.total_invoiced']['checked'])) {
- print ''.price($totalInvoicedTTC)." | \n";
+ print ''.price($totalInvoicedTTC)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
@@ -1604,35 +1604,35 @@ if ($resql) {
}
// Amount HT
if (!empty($arrayfields['p.multicurrency_total_ht']['checked'])) {
- print ''.price($obj->multicurrency_total_ht)." | \n";
+ print ''.price($obj->multicurrency_total_ht)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
}
// Amount VAT
if (!empty($arrayfields['p.multicurrency_total_tva']['checked'])) {
- print ''.price($obj->multicurrency_total_tva)." | \n";
+ print ''.price($obj->multicurrency_total_tva)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
}
// Amount TTC
if (!empty($arrayfields['p.multicurrency_total_ttc']['checked'])) {
- print ''.price($obj->multicurrency_total_ttc)." | \n";
+ print ''.price($obj->multicurrency_total_ttc)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
}
// Amount invoiced
if (!empty($arrayfields['p.multicurrency_total_ht_invoiced']['checked'])) {
- print ''.price($multicurrency_totalInvoicedHT)." | \n";
+ print ''.price($multicurrency_totalInvoicedHT)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
}
// Amount invoiced
if (!empty($arrayfields['p.multicurrency_total_invoiced']['checked'])) {
- print ''.price($multicurrency_totalInvoicedTTC)." | \n";
+ print ''.price($multicurrency_totalInvoicedTTC)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php
index 117f7557db3..0b850e6b0e8 100644
--- a/htdocs/commande/list.php
+++ b/htdocs/commande/list.php
@@ -1437,7 +1437,7 @@ if ($resql) {
}
// Amount HT
if (!empty($arrayfields['c.total_ht']['checked'])) {
- print ''.price($obj->total_ht)." | \n";
+ print ''.price($obj->total_ht)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
@@ -1448,7 +1448,7 @@ if ($resql) {
}
// Amount VAT
if (!empty($arrayfields['c.total_vat']['checked'])) {
- print ''.price($obj->total_tva)." | \n";
+ print ''.price($obj->total_tva)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
@@ -1459,7 +1459,7 @@ if ($resql) {
}
// Amount TTC
if (!empty($arrayfields['c.total_ttc']['checked'])) {
- print ''.price($obj->total_ttc)." | \n";
+ print ''.price($obj->total_ttc)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
@@ -1488,21 +1488,21 @@ if ($resql) {
}
// Amount HT
if (!empty($arrayfields['c.multicurrency_total_ht']['checked'])) {
- print ''.price($obj->multicurrency_total_ht)." | \n";
+ print ''.price($obj->multicurrency_total_ht)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
}
// Amount VAT
if (!empty($arrayfields['c.multicurrency_total_vat']['checked'])) {
- print ''.price($obj->multicurrency_total_vat)." | \n";
+ print ''.price($obj->multicurrency_total_vat)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
}
// Amount TTC
if (!empty($arrayfields['c.multicurrency_total_ttc']['checked'])) {
- print ''.price($obj->multicurrency_total_ttc)." | \n";
+ print ''.price($obj->multicurrency_total_ttc)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
diff --git a/htdocs/core/boxes/box_members_last_subscriptions.php b/htdocs/core/boxes/box_members_last_subscriptions.php
index 6da20bf28d0..e08bc1073b6 100644
--- a/htdocs/core/boxes/box_members_last_subscriptions.php
+++ b/htdocs/core/boxes/box_members_last_subscriptions.php
@@ -153,7 +153,7 @@ class box_members_last_subscriptions extends ModeleBoxes
$this->info_box_contents[$line][] = array(
'td' => 'class="right" width="18"',
- 'text' => price($obj->subscription),
+ 'text' => ''.price($obj->subscription).'',
);
$this->info_box_contents[$line][] = array(
diff --git a/htdocs/core/boxes/box_members_subscriptions_by_year.php b/htdocs/core/boxes/box_members_subscriptions_by_year.php
index ef796b75044..b6c146312bc 100644
--- a/htdocs/core/boxes/box_members_subscriptions_by_year.php
+++ b/htdocs/core/boxes/box_members_subscriptions_by_year.php
@@ -180,11 +180,11 @@ class box_members_subscriptions_by_year extends ModeleBoxes
);
$this->info_box_contents[$line][] = array(
'td' => 'class="right"',
- 'text' => price($value),
+ 'text' => ''.price($value).'',
);
$this->info_box_contents[$line][] = array(
'td' => 'class="right"',
- 'text' => price(price2num($value / $Number[$key], 'MT')),
+ 'text' => ''.price(price2num($value / $Number[$key], 'MT')).'',
);
$line++;
}
@@ -205,11 +205,11 @@ class box_members_subscriptions_by_year extends ModeleBoxes
);
$this->info_box_contents[$line][] = array(
'td' => 'class="liste_total right"',
- 'text' => price($tot),
+ 'text' => ''.price($tot).'',
);
$this->info_box_contents[$line][] = array(
'td' => 'class="liste_total right"',
- 'text' => price(price2num($numb > 0 ? ($tot / $numb) : 0, 'MT')),
+ 'text' => ''.price(price2num($numb > 0 ? ($tot / $numb) : 0, 'MT')).'',
);
}
} else {
diff --git a/htdocs/fourn/commande/list.php b/htdocs/fourn/commande/list.php
index e35d9d84824..09834f5c2af 100644
--- a/htdocs/fourn/commande/list.php
+++ b/htdocs/fourn/commande/list.php
@@ -1439,7 +1439,7 @@ if ($resql) {
}
// Amount HT
if (!empty($arrayfields['cf.total_ht']['checked'])) {
- print ''.price($obj->total_ht)." | \n";
+ print ''.price($obj->total_ht)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
@@ -1450,7 +1450,7 @@ if ($resql) {
}
// Amount VAT
if (!empty($arrayfields['cf.total_tva']['checked'])) {
- print ''.price($obj->total_tva)." | \n";
+ print ''.price($obj->total_tva)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
@@ -1461,7 +1461,7 @@ if ($resql) {
}
// Amount TTC
if (!empty($arrayfields['cf.total_ttc']['checked'])) {
- print ''.price($obj->total_ttc)." | \n";
+ print ''.price($obj->total_ttc)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
@@ -1490,21 +1490,21 @@ if ($resql) {
}
// Amount HT
if (!empty($arrayfields['cf.multicurrency_total_ht']['checked'])) {
- print ''.price($obj->multicurrency_total_ht)." | \n";
+ print ''.price($obj->multicurrency_total_ht)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
}
// Amount VAT
if (!empty($arrayfields['cf.multicurrency_total_tva']['checked'])) {
- print ''.price($obj->multicurrency_total_tva)." | \n";
+ print ''.price($obj->multicurrency_total_tva)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
}
// Amount TTC
if (!empty($arrayfields['cf.multicurrency_total_ttc']['checked'])) {
- print ''.price($obj->multicurrency_total_ttc)." | \n";
+ print ''.price($obj->multicurrency_total_ttc)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
diff --git a/htdocs/projet/list.php b/htdocs/projet/list.php
index e907ab3b06e..976e29b55bf 100644
--- a/htdocs/projet/list.php
+++ b/htdocs/projet/list.php
@@ -1107,7 +1107,7 @@ while ($i < min($num, $limit)) {
print '';
//if ($obj->opp_status_code)
if (strcmp($obj->opp_amount, '')) {
- print price($obj->opp_amount, 1, $langs, 1, -1, -1, '');
+ print ''.price($obj->opp_amount, 1, $langs, 1, -1, -1, '').'';
$totalarray['val']['p.opp_amount'] += $obj->opp_amount;
}
print ' | ';
@@ -1136,7 +1136,7 @@ while ($i < min($num, $limit)) {
}
print '';
if ($obj->opp_weighted_amount) {
- print price($obj->opp_weighted_amount, 1, $langs, 1, -1, -1, '');
+ print ''.price($obj->opp_weighted_amount, 1, $langs, 1, -1, -1, '').'';
$totalarray['val']['opp_weighted_amount'] += $obj->opp_weighted_amount;
}
print ' | ';
@@ -1151,7 +1151,7 @@ while ($i < min($num, $limit)) {
if (!empty($arrayfields['p.budget_amount']['checked'])) {
print '';
if ($obj->budget_amount != '') {
- print price($obj->budget_amount, 1, $langs, 1, -1, -1);
+ print ''.price($obj->budget_amount, 1, $langs, 1, -1, -1).'';
$totalarray['val']['p.budget_amount'] += $obj->budget_amount;
}
print ' | ';
@@ -1232,7 +1232,7 @@ while ($i < min($num, $limit)) {
if (!empty($arrayfields['p.price_registration']['checked'])) {
print '';
if ($obj->price_registration != '') {
- print price($obj->price_registration, 1, $langs, 1, -1, -1);
+ print ''.price($obj->price_registration, 1, $langs, 1, -1, -1).'';
$totalarray['val']['p.price_registration'] += $obj->price_registration;
}
print ' | ';
@@ -1247,7 +1247,7 @@ while ($i < min($num, $limit)) {
if (!empty($arrayfields['p.price_booth']['checked'])) {
print '';
if ($obj->price_booth != '') {
- print price($obj->price_booth, 1, $langs, 1, -1, -1);
+ print ''.price($obj->price_booth, 1, $langs, 1, -1, -1).'';
$totalarray['val']['p.price_booth'] += $obj->price_booth;
}
print ' | ';
diff --git a/htdocs/supplier_proposal/list.php b/htdocs/supplier_proposal/list.php
index 6851bbb4021..f60f20f7f7a 100644
--- a/htdocs/supplier_proposal/list.php
+++ b/htdocs/supplier_proposal/list.php
@@ -954,7 +954,7 @@ if ($resql) {
// Amount HT
if (!empty($arrayfields['sp.total_ht']['checked'])) {
- print ''.price($obj->total_ht)." | \n";
+ print ''.price($obj->total_ht)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
@@ -965,7 +965,7 @@ if ($resql) {
}
// Amount VAT
if (!empty($arrayfields['sp.total_tva']['checked'])) {
- print ''.price($obj->total_tva)." | \n";
+ print ''.price($obj->total_tva)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
@@ -976,7 +976,7 @@ if ($resql) {
}
// Amount TTC
if (!empty($arrayfields['sp.total_ttc']['checked'])) {
- print ''.price($obj->total_ttc)." | \n";
+ print ''.price($obj->total_ttc)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
@@ -1005,21 +1005,21 @@ if ($resql) {
}
// Amount HT
if (!empty($arrayfields['sp.multicurrency_total_ht']['checked'])) {
- print ''.price($obj->multicurrency_total_ht)." | \n";
+ print ''.price($obj->multicurrency_total_ht)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
}
// Amount VAT
if (!empty($arrayfields['sp.multicurrency_total_vat']['checked'])) {
- print ''.price($obj->multicurrency_total_vat)." | \n";
+ print ''.price($obj->multicurrency_total_vat)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
}
// Amount TTC
if (!empty($arrayfields['sp.multicurrency_total_ttc']['checked'])) {
- print ''.price($obj->multicurrency_total_ttc)." | \n";
+ print ''.price($obj->multicurrency_total_ttc)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}