mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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
|
payments.id = paymentables.payment_id
|
||||||
WHERE paymentable_type = 'App\\Models\\Credit'
|
WHERE paymentable_type = 'App\\Models\\Credit'
|
||||||
AND paymentables.deleted_at is NULL
|
AND paymentables.deleted_at is NULL
|
||||||
AND payments.client_id = 85;
|
AND payments.client_id = ?;
|
||||||
") );
|
"), [$client->id] );
|
||||||
|
|
||||||
return $results;
|
return $results;
|
||||||
}
|
}
|
||||||
|
@ -233,7 +233,6 @@ class BaseDriver extends AbstractPaymentDriver
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$payment = PaymentFactory::create($this->client->company->id, $this->client->user->id);
|
$payment = PaymentFactory::create($this->client->company->id, $this->client->user->id);
|
||||||
$payment->client_id = $this->client->id;
|
$payment->client_id = $this->client->id;
|
||||||
$payment->company_gateway_id = $this->company_gateway->id;
|
$payment->company_gateway_id = $this->company_gateway->id;
|
||||||
|
@ -112,7 +112,7 @@ class PaymentService
|
|||||||
/* Iterate through the invoices and apply credits to them */
|
/* Iterate through the invoices and apply credits to them */
|
||||||
collect($payment_hash->invoices())->each(function ($payable_invoice) use ($payment_hash) {
|
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;
|
$amount = $payable_invoice->amount;
|
||||||
|
|
||||||
|
@ -216,7 +216,7 @@ Route::match(['get', 'post'], 'payment_notification_webhook/{company_key}/{compa
|
|||||||
->middleware(['guest'])
|
->middleware(['guest'])
|
||||||
->name('payment_notification_webhook');
|
->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('token_hash_router', 'OneTimeTokenController@router');
|
||||||
Route::get('webcron', 'WebCronController@index');
|
Route::get('webcron', 'WebCronController@index');
|
||||||
Route::post('api/v1/get_migration_account', 'HostedMigrationController@getAccount')->middleware('guest');
|
Route::post('api/v1/get_migration_account', 'HostedMigrationController@getAccount')->middleware('guest');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user