mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-05 18:52:44 +01:00
Remove duplicate 'type_id' from PaymentTransformer.php (#3466)
This commit is contained in:
parent
efa6350008
commit
35b2e9b5e1
@ -11,12 +11,10 @@
|
||||
|
||||
namespace App\Transformers;
|
||||
|
||||
use App\Models\Account;
|
||||
use App\Models\Client;
|
||||
use App\Models\Invoice;
|
||||
use App\Models\Payment;
|
||||
use App\Models\Paymentable;
|
||||
use App\Transformers\PaymentableTransformer;
|
||||
use App\Utils\Traits\MakesHash;
|
||||
|
||||
class PaymentTransformer extends EntityTransformer
|
||||
@ -35,6 +33,8 @@ class PaymentTransformer extends EntityTransformer
|
||||
|
||||
public function __construct($serializer = null)
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
$this->serializer = $serializer;
|
||||
}
|
||||
|
||||
@ -88,7 +88,6 @@ class PaymentTransformer extends EntityTransformer
|
||||
'client_contact_id' => (string) $this->encodePrimaryKey($payment->client_contact_id),
|
||||
'company_gateway_id' => (string) $this->encodePrimaryKey($payment->company_gateway_id),
|
||||
'status_id'=> (string) $payment->status_id,
|
||||
'type_id'=> (string) $payment->type_id,
|
||||
'project_id' => (string) $this->encodePrimaryKey($payment->project_id),
|
||||
'vendor_id' => (string) $this->encodePrimaryKey($payment->vendor_id),
|
||||
'currency_id' => (string) $payment->currency_id ?: '',
|
||||
|
Loading…
Reference in New Issue
Block a user