From 53d1c55acf8524c0d8d351a9c2acb0f49d0938c3 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 28 Mar 2024 07:40:56 +1100 Subject: [PATCH] Fixes for missing download actions for e-docs --- app/Http/Controllers/QuoteController.php | 2 +- app/Livewire/PdfSlot.php | 2 +- .../ninja2020/components/livewire/pdf-slot.blade.php | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/Http/Controllers/QuoteController.php b/app/Http/Controllers/QuoteController.php index 1ac67895f009..2f5f01bb3cb4 100644 --- a/app/Http/Controllers/QuoteController.php +++ b/app/Http/Controllers/QuoteController.php @@ -914,7 +914,7 @@ class QuoteController extends BaseController $contact = $invitation->contact; $quote = $invitation->quote; - $file = $quote->service()->getEInvoice($contact); + $file = $quote->service()->getEQuote($contact); $file_name = $quote->getFileName("xml"); $headers = ['Content-Type' => 'application/xml']; diff --git a/app/Livewire/PdfSlot.php b/app/Livewire/PdfSlot.php index 81ad1fab61c1..59fb9bf9625d 100644 --- a/app/Livewire/PdfSlot.php +++ b/app/Livewire/PdfSlot.php @@ -108,7 +108,7 @@ class PdfSlot extends Component } - public function downloadEInvoice() + public function downloadEDocument() { $file_name = $this->entity->numberFormatter().'.xml'; diff --git a/resources/views/portal/ninja2020/components/livewire/pdf-slot.blade.php b/resources/views/portal/ninja2020/components/livewire/pdf-slot.blade.php index 314f69cca8ee..9284c748cb94 100644 --- a/resources/views/portal/ninja2020/components/livewire/pdf-slot.blade.php +++ b/resources/views/portal/ninja2020/components/livewire/pdf-slot.blade.php @@ -10,9 +10,9 @@ @if($entity_type == 'invoice' && $settings->enable_e_invoice) - @endif @if($entity_type == 'credit' && $settings->enable_e_invoice) - @endif @if($entity_type == 'quote' && $settings->enable_e_invoice) -