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:
unknown
2011-06-23 18:17:48 +05:30
parent 0cb7d3cf09
commit d8ecec8bb6
85 changed files with 3520 additions and 2264 deletions

View File

@ -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)

View File

@ -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();