mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 06:14:31 -04:00
minor fixes
This commit is contained in:
parent
35af97a77b
commit
dbe9ceab51
@ -57,7 +57,7 @@ class InvoiceTransformer extends BaseTransformer {
|
|||||||
$line_items[] = [
|
$line_items[] = [
|
||||||
'product_key' => $this->getString( $record, 'Item Name' ),
|
'product_key' => $this->getString( $record, 'Item Name' ),
|
||||||
'notes' => $this->getString( $record, 'Item Description' ),
|
'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' ),
|
'quantity' => $this->getFloat( $record, 'Quantity' ),
|
||||||
'discount' => $this->getString( $record, 'Discount Amount' ),
|
'discount' => $this->getString( $record, 'Discount Amount' ),
|
||||||
'is_amount_discount' => true,
|
'is_amount_discount' => true,
|
||||||
|
@ -116,7 +116,7 @@ class WePayPaymentDriver extends BaseDriver
|
|||||||
|
|
||||||
$data['gateway'] = $this->wepay;
|
$data['gateway'] = $this->wepay;
|
||||||
$client = $data['client'];
|
$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;
|
$data['contact'] = $contact;
|
||||||
|
|
||||||
return $this->payment_method->authorizeView($data);
|
return $this->payment_method->authorizeView($data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user