Page 1 of 1

Wrong Invoice number Printing

Posted: Mon Feb 01, 2010 7:41 pm
by Jaz
I don;t know if this is an OrederID vs OrderNumber problem or not.

Then I try to print an invoice, it print an invoice 3 orders older. For example, I try to print invoice 2204, 2201 shows up on the screen. The invoice is correct, but for the wrong order. My packing ships print correctly.

Thanks,

Re: Wrong Invoice number Printing

Posted: Tue Feb 02, 2010 12:56 pm
by mazhar
What is your AbleCommerce versoin?

Re: Wrong Invoice number Printing

Posted: Tue Feb 02, 2010 1:37 pm
by igavemybest
Juat look at the code. If it says OrderID then change it see if that is the issue.

Re: Wrong Invoice number Printing

Posted: Wed Feb 10, 2010 2:02 pm
by Jaz
I am on 7.03. I guess I have to change all the OrderId to OrderNumber in the email templates. Will this fix the Order Manager, so it finds the right order. Maybe this is a dumb question, but where are the files for the email templates. I can't find them.

Re: Wrong Invoice number Printing

Posted: Thu Feb 11, 2010 7:29 am
by mazhar
You need to have a look under Website\App_Data\EmailTemplates\1 folder

Re: Wrong Invoice number Printing

Posted: Wed Feb 17, 2010 8:59 pm
by Jaz
Thanks. I got all my Email template corrected, but the subject for all the emails is still showing the OrderId, not the OrderNumber. Is the subject set somewhere else?

Also, I can't get the batch processing features to work. They are all trying to pull from the orderId, which gives me the wrong order. Where are the files that control the batch processing?

Is there any type if reference that tells what files serve what function? I am sure it is obvious to someone that works on it every day, but I only modify the site when there is a problem, or I need to add a function. It may be several months between when I do one task and another task.

Thanks,

Re: Wrong Invoice number Printing

Posted: Thu Feb 18, 2010 8:18 am
by mazhar
What are you using in subject field of Email template $order.OrderNumber or $order.OrderId. Did you updated that part as well.
Batch operation files for orders are in different folders under Website/Admin/Orders folder. Create some demo orders and then trigger the batch operation upon them, each batch operation will take you to appropriate file and you can watch his full location from the browser URL.

Re: Wrong Invoice number Printing

Posted: Sun Feb 28, 2010 7:10 pm
by triplw
I have the same issue. Packing slips print correctly but the numbers are off on the invoices.
I have looked at the files "/Admin/Orders/Print/PackSlips.aspx.cs" and "/Admin/Orders/Print/Invoices.aspx.cs".
I can't see what's different about them. Can you please tell me exactly what lines of code need to be changed.

Re: Wrong Invoice number Printing

Posted: Mon Mar 01, 2010 9:27 pm
by triplw

Re: Wrong Invoice number Printing

Posted: Mon Mar 22, 2010 3:20 am
by Jaz
Is the subject field located in the email templatre, or somewhere else?

Re: Wrong Invoice number Printing

Posted: Mon Mar 22, 2010 7:10 am
by jmestep
Subject field is in the admin where you click to edit a template.

Re: Wrong Invoice number Printing

Posted: Mon Mar 22, 2010 3:03 pm
by Jaz
Thanks. I was editing the via FTP. Is this admin feature new?