Admin Invoices Etc.
Posted: 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
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