Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Bas Elbers

    (@baaaaas)

    Try to add

    if ( $document->order->get_total() == 0 ) return;

    on line 69 in file bewpi-document.php

    Thread Starter innocan

    (@innocan)

    Thank Bas, it works!!!

    Congratulations for your plugin and support.

    Plugin Author Bas Elbers

    (@baaaaas)

    innocan, would you be so kind to rate the plugin? That would be great!

    Thread Starter innocan

    (@innocan)

    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

    Plugin Author Bas Elbers

    (@baaaaas)

    The file has been renamed to abstract-bewpi-document.php.
    Will try to add an option within one of the settings pages.

    Thread Starter innocan

    (@innocan)

    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?

    Plugin Author Bas Elbers

    (@baaaaas)

    @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 ?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Not generate PDF invoice if total = 0’ is closed to new replies.