Ejemplo n.º 1
0
 /**
  * Categorise a Product
  *
  * @param Product $product
  * @return void
  */
 public function categorise(Product $product)
 {
     $product->taxable(false);
 }
Ejemplo n.º 2
0
 /** @test */
 public function should_set_the_taxable_status()
 {
     $this->product->taxable(false);
     $this->assertFalse($this->product->taxable);
 }
Ejemplo n.º 3
0
 /**
  * Price:    £39.99
  * Rate:     0%
  * Quantity: 2
  * Freebie:  false
  * Taxable:  false
  * Discount: £0
  * Delivery: £5.99
  *
  * @return Product
  */
 public function eight()
 {
     $sku = '8';
     $name = 'Junior Jordans';
     $rate = new UnitedKingdomValueAddedTax();
     $price = new Money(3999, new Currency('GBP'));
     $product = new Product($sku, $name, $price, $rate);
     $product->quantity(2);
     $product->taxable(false);
     $product->delivery(new Money(599, new Currency('GBP')));
     return $product;
 }