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); $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
//set auto page breaks //set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->SetAutoPageBreak(true, PDF_MARGIN_BOTTOM);
//set image scale factor //set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);

View File

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

View File

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

View File

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