Forum Replies Created

Viewing 96 posts - 1 through 96 (of 96 total)
  • Author
    Posts
  • in reply to: Automatic Update Script (Major Update) #20675

    theFlash
    Participant

    Thanks again Titanfail – just upgraded to 4.5.12 from 4.4 and all appears to have worked well.

    in reply to: Invoice Ninja on A Raspberry Pi? #18448

    theFlash
    Participant

    Hi Nnako,

    I went through testing various opensource invoicing apps, and in my opinion, you’ll find it well worthwhile installing/using Invoice Ninja. I’ll have to revisit the Pi install for more detail (and I intend to use it on the pi after the next upgrade, so will do it all again and update here), but in summary, hoping this doesn’t lead to more confusion, as I have a lots of notes, and may leave out something important:

    – Installed Raspbian Stretch Lite
    – Installed Apache/mysql/php
    – Installed composer
    – Created Ninja database
    – git cloned Invoice Ninja (see install docs)
    – composer install of above
    – changed file permissions (see install docs)
    – configured ninja.conf
    – installed any fonts I was using (optional)

    in reply to: New Mobile App – Logging in to Self Host #16580

    theFlash
    Participant

    Ah so you started with the Android App, then used that for the iOS app. Sorry I’d imagined you did it the other way around. Get it now. Sounds just the ticket. Will continue to install/update the massive Android Studio then…

    in reply to: New Mobile App – Logging in to Self Host #16578

    theFlash
    Participant

    Ok so you copied stuff over from your Mac flutter set up presumably, where you did the iOS app dev.

    in reply to: New Mobile App – Logging in to Self Host #16575

    theFlash
    Participant

    That’s really helpful as I’m just messing up the install on Windows now. Will have a read.

    Quick question – can you develop (and emulate) the iOS app within the windows set up?

    Looking to develop both Android and iOS, ideally on the one development machine.

    • This reply was modified 1 year, 6 months ago by  theFlash.
    in reply to: New Mobile App – Logging in to Self Host #16572

    theFlash
    Participant

    Thanks Hillel. I just installed it before your update. After updating I am presented with the self host login option. I’ll need to update my install before testing.

    Interested to see your use of Google Flutter as I’m just starting to look at that at the moment.

    Thanks,

    in reply to: Attaching Documents to Quote #16348

    theFlash
    Participant

    Think I’ve found the answer: Advanced Settings -> Email Settings -> Attach documents to quote

    in reply to: Searching for Invoices/Quotes – Title in grids? #15018

    theFlash
    Participant

    Thanks Hillel. Appreciate your efforts, I was more frustrated at my own stupidity as I assumed I was going about it wrongly.

    Perhaps there should be a search form, as you may be suggesting – just a form for all fields, with user entered wildcards, connecting to a stored procedure or creating a search query from the input. i.e. a simple one to start with without any auto-suggestion. Just thinking aloud in case it helps, which it probably doesn’t.

    Added the following to github:
    Search feature:
    https://github.com/invoiceninja/invoiceninja/issues/2225
    Custom field column in grid:
    https://github.com/invoiceninja/invoiceninja/issues/2226

    in reply to: Searching for Invoices/Quotes – Title in grids? #15016

    theFlash
    Participant

    Ah ok, that will be why then. There’s no mention of it on Trello that I can see. Not sure if you know this yet: Will it be as simple as typing part of the title (any text within the field), or will it need to be the start of the text, and will the search field need a prefix?

    Wonder how others get around this. How on earth does anyone find an old invoice to check what you’ve previously quoted, without knowing the invoice number, or even sometimes the client!?

    in reply to: Searching for Invoices/Quotes – Title in grids? #15013

    theFlash
    Participant

    I mean a global way of searching for an item (primarily an invoice, but also a quote) by other than client name or invoice number. Human readable text that is relevant to an invoice (in my case ‘Title’ but could equally be an item description). If you don’t know the invoice number, and the client has hundreds of invoices, how can you easily find it…

    I’ve just realised that ‘Title’ is a custom field I must have added, and therefore my post should read be talking about a Custom Field in the grid. However, perhaps I should also be asking why ‘Title’ isn’t a standard field – am I using it wrongly perhaps, but I need a human readable title to my invoices so I know what its regarding.

    Could you tell me how I search in the top right using the Title custom field? Tried typing part of an invoice title and it doesn’t work.


    theFlash
    Participant

    Thanks – I’m going to take a look at the Via ARTiGO range, not heard of them before. I also came across the Intel NUC kits and mini pc’s – perhaps the i5 processor may be a good option, although they are with fans. I’ll do some research.

    The cron job to restart ntp every minute appears to be working, the send-invoices and send-reminders has run today on time, although this isn’t the ideal solution.


    theFlash
    Participant

    My ideal solution would be a mini (fanless) pc running Ubuntu and Invoice Ninja, with a backup to NAS. Whilst I like the convenience of VM’s, I’m concerned about having too many eggs in one basket should there be a disk error. Also trying to be as energy efficient as I can and not have the PC on all the time.

    With the RaspberryPi3B+ you can now boot directly off a usb SSD, which would solve my concern about running all off an SD card. However, I’m still not sure about Raspbian – more comfortable using Ubuntu directly with known libraries, updates etc. but that isn’t available from an authorised source for Pi 3B+ yet.

    Clearly I’m not sure what the heck I’m doing, but trying to find a mini pc that runs standard Ubuntu server doesn’t seem to be very obvious. I’m not sure which are the reputable brands these days.

    In the meantime I’ve added a cron job to the VM to restart ntp service every minute. Not sure if that will work.


    theFlash
    Participant

    Its on a host OS that sleeps after in activity (its a bit of an odd setup for testing purposes).

    When the host OS goes to sleep, Hyper-V suspends the guest OS (where IN is installed). Upon wake, the guest OS resumes and will therefore assume the time is still that time when it suspecnded – its doesn’t seem to have access to the BIOS clock.

    Hyper-V is supposed to keep the guest OS in time with the host OS, but no matter what you do with NTP etc, it can take sometimes 30 mins to correct itself, I’ve observerd.

    So if I wake the PC to run the cron jobs, they don’t run as the guest OS is running behind.

    One solution I can think of it getting the host OS to run a scheduled task to trigger a time reset on the guest OS, but it seems a bit of a hack for something that should correct itself.

    Now you can see why I’m looking at using a raspberry Pi – although I have concerns about the reliability of an SD card longer term.

    • This reply was modified 1 year, 9 months ago by  theFlash.

    theFlash
    Participant

    Darn it. I’ll need to fix the time on the hyper-v instance on wake.

    in reply to: Invoice Ninja on A Raspberry Pi? #14467

    theFlash
    Participant

    Thanks. I’ve got it working, but will do it all again tomorrow as I think I installed a load junk when trying to install a custom font I use (tried to install grunt/npm and got a load of errors).

    Regarding any custom fonts, it looks like, to avoid the above issue, I can just copy over any font files in invoice-fonts and also .js font files in js/vfs_fonts and then the PDF’s render as expected. Originally I had to do a sudo php artisan db:seed --class=FontsSeeder operation.

    I used php 7.0 (which is fine with mcrypt) and Raspian is now defaulting to MariaDB, so had to use that also.

    In fact, once I’ve installed the usual requirements, can’t I just copy the entire ninja directory from another (Ubuntu) working installation, then dump and import the matching database, and then add the two cron jobs? Or is it not that simple?

    in reply to: Invoice Ninja on A Raspberry Pi? #14465

    theFlash
    Participant

    Just looking at this (may use Apache for other reasons)…does anyone know where I can find an up to date list of system requirements for installing Invoice Ninja?

    I used to refer to this page:
    http://docs.invoiceninja.com/en/latest/install.html

    Which, for Ubuntu/Apache refers to this page which appears quite outdated:
    http://blog.technerdservices.com/index.php/2015/04/techpop-how-to-install-invoice-ninja-on-ubuntu-14-04/

    If I want to install php 7.2 for example, what do we do about mcrypt?

    If anyone has a list of which libraries to install, that would be very handy.

    in reply to: Invoice Ninja on A Raspberry Pi? #14463

    theFlash
    Participant

    Thanks Mikey242. If that works it will save a lot of fiddly work as it looks like the Raspberry users are still waiting for others to update their official distro’s to run on the new Pi3B+.

    I’ll try that once I’ve ordered Pi power supply I’ve just lost.

    I’m surprised there appears to be no posts on this forum of others that have tried this – perhaps its so easy its not worth these posts (wishful thinking).

    in reply to: Reoccurring expenses dates #14459

    theFlash
    Participant

    Thanks Hillel. I’ve just created the feature request for adding day of month option to recurring expenses:

    https://github.com/invoiceninja/invoiceninja/issues/2161

    in reply to: Small template issue when updating to 4.4.3 #14449

    theFlash
    Participant

    Just to confirm, this issue (empty variables having their variable names displayed on PDF’s) is addressed as Hillel described, in the newly released version 4.4.4

    in reply to: Reoccurring expenses dates #14448

    theFlash
    Participant

    Thanks for the minor release Hillel (4.4.4).

    The profit and loss report issue I mentioned, where the expenses were grouped into one month, even though they occurred over multiple months, is fixed.

    The days that the re-occurring expenses runs, I suspect won’t be fixed. I’ll have to wait a month to find out to be sure, but if the code checks the “last_sent_date” of the “recurring_expenses” table, then I expect it won’t realise that is already 11 days from the “start_date”.

    The issue may have been caused from the fact the the device I am testing the self hosted version on (on a VM) goes to sleep after some time of activity. It is set to wake 3 minutes before the cron task runs, but I am wondering if that is not enough time for the VM to correct its time, and realise its time to runs its jobs. It appears to work, but perhaps on 11 occassions, it didn’t.

    I’ll probably have to wait until this months expenses have all been created, then change the date to the correct one for the next month, as you describe.

    Would be nice if there was a feature such as in the recurring invoices where you can pick the 1st/2nd etc day of the month.

    in reply to: Automatic Update Script (Major Update) #14447

    theFlash
    Participant

    Works well on Invoice Ninja 4.4.4.

    Just had to carry out some prerequisites. In summary for others, even though this information is available in other posts on this forum:

    1) wget/ftp update script to /usr/local/bin directory
    2) change permissions: sudo chmod 755 yourupdatescriptfile.sh
    3) install locate as detailed in Titanfail’s post: sudo apt install locate
    3) install dos2unix to remove possible line returns: sudo apt install dos2unix
    4) remove line returns: sudo dos2unix yourupdatescriptfile.sh
    5) run the script: sudo yourupdatescriptfile.sh

    Thanks very much for this scipt for this script Titanfail. Be nice if there was a button in Invoice Ninja self hosted to run this script with some GUI feedback, but I guess that would mean having some self-hosted specific code.

    in reply to: Invoice Ninja on A Raspberry Pi? #14446

    theFlash
    Participant

    Thanks. Not sure I’m up to speed enough on the Linux side of things, but may give it a go. I may have compounded things by buying a Pi3B+, for which there seems to be few official Linux builds at the moment.

    Ideally I’d like officially supported distro’s so that I don’t have problems with updates etc.

    Being slighlty more familiar with Ubuntu, I’ve found this page, which appears, if I’m reading it correctly, to give details on how to edit the Pi2 distro of Ubuntu to install ubuntu 18.04 on a Pi3B+. I’m not sure yet of the difference between ARMHF and ARM64 in terms of ease of installation or performance:

    https://wiki.ubuntu.com/ARM/RaspberryPi

    Anyy helpful comments most welcome! I suspect, if it spossible, there are quite a few people who may want to run Invoice Ninja this way (rather than using VM’s).

    in reply to: Reoccurring expenses dates #14436

    theFlash
    Participant

    Thanks Hillel. If delayed/missed cron is the reason, is there a way to take the expense schedule back to the original day without having to delete and recreate it?

    Would prehaps changing the expense day, saving, then setting back to the right day and saving again, reset things?

    • This reply was modified 1 year, 10 months ago by  theFlash.
    in reply to: Reoccurring expenses dates #14427

    theFlash
    Participant

    Understood. Will await release which fixes empty variable bug, then test again and report back.

    Can I just ask that if a cron job is missed and runs the next day, will the next monthly expense occur on that (delayed) day next month, or does it always look back at the day the expense was set up?

    I don’t think this is the cause, but I will check the cron log.

    in reply to: Small template issue when updating to 4.4.3 #14334

    theFlash
    Participant

    Thanks. I’ll roll back and wait until then as I cannot see a way around it in my custom templates.

    in reply to: Small template issue when updating to 4.4.3 #14332

    theFlash
    Participant

    Thats great. Are we talking weeks, months or days (sorry I had to ask!)

    in reply to: Small template issue when updating to 4.4.3 #14330

    theFlash
    Participant

    Yes. It seems it needs specific layout (see below). Will the next release go back to allowing me to use those individual variables Hillel? One template separates them you see:

    ,
     {
        "fontSize": 8,
        "columns": [
          "$notesAndTerms",
          {
            "text": "",
            "width": "0",
            "margin": [
              0,
              0,
              0,
              0
            ]
          }
        ]
      },
    in reply to: Small template issue when updating to 4.4.3 #14328

    theFlash
    Participant

    Forgive me, that’s what I tried, but when I do the following, the “Terms” title get displayed, but no other information:

    ,
      {
        "text": "$notesAndTerms",
        "fontSize": 8,
        "margin": [
          0,
          0,
          0,
          0
        ]
      },
    in reply to: Small template issue when updating to 4.4.3 #14326

    theFlash
    Participant

    Thanks. For a quick fix, if possible, using your new $notesAndTerms variable, how would I get the notes and terms to display without the $subtotals bit?:

      {
        "columns": [
          "$notesAndTerms",
          {
            "table": {
              "widths": [
                "*",
                "40%"
              ],
              "body": "$subtotals"
            },
            "layout": {
              "hLineWidth": "$none",
              "vLineWidth": "$none",
              "paddingLeft": "$amount:34",
              "paddingRight": "$amount:8",
              "paddingTop": "$amount:4",
              "paddingBottom": "$amount:4"
            }
          }
        ]
      },
    in reply to: Number of custom invoice designs #12731

    theFlash
    Participant

    Perhaps that what I did – so are there max 3 custom designs to play with out of the box (or did I perhaps do some magic with the code I’ve forgotten about to create those 3)

    in reply to: No Line Total after update #11862

    theFlash
    Participant

    Fixed work fine.

    Thanks Hillel

    in reply to: No Line Total after update #11861

    theFlash
    Participant

    Think I’m confusing myself – you probably right. Will look the fix..,

    in reply to: No Line Total after update #11859

    theFlash
    Participant

    Saying that – previously the qty field was hidden using the product fields, but still appeared on the interface (not on the PDF). Is this how its intended to appear again after the fix?

    Just because the qty field isn’t on the invoice, doesn’t mean it is always 1 – at least not for me.

    in reply to: No Line Total after update #11858

    theFlash
    Participant

    Thanks Hillel. Is that minor release weeks away do you think? Anything I can change manually in the meantime?

    in reply to: No Line Total after update #11856

    theFlash
    Participant

    Looks like that solved it. Weird that it disappeared on upgrade.

    However it now displays qunatity column on the custom invoice design – when I want just item,desciption, line total (and not quantity). Any idea how I remove it from the pdf but keep it on the interface?

    {
    “style”: “invoiceLineItemsTable”,
    “table”: {
    “headerRows”: 1,
    “widths”: “$invoiceLineItemColumns”,
    “body”: “$invoiceLineItems”
    },
    “layout”: {
    “hLineWidth”: “$notFirst:0.25”,
    “vLineWidth”: “$none”,
    “hLineColor”: “#e6e6e6”,
    “paddingLeft”: “$amount:8”,
    “paddingRight”: “$amount:8”,
    “paddingTop”: “$amount:4”,
    “paddingBottom”: “$amount:4”
    }
    },
    {
    “columns”: [
    {
    “text”: “”,
    “width”: “*”,
    “margin”: [
    0,
    0,
    0,
    0
    ]
    },
    {
    “width”: 158,
    “style”: “subtotals”,
    “table”: {
    “widths”: [
    60,
    60
    ],
    “body”: “$subtotals”
    },
    “layout”: {
    “hLineWidth”: “$none”,
    “vLineWidth”: “$none”,
    “paddingLeft”: “$amount:10”,
    “paddingRight”: “$amount:10”,
    “paddingTop”: “$amount:4”,
    “paddingBottom”: “$amount:4”
    }
    }
    ]
    },

    in reply to: No Line Total after update #11854

    theFlash
    Participant

    Just realised that the quantity field is missing from the interface, so its not able to work out what to render. Not sure why its missing at the moment.

    in reply to: No Line Total after update #11853

    theFlash
    Participant

    I’ve just sent that. The PDF does not render the line total. It will render everything else ok as I change it, even though those console errors/warnings still appear.

    in reply to: No Line Total after update #11847

    theFlash
    Participant

    Hi Hillel, will email – whats the email address?

    Tried it on Chrome with same result. Strangley, amending invoices works, but creating new ones fails as described, then I can’t amend afer that. Almost as it pdfmake crashes then can’t recover.

    I wondering if its fonts.

    in reply to: No Line Total after update #11834

    theFlash
    Participant

    This is the error that is displayed in the console as the script is trying to display the total:

    PDF d22a9ccb7b5b9a0369e5b6c4ca0593ce [1.3 pdfmake / pdfmake] (PDF.js: 2.0.106)
    viewer.js:1547:7
    Warning: TT: undefined function: 32

    in reply to: Any way to make invoice unpaid? #11798

    theFlash
    Participant

    Great thanks Hillel.

    in reply to: Update Page Does Load #11649

    theFlash
    Participant

    …adn as I typed that it completed!

    in reply to: Update Page Does Load #11648

    theFlash
    Participant

    I’ve waited about 15 mins so far….

    in reply to: Upgraded from 3.5.1 to 3.9.2, custom PDF's Don't Load #9532

    theFlash
    Participant

    Ah our posts crossed Hillel. Thanks.

    Are those composer warnings anything to be concerned about before I start using this install?
    If they are I can start again but use the zip download instead.

    in reply to: Upgraded from 3.5.1 to 3.9.2, custom PDF's Don't Load #9531

    theFlash
    Participant

    OK to partly answer my own question and save Hillel some time:

    The lines:
    {
    “style”: “invoiceLineItemsTable”,
    “table”: {
    “headerRows”: 1,
    “widths”: [
    “30%”,
    “*”,
    “15%”
    ],
    “body”: “$invoiceLineItems”
    },

    Need to be replaced by:
    {
    “style”: “invoiceLineItemsTable”,
    “table”: {
    “headerRows”: 1,
    “widths”: “$invoiceLineItemColumns”,
    “body”: “$invoiceLineItems”
    },

    I’m not sure why, but I guess I was originally trying to hide the qty and item cost fields by hacking the pdf template. I assume the ability to hide those fields using the drop downs are a new feature and perhaps it broke my hack?

    So the fix was replacing the text abive in the DPF template, then choosing to hide the item cost and qty fields

    in reply to: Upgraded from 3.5.1 to 3.9.2, custom PDF's Don't Load #9525

    theFlash
    Participant

    I’ve pinned it down to this section, specifically the widths – any ideas why this doesn’t work any more?:

    {
    “style”: “invoiceLineItemsTable”,
    “table”: {
    “headerRows”: 1,
    “widths”: [
    “30%”,
    “*”,
    “15%”
    ],
    “body”: “$invoiceLineItems”
    },
    “layout”: {
    “hLineWidth”: “$notFirst:0.25”,
    “vLineWidth”: “$none”,
    “hLineColor”: “#e6e6e6”,
    “paddingLeft”: “$amount:8”,
    “paddingRight”: “$amount:8”,
    “paddingTop”: “$amount:4”,
    “paddingBottom”: “$amount:4”
    }
    },

    in reply to: Sub Headings in Quote table #8601

    theFlash
    Participant

    Subheadings would definately be a great feature to have. I have to manually edit each PDF in Acrobat in order to add this at the moment.

    Perhaps a drop down next to each line to give the option of making it a subheading from the contents of the first cell.

    in reply to: Sub Headings in Quote table #8599

    theFlash
    Participant

    I tried something like that, but you’d still have $0.00 on the cost next to that sub heading wouldn’t you?


    theFlash
    Participant

    Ok. Perhaps I’ll wait until then to upgrade…


    theFlash
    Participant

    Ah ok. Sorry. Is there a notification for the self hosters? I may have unchecked a box somewhere.

    in reply to: Converting Quote to Invoice – Invoice Number not correct #8025

    theFlash
    Participant

    Goodness Hillel. That was quick.

    in reply to: Custom Quote Design: Invoice items table #8023

    theFlash
    Participant

    Hi Hillel,

    Thats what I meant. That will do it – thanks.

    in reply to: Bank Transfers #8010

    theFlash
    Participant

    Its US Only:

    “You can only accept funds in USD and only from U.S. bank accounts. In addition, your account must have a U.S./USD bank account to accept ACH payments.”

    in reply to: Bank Transfers #8008

    theFlash
    Participant

    I’m not sure ACH works in the UK. I think our equivalent is Faster Payments, but I’m not sure which of the available gateways allow it?

    Or does ACH work here?

    in reply to: Bank Transfers #8006

    theFlash
    Participant

    Thanks Hillel. I just wondered if there’s a way of minimising the checking of the bank account and allowing the customer to change the invoice to ‘Customer says they’ve paid’ status.

    Perhaps at that point it prompts you to manually check and then enter the payment. Otherwise I may forget to check, client may not tell me, and the reminders may go out.

    Perhaps a new feature request?

    in reply to: Local PhantomJS PDF Generation #7997

    theFlash
    Participant

    The issue was, in the end, a simple one. No end of changing permissions on the Bootstrap or Storage folder helped. Then I noticed that the Boostrap folder had a ‘read only’ tick on it, as windows tends to do with downloaded files.

    Removing that seems to have cured the problem (so far). Took a few hours to figure out so I hope that helps someone.

    in reply to: Reoccurring invoices and credit cards #7994

    theFlash
    Participant

    Thanks Hillel,

    Does the payment page look any different for reoccurring ones – i.e. does it say on the payment page “this is a monthly payment” or is it down to putting that in the description on the invoice page?

    in reply to: Payments and SSL #7988

    theFlash
    Participant

    And also if either of them say their name in the bottom of the payments page (which I don’t want).

    in reply to: Payments and SSL #7987

    theFlash
    Participant

    Thanks Hillel.

    Do you, or anyone eles reading this, know if we need to be PCI compliant if only storing the token as you describe (and presumably the last few digits of the card number)?

    My question really relates to what sort of SSL certificate is required. I think I see here that InvoiceNinja.com only uses a DV (domain validated) one rather than the OV (Organisation validated) or EV (extended validation) one, is that correct?

    I am hoping I’m ok to use the cheaper DV ssl certificate to host if possible.

    Also, Hillel, I am trying to see what the payment page looks like for Braintree or Stripe before setting one up. Which does your system use on the white label payment page? (or does it look the same for both).

    Are all functions with both gateways the same (e.g. can you refund payments within Invoice Ninja using either gateway?

    My decision then comes down to which is cheaper and faster to transfer payments to me(!)

    Thanks

    in reply to: Payments and SSL #7984

    theFlash
    Participant

    PS: I guess my question is particularly with Stripe and Braintree in mind, as I understand those payment pages are actually on the localhost, but also for any other payment methods available within Invoice Ninja.

    in reply to: UK Hosting Recommendations #7976

    theFlash
    Participant

    I’m looking more closely at Amazon Lightsail and Linode. If anyone has any comments on these, please do post. Remember I’m looking for UK (i.e. probably London) based presence.

    I appreciate the comments and offers on this thread. I do have a high level of windows server experience and I do intend to follow the guides on securing the server with failtoban, SSH, firewall etc.

    I personally don’t like the thought of using shared hosting this application.

    in reply to: Invoice Dates in future – are the emails delayed? #7974

    theFlash
    Participant

    Thanks Hillel. I did that. Will change the time to early tomorrow for my tests though…

    in reply to: Invoice Dates in future – are the emails delayed? #7971

    theFlash
    Participant

    Just to clarify: Just mark it ‘sent’, and let the first reminder be an invoice email “0 days after the Invoice Date” instead?

    in reply to: Local PhantomJS PDF Generation #7970

    theFlash
    Participant

    Thanks for your suggestions though Dali. Much appreciated.

    in reply to: Local PhantomJS PDF Generation #7967

    theFlash
    Participant

    My server is used for some advanced .net websites. Don’t want to install Apache in case there’s some issues…

    I’m not convinced its the web server yet. I suspect I’m missing something obvious on the php side.

    in reply to: Local PhantomJS PDF Generation #7965

    theFlash
    Participant

    I did post it above:

    fopen(C:\inetpub\wwwroot\ninja\bootstrap/cache/compiled.php): failed to open stream: Permission denied

    but its not permissions – I’ve allowed everything.

    in reply to: Local PhantomJS PDF Generation #7963

    theFlash
    Participant

    That’s what I’m trying (i.e. a separate site on windows 2008 server). The error message “whoops something went wrong” and even the logs are not helping.

    I’ve got it running on Ubuntu, but my primary server is windows.

    Did you install composer for PHP when you installed it in Windows 10 can you remember? That may be where my error lies…

    in reply to: Local PhantomJS PDF Generation #7961

    theFlash
    Participant

    Dali could I ask – did you set your home folder in IIS to be /public/ or the main ninja folder?

    in reply to: UK Hosting Recommendations #7959

    theFlash
    Participant

    On that note (security, ip-tables etc), is it possible to block access to the main Invoice Ninja login to all but speficied IP addresses, and allow access to the customer portal part of it to other specified ip addresses?


    theFlash
    Participant

    Hi,

    Yes, that’s what I’ve done, but there’s only two custom fields (?) I think and I’ve used them up doing this.

    My suggestions were because I suspect others would need these as standard, for your next version(?). Its quite useful to have an invoice/quote name for exmaple. I add this to the email titles and PDF content, but would also be good if the title could be added to the PDF filename also.

    Its much more humanly readable to see ‘Invoice ABC 123 – ACME project’ than just ‘Invoice ABC 123’ I think.


    theFlash
    Participant

    My pleasue.

    (there’s a typo in it – there should be two ‘if’s but I cannot edit the post)

    If it’s not too much effort, and rather selfishly, may I suggest fields for:

    Entity Name (i.e. Quote/Estimate)
    Invoice Title
    Requested By (Sometimes a quote/invoice needs to say who in the company asked for it)

    ..in your next version.


    theFlash
    Participant

    This worked (see below), in terms of renaming the sent PDF. The download PDF option within the CMS still says ‘Quote’ in the filename. I suspect this is a separate function however, as I can see the ‘_’ is has changed to ‘-‘in that filename.

    Edited function looks as follows:

    `public function getFileName()
    {
    $entityType = $this->getEntityType();
    if (if ($entityType == ENTITY_QUOTE))
    {
    return ‘Estimate’ . ‘_’ . $this->invoice_number . ‘.pdf’;
    }
    else
    {
    return trans(“texts.$entityType”) . ‘_’ . $this->invoice_number . ‘.pdf’;
    }
    }`


    theFlash
    Participant

    I’ve just noticed you’ve suggested editing the ‘getFilename’ function in this post:
    Can I change PDf Filename

    Would it be ok if I change this:

    public function getFileName()
        {
            $entityType = $this->getEntityType();
    
            return trans("texts.$entityType") . '_' . $this->invoice_number . '.pdf';
        }

    to this:

    public function getFileName()
    {
    $entityType = $this->getEntityType();
    if (trans(“texts.$entityType”) == “Quote”)
    {
    return trans(“Estimate”) . ‘_’ . $this->invoice_number . ‘.pdf’;
    }
    else
    {
    return trans(“texts.$entityType”) . ‘_’ . $this->invoice_number . ‘.pdf’;
    }
    }


    theFlash
    Participant

    Another question on this approach:

    ‘Estimate’ has replaced ‘Quote’ in the email title and template sucessfully using the suggested approach. However, the attached PDF is named “Quote_ABC123” (ABC123 = quote number). Is there any way of specifying the file name convention so I could replace ‘Quote’ with ‘Estimate’?


    theFlash
    Participant

    Yes it was stupid. I found it in Settings => Invoice Design (unsurprisingly)


    theFlash
    Participant

    Probably a stupid question..but where do you set the default template for Quotes/Invoices?

    in reply to: Multiple fonts per PDF #7934

    theFlash
    Participant

    It works when I create PDF’s from the desktop (Word/Acrobat etc), or is that not relevant?

    in reply to: Multiple fonts per PDF #7932

    theFlash
    Participant

    Thanks Hillel.

    I added the second custom font, in the same way I added the first one, then specify it as a header font.

    When I try to call the font directly “font”: “MyFontName”,

    I get “Error: No unicode cmap for font”.

    I did notice that the command:
    sudo php artisan db:seed –class=FontsSeeder

    Didn’t seem to do much (I thought I saw some output last time I ran it).


    theFlash
    Participant

    Thats an idea. But does InvoiceNinja say “Quote…” in the email it sends as the subject?


    theFlash
    Participant

    If anyone knows if there is any way to change ‘Quote’ to ‘Estimate’ as the $entityType for quotes, please post here.

    Hillel, as we limited to 2 custom fields per invoice (as I guess I could use a custom field as a bit of a hack)?


    theFlash
    Participant

    That may have worked.
    To anyone else reading this, the absolute position appears to be in mm (not inches) from the top left. You may need yo adjust the global margin settings for the document to get the item to go to the very bottom of the page.


    theFlash
    Participant

    I guess an invoice setting “Footer only on First Page” would be one way to solve it in the longer term – just in case you’re working on the next version.

    I have found this setting:
    “absolutePosition”: {“x”: 16, “y”: 18},
    Where the numbers are coords of the document in inches. Just playing with this….

    see this post


    theFlash
    Participant

    Its a same there’s a limited subset of styling via PDFMake as I took some time to look for ‘Titlecase’ setting, but there doesn’t appear to be one.

    On my invoice design there’s a different footer on the first page (the second/third pages are the terms, with only the page number and invoice ref in the footer).

    I was just fiddling with the first page of my custom design, adding a text item with a top margin to push it to the bottom, and I now realise that the position of that ‘fotter’ item will change depending on the variable height of the items table above.

    Is there any way to position an item from the bottom, as I presume you have done with the $invoiceFooter text?

    Many thanks


    theFlash
    Participant

    Oh dear I should have noticed that. Sorry.

    in reply to: Multi-Page PDF #7908

    theFlash
    Participant

    Hi Hillel,

    That’s very good of you. Could I confirm the email – is it [email protected]invoiceninja.com?
    Don’t want to send my terms to the wrong place!

    in reply to: Multi-Page PDF #7904

    theFlash
    Participant

    I tried added a page break and 1.5 pages of text to the PDF Invoice template. Didn’t get very far. The browser hung after adding 2 paragraphs.

    This has really stopped me in my tracks, until I can think of a work around. After Googling I can see that many are after the same feature (not just for Invoice Ninja). There is really no replacement for adding Terms and Conditions to an Invoice or Quote. Separate attachements or a link to a page somewhere are not the same thing (probably not legally the same things either).

    In my oppinion a feature desperately needed.

    in reply to: Local PhantomJS PDF Generation #7903

    theFlash
    Participant

    Actually, in case anyone has a suggestion, the laravel log says:

    fopen(C:\inetpub\wwwroot\ninja\bootstrap/cache/compiled.php): failed to open stream: Permission denied

    I’ve read the troubleshooting and tried allowing IUSR and Application Pool identities full access to that folder.

    I’m wondering if the separators are the issue as they change from \ to / ?

    in reply to: Local PhantomJS PDF Generation #7902

    theFlash
    Participant

    I did all that (Windows Server 2008 R2 IIS)
    I believe mcrypt was already in there, so did nothing but set the database up and pointed IIS to the public folder.

    I imported the .htaccess file also.

    Managed to get to the point of running the setup page, which ultimately said “whoops something went wrong”, even though it set up the mySQL tables as expected.

    If there is something obvious you can remember you did that I am missing, please let me know and I’ll give it another go.

    Kind regards,

    in reply to: Multi-Page PDF #7899

    theFlash
    Participant

    I can see you mentioning it will be available within a month. I will probably need to sort something out before then.

    How does the current version use “Default Messages – Invoice Terms” and “Default Messages – Invoice Footer” ? Are these added to the invoice emails (rather than available to the invoice itself)?

    And how does one go about adding a header to the PDF template, but only on pages 2 and 3 (sorry several questions in one thread).

    Thanks

    in reply to: Attaching invoices to email and SSL with local PhantomJS #7895

    theFlash
    Participant

    Thank you. I will give this a try when I install SSL. Not sure if this is affecting everyone who needs to attach PDF using local PhantomJS?

    For reference, I believe you are suggesting:

    Changing:

    $client = Client::getInstance();
    $client->isLazy();
    $client->getEngine()->setPath($path);

    To:

    $client = Client::getInstance();
    $client->addOption('--ignore-ssl-errors=true');
    $client->isLazy();
    $client->getEngine()->setPath($path);
    in reply to: Local PhantomJS PDF Generation #7893

    theFlash
    Participant

    Dali – I’m curious as to how you installed Invoice Ninja on windows – this would be great – I don’t supposed you could possibly outline your installation steps?

    in reply to: Attaching invoices to email and SSL with local PhantomJS #7892

    theFlash
    Participant

    HI Hiker,

    Did you ever solve this. I’m about to try the same. I’ve read some with similar issues (not using Invoice Ninja) have tried the following:
    –ssl-protocol=tlsv1
    -ignore-ssl-errors=true
    –ssl-protocol=any

    but as you say, where to pass this in terms of invoice Ninja.

    I’d say this was critical to all those who self host – i.e. the need to use SSL and PDF attachments locally.

    in reply to: Reoccurring Credit/Debit Card charging – how to? #7879

    theFlash
    Participant

    THanks Hillel.

    I would probably use either of them.

    I’m getting the impression in some articles that you prefer Stripe over Paypal? If this is correct, is there a general reason?

    I ass only so I can focus my efforts on the right one (or perhaps both) – I don’t want to use one if there are some ongoing issues (particularly with auto-billing).

    Many thanks.

    in reply to: Reoccurring Credit/Debit Card charging – how to? #7877

    theFlash
    Participant

    Thanks Hillel,

    Sorry I edited my question as you replied. I added:
    Is (generally) the payment page on the InvoiceNinja end, or at the gateway? (i.e. do you ahve to customise the payments page to look like its on your own site?)

    I’ll read up about Braintree etc. Just looking for the docs…

    in reply to: Reoccurring Credit/Debit Card charging – how to? #7875

    theFlash
    Participant

    Hi Hillel,

    Can it also be done using PayPal (I only ask as that may be more familiar over here in the UK to end users than Stripe)?

    (This is self hosted)

    And I’ve just watched this video on integration with Stripe:

    Is that last payment page on my own server (under my own domain) or is it an iFrame/page on the Stripe servers?

    Thanks!

    in reply to: Reoccurring Credit/Debit Card charging – how to? #7872

    theFlash
    Participant

    Also, in the case that Invoice Ninja can achieve this, are the credit card details stored in the local database?

    in reply to: Windows Install Procedures #7397

    theFlash
    Participant

    Did you have any luck installing it on windows server? Wanting to do the same…

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

Posted in: