Add line numbers to invoice
Add line numbers to invoice
How can I add line numbers to the invoice.
David Jasiewicz
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --
Re: Add line numbers to invoice
Not sure what you mean... line numbers to the invoice?
Re: Add line numbers to invoice
Similar to most invoices. For example
right no you have:
HDTV - $100
DVD player -$50
I want
1 HDTV - $100
2 DVD Player - $50
This way I have a way to refer to the items on the invoice by line number.
right no you have:
HDTV - $100
DVD player -$50
I want
1 HDTV - $100
2 DVD Player - $50
This way I have a way to refer to the items on the invoice by line number.
David Jasiewicz
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --
Re: Add line numbers to invoice
For adding line no you need to customize ConLib/ReceiptPage.ascx control.
Locate this code in ReceiptPage.ascx
and replace with this code
Now go ReceiptPage.ascx.cs and add this code at the end
Locate this code in ReceiptPage.ascx
Code: Select all
<asp:GridView ID="ShipmentItemsGrid" runat="server" Width="100%" AutoGenerateColumns="false"
DataSource='<%# OrderHelper.GetShipmentItems(Container.DataItem) %>' GridLines="none"
SkinID="ItemList" OnDataBinding="ItemsGrid_DataBinding">
<Columns>
Code: Select all
<asp:GridView ID="ShipmentItemsGrid" runat="server" Width="100%" AutoGenerateColumns="false"
DataSource='<%# OrderHelper.GetShipmentItems(Container.DataItem) %>' GridLines="none"
SkinID="ItemList" OnDataBinding="ItemsGrid_DataBinding">
<Columns>
<asp:TemplateField HeaderText="No">
<HeaderStyle Width="50" HorizontalAlign="Center" />
<ItemStyle HorizontalAlign="center" />
<ItemTemplate>
<asp:Label ID="No" runat="server" Text='<%# GetCounter().ToString() %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
Code: Select all
int i = 1;
public int GetCounter()
{
return i++;
}
hope this helps!
__________________
s_ismail

AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
__________________
s_ismail


AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog