Home Forums Support Add more than 2 custom fields in invoice settings>Custom Fields>Invoice Fields

This topic contains 5 replies, has 5 voices, and was last updated by  jberzins802 1 week, 3 days ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6455

    eshanmaini
    Participant

    Hii i have self hosted the invoice ninja code on my localhost and i want to tweak the code to add more custom fields and place them in invoice properly i want to add 4-5 extra fields in the invoice fields , there is no proper docs of the code, can anybody please help ?

    #6459

    Hillel Coren
    Keymaster

    This would be a non-trivial change.

    You’d need to:
    – Add the fields to the accounts table
    – Enable setting the fields on /settings/invoice_settings
    – Add the fields to the PDF

    Most of the code for the PDF generation is here, you’d need to run gulp after changing the file.

    https://github.com/invoiceninja/invoiceninja/blob/master/resources/assets/js/pdf.pdfmake.js

    Good luck!

    #8623

    carl
    Participant

    Did anybody tried this successfully?

    #20991

    techwiz
    Participant

    Is there any update on this?
    I’ve just installed invoiceninja and I’m attempting to add more custom fields.

    If anyone has managed to do this maybe you could point me in the right direction.

    Thanks

    #21570

    jberzins802
    Participant

    Hello

    I would love to implement more fields, or even create a custom invoice etc template.
    Problem is that I ran in to errors even when just running gulp!

    Not even sure what is wrong, but I’ll try to debug the process as I am getting loads of problems.
    Not that I’m not sure why these errors are the, but what has changed, and how to I compile the code by running gulp?
    One begin that when I run gulp, it runs and outputs loads of source files marked with red color, one begin:
    resources/assets/bower/bootstrap/dist/css/bootstrap.css

    Is there anything that should be done before running gulp?
    I have Bower installed as well as laravel elixir.

    Really anything that could point me in a right direction would be great. Ready to help!

    • This reply was modified 1 week, 3 days ago by  jberzins802.
    #21572

    jberzins802
    Participant

    Ok, forget my previous comment, bower was not installed globally.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Posted in: