Changes to invoice in AC 7.0.7

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
pegasusshoes
Ensign (ENS)
Ensign (ENS)
Posts: 7
Joined: Wed Aug 15, 2007 6:14 am
Location: Woodstock, NY
Contact:

Re: Changes to invoice in AC 7.0.7

Post by pegasusshoes » Mon Nov 14, 2011 11:58 am

is there a way to add the order note and shipping notes to vieworder.asp? We wish the print invoice function would print everything on vieworder.asp as this is what we print to file

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Changes to invoice in AC 7.0.7

Post by Brewhaus » Fri Nov 18, 2011 12:45 am

We have everything working the way that we want EXCEPT for the placement of the shipping method. It is easy enough to remove it, but we cannot figure out how to add it to another location (below the payment method). Can someone help with this?
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Re: Changes to invoice in AC 7.0.7

Post by compunerdy » Fri Nov 18, 2011 6:16 am

I had the same issue. It was done as one code block so remove it from the original and add one like this.

Code: Select all

    protected string tcssshipmethod(object dataItem)
    {
        Order order = (Order)dataItem;
        List<string> addressList = new List<string>();
        foreach (OrderShipment shipment in order.Shipments)
        {
            string shipTo = shipment.ShipMethodName;
        
            
            if (!addressList.Contains(shipTo)) addressList.Add(shipTo);
        }
        if (addressList.Count == 0) return "n/a";
        return string.Join("<hr />", addressList.ToArray());
    }
tcssshipmethod you can replace with whatever you want and then just call this block of code the same way it is called for the original block (except changing the name)

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Changes to invoice in AC 7.0.7

Post by Brewhaus » Fri Nov 18, 2011 8:30 pm

I am sorry, but is this code added to the .cs file, or overwriting part of the code? And, what would be the correct call in the .aspx file to place the shipping method?
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Re: Changes to invoice in AC 7.0.7

Post by compunerdy » Sat Nov 19, 2011 1:58 pm

PM me for my email and then send me the two files and I will change it for you.

User avatar
calvis
Rear Admiral (RADM)
Rear Admiral (RADM)
Posts: 710
Joined: Tue Jan 27, 2004 3:57 pm
Location: Redmond, WA

Re: Changes to invoice in AC 7.0.7

Post by calvis » Wed Jul 18, 2012 12:03 pm

Does anyone have a zip file of invoice.aspx and invoice.aspx.cs that prints shipping message and orders notes? I downloaded mazhar's last download, and it looks very good, but it is lacking order notes at the bottom.
Able Customer Since 1999 Currently Running on GOLD R12 SR1 and PCI Certified.

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Re: Changes to invoice in AC 7.0.7

Post by compunerdy » Wed Jul 18, 2012 1:06 pm

You can try mine.. they are modified quite a bit so may not fit what you need though.

Invoices.zip

User avatar
calvis
Rear Admiral (RADM)
Rear Admiral (RADM)
Posts: 710
Joined: Tue Jan 27, 2004 3:57 pm
Location: Redmond, WA

Re: Changes to invoice in AC 7.0.7

Post by calvis » Wed Jul 18, 2012 2:28 pm

Thanks Tim,

I will give that a try.
Able Customer Since 1999 Currently Running on GOLD R12 SR1 and PCI Certified.

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Changes to invoice in AC 7.0.7

Post by kwikstand » Fri Aug 31, 2012 1:35 pm

I am glad I found this post. Now I got rid of all those discount lines. I would like to get them off the purchase oreder all together. There is no need to have discounts listed on the pruchase order, at least I can't see why. Is it possible to do that as well?

Aslo, on the invoice, it would be nice to have a "price each" column.

Thanks for the help,

Scott
Contractor's Solutions
www. contractors-solutions.net

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Changes to invoice in AC 7.0.7

Post by kwikstand » Wed Sep 05, 2012 9:22 am

My problem now is that sometimes I can't print an invoice. I get:

"We are sorry, but the page you are trying to access has experienced an error.

Please contact scott@contractors-solutions.net to report this problem."

This has happened twice now in the last couple days. Could it have anything to do with the changes?
Contractor's Solutions
www. contractors-solutions.net

Post Reply