Numpad User Control and Login Changes
This commit is contained in:
@ -20,7 +20,7 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
|
||||
private void btnGo_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!Thread.CurrentPrincipal.IsInRole("Security/CreateUser"))
|
||||
if (!Thread.CurrentPrincipal.IsInRole("Master/Owner"))
|
||||
return;
|
||||
dtpFrom.Value = Convert.ToDateTime(string.Format("{0:dd-MMM-yyyy} 00:00:00", dtpFrom.Value));
|
||||
dtpTo.Value = Convert.ToDateTime(string.Format("{0:dd-MMM-yyyy} 23:59:59", dtpTo.Value));
|
||||
|
||||
@ -71,7 +71,7 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
{
|
||||
DateTime startDate = Convert.ToDateTime(String.Format("{0:dd-MMM-yyyy} 00:00:00", dtpStart.Value));
|
||||
DateTime finishDate = Convert.ToDateTime(String.Format("{0:dd-MMM-yyyy} 23:59:59", dtpFinish.Value));
|
||||
Tanshu.Accounts.Print.Thermal.PrintSale(det, startDate, finishDate);
|
||||
Tanshu.Accounts.Print.Thermal.PrintSale(Session.printer(), Session.User.Name, det, startDate, finishDate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user