mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Improved experience for removing checkout fees
This commit is contained in:
parent
a27d443d5c
commit
1d07d48165
@ -278,7 +278,7 @@ class InvitationController extends Controller
|
||||
|
||||
auth()->guard('contact')->loginUsingId($invitation->contact->id, true);
|
||||
|
||||
$invoice = $invitation->invoice;
|
||||
$invoice = $invitation->invoice->service()->removeUnpaidGatewayFees()->save();
|
||||
|
||||
if ($invoice->partial > 0) {
|
||||
$amount = round($invoice->partial, (int)$invoice->client->currency()->precision);
|
||||
|
@ -72,7 +72,7 @@ class InvoiceController extends Controller
|
||||
$variables = ($invitation && auth()->guard('contact')->user()->client->getSetting('show_accept_invoice_terms')) ? (new HtmlEngine($invitation))->generateLabelsAndValues() : false;
|
||||
|
||||
$data = [
|
||||
'invoice' => $invoice,
|
||||
'invoice' => $invoice->service()->removeUnpaidGatewayFees()->save(),
|
||||
'invitation' => $invitation ?: $invoice->invitations->first(),
|
||||
'key' => $invitation ? $invitation->key : false,
|
||||
'hash' => $hash,
|
||||
|
Loading…
x
Reference in New Issue
Block a user