Example #1
0
 /**
  * Get a Order total with or without VAT
  * @param  integer  $no
  * @param  boolean  $vat
  * @return float
  */
 public function total($no, $vat = false)
 {
     $handle = $this->getHandle($no);
     $request = array('orderHandle' => $handel);
     if ($vat) {
         return $this->client->Order_GetGrossAmount($request)->Order_GetGrossAmountResult;
     }
     return $this->client->Order_GetNetAmount($request)->Order_GetNetAmountResult;
 }