Finally Deployed. Don't know the total amount of changes.

This commit is contained in:
tanshu
2014-11-06 16:09:11 +05:30
parent dc3576437f
commit 948cd0bf28
34 changed files with 389 additions and 990 deletions

View File

@ -10,6 +10,7 @@ namespace Tanshu.Accounts.PointOfSale
public partial class BillDetailsForm : Form
{
IList<BillDetail> _list;
bool _loading = true;
public BillDetailsForm()
{
InitializeComponent();
@ -22,6 +23,7 @@ namespace Tanshu.Accounts.PointOfSale
private void ShowStatement()
{
if (_loading) return;
if (DateTime.Today.Subtract(dtpStart.Value.Date).Days > 5 && !Session.IsAllowed("Accounts Audit"))
return;
_list = new SalesAnalysisBI().GetBillDetails(dtpStart.Value, dtpFinish.Value);
@ -41,6 +43,7 @@ namespace Tanshu.Accounts.PointOfSale
{
dtpStart.Value = DateTime.Today;
dtpFinish.Value = DateTime.Today;
_loading = false;
ShowStatement();
}
}