Try to add
if ( $document->order->get_total() == 0 ) return;
on line 69 in file bewpi-document.php
Thank Bas, it works!!!
Congratulations for your plugin and support.
innocan, would you be so kind to rate the plugin? That would be great!
Bas, where we can add:
if ( $document->order->get_total() == 0 ) return;
File bewpi-document.php seems no longer exist.
Why not leave permanently in the plugin?
Best regards
The file has been renamed to abstract-bewpi-document.php.
Will try to add an option within one of the settings pages.
Bas, thanks for the reply.
First I add after line 67. When generating the bill appeared “Internal error”. I tried after line 77, but the situation was the same. In both cases, the invoice number was increased.
I am doing something wrong? After what line to copy instruction?
@innocan I know it is quite some time ago, but did you got it to work? Let me know, happy to help you out.
Hey Bas great work you’ve done!
I like to do the same like @innocan, but can’t find the right place at abstract-bewpi-document.php.
Any directions for me?
Help much appreciated!
Best Regards
vukes
Hi. I do it here :
includes/class-bewpi-invoice.php
public function save( $dest, $html_templates = array() ) {
if ( $this->order->get_total() == 0 ) return;
…
…
}
A option within settings pages would be best.
The authors could do that ?