Feature: Added service tax and changed around a lot of SQL structure. Run the conversion sql file or it won't work.

This commit is contained in:
Amritanshu
2013-11-28 16:09:33 +05:30
parent b6498a7b1c
commit c36240398f
92 changed files with 434 additions and 1798 deletions

View File

@ -55,7 +55,7 @@ namespace Tanshu.Accounts.PointOfSale
string query = @"
SELECT ISNULL(SUM(i.Amount), 0) FROM {0}.dbo.Vouchers t INNER JOIN {0}.dbo.SaleVoucher s ON t.VoucherID = s.VoucherID
INNER JOIN {0}.dbo.Inventory i ON t.VoucherID = i.VoucherID
WHERE t.Type = 'S' AND t.Date BETWEEN @StartDate AND @FinishDate AND s.Void = 0 AND s.Paid = 1
WHERE t.Date BETWEEN @StartDate AND @FinishDate AND s.Void = 0 AND s.Paid = 1
AND i.Tax = @Tax
";
using (SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["connection"].ConnectionString))