// 10 * 10 HT - 0% discount with 10% vat and 0% localtax1 type 3, 19% localtax2 type 5 (method we provide value)
// 10 * 10 HT - 0% discount with 10% vat and 0% localtax1 type 3, 19% localtax2 type 5 (method we provide value), we provide a service and not a product
$this->assertEquals(array(100,10,91,10,1,9.1,100,10,91,0,-19,0,-1.90,0,0,-19),$result2,'Test5 ES for service');
// 10 * 10 HT - 0% discount with 10% vat and 0% localtax1 type 3, 21% localtax2 type 5 (other method autodetect)
// 10 * 10 HT - 0% discount with 10% vat and 0% localtax1 type 3, 21% localtax2 type 5 (other method autodetect), we provide a service and not a product
$mysoc->country_code='ES';
$mysoc->country_code='ES';
$mysoc->country_id=4;
$mysoc->country_id=4;
$mysoc->localtax1_assuj=0;
$mysoc->localtax1_assuj=0;
...
@@ -214,11 +214,21 @@ class PricesTest extends PHPUnit_Framework_TestCase
...
@@ -214,11 +214,21 @@ class PricesTest extends PHPUnit_Framework_TestCase
$this->assertEquals(array(100,10,110,10,1,11,100,10,110,0,0,0,0,0,0,0),$result2,'Test6 ES for product');
// 10 * 10 HT - 0% discount with 10% vat and 0% localtax1 type 3, 21% localtax2 type 5 (other method autodetect), we provide a product and not a service
// Credit Note: 10 * -10 HT - 0% discount with 10% vat and 0% localtax1 type 3, 19% localtax2 type 5 (method we provide value)
// Credit Note: 10 * -10 HT - 0% discount with 10% vat and 0% localtax1 type 3, 19% localtax2 type 5 (method we provide value), we provide a product and not a service
$mysoc->country_code='ES';
$mysoc->country_code='ES';
$mysoc->country_id=4;
$mysoc->country_id=4;
$mysoc->localtax1_assuj=0;
$mysoc->localtax1_assuj=0;
...
@@ -226,16 +236,16 @@ class PricesTest extends PHPUnit_Framework_TestCase
...
@@ -226,16 +236,16 @@ class PricesTest extends PHPUnit_Framework_TestCase
$this->assertEquals(array(-100,-10,-110,-10,-1,-11,-100,-10,-110,0,0,0,0,0,0,0),$result2,'Test7 ES for product');
// Credit Note: 10 * -10 HT - 0% discount with 10% vat and 1.4% localtax1 type 3, 0% localtax2 type 5 (other method autodetect)
// Credit Note: 10 * -10 HT - 0% discount with 10% vat and 1.4% localtax1 type 3, 0% localtax2 type 5 (other method autodetect), we provide a service and not a product