mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-02 06:34:36 -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);
|
auth()->guard('contact')->loginUsingId($invitation->contact->id, true);
|
||||||
|
|
||||||
$invoice = $invitation->invoice;
|
$invoice = $invitation->invoice->service()->removeUnpaidGatewayFees()->save();
|
||||||
|
|
||||||
if ($invoice->partial > 0) {
|
if ($invoice->partial > 0) {
|
||||||
$amount = round($invoice->partial, (int)$invoice->client->currency()->precision);
|
$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;
|
$variables = ($invitation && auth()->guard('contact')->user()->client->getSetting('show_accept_invoice_terms')) ? (new HtmlEngine($invitation))->generateLabelsAndValues() : false;
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'invoice' => $invoice,
|
'invoice' => $invoice->service()->removeUnpaidGatewayFees()->save(),
|
||||||
'invitation' => $invitation ?: $invoice->invitations->first(),
|
'invitation' => $invitation ?: $invoice->invitations->first(),
|
||||||
'key' => $invitation ? $invitation->key : false,
|
'key' => $invitation ? $invitation->key : false,
|
||||||
'hash' => $hash,
|
'hash' => $hash,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user