diff --git a/htdocs/comm/remx.php b/htdocs/comm/remx.php
index 6c8a1ec6b21..b199cbfb162 100644
--- a/htdocs/comm/remx.php
+++ b/htdocs/comm/remx.php
@@ -353,7 +353,7 @@ if ($socid > 0) {
print '';
}
print '
| '.$langs->trans("VAT").' | ';
print '';
diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php
index a29f7af563e..b30ed58e697 100644
--- a/htdocs/compta/facture/card.php
+++ b/htdocs/compta/facture/card.php
@@ -4325,7 +4325,7 @@ if ($action == 'create') {
print '';
print ' ';
- print ' ';
+ print '';
// Type
print '| '.$langs->trans('Type').' | ';
@@ -4338,17 +4338,17 @@ if ($action == 'create') {
if ($object->type == Facture::TYPE_REPLACEMENT) {
$facreplaced = new Facture($db);
$facreplaced->fetch($object->fk_facture_source);
- print ' ('.$langs->transnoentities("ReplaceInvoice", $facreplaced->getNomUrl(1)).')';
+ print ' '.$langs->transnoentities("ReplaceInvoice", $facreplaced->getNomUrl(1)).'';
}
if ($object->type == Facture::TYPE_CREDIT_NOTE && !empty($object->fk_facture_source)) {
$facusing = new Facture($db);
$facusing->fetch($object->fk_facture_source);
- print ' ('.$langs->transnoentities("CorrectInvoice", $facusing->getNomUrl(1)).')';
+ print ' '.$langs->transnoentities("CorrectInvoice", $facusing->getNomUrl(1)).'';
}
$facidavoir = $object->getListIdAvoirFromInvoice();
if (count($facidavoir) > 0) {
- print ' ('.$langs->transnoentities("InvoiceHasAvoir");
+ print ' '.$langs->transnoentities("InvoiceHasAvoir");
$i = 0;
foreach ($facidavoir as $id) {
if ($i == 0) {
@@ -4360,12 +4360,12 @@ if ($action == 'create') {
$facavoir->fetch($id);
print $facavoir->getNomUrl(1);
}
- print ')';
+ print '';
}
if ($objectidnext > 0) {
$facthatreplace = new Facture($db);
$facthatreplace->fetch($objectidnext);
- print ' ('.str_replace('{s1}', $facthatreplace->getNomUrl(1), $langs->transnoentities("ReplacedByInvoice", '{s1}')).')';
+ print ' '.str_replace('{s1}', $facthatreplace->getNomUrl(1), $langs->transnoentities("ReplacedByInvoice", '{s1}')).'';
}
if ($object->type == Facture::TYPE_CREDIT_NOTE || $object->type == Facture::TYPE_DEPOSIT) {
@@ -4425,7 +4425,7 @@ if ($action == 'create') {
print ' | ';
if (!empty($conf->global->INVOICE_POINTOFTAX_DATE)) {
- // Date invoice
+ // Date invoice point of tax
print '';
print '';
print $langs->trans('DatePointOfTax');
diff --git a/htdocs/compta/facture/contact.php b/htdocs/compta/facture/contact.php
index 45ce97a480f..b1799350ce8 100644
--- a/htdocs/compta/facture/contact.php
+++ b/htdocs/compta/facture/contact.php
@@ -177,7 +177,7 @@ if ($id > 0 || !empty($ref)) {
print dol_get_fiche_end();
- print ' ';
+ //print ' ';
// Contacts lines (modules that overwrite templates must declare this into descriptor)
$dirtpls = array_merge($conf->modules_parts['tpl'], array('/core/tpl'));
diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php
index 9123a62cec2..afdd871371c 100644
--- a/htdocs/compta/facture/prelevement.php
+++ b/htdocs/compta/facture/prelevement.php
@@ -352,9 +352,9 @@ if ($object->id > 0) {
if (!empty($conf->projet->enabled)) {
$langs->load("projects");
$morehtmlref .= ' '.$langs->trans('Project').' ';
- if ($user->rights->facture->creer) {
+ if ($usercancreate) {
if ($action != 'classify') {
- //$morehtmlref.='' . img_edit($langs->transnoentitiesnoconv('SetProject')) . ' : ';
+ //$morehtmlref .= ''.img_edit($langs->transnoentitiesnoconv('SetProject')).' : ';
$morehtmlref .= ' : ';
}
if ($action == 'classify') {
@@ -395,12 +395,12 @@ if ($object->id > 0) {
print '';
// Type
- print '| '.$langs->trans('Type').' | ';
+ print ' | | '.$langs->trans('Type').' | ';
print '';
print $object->getLibType();
print '';
if ($object->module_source) {
- print ' ('.$langs->trans("POS").' '.$object->module_source.' - '.$langs->trans("Terminal").' '.$object->pos_source.')';
+ print ' ('.$langs->trans("POS").' '.$object->module_source.' - '.$langs->trans("Terminal").' '.$object->pos_source.')';
}
if ($object->type == $object::TYPE_REPLACEMENT) {
if ($type == 'bank-transfer') {
@@ -409,16 +409,16 @@ if ($object->id > 0) {
$facreplaced = new Facture($db);
}
$facreplaced->fetch($object->fk_facture_source);
- print ' ('.$langs->transnoentities("ReplaceInvoice", $facreplaced->getNomUrl(1)).')';
+ print ' '.$langs->transnoentities("ReplaceInvoice", $facreplaced->getNomUrl(1)).'';
}
- if ($object->type == $object::TYPE_CREDIT_NOTE) {
+ if ($object->type == $object::TYPE_CREDIT_NOTE && !empty($object->fk_facture_source)) {
if ($type == 'bank-transfer') {
$facusing = new FactureFournisseur($db);
} else {
$facusing = new Facture($db);
}
$facusing->fetch($object->fk_facture_source);
- print ' ('.$langs->transnoentities("CorrectInvoice", $facusing->getNomUrl(1)).')';
+ print ' '.$langs->transnoentities("CorrectInvoice", $facusing->getNomUrl(1)).'';
}
$facidavoir = $object->getListIdAvoirFromInvoice();
@@ -433,20 +433,22 @@ if ($object->id > 0) {
$facavoir->fetch($facid);
$invoicecredits[] = $facavoir->getNomUrl(1);
}
- print ' ('.$langs->transnoentities("InvoiceHasAvoir") . (count($invoicecredits) ? ' ' : '') . implode(',', $invoicecredits) . ')';
+ print ' '.$langs->transnoentities("InvoiceHasAvoir");
+ print ' '. (count($invoicecredits) ? ' ' : '') . implode(',', $invoicecredits);
+ print '';
}
/*
- if ($facidnext > 0)
- {
+ if ($objectidnext > 0) {
$facthatreplace=new Facture($db);
- $facthatreplace->fetch($facidnext);
- print ' ('.$langs->transnoentities("ReplacedByInvoice",$facthatreplace->getNomUrl(1)).')';
+ $facthatreplace->fetch($objectidnext);
+ print ' '.str_replace('{s1}', $facthatreplace->getNomUrl(1), $langs->transnoentities("ReplacedByInvoice", '{s1}')).'';
}
*/
print ' | ';
- // Discounts
- print '| '.$langs->trans('Discounts').' | ';
+ // Relative and absolute discounts
+ print ''."\n";
+ print ' | | '.$langs->trans('DiscountStillRemaining').' | ';
if ($type == 'bank-transfer') {
//$societe = new Fournisseur($db);
diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php
index 5ae7e8b9dd5..f7676b1e092 100644
--- a/htdocs/fourn/facture/card.php
+++ b/htdocs/fourn/facture/card.php
@@ -2912,15 +2912,15 @@ if ($action == 'create') {
if ($object->type == FactureFournisseur::TYPE_REPLACEMENT) {
$facreplaced = new FactureFournisseur($db);
$facreplaced->fetch($object->fk_facture_source);
- print ' ('.$langs->transnoentities("ReplaceInvoice", $facreplaced->getNomUrl(1)).')';
+ print ' '.$langs->transnoentities("ReplaceInvoice", $facreplaced->getNomUrl(1));
}
if ($object->type == FactureFournisseur::TYPE_CREDIT_NOTE) {
$facusing = new FactureFournisseur($db);
if ($object->fk_facture_source > 0) {
$facusing->fetch($object->fk_facture_source);
- print ' ('.$langs->transnoentities("CorrectInvoice", $facusing->getNomUrl(1)).')';
+ print ' '.$langs->transnoentities("CorrectInvoice", $facusing->getNomUrl(1));
} else {
- print ' ('.$langs->transnoentities("CorrectedInvoiceNotFound").')';
+ print ' '.$langs->transnoentities("CorrectedInvoiceNotFound");
}
}
diff --git a/htdocs/fourn/facture/contact.php b/htdocs/fourn/facture/contact.php
index 8224fcc9c00..faa852d7984 100644
--- a/htdocs/fourn/facture/contact.php
+++ b/htdocs/fourn/facture/contact.php
@@ -176,7 +176,9 @@ if ($id > 0 || !empty($ref)) {
dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', $morehtmlref);
+ /*
print '';
+ print ' ';
print ' ';
print ' ';
@@ -189,12 +191,12 @@ if ($id > 0 || !empty($ref)) {
if ($object->type == FactureFournisseur::TYPE_REPLACEMENT) {
$facreplaced = new FactureFournisseur($db);
$facreplaced->fetch($object->fk_facture_source);
- print ' ('.$langs->transnoentities("ReplaceInvoice", $facreplaced->getNomUrl(1)).')';
+ print ' '.$langs->transnoentities("ReplaceInvoice", $facreplaced->getNomUrl(1));
}
if ($object->type == FactureFournisseur::TYPE_CREDIT_NOTE) {
$facusing = new FactureFournisseur($db);
$facusing->fetch($object->fk_facture_source);
- print ' ('.$langs->transnoentities("CorrectInvoice", $facusing->getNomUrl(1)).')';
+ print ' '.$langs->transnoentities("CorrectInvoice", $facusing->getNomUrl(1));
}
$facidavoir = $object->getListIdAvoirFromInvoice();
@@ -205,12 +207,12 @@ if ($id > 0 || !empty($ref)) {
$facavoir->fetch($facid);
$invoicecredits[] = $facavoir->getNomUrl(1);
}
- print ' ('.$langs->transnoentities("InvoiceHasAvoir") . (count($invoicecredits) ? ' ' : '') . implode(',', $invoicecredits) . ')';
+ print ' '.$langs->transnoentities("InvoiceHasAvoir") . (count($invoicecredits) ? ' ' : '') . implode(',', $invoicecredits);
}
//if ($facidnext > 0) {
// $facthatreplace = new FactureFournisseur($db);
// $facthatreplace->fetch($facidnext);
- // print ' ('.$langs->transnoentities("ReplacedByInvoice", $facthatreplace->getNomUrl(1)).')';
+ // print ' '.$langs->transnoentities("ReplacedByInvoice", $facthatreplace->getNomUrl(1));
//}
print '';
@@ -219,6 +221,13 @@ if ($id > 0 || !empty($ref)) {
print $form->editfieldval("Label", 'label', $object->label, $object, 0);
print '';
+ print ' ';
+
+ print ' ';
+ print ' ';
+
+ print ' ';
+
// Amount
print '| '.$langs->trans('AmountHT').' | '.price($object->total_ht, 1, $langs, 0, -1, -1, $conf->currency).' | ';
print '| '.$langs->trans('AmountVAT').' | '.price($object->total_tva, 1, $langs, 0, -1, -1, $conf->currency).' | ';
@@ -238,10 +247,15 @@ if ($id > 0 || !empty($ref)) {
print '| '.$langs->trans('AmountTTC').' | '.price($object->total_ttc, 1, $langs, 0, -1, -1, $conf->currency).' | ';
print " ";
+ print ' ';
+
+ print ' ';
+ */
print dol_get_fiche_end();
- print ' ';
+ //print '';
+ //print ' ';
// Contacts lines
include DOL_DOCUMENT_ROOT.'/core/tpl/contacts.tpl.php';
| |
| |