Table load complete. Printer stub removed for actual code.

This commit is contained in:
unknown
2011-01-14 01:51:02 +05:30
parent c63bc62304
commit 76cd512ebc
16 changed files with 230 additions and 29 deletions

View File

@ -394,22 +394,34 @@ namespace Tanshu.Accounts.PointOfSale
ShowAmount();
}
public void LoadBillFromTable()
public void LoadBillFromTable(string tableName)
{
InputBoxResult result = InputBox.Show("Enter Table Number", "Table", "0", InputBox_Validating);
if (result.OK)
if (!string.IsNullOrEmpty(tableName))
{
string tableID = result.Text.Trim();
if ((tableID != "C") && (tableID != "") && (!tableID.Contains(".")))
Guid? tID = new SaleVoucherBI().GetPendingVoucherID(tableName);
if (tID.HasValue)
{
Guid? tID = new SaleVoucherBI().GetPendingVoucherID(tableID);
if (tID.HasValue)
{
LoadBill(tID.Value);
}
LoadBill(tID.Value);
}
}
else
{
InputBoxResult result = InputBox.Show("Enter Table Number", "Table", "0", InputBox_Validating);
if (result.OK)
{
string tableID = result.Text.Trim();
if ((tableID != "C") && (tableID != "") && (!tableID.Contains(".")))
{
Guid? tID = new SaleVoucherBI().GetPendingVoucherID(tableID);
if (tID.HasValue)
{
LoadBill(tID.Value);
}
}
else
ClearBill();
}
else
ClearBill();
}
}