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:
@ -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))
|
||||
|
||||
Reference in New Issue
Block a user