Invoice Number Printing Suggestion
Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Suggestions
Forum Description: ProductCart Suggestions
URL: https://forum.productcart.com/forum_posts.asp?TID=5397
Printed Date: 23-November-2024 at 10:12am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Invoice Number Printing Suggestion
Posted By: Dayv3
Subject: Invoice Number Printing Suggestion
Date Posted: 03-January-2013 at 5:58pm
Suggestion for Early Impact,
After we get a sale we print two copies of the invoice. The first one goes in the box with the order that is shipped to the customer and the second copy of the invoice gets the shipping related paperwork stapled to it and then filed.
What happens is that the shipping paperwork then covers the invoice number that is printed on the invoice. To compensate, we hand write the invoice number above the big word invoice on the right hand side of the page, (above the "order date" box).
Would it be possible the next time you make a update to also print the invoice number below the big work "invoice." If the number was printed with the small text used for the date in the order date box, but centered under the "VOI" in invoice it would be very helpful when we are doing the paperwork.
Thanks in advance, Dave
|
Replies:
Posted By: Hamish
Date Posted: 03-January-2013 at 6:04pm
Hi Dave, That sounds like a modification that is specific to your companies particular way of working. Making a custom modification to the form would be the best route and should be very straight forward as the detail is already being printed, so the data is already available.
------------- Editing ProductCart Code?
See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code
|
Posted By: Dayv3
Date Posted: 03-January-2013 at 6:43pm
Posted By: Guests
Date Posted: 03-January-2013 at 8:01pm
Hi Davey,
Hamish is right this is fairly easy. I happened to have done some work in this file not too long ago and thought I could rather quickly help you out since it was still in my head.
I have an easy solution for you if you want to give it a try yourself. You need to open up the pcadmin\OrdInvoice.asp page. Make a back up of this file just in case!
In there look for the following line of code around line 194
<font style="font-size:24px;font-weight:bold;"><% If intPackingSlip <> "1" Then %>INVOICE<% Else %>PACKING SLIP<% End If %></font><br><br>
you need to replace that line with the following
<table> <tr> <td width="43%" height="24" align="center"> <font style="font-size:24px;font-weight:bold;"><% If intPackingSlip <> "1" Then %>INVOICE<BR /><% Else %>PACKING SLIP<% End If %></font> </td> </tr> <tr><td valign="top" align="center"><%=strInvoiceNum%></td></tr> </table>
Then below around line 279 look for the following piece of code
<% dim strInvoiceNum, strAlterInvoiceNum strAlterInvoiceNum=request.Form("AlterInvoiceNum") if strAlterInvoiceNum="" then strInvoiceNum=(scpre+int(qry_ID)) else strInvoiceNum=strAlterInvoiceNum end if %>
Copy (ctrl+c) and CUT (ctrl+x) out that piece of code and bring it up to the top of the page and place it right above the code you just added. It should now look like this.
<% dim strInvoiceNum, strAlterInvoiceNum strAlterInvoiceNum=request.Form("AlterInvoiceNum") if strAlterInvoiceNum="" then strInvoiceNum=(scpre+int(qry_ID)) else strInvoiceNum=strAlterInvoiceNum end if %> <table> <tr> <td width="43%" height="24" align="center"> <font style="font-size:24px;font-weight:bold;"><% If intPackingSlip <> "1" Then %>INVOICE<BR /><% Else %>PACKING SLIP<% End If %></font> </td> </tr> <tr><td valign="top" align="center"><%=strInvoiceNum%></td></tr> </table>
Save the file and run it. You should now see the invoice number that you were asking for.
If you need any help on this please go ahead and contact me at support at wmsmerchantservices
|
Posted By: Dayv3
Date Posted: 04-January-2013 at 8:16pm
Kelly,
Thank you for suppling the code to print the invoice number on the right hand side of the page.
I have not played with the code yet, but your code will help me, and others that may have the need for the same convenience, eliminate an extra step when we process our paperwork.
Thanks, Dave
|
Posted By: Guests
Date Posted: 04-January-2013 at 11:54pm
Dave, I just noticed I was a bit dyslexic on your name there and called you Davey. oops sorry :)
No problem on the bit of code there. Let me know if you have any trouble with it, I'll be glad to help you sort it out.
|
|