Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Call to a member function parameters() on null

James Hughes   ( User )

Commented 3 years ago

Heyo! I absolutely love Akaunting and this is my first forum post.
Unfortunately, this has been due to an ongoing error with my self-hosted installation.

Each time I run:
php /var/www/html/akaunting/artisan recurring:check

I'm getting this back for each reoccurring invoice:
Creating recurring records for &comapnyname& company...
Call to a member function parameters() on null

Once this has completed each invoice it has generated contains the same invoice number and when selected, comes back with a 500 Internal server error; and when deleting throw's an error message:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'INV-00143-2021-03-05 10:13:59-1-invoice' for key '2v3_documents_document_number_deleted_at_company_id_type_unique' (SQL: update `2v3_documents` set `deleted_at` = 2021-03-05 10:13:59, `2v3_documents`.`updated_at` = 2021-03-05 10:13:59 where `id` = 238)

I'm really not sure who to turn too, or where to ask for help so I really appreciate the forums being a good opportunity for asking for a helping hand to get this right.


Kind Regards,
James

James Hughes   ( User )

Commented 3 years ago

Quick update! I had a fiddle and enabled debug... Now the plot thickens, I'm getting this back:
[10:36:04] LOG.error: Invalid amount "" {"userId":1,"exception":{}}

Stack:
UnexpectedValueException:
Invalid amount ""

at /var/www/html/akaunting/vendor/akaunting/money/src/Money.php:251
at Akaunting\Money\Money->parseAmount()
(/var/www/html/akaunting/vendor/akaunting/money/src/Money.php:222)
at Akaunting\Money\Money->__construct()
(/var/www/html/akaunting/vendor/akaunting/money/src/helpers.php:18)
at money()
(/var/www/html/akaunting/app/Http/Controllers/Sales/Invoices.php:54)
at App\Http\Controllers\Sales\Invoices->show()
(/var/www/html/akaunting/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54)

Denis Dulici   ( Admin )

Commented 3 years ago

Hello James,

First of all, welcome on board.

It seems you've customized the invoice number creation and the system is not able to increase it. Can you share what you've done there?

Regards

James Hughes   ( User )

Commented 3 years ago

Hi @Denis,

Thank you so much. Can't quite remember changing those settings but I do not deny it.

Here's what I set in my invoicing settings:

Number Prefix : INV-
Number Digit: 5
Next Number: 144
Payment Terms: Due Upon Recipt
Title: Invoice
Subheading: (No entry)

Let me know if you need more! :)

James Hughes   ( User )

Commented 3 years ago

Hi Denis! still, having issues here with scheduled invoices, nothing really changed other than the settings mentioned? I need some help.

Please login or register to leave a response.

Showing 1 to 5 of 5 discussions