Skip to content

Commit

Permalink
Modify IBillsHandler (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniilSolovyov and sda authored May 2, 2024
1 parent 1eee85a commit 7cddcba
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/java/com/untill/driver/interfaces/bills/Bill.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public class Bill {
* Waiter ID
*/
private Long waiterId;
/**
* The flag is <tt>true</tt> if the <tt>Sales area</tt> setting <tt>Close tables manually</tt> is checked otherwise <tt>false</tt>
*/
private boolean dirty;


/**
Expand Down Expand Up @@ -404,6 +408,14 @@ public void setWaiterId(Long waiterId) {
this.waiterId = waiterId;
}

public boolean isDirty() {
return dirty;
}

public void setDirty(boolean dirty) {
this.dirty = dirty;
}

@Override
public String toString() {
return "Bill{"
Expand All @@ -430,6 +442,7 @@ public String toString() {
+ ", appliedDiscountGroups=" + appliedDiscountGroups
+ ", extra=" + extra
+ ", waiterId=" + waiterId
+ ", dirty=" + dirty
+ '}';
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.untill.driver.interfaces.bills;

/**
* POS sends this request when action <tt>Restaurant:Make table clean</tt> is invoked
*
* @see IBillsHandler
* @see BillsHandlerRequest
*/
public class BillCleanTableRequest extends BillsHandlerRequest {
@Override
public String toString() {
return "BillCleanTableRequest{} " + super.toString();
}
}

0 comments on commit 7cddcba

Please sign in to comment.