Topic: Error flashes up after creating a supplier invoice

After pressing process supplier invoice I get the following error flash up for approx 1 - 2 seconds:

Undefined variable: net_total in file: ........../purchasing/includes/db/invoice_db.inc at line 396

After it appears the screen returns to where it should be after creating a supplier invoice and everything seems to have processed correctly. (I managed to catch it by pressing [PrtScn] quickly)

Setup info:-

This is on a clean install of V2.4.2
Theme default
Database 10.0.27-MariaDB-cll-lve
PHP V5.6.31
Server - Linux
Shared hosting.

The FrontAccounting Wiki(Manual, examples, tips, setup info, links to accounting sites, etc) https://frontaccounting.com/fawiki/

Re: Error flashes up after creating a supplier invoice

@poncho1234: You have just found a bug!

@joe: There is no variable $net_total in entire FA 2.4.2 but is used in /purchasing/includes/db/invoice_db.inc at line 396. Should it be $invoice_items_total or $allocate_amount or something else?

Re: Error flashes up after creating a supplier invoice

ok... good! Shall I enter this in the mantis bug tracker?

The FrontAccounting Wiki(Manual, examples, tips, setup info, links to accounting sites, etc) https://frontaccounting.com/fawiki/

Re: Error flashes up after creating a supplier invoice

@poncho1234

No I will have a look at this.

Joe

Re: Error flashes up after creating a supplier invoice

This issue just have been fixed in repo.
Thanks for reporting the problem.
Janusz

6 (edited by poncho1234 09/22/2017 02:37:52 am)

Re: Error flashes up after creating a supplier invoice

@itronics..no problem, thank you for fixing it.

itronics wrote:

This issue just have been fixed in repo.

A beginners question:- Does this mean when I download 2.4.2 from sourceforge now this fix will be in it? Or does it mean that its just ready for 2.4.3 when it is released?

Just realised i can prove this myself by downloading....Nope it's not there. So I assume this will only come out when 2.4.3 is released or I patch it myself....Is this correct?
And to get all the latest updates I clicked GIT and then 'Download Snapshot', which if I am correct? Is useful to know.
(I think I need to invest the time and learn GIT)
Is there an approx date on 2.4.3?

The FrontAccounting Wiki(Manual, examples, tips, setup info, links to accounting sites, etc) https://frontaccounting.com/fawiki/

Re: Error flashes up after creating a supplier invoice

You can download the latest dev from GIT. Alternatively, you can overwrite the existing v2.4.2 with the changed files in the Announcements for the said version.