Uniformize presentation on suppliers invoices

This commit is contained in:
aspangaro 2016-08-31 07:05:23 +02:00
parent a0591ac520
commit 688ac691a9
6 changed files with 17 additions and 7 deletions

View File

@ -39,7 +39,7 @@ function facturefourn_prepare_head($object)
$head = array(); $head = array();
$head[$h][0] = DOL_URL_ROOT.'/fourn/facture/card.php?facid='.$object->id; $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'; $head[$h][2] = 'card';
$h++; $h++;

View File

@ -1113,7 +1113,9 @@ $formfile = new FormFile($db);
$bankaccountstatic=new Account($db); $bankaccountstatic=new Account($db);
$paymentstatic=new PaiementFourn($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 // Mode creation
if ($action == 'create') if ($action == 'create')
@ -1827,7 +1829,7 @@ else
$form_permission = $object->statut<FactureFournisseur::STATUS_CLOSED && $user->rights->fournisseur->facture->creer && $object->getSommePaiement() <= 0; $form_permission = $object->statut<FactureFournisseur::STATUS_CLOSED && $user->rights->fournisseur->facture->creer && $object->getSommePaiement() <= 0;
// Date // 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 $form->editfieldval("Date",'datef',$object->datep,$object,$form_permission,'datepicker');
print '</td>'; print '</td>';

View File

@ -112,7 +112,9 @@ else if ($action == 'deletecontact' && $user->rights->fournisseur->facture->cree
* View * 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); $form = new Form($db);
$formcompany = new FormCompany($db); $formcompany = new FormCompany($db);

View File

@ -81,7 +81,9 @@ include_once DOL_DOCUMENT_ROOT . '/core/actions_linkedfiles.inc.php';
$form = new Form($db); $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) if ($object->id > 0)
{ {

View File

@ -43,7 +43,9 @@ $result = restrictedArea($user, 'fournisseur', $id, 'facture_fourn', 'facture');
* View * 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 = new FactureFournisseur($db);
$object->fetch($id); $object->fetch($id);

View File

@ -67,7 +67,9 @@ if ($action == 'setlabel' && $user->rights->fournisseur->facture->creer)
$form = new Form($db); $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) if ($object->id > 0)
{ {