Jump to content

Problem creating invoice


danami

Recommended Posts

When I'm in the admin area if I am viewing a client's profile and press the "Create Invoice" link ... an invoice is automatically created and inserted into the database (Before I've even entered any info).

 

If I then navigate away and view the "invoices" screen it tells me (2 records found but doesn't list any of the empty invoices).

 

In the client area they see the empty invoices. There is no way to remove the empty invoices!

 

Screenshots are here:

http://www.danami.com/bugs/admin_area_view_invoice.gif

http://www.danami.com/bugs/client_area_view_invoice.gif

Link to comment
Share on other sites

Lets say I do work for a client and am going to do up an invoice for them. I click the "creat invoice button". The client can INSTANTLY see the invoice that I'm working on BEFORE I've even had the chance to add any items to it yet!!

 

If the client is currently logged in at the time I'm creating the invoice.. they might try paying the unfinalized invoice (say I had only had time to add 1 or two items of a big list)

Link to comment
Share on other sites

Dan, definitely something weird is going on with your WHMCS; I think I'd try reloading it as that looks like it's corrupted or something else is going on. When I create an invoice in WHMCS I can see it in the admin invoices screen straight away, and I can delete it with the little red delete icon next to it.

 

One thing we do when creating an invoice manually to send to a client, especially if I'm creating it ahead of time and accumulating records in it, is to create it and mark it cancelled. That way the client doesn't see it, and when it's complete we do a "Mark Unpaid" to activate the invoice then use the "Send Invoice Created Email" button.

Link to comment
Share on other sites

What I'm talking about is if you click the "Create Invoice" link .. but never complete filling out the whole invoice .. then the invoice is still created and you can't delete it in the admin back end... and the client sees the empty invoice.

 

There is nothing wrong with my install .. this is a fresh install of 3.6.

Link to comment
Share on other sites

I just tried to replicate this on two different installs. I clicked create invoice and then left the window via another link to find a blank invoice had been created for the customer which is viewable in both the admin area and customers client area.

 

I was able to come back and delete the empty invoice without a problem from the admin side. You may want to open a support ticket to find out why this occurs on your install and procedure.

Link to comment
Share on other sites

Yes it seems like something is definitely buggered. Any invoice I add for a client doesn't get listed for me in the admin backend. Also on the invoice screen I am getting javascript errors like this in firefox:

Error: uncaught exception: Permission denied to get property HTMLDivElement.parentNode

 

Do you guys see how if a client is able to see an invoice that I'm currently working on .. how this could be a problem?

Link to comment
Share on other sites

If you care about the invoice showing up before you've finished entering it, simply mark it as cancelled, finish entering it, and mark it as unpaid and send, as I mentioned previously.

 

Danami - you have a bug or corruption specific to your install; the rest of us have no problems deleting invoices from the admin side, even if they are empty. I'd take the advice to submit a support ticket, if you haven't already; or just reinstall.

Link to comment
Share on other sites

Just did a fresh install of 3.6 (Downloaded the zip again from the client area). I get the same errors .. any invoice added DOES NOT get listed... and I get javascript errors in mozilla firefox when I click through the invoice tabs.

 

I have included screen shots (the uploaded ones shrink too much)!!

 

http://www.danami.com/bugs/invoice_bug.gif

http://www.danami.com/bugs/invoice_bug2.gif

invoice_bug.jpg

invoice_bug2.jpg

Link to comment
Share on other sites

I figured it out on my own. The reason the invoices fail was because I didn't have any payment processors enabled yet.

 

Matt has a check in the code to see if any payment processors are enabled but it doesn't work correctly.

 

This also causes all the javascript errors as the invoice dates are not displayed correctly.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated