![]() |
Daily Sales |
Post Reply ![]() |
Author | |
amgqmp1 ![]() Groupie ![]() Joined: 01-November-2005 Location: United States Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 11-March-2010 at 4:10pm |
I have been running a PC 2.76 shop for many years, and recently upgraded all the way to 4.
One feature that I'm missing is the ability to quickly see our current daily sales. Just viewing the sales reports section in 2.76 would provide that data. Has it been relocated? If yes, where? If no, any easy hack to bring it back? ![]() |
|
![]() |
|
whizzinpc ![]() Newbie ![]() ![]() Joined: 17-January-2006 Location: California Status: Offline Points: 20 |
![]() ![]() ![]() ![]() ![]() |
I don't think it can be found anywhere unless you run a report. We added it manually. I just modified the code. invoicing.asp look for the following section.
<% While Not rs.eof pTotal=rs("total") pIdOrder=rs("idOrder") pIdOrder=scpre + int(pIdOrder) %> <li><%response.write "Order #: "&pIdOrder&" - Total: "&scCurSign & money(pTotal)%> - <a class="resultslink" href="Orddetails.asp?id=<%=rs("idorder")%>" onFocus="if(this.blur)this.blur()">View details >></a></li> <%rs.MoveNext%> <%Wend%> </ul> <% end if Set rs=Nothing %> and change it to: <% While Not rs.eof pTotal=rs("total") pIdOrder=rs("idOrder") pIdOrder=scpre + int(pIdOrder) pTotalDay = pTotalDay + pTotal %> <li><%response.write "Order #: "&pIdOrder&" - Total: "&scCurSign & money(pTotal)%> - <a class="resultslink" href="Orddetails.asp?id=<%=rs("idorder")%>" onFocus="if(this.blur)this.blur()">View details >></a></li> <%rs.MoveNext%> <%Wend%> </ul> <p>Today's total: <% Response.write scCurSign & money(pTotalDay)%><br> </p> <% end if Set rs=Nothing %> It basically adds the daily total to this page just below the list of all orders for the day. You get to the page from Orders>Locate an Order. Edited by whizzinpc - 12-March-2010 at 11:38am |
|
![]() |
|
amgqmp1 ![]() Groupie ![]() Joined: 01-November-2005 Location: United States Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
You are my hero for the day! That worked out beautifully, and I'll learn from that code to add it to the home page too.
Thank you! ![]() |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |