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:
@ -56,17 +56,14 @@ namespace Tanshu.Accounts.Helpers
|
||||
if (stop < inList.Count)
|
||||
list.Add(new Product() { ProductID = stop, Name = "Next" });
|
||||
|
||||
|
||||
|
||||
for (int i = 0; i < list.Count; i++)
|
||||
for (var i = 0; i < list.Count; i++)
|
||||
{
|
||||
var item = list[i];
|
||||
var control = GetButton(string.Format("p{0}", i), item.Units == string.Empty ? item.Name : string.Format("{0} ({1})", item.Name, item.Units), size.X, size.Y, item, bcDelegate);
|
||||
if (item.SalePrice == 0)
|
||||
control.BackColor = Color.Yellow;
|
||||
panel.Controls.Add(control);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
// For Discount Form
|
||||
public static void GenerateGroups(ref FlowLayoutPanel panel, Point size, IList<string> list, ButtonClickDelegate bcDelegate)
|
||||
|
||||
Reference in New Issue
Block a user