Feature: Added SortOrder to Inventory.
Chore: Settle Choices form greatly simplified. Feature: Modifiers are now cached.
This commit is contained in:
@ -88,22 +88,19 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
if (bi.HasCompulsoryModifier(product.ProductGroup.ProductGroupID))
|
||||
{
|
||||
var item = CurrentProduct;
|
||||
ShowModifiers(product.ProductGroup.ProductGroupID, item);
|
||||
ShowModifiers(item);
|
||||
}
|
||||
}
|
||||
ShowAmount();
|
||||
}
|
||||
public void ShowModifiers(Guid productGroupID, BillItemValue item)
|
||||
public void ShowModifiers(BillItemValue item)
|
||||
{
|
||||
if (item.Printed)
|
||||
return;
|
||||
using (var bi = new ProductGroupModifierBI())
|
||||
using (var frm = new ModifierForm(Cache.ProductGroupModifiers(item.Product.ProductGroup.ProductGroupID), item.Modifiers))
|
||||
{
|
||||
using (var frm = new ModifierForm(bi.List(productGroupID), item.Modifiers))
|
||||
{
|
||||
frm.ShowDialog();
|
||||
item.Modifiers = frm.Selection;
|
||||
}
|
||||
frm.ShowDialog();
|
||||
item.Modifiers = frm.Selection;
|
||||
}
|
||||
ShowAmount();
|
||||
}
|
||||
@ -425,7 +422,7 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
{
|
||||
using (var bi = new FoodTableBI())
|
||||
{
|
||||
using (var frm = new MoveTableForm(bi.List(x=>x.IsActive), allowMerge))
|
||||
using (var frm = new MoveTableForm(bi.List(x => x.IsActive), allowMerge))
|
||||
{
|
||||
frm.ShowDialog();
|
||||
if (frm.Selection != null)
|
||||
|
||||
Reference in New Issue
Block a user