mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Minor fixes for check data
This commit is contained in:
parent
dc0efd2d91
commit
3b4afd4537
@ -447,8 +447,8 @@ class CheckData extends Command
|
||||
payments.id = paymentables.payment_id
|
||||
WHERE paymentable_type = 'App\\Models\\Credit'
|
||||
AND paymentables.deleted_at is NULL
|
||||
AND payments.client_id = 85;
|
||||
") );
|
||||
AND payments.client_id = ?;
|
||||
"), [$client->id] );
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
@ -233,7 +233,6 @@ class BaseDriver extends AbstractPaymentDriver
|
||||
|
||||
}
|
||||
|
||||
|
||||
$payment = PaymentFactory::create($this->client->company->id, $this->client->user->id);
|
||||
$payment->client_id = $this->client->id;
|
||||
$payment->company_gateway_id = $this->company_gateway->id;
|
||||
|
@ -112,7 +112,7 @@ class PaymentService
|
||||
/* Iterate through the invoices and apply credits to them */
|
||||
collect($payment_hash->invoices())->each(function ($payable_invoice) use ($payment_hash) {
|
||||
|
||||
$invoice = Invoice::find($this->decodePrimaryKey($payable_invoice->invoice_id));
|
||||
$invoice = Invoice::withTrashed()->find($this->decodePrimaryKey($payable_invoice->invoice_id));
|
||||
|
||||
$amount = $payable_invoice->amount;
|
||||
|
||||
|
@ -216,7 +216,7 @@ Route::match(['get', 'post'], 'payment_notification_webhook/{company_key}/{compa
|
||||
->middleware(['guest'])
|
||||
->name('payment_notification_webhook');
|
||||
|
||||
Route::post('api/v1/postmark_webhook', 'PostMarkController@webhook')->middleware(['throttle:5000,1']);
|
||||
Route::post('api/v1/postmark_webhook', 'PostMarkController@webhook')->middleware(['throttle:10000,1']);
|
||||
Route::get('token_hash_router', 'OneTimeTokenController@router');
|
||||
Route::get('webcron', 'WebCronController@index');
|
||||
Route::post('api/v1/get_migration_account', 'HostedMigrationController@getAccount')->middleware('guest');
|
||||
|
Loading…
Reference in New Issue
Block a user