From 3a8513cbaf05b6756f116877feef317a7e6b8473 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 14 Jul 2022 21:29:17 +1000 Subject: [PATCH] Fixes for required fields --- app/Http/Livewire/RequiredClientInfo.php | 5 +++++ app/Services/Invoice/AddGatewayFee.php | 4 ++-- routes/api.php | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/Http/Livewire/RequiredClientInfo.php b/app/Http/Livewire/RequiredClientInfo.php index af68406fbf7c..db341ac34ee3 100644 --- a/app/Http/Livewire/RequiredClientInfo.php +++ b/app/Http/Livewire/RequiredClientInfo.php @@ -73,6 +73,11 @@ class RequiredClientInfo extends Component 'state', 'postal_code', 'country_id', + 'shipping_address1', + 'shipping_address2', + 'shipping_city', + 'shipping_state', + 'shipping_postal_code', 'shipping_country_id', ]; diff --git a/app/Services/Invoice/AddGatewayFee.php b/app/Services/Invoice/AddGatewayFee.php index c8769fad5474..b8baa72afd4b 100644 --- a/app/Services/Invoice/AddGatewayFee.php +++ b/app/Services/Invoice/AddGatewayFee.php @@ -116,7 +116,7 @@ class AddGatewayFee extends AbstractService $this->invoice ->ledger() - ->updateInvoiceBalance($adjustment, 'Adjustment for removing gateway fee'); + ->updateInvoiceBalance($adjustment, 'Adjustment for adding gateway fee'); } return $this->invoice; @@ -165,7 +165,7 @@ class AddGatewayFee extends AbstractService $this->invoice ->ledger() - ->updateInvoiceBalance($adjustment * -1, 'Adjustment for removing gateway fee'); + ->updateInvoiceBalance($adjustment * -1, 'Adjustment for adding gateway fee'); } diff --git a/routes/api.php b/routes/api.php index d83687a4ea9a..b9af152d7659 100644 --- a/routes/api.php +++ b/routes/api.php @@ -157,7 +157,7 @@ Route::group(['middleware' => ['throttle:100,1', 'api_db', 'token_auth', 'locale Route::post('recurring_quotes/bulk', 'RecurringQuoteController@bulk')->name('recurring_quotes.bulk'); Route::put('recurring_quotes/{recurring_quote}/upload', 'RecurringQuoteController@upload'); - Route::post('refresh', 'Auth\LoginController@refresh')->middleware('throttle:150,3'); + Route::post('refresh', 'Auth\LoginController@refresh')->middleware('throttle:300,3'); Route::post('reports/clients', 'Reports\ClientReportController'); Route::post('reports/contacts', 'Reports\ClientContactReportController');