/** * Get a Order total with or without VAT * * @param integer $no * @param bool|false $vat * @return mixed */ public function total($no, $vat = false) { $handle = $this->getHandle($no); $request = ['orderHandle' => $handle]; if ($vat) { return $this->client->Order_GetGrossAmount($request)->Order_GetGrossAmountResult; } return $this->client->Order_GetNetAmount($request)->Order_GetNetAmountResult; }