mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 17:54:30 -04:00
minor fixes
This commit is contained in:
parent
35af97a77b
commit
dbe9ceab51
@ -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,
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user