This commit is contained in:
Laurent Destailleur 2018-04-22 20:17:27 +02:00
parent 32511422ab
commit b049cf194d
4 changed files with 21 additions and 21 deletions

View File

@ -101,7 +101,7 @@ $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
//set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
$pdf->SetAutoPageBreak(true, PDF_MARGIN_BOTTOM);
//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);

View File

@ -76,7 +76,7 @@ $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
//set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
$pdf->SetAutoPageBreak(true, PDF_MARGIN_BOTTOM);
//set image scale factor
//$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);

View File

@ -182,12 +182,12 @@ class WebservicesInvoicesTest extends PHPUnit_Framework_TestCase
$WS_METHOD = 'createInvoice';
$body = array (
"id" => NULL,
"ref" => NULL,
"id" => null,
"ref" => null,
"ref_ext" => "ref-phpunit-2",
"thirdparty_id" => self::$socid,
"fk_user_author" => NULL,
"fk_user_valid" => NULL,
"fk_user_author" => null,
"fk_user_valid" => null,
"date" => "2015-04-19 20:16:53",
"date_due" => "",
"date_creation" => "",
@ -201,11 +201,11 @@ class WebservicesInvoicesTest extends PHPUnit_Framework_TestCase
"note_private" => "Synchronised from Prestashop",
"note_public" => "",
"status" => "1",
"close_code" => NULL ,
"close_note" => NULL,
"project_id" => NULL,
"close_code" => null ,
"close_note" => null,
"project_id" => null,
"lines" => array(
array("id" => NULL,
array("id" => null,
"type" => 0,
"desc" => "Horloge Vinyle Serge",
"vat_rate" => 20,
@ -339,12 +339,12 @@ class WebservicesInvoicesTest extends PHPUnit_Framework_TestCase
// update status to 2
$body = array (
"id" => NULL,
"ref" => NULL,
"id" => null,
"ref" => null,
"ref_ext" => "ref-phpunit-2",
"thirdparty_id" => self::$socid,
"fk_user_author" => NULL,
"fk_user_valid" => NULL,
"fk_user_author" => null,
"fk_user_valid" => null,
"date" => "2015-04-19 20:16:53",
"date_due" => "",
"date_creation" => "",
@ -358,12 +358,12 @@ class WebservicesInvoicesTest extends PHPUnit_Framework_TestCase
"note_private" => "Synchronised from Prestashop",
"note_public" => "",
"status" => "2",
"close_code" => NULL ,
"close_note" => NULL,
"project_id" => NULL,
"close_code" => null ,
"close_note" => null,
"project_id" => null,
"lines" => array(
array(
"id" => NULL,
"id" => null,
"type" => 0,
"desc" => "Horloge Vinyle Serge",
"vat_rate" => 20,

View File

@ -161,11 +161,11 @@ class WebservicesThirdpartyTest extends PHPUnit_Framework_TestCase
'entity'=>'');
$body = array (
"id" => NULL,
"id" => null,
"ref" => "name",
"ref_ext" => "12",
"fk_user_author" => NULL,
"status" => NULL,
"fk_user_author" => null,
"status" => null,
"client" => 1,
"supplier" => 0,
"customer_code" => "CU0901-5678",