Skip to content

Commit

Permalink
Merge pull request #5684 from aspangaro/5.0-p9
Browse files Browse the repository at this point in the history
Uniformize presentation on suppliers invoices
  • Loading branch information
Juanjo Menent committed Aug 31, 2016
2 parents 966c1f6 + 688ac69 commit 90c670a
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion htdocs/core/lib/fourn.lib.php
Expand Up @@ -39,7 +39,7 @@ function facturefourn_prepare_head($object)
$head = array();

$head[$h][0] = DOL_URL_ROOT.'/fourn/facture/card.php?facid='.$object->id;
$head[$h][1] = $langs->trans('CardBill');
$head[$h][1] = $langs->trans('Card');
$head[$h][2] = 'card';
$h++;

Expand Down
6 changes: 4 additions & 2 deletions htdocs/fourn/facture/card.php
Expand Up @@ -1113,7 +1113,9 @@
$bankaccountstatic=new Account($db);
$paymentstatic=new PaiementFourn($db);

llxHeader('',$langs->trans('SupplierInvoice'),'');
$title = $langs->trans('SupplierInvoice') . " - " . $langs->trans('Card');
$helpurl = "EN:Module_Suppliers_Invoices|FR:Module_Fournisseurs_Factures|ES:Módulo_Facturas_de_proveedores";
llxHeader('', $title, $helpurl);

// Mode creation
if ($action == 'create')
Expand Down Expand Up @@ -1827,7 +1829,7 @@
$form_permission = $object->statut<FactureFournisseur::STATUS_CLOSED && $user->rights->fournisseur->facture->creer && $object->getSommePaiement() <= 0;

// Date
print '<tr><td>'.$form->editfieldkey("Date",'datef',$object->datep,$object,$form_permission,'datepicker').'</td><td colspan="3">';
print '<tr><td>'.$form->editfieldkey("DateInvoice",'datef',$object->datep,$object,$form_permission,'datepicker').'</td><td colspan="3">';
print $form->editfieldval("Date",'datef',$object->datep,$object,$form_permission,'datepicker');
print '</td>';

Expand Down
4 changes: 3 additions & 1 deletion htdocs/fourn/facture/contact.php
Expand Up @@ -112,7 +112,9 @@
* View
*/

llxHeader('',$langs->trans('SupplierInvoice'));
$title = $langs->trans('SupplierInvoice') . " - " . $langs->trans('ContactsAddresses');
$helpurl = "EN:Module_Suppliers_Invoices|FR:Module_Fournisseurs_Factures|ES:Módulo_Facturas_de_proveedores";
llxHeader('', $title, $helpurl);

$form = new Form($db);
$formcompany = new FormCompany($db);
Expand Down
4 changes: 3 additions & 1 deletion htdocs/fourn/facture/document.php
Expand Up @@ -81,7 +81,9 @@

$form = new Form($db);

llxHeader('',$langs->trans('SupplierInvoice'));
$title = $langs->trans('SupplierInvoice') . " - " . $langs->trans('Documents');
$helpurl = "EN:Module_Suppliers_Invoices|FR:Module_Fournisseurs_Factures|ES:Módulo_Facturas_de_proveedores";
llxHeader('', $title, $helpurl);

if ($object->id > 0)
{
Expand Down
4 changes: 3 additions & 1 deletion htdocs/fourn/facture/info.php
Expand Up @@ -43,7 +43,9 @@
* View
*/

llxHeader('',$langs->trans('SupplierInvoice'));
$title = $langs->trans('SupplierInvoice') . " - " . $langs->trans('Info');
$helpurl = "EN:Module_Suppliers_Invoices|FR:Module_Fournisseurs_Factures|ES:Módulo_Facturas_de_proveedores";
llxHeader('', $title, $helpurl);

$object = new FactureFournisseur($db);
$object->fetch($id);
Expand Down
4 changes: 3 additions & 1 deletion htdocs/fourn/facture/note.php
Expand Up @@ -67,7 +67,9 @@

$form = new Form($db);

llxHeader('',$langs->trans('SupplierInvoice'));
$title = $langs->trans('SupplierInvoice') . " - " . $langs->trans('Notes');
$helpurl = "EN:Module_Suppliers_Invoices|FR:Module_Fournisseurs_Factures|ES:Módulo_Facturas_de_proveedores";
llxHeader('', $title, $helpurl);

if ($object->id > 0)
{
Expand Down

0 comments on commit 90c670a

Please sign in to comment.