/home/desid573/book.familycab.com.au/pdd/app/Vendor/eway/src/Rapid/Model
NameSizeModeActions
Response/-0755rm
Support/-0755rm
AbstractModel.php11920644editdlrm
Address.php6710644editdlrm
CardDetails.php10260644editdlrm
Customer.php31960644editdlrm
Item.php17160644editdlrm
Payment.php7360644editdlrm
ProcessingDetails.php4610644editdlrm
Refund.php19390644editdlrm
RefundDetails.php8760644editdlrm
SettlementSearch.php14960644editdlrm
ShippingAddress.php19840644editdlrm
Transaction.php65210644editdlrm
TransactionFilter.php6320644editdlrm
Verification.php19890644editdlrm
Edit: /home/desid573/book.familycab.com.au/pdd/app/Vendor/eway/src/Rapid/Model/Item.php (1716B)
calculateTotal(); } /** * Used to set the line item's values so that the total and tax add up correctly. * * @param int $price * @param int $unitTax * @param int $quantity * * @return $this */ public function calculate($price, $unitTax, $quantity = 0) { $this->Tax = $unitTax * $quantity; $this->Total = $this->Tax + ($quantity * $price); return $this; } /** * @return $this */ private function calculateTotal() { if (isset($this->Quantity) && isset($this->UnitCost)) { if (isset($this->Tax)) { $this->Total = $this->Tax + ($this->Quantity * $this->UnitCost); } else { $this->Total = $this->Quantity * $this->UnitCost; } } return $this; } }