Finally Deployed. Don't know the total amount of changes.
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user