Added inverse Attribute to ProductGroup.
BillInventory Renamed. Refactored Bill to be more usable. Added Bill Detail Report. Added Open Bill and Bill Details Roles. Zero Rate Products have Yellow background Color. Refactored UserBI, FoodTableBI, ModifierBI, PrintLocationBI, ProductBI, ProductGroupBI, TaxBI, UserBI, Cached the Products List. Product and Product Group Form Working.
This commit is contained in:
@ -40,15 +40,11 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
|
||||
private void btnSelect_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
var item = (Advance)dgExpenses.SelectedRows[0].DataBoundItem;
|
||||
txtCashier.Text = item.CashierIn.Name;
|
||||
txtNarration.Tag = item.AdvanceID;
|
||||
txtNarration.Text = item.Narration;
|
||||
txtAmount.Text = item.Amount.ToString();
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
private void btnAdjust_Click(object sender, EventArgs e)
|
||||
|
||||
@ -24,7 +24,8 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
Advance adv = new Advance();
|
||||
adv.Narration = txtNarration.Text;
|
||||
adv.Amount = Convert.ToDecimal(txtAmount.Text.Trim());
|
||||
adv.CashierIn = UserBI.GetUser((int)txtCashier.Tag);
|
||||
using (var bi = new UserBI())
|
||||
adv.CashierIn = bi.Get(x => x.UserID == (int)txtCashier.Tag);
|
||||
adv.DateIn = DateTime.Now;
|
||||
new AdvanceBI().Insert(adv);
|
||||
GridBind();
|
||||
|
||||
Reference in New Issue
Block a user