• Resolved pm11

    (@pm11)


    Dzień dobry!

    I have a small problem.
    When i generated a PDF-file with faktura, in heading automatically inserted a number of order. It looks like:

    View post on imgur.com

    Now please look this screen:

    View post on imgur.com

    So i couldnt understand how to solve this problem.

    I’ve tried to uninstall the plugin, but after new setup all options was saved. So, question number 2. How i can uninstall plugin in such way, that all options & information were totally deleted.

    Please, help me!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support tomasz_bednarek

    (@tomasz_bednarek)

    Hi @pm11

    The number (1) is taken as the next number for the invoice.
    So now you see 2 as the next invoice number that will be used.

    You may add a space after nr in the prefix and / in the suffix to have
    “Faktura VAT nr 2/24/03/2021” where 2 will be the sequential number for invoices.

    Let me know if that is satisfactory for you.

    Best regards,

    Thread Starter pm11

    (@pm11)

    Hi, Tomasz!
    Thanks for quick feeedback. My main aim to delete the number of invoices from header.
    I want to get to this result:
    “Faktura VAT nr 24/03/2021”

    I’ve tried to find something iflexible-invoices/templates/documents/invoice.php ,

    <p class=”report-title”><?php echo $invoice->get_formatted_number(); ?></p>

    But i dont know, what i need to change here.

    Plugin Support tomasz_bednarek

    (@tomasz_bednarek)

    Hi pm11,

    I understand. You may then customize the invoice template and copy its version without the number into /wp-content/themes/[your-theme]/flexible-invoices/documents/invoice.php

    Instead you may put <?php echo $invoice->get_date_of_issue(); ?>

    But this approach will work only when generating PDFs. The number will be still visible in the backend (the number is given so that the invoice is correctly issued with the sequential numbers). Maybe that would be satisfactory for you.

    There is a filter though you could use:
    apply_filters(‘fi/core/numbering/formatted_number’, $number_array, $this->document)

    Please check if that works for you.

    Best regards

    Thread Starter pm11

    (@pm11)

    Now i have result: 2021-03-24

    Niestety ksi?gowa mówi, ?e musi by? tylko tak: 24/03/2021
    D?ień ?amane miesi?c ?amane rok
    Ni wiem dlaczego tak, ale takie zasady.

    Could you help me with this please?
    I think now you have a new “todo” for PRO version ??

    Plugin Support tomasz_bednarek

    (@tomasz_bednarek)

    Hi @pm11

    Jasne, rozumiem/ Sure, I understand ??

    You may use this line with a date format:
    <?php echo DateTime::createFromFormat(‘Y-m-d’, $invoice->get_date_of_issue())->format(‘d/m/Y’); ?>

    Let me know if that will “do the job”

    Best regards,

    Thread Starter pm11

    (@pm11)

    Tomasz, thank you very much!
    Now it works fine! I will recommend to buy PRO version to my client. Great support

    Dzi?kuj? bardzo! Do widzenia!

    Plugin Support tomasz_bednarek

    (@tomasz_bednarek)

    Hi pm11,

    thank you/ dzi?kuj? bardzo!

    I am glad I could help you.

    Best regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Number of order in heading’ is closed to new replies.