Admin Invoices Etc.

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
keats76
Commander (CMDR)
Commander (CMDR)
Posts: 117
Joined: Sat Dec 15, 2007 4:45 pm

Admin Invoices Etc.

Post by keats76 » Thu Oct 30, 2008 9:26 am

AC Team,

It looks like there is a bug in your invoice functionality (a few different pages) where you don't properly display the "Other" portion of an order.

From the Admin/Order/Print/Invoices.aspx
<tr id="trOther" runat="server" visible='<%# GetTotal(Container.DataItem, OrderItemType.Charge, OrderItemType.Coupon, OrderItemType.Credit, OrderItemType.Discount, OrderItemType.GiftCertificate, OrderItemType.GiftWrap) > 0 %>'>

Note that the above line will never display if you have a coupon or a credit amount (since you are checking for an amount greater than zero to trigger the display). I updated to the following and now my coupons/discounts show up on the invoice.

<tr id="trOther" runat="server" visible='<%# GetTotal(Container.DataItem, OrderItemType.Charge, OrderItemType.Coupon, OrderItemType.Credit, OrderItemType.Discount, OrderItemType.GiftCertificate, OrderItemType.GiftWrap) != 0 %>'>

Thanks,
Mike

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

Re: Admin Invoices Etc.

Post by compunerdy » Thu Oct 30, 2008 9:48 am

Good catch. I always wondered why they didnt show but never looked into it.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Admin Invoices Etc.

Post by AbleMods » Thu Oct 30, 2008 12:04 pm

Also on the HTML side of the invoice page file you will find some commented code near the bottom.

Uncomment it to gain additional information on invoice.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Admin Invoices Etc.

Post by mazhar » Thu Oct 30, 2008 12:32 pm

Code: Select all

AC Team,

It looks like there is a bug in your invoice functionality (a few different pages) where you don't properly display the "Other" portion of an order.

From the Admin/Order/Print/Invoices.aspx
<tr id="trOther" runat="server" visible='<%# GetTotal(Container.DataItem, OrderItemType.Charge, OrderItemType.Coupon, OrderItemType.Credit, OrderItemType.Discount, OrderItemType.GiftCertificate, OrderItemType.GiftWrap) > 0 %>'>

Note that the above line will never display if you have a coupon or a credit amount (since you are checking for an amount greater than zero to trigger the display). I updated to the following and now my coupons/discounts show up on the invoice.

<tr id="trOther" runat="server" visible='<%# GetTotal(Container.DataItem, OrderItemType.Charge, OrderItemType.Coupon, OrderItemType.Credit, OrderItemType.Discount, OrderItemType.GiftCertificate, OrderItemType.GiftWrap) != 0 %>'>

Thanks,
Mike
AC Team,

It looks like there is a bug in your invoice functionality (a few different pages) where you don't properly display the "Other" portion of an order.

From the Admin/Order/Print/Invoices.aspx
<tr id="trOther" runat="server" visible='<%# GetTotal(Container.DataItem, OrderItemType.Charge, OrderItemType.Coupon, OrderItemType.Credit, OrderItemType.Discount, OrderItemType.GiftCertificate, OrderItemType.GiftWrap) [b]> 0[/b] %>'>

Note that the above line will never display if you have a coupon or a credit amount (since you are checking for an amount greater than zero to trigger the display). I updated to the following and now my coupons/discounts show up on the invoice.

<tr id="trOther" runat="server" visible='<%# GetTotal(Container.DataItem, OrderItemType.Charge, OrderItemType.Coupon, OrderItemType.Credit, OrderItemType.Discount, OrderItemType.GiftCertificate, OrderItemType.GiftWrap) [b]!= 0[/b] %>'>

Thanks,
Mike
Thanks for letting us know a new bug have been reported.
http://bugs.ablecommerce.com/show_bug.cgi?id=7362

Post Reply