News:

Looking for documentation? Take a look on our wiki

Main Menu

Invoice number always '0'

Started by hpheidinger@arcor.de, July 04, 2019, 09:37:52 AM

Previous topic - Next topic

hpheidinger@arcor.de

I observed that clicking the  [Print] icon In the order overview renders a HTML representation of the invoice in a new window.
But the 'invoice number' is always output as '0'.
Did anyone else see this error?
The PDFs from the [Delivery note] and the [invoice] icon are just fine.

I am using ...
OS:   CentOS 7 (on a VPS)
PHP: 7.2 (REMI release)
VM:   VirtueMart 3.4.5 10063 (recently updated)


Best regards ...
Heinz-Peter Heidinger
CEO, ComServe IT-Services & musIC Pro-Audio Engineering
Essen
- Germany -

StefanSTS

I wish there was a setting to hide that button by default.
For most, this button serves no purpose anymore, it's some old backwards compatibility thing.

If you want to print invoices, set a status for generating invoices, or use the button on the right for forcing invoice.
At that time an invoice number will be generated and also printed.

If an invoice was generated before, even the print button should show the invoice number.

I use it in pizza shops to print a 80 mm invoice via a bon printer, otherwise I never use it.
You could just hide it with CSS and never get tempted to press it again.

Regards
Stefan
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

jenkinhill

I use css to hide it:
.print_32, .icon-32-print {
   display: none;
}
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Milbo

The team thinks we should remove the buttons.

The print is just not the same as the pdf. But there are stores using the print, and not the pdf, that is our dilemma.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/