Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
c6bfc15031
@ -737,7 +737,8 @@ abstract class CommonObject
|
|||||||
|
|
||||||
$project = new Project($this->db);
|
$project = new Project($this->db);
|
||||||
$result = $project->fetch($this->fk_project);
|
$result = $project->fetch($this->fk_project);
|
||||||
$this->projet = $project;
|
$this->projet = $project; // deprecated
|
||||||
|
$this->project = $project;
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -939,16 +939,28 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
|
|||||||
|
|
||||||
if ($object->ref_supplier)
|
if ($object->ref_supplier)
|
||||||
{
|
{
|
||||||
$posy+=5;
|
$posy+=4;
|
||||||
$pdf->SetXY($posx,$posy);
|
$pdf->SetXY($posx,$posy);
|
||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
$pdf->MultiCell(100, 4, $outputlangs->transnoentities("RefSupplier")." : " . $object->ref_supplier, '', 'R');
|
$pdf->MultiCell(100, 4, $outputlangs->transnoentities("RefSupplier")." : " . $object->ref_supplier, '', 'R');
|
||||||
}
|
}
|
||||||
|
|
||||||
$posy+=1;
|
|
||||||
$pdf->SetFont('','', $default_font_size - 1);
|
$pdf->SetFont('','', $default_font_size - 1);
|
||||||
|
|
||||||
$posy+=5;
|
$posy+=6;
|
||||||
|
if (! empty($conf->global->PDF_SHOW_PROJECT))
|
||||||
|
{
|
||||||
|
$object->fetch_projet();
|
||||||
|
$pdf->SetXY($posx,$posy);
|
||||||
|
if (! empty($object->project->ref))
|
||||||
|
{
|
||||||
|
$langs->load("projects");
|
||||||
|
$pdf->SetTextColor(0,0,60);
|
||||||
|
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("Project")." : " . (empty($object->project->ref)?'':$object->projet->ref), '', 'R');
|
||||||
|
$posy+=4;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$pdf->SetXY($posx,$posy);
|
$pdf->SetXY($posx,$posy);
|
||||||
if ($object->date)
|
if ($object->date)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -976,15 +976,10 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
|
|||||||
$pdf->SetFont('', 'B', $default_font_size + 3);
|
$pdf->SetFont('', 'B', $default_font_size + 3);
|
||||||
$pdf->SetXY($posx,$posy);
|
$pdf->SetXY($posx,$posy);
|
||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
$title=$outputlangs->transnoentities("SupplierOrder");
|
$title=$outputlangs->transnoentities("SupplierOrder")." ".$outputlangs->convToOutputCharset($object->ref);
|
||||||
$pdf->MultiCell(100, 3, $title, '', 'R');
|
$pdf->MultiCell(100, 3, $title, '', 'R');
|
||||||
|
|
||||||
$pdf->SetFont('','B',$default_font_size);
|
$pdf->SetFont('','B', $default_font_size);
|
||||||
|
|
||||||
$posy+=6;
|
|
||||||
$pdf->SetXY($posx,$posy);
|
|
||||||
$pdf->SetTextColor(0,0,60);
|
|
||||||
$pdf->MultiCell(100, 4, $outputlangs->transnoentities("Ref")." : " . $outputlangs->convToOutputCharset($object->ref), '', 'R');
|
|
||||||
|
|
||||||
if ($object->ref_supplier)
|
if ($object->ref_supplier)
|
||||||
{
|
{
|
||||||
@ -994,10 +989,22 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
|
|||||||
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("RefSupplier")." : " . $outputlangs->convToOutputCharset($object->ref_supplier), '', 'R');
|
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("RefSupplier")." : " . $outputlangs->convToOutputCharset($object->ref_supplier), '', 'R');
|
||||||
}
|
}
|
||||||
|
|
||||||
$posy+=2;
|
|
||||||
$pdf->SetFont('','', $default_font_size -1);
|
$pdf->SetFont('','', $default_font_size -1);
|
||||||
|
|
||||||
$posy+=5;
|
$posy+=6;
|
||||||
|
if (! empty($conf->global->PDF_SHOW_PROJECT))
|
||||||
|
{
|
||||||
|
$object->fetch_projet();
|
||||||
|
$pdf->SetXY($posx,$posy);
|
||||||
|
if (! empty($object->project->ref))
|
||||||
|
{
|
||||||
|
$langs->load("projects");
|
||||||
|
$pdf->SetTextColor(0,0,60);
|
||||||
|
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("Project")." : " . (empty($object->project->ref)?'':$object->projet->ref), '', 'R');
|
||||||
|
$posy+=4;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$pdf->SetXY($posx,$posy);
|
$pdf->SetXY($posx,$posy);
|
||||||
if (! empty($object->date_commande))
|
if (! empty($object->date_commande))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -163,8 +163,8 @@ ALTER TABLE llx_actioncomm_resources ADD UNIQUE INDEX uk_actioncomm_resources(fk
|
|||||||
|
|
||||||
|
|
||||||
-- Localtaxes by thirds
|
-- Localtaxes by thirds
|
||||||
ALTER TABLE llx_c_tva MODIFY COLUMN localtax1 varchar(10);
|
ALTER TABLE llx_c_tva MODIFY COLUMN localtax1 varchar(20);
|
||||||
ALTER TABLE llx_c_tva MODIFY COLUMN localtax2 varchar(10);
|
ALTER TABLE llx_c_tva MODIFY COLUMN localtax2 varchar(20);
|
||||||
ALTER TABLE llx_localtax ADD COLUMN localtaxtype tinyint after entity;
|
ALTER TABLE llx_localtax ADD COLUMN localtaxtype tinyint after entity;
|
||||||
ALTER TABLE llx_societe ADD COLUMN localtax1_value double(6,3) after localtax1_assuj;
|
ALTER TABLE llx_societe ADD COLUMN localtax1_value double(6,3) after localtax1_assuj;
|
||||||
ALTER TABLE llx_societe ADD COLUMN localtax2_value double(6,3) after localtax2_assuj;
|
ALTER TABLE llx_societe ADD COLUMN localtax2_value double(6,3) after localtax2_assuj;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
-- Copyright (C) 2010-2014 Juanjo Menent <jmenent@2byte.es>
|
-- Copyright (C) 2010-2015 Juanjo Menent <jmenent@2byte.es>
|
||||||
-- Copyright (C) 2011-2012 Alexandre Spangaro <alexandre.spangaro@gmail.com>
|
-- Copyright (C) 2011-2012 Alexandre Spangaro <alexandre.spangaro@gmail.com>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
@ -23,9 +23,9 @@ create table llx_c_tva
|
|||||||
rowid integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
rowid integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
fk_pays integer NOT NULL,
|
fk_pays integer NOT NULL,
|
||||||
taux double NOT NULL,
|
taux double NOT NULL,
|
||||||
localtax1 varchar(10) NOT NULL DEFAULT '0',
|
localtax1 varchar(20) NOT NULL DEFAULT '0',
|
||||||
localtax1_type varchar(10) NOT NULL DEFAULT '0',
|
localtax1_type varchar(10) NOT NULL DEFAULT '0',
|
||||||
localtax2 varchar(10) NOT NULL DEFAULT '0',
|
localtax2 varchar(20) NOT NULL DEFAULT '0',
|
||||||
localtax2_type varchar(10) NOT NULL DEFAULT '0',
|
localtax2_type varchar(10) NOT NULL DEFAULT '0',
|
||||||
recuperableonly integer NOT NULL DEFAULT 0,
|
recuperableonly integer NOT NULL DEFAULT 0,
|
||||||
note varchar(128),
|
note varchar(128),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user