minor fixes

This commit is contained in:
David Bomba 2021-12-28 20:29:42 +11:00
parent 35af97a77b
commit dbe9ceab51
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ class InvoiceTransformer extends BaseTransformer {
$line_items[] = [
'product_key' => $this->getString( $record, 'Item Name' ),
'notes' => $this->getString( $record, 'Item Description' ),
'cost' => $this->getFloat( $record, 'Item Price' ),
'cost' => round($this->getFloat( $record, 'Item Price' ),2),
'quantity' => $this->getFloat( $record, 'Quantity' ),
'discount' => $this->getString( $record, 'Discount Amount' ),
'is_amount_discount' => true,

View File

@ -116,7 +116,7 @@ class WePayPaymentDriver extends BaseDriver
$data['gateway'] = $this->wepay;
$client = $data['client'];
$contact = $client->primary_contact()->first() ? $client->primary_contact()->first() : $lient->contacts->first();
$contact = $client->primary_contact()->first() ? $client->primary_contact()->first() : $client->contacts->first();
$data['contact'] = $contact;
return $this->payment_method->authorizeView($data);