mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for tests
This commit is contained in:
parent
1415434d34
commit
7bde9d6967
@ -72,7 +72,7 @@ class CompanySettings extends BaseSettings
|
||||
|
||||
public $translations;
|
||||
|
||||
public $counter_number_applied = 'when_saved';// when_saved , when_sent , when_paid
|
||||
public $counter_number_applied = 'when_saved';// when_saved , when_sent
|
||||
public $quote_number_applied = 'when_saved';// when_saved , when_sent
|
||||
|
||||
/* Counters */
|
||||
|
@ -40,7 +40,7 @@ class UpdatePaymentRequest extends Request
|
||||
'invoices' => ['array',new PaymentAppliedValidAmount,new ValidCreditsPresentRule],
|
||||
'invoices.*.invoice_id' => 'distinct',
|
||||
'documents' => 'mimes:png,ai,svg,jpeg,tiff,pdf,gif,psd,txt,doc,xls,ppt,xlsx,docx,pptx',
|
||||
'number' = 'nullable|unique:payments,number,' . $this->id . ',id,company_id,' . $this->company_id,
|
||||
'number' => 'nullable|unique:payments,number,' . $this->id . ',id,company_id,' . $this->company_id,
|
||||
];
|
||||
|
||||
if ($this->input('documents') && is_array($this->input('documents'))) {
|
||||
|
@ -36,6 +36,7 @@ class ClientGatewayTokenTransformer extends EntityTransformer
|
||||
'gateway_type_id' => (string)$cgt->gateway_type_id ?: '',
|
||||
'company_gateway_id' => (string)$this->encodePrimaryKey($cgt->company_gateway_id) ?: '',
|
||||
'is_default' => (bool) $cgt->is_default,
|
||||
'meta' => $cgt->meta,
|
||||
'created_at' => (int)$cgt->created_at,
|
||||
'updated_at' => (int)$cgt->updated_at,
|
||||
'archived_at' => (int)$cgt->deleted_at,
|
||||
|
Loading…
Reference in New Issue
Block a user