Table load complete. Printer stub removed for actual code.
This commit is contained in:
1 parent
c63bc62304
commit
76cd512ebc
16 files changed
+228
-27
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
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(".")))
|
||||
{
|
||||
LoadBill(tID.Value);
|
||||
Guid? tID = new SaleVoucherBI().GetPendingVoucherID(tableID);
|
||||
if (tID.HasValue)
|
||||
{
|
||||
LoadBill(tID.Value);
|
||||
}
|
||||
}
|
||||
else
|
||||
ClearBill();
|
||||
}
|
||||
else
|
||||
ClearBill();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user