Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
My thesis is an Inventory Management System for a service firm. so I have done the profiling and the sales order. I'm almost done with the Job Ordering transaction but I just can't seem to get it right. the theory is that the Materials cost and the employee's labor fee should add to the default service fee. I've finished the materials but I just can't seem to get the Service and the Labor Fee to add up. technically I am very ill equipped with programming and a complete novice. I really need an idea on how I can code this so the Labor fee and the Service fee would add up and appear on the data grid view.

What I have tried:

I tried using the same codes I used for adding the materials but because the service fee and labor fee have no quantity unlike Materials. it's not working.
Posted
Updated 12-Mar-16 3:54am
Comments
[no name] 12-Mar-16 4:22am    
What did you try with code?
Richard MacCutchan 12-Mar-16 4:32am    
Assuming that both Service Fee and Labour Fee are numeric quantities, what exactly is the problem?

1 solution

Hard to say without seeing your code, but maybe you can first create a view in SQL Server Management Studio and make sure this displays the right totals and then use that view as the data source of your grid view.

Some examples of using the SUM() function: SUM (Transact-SQL)[^]

Interesting example: Calculating simple running totals in SQL Server[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900