$this->assertEquals(array(100,10,91,10,1,9.1,100,10,91,0,-19,0,-1.90,0,0,-19,100,10,91),$result2,'Test5 ES for service');
$this->assertEquals(array(100,10,91,10,1,9.1,100,10,91,0,-19,0,-1.90,0,0,-19,100,10,91,10),$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), we provide a service and not a product
$mysoc->country_code='ES';
...
...
@@ -227,7 +227,7 @@ 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,100,10,110),$result2,'Test6 ES for product');
$this->assertEquals(array(100,10,110,10,1,11,100,10,110,0,0,0,0,0,0,0,100,10,110,10),$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
$mysoc->country_code='ES';
...
...
@@ -237,7 +237,7 @@ 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,-100,-10,-110),$result2,'Test7 ES for product');
$this->assertEquals(array(-100,-10,-110,-10,-1,-11,-100,-10,-110,0,0,0,0,0,0,0,-100,-10,-110,-10),$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), we provide a service and not a product
$mysoc->country_code='ES';
...
...
@@ -258,7 +258,7 @@ class PricesTest extends PHPUnit_Framework_TestCase