Page 1 of 1

Admin Invoices Etc.

Posted: Thu Oct 30, 2008 9:26 am
by keats76
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

Re: Admin Invoices Etc.

Posted: Thu Oct 30, 2008 9:48 am
by compunerdy
Good catch. I always wondered why they didnt show but never looked into it.

Re: Admin Invoices Etc.

Posted: Thu Oct 30, 2008 12:04 pm
by AbleMods
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.

Re: Admin Invoices Etc.

Posted: Thu Oct 30, 2008 12:32 pm
by mazhar

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