"Call to undefined method multiInclusiveTax()" when sending invoice

I am trying to send an invoice by mail to a client, but whenever I click the “send email” button, there is an error logged and no mail is sent:

[2024-05-06 15:06:48] production.ERROR: Call to undefined method App\Helpers\Invoice\InvoiceSumInclusive::multiInclusiveTax() {"exception":"[object] (Error(code: 0): Call to undefined method App\\Helpers\\Invoice\\InvoiceSumInclusive::multiInclusiveTax() at /invoiceninja/app/Helpers/Invoice/InvoiceSumInclusive.php:110)
[stacktrace]
#0 /invoiceninja/app/Helpers/Invoice/InvoiceSumInclusive.php(77): App\\Helpers\\Invoice\\InvoiceSumInclusive->calculateCustomValues()
#1 /invoiceninja/app/Models/Invoice.php(524): App\\Helpers\\Invoice\\InvoiceSumInclusive->build()
#2 /invoiceninja/app/Utils/HtmlEngine.php(88): App\\Models\\Invoice->calc()
#3 /invoiceninja/app/Services/Email/Email.php(192): App\\Utils\\HtmlEngine->__construct()
#4 /invoiceninja/app/Services/Email/Email.php(177): App\\Services\\Email\\Email->resolveVariables()
#5 /invoiceninja/app/Services/Email/Email.php(107): App\\Services\\Email\\Email->initModels()
#6 /invoiceninja/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\\Services\\Email\\Email->handle()
#7 /invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#8 /invoiceninja/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure()
#9 /invoiceninja/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod()
#10 /invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call()
#11 /invoiceninja/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(128): Illuminate\\Container\\Container->call()
#12 /invoiceninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}()
#13 /invoiceninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#14 /invoiceninja/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(132): Illuminate\\Pipeline\\Pipeline->then()
#15 /invoiceninja/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(124): Illuminate\\Bus\\Dispatcher->dispatchNow()
#16 /invoiceninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Queue\\CallQueuedHandler->Illuminate\\Queue\\{closure}()
#17 /invoiceninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#18 /invoiceninja/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(126): Illuminate\\Pipeline\\Pipeline->then()
#19 /invoiceninja/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(70): Illuminate\\Queue\\CallQueuedHandler->dispatchThroughMiddleware()
#20 /invoiceninja/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(98): Illuminate\\Queue\\CallQueuedHandler->call()
#21 /invoiceninja/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(439): Illuminate\\Queue\\Jobs\\Job->fire()
#22 /invoiceninja/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(389): Illuminate\\Queue\\Worker->process()
#23 /invoiceninja/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(176): Illuminate\\Queue\\Worker->runJob()
#24 /invoiceninja/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(138): Illuminate\\Queue\\Worker->daemon()
#25 /invoiceninja/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(121): Illuminate\\Queue\\Console\\WorkCommand->runWorker()
#26 /invoiceninja/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Queue\\Console\\WorkCommand->handle()
#27 /invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#28 /invoiceninja/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure()
#29 /invoiceninja/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod()
#30 /invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call()
#31 /invoiceninja/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\\Container\\Container->call()
#32 /invoiceninja/vendor/symfony/console/Command/Command.php(326): Illuminate\\Console\\Command->execute()
#33 /invoiceninja/vendor/laravel/framework/src/Illuminate/Console/Command.php(181): Symfony\\Component\\Console\\Command\\Command->run()
#34 /invoiceninja/vendor/symfony/console/Application.php(1081): Illuminate\\Console\\Command->run()
#35 /invoiceninja/vendor/symfony/console/Application.php(320): Symfony\\Component\\Console\\Application->doRunCommand()
#36 /invoiceninja/vendor/symfony/console/Application.php(174): Symfony\\Component\\Console\\Application->doRun()
#37 /invoiceninja/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\\Component\\Console\\Application->run()
#38 /invoiceninja/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle()
#39 {main}
"}

Any idea how to fix this?

Hi,

@david can you please advise?

what version are you on?

I am on v5.8.53.

Thanks

Any Update? Being unable to send invoices kinda defeats the whole purpose of an invoice system.

@david any thoughts?