mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: Some bug into supplier pdf invoice setup.
This commit is contained in:
parent
45a6717dd3
commit
bf912e2c78
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/* Copyright (C) 2003-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004-2013 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@capnetworks.com>
|
||||
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
/**
|
||||
* \file htdocs/admin/supplier_invoice.php
|
||||
* \ingroup fournisseur
|
||||
* \brief Page d'administration-configuration du module Fournisseur
|
||||
* \brief Setup to admin supplier invoices
|
||||
*/
|
||||
|
||||
require '../main.inc.php';
|
||||
|
|
@ -241,7 +241,7 @@ foreach ($dirmodels as $reldir)
|
|||
|
||||
while (($file = readdir($handle))!==false)
|
||||
{
|
||||
if (substr($file, 0, 25) == 'mod_facture_fournisseur_' && substr($file, dol_strlen($file)-3, 3) == 'php')
|
||||
if (substr($file, 0, 24) == 'mod_facture_fournisseur_' && substr($file, dol_strlen($file)-3, 3) == 'php')
|
||||
{
|
||||
$file = substr($file, 0, dol_strlen($file)-4);
|
||||
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
|
|||
|
||||
// Get source company
|
||||
if (! is_object($object->thirdparty)) $object->fetch_thirdparty();
|
||||
if (! is_object($object->thirdparty)) $object->thirdparty=$mysoc; // If fetch_thirdparty fails, object has no socid (specimen)
|
||||
$this->emetteur=$object->thirdparty;
|
||||
if (! $this->emetteur->country_code) $this->emetteur->country_code=substr($langs->defaultlang,-2); // By default, if was not defined
|
||||
|
||||
|
|
|
|||
|
|
@ -1137,21 +1137,21 @@ tr.fiche {
|
|||
|
||||
.ok {
|
||||
color:#159e26;
|
||||
background:url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/ok.png',1); ?>) left center no-repeat;
|
||||
background:url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/ok.png',1); ?>) left center no-repeat !important;
|
||||
padding-left:20px;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.warning {
|
||||
color:#bca936;
|
||||
background:url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/warning.png',1); ?>) left center no-repeat;
|
||||
background:url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/warning.png',1); ?>) left center no-repeat !important;
|
||||
padding-left:20px;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.error {
|
||||
color:#a61111;
|
||||
background:url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/error.png',1); ?>) left center no-repeat;
|
||||
background:#f58080 url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/error.png',1); ?>) left center no-repeat !important;
|
||||
padding-left:20px;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
|
@ -1159,17 +1159,16 @@ tr.fiche {
|
|||
td.highlights {background:#f9c5c6;}
|
||||
|
||||
div.ok {
|
||||
background:#61e372 url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/ok.png',1); ?>) 3px center no-repeat;
|
||||
color:#ffffff;
|
||||
background:#61e372; /* url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/ok.png',1); ?>) 3px center no-repeat; */
|
||||
/*color:#ffffff;*/
|
||||
padding:2px 4px 2px 24px;
|
||||
margin:0.5em 0em;
|
||||
border:1px solid #159e26;
|
||||
font-weight:normal;
|
||||
}
|
||||
|
||||
div.warning, div.info {
|
||||
background:#fcf5b8 url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/warning.png',1); ?>) 3px center no-repeat;
|
||||
color:#232323;
|
||||
background:#fcf5b8; /* url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/warning.png',1); ?>) 3px center no-repeat; */
|
||||
/*color:#232323; */
|
||||
padding:2px 4px 2px 24px;
|
||||
margin:0.5em 0em;
|
||||
border:1px solid #bca936;
|
||||
|
|
@ -1177,8 +1176,8 @@ div.warning, div.info {
|
|||
}
|
||||
|
||||
div.error {
|
||||
background:#f58080 url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/error.png',1); ?>) 3px center no-repeat;
|
||||
color:#ffffff;
|
||||
background:#f58080; /* url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/error.png',1); ?>) 3px center no-repeat; */
|
||||
/* color:#ffffff; */
|
||||
padding:2px 4px 2px 24px;
|
||||
margin:0.5em 0em;
|
||||
border:1px solid #a61111;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user