Table load complete. Printer stub removed for actual code.
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user