Package | Description |
---|---|
org.posper.hibernate | |
org.posper.hibernate.formatters |
POSper Formatters
Formatters are passed to the Velocity engine, e.g. when a ticket is printed.
|
org.posper.logging | |
org.posper.tpv.modifier | |
org.posper.tpv.panelkitchen | |
org.posper.tpv.panelsales | |
org.posper.tpv.printer | |
org.posper.tpv.util |
Modifier and Type | Method and Description |
---|---|
TicketLine |
TicketLine.clone() |
TicketLine |
Reservation.getTicketline() |
Modifier and Type | Method and Description |
---|---|
Set<TicketLine> |
KitchenOrder.getLines() |
List<TicketLine> |
Ticket.getLines()
A ticket lines is what you see on a ticket.
|
Modifier and Type | Method and Description |
---|---|
void |
Ticket.addLine(TicketLine line) |
int |
TicketLine.compareTo(TicketLine cline) |
void |
Reservation.setTicketline(TicketLine ticketline) |
Modifier and Type | Method and Description |
---|---|
void |
Ticket.setLines(List<TicketLine> new_lines) |
void |
KitchenOrder.setLines(Set<TicketLine> lines) |
Constructor and Description |
---|
TicketLine(TicketLine line)
Creates a new instance of TicketLine - only selected properties of line
are copied.
|
Modifier and Type | Field and Description |
---|---|
protected TicketLine |
TicketLineFormatter.line |
Constructor and Description |
---|
KitchenLineFormatter(TicketLine line)
Create a instance of KitchenLineFormatter
|
TicketLineFormatter(TicketLine line)
TicketLineFormatter is instantiated in TicketFormatter.
|
TicketLineFormatter(TicketLine line,
Modifiers mod)
Used for rendering the ticketline in the sales panel
(template
Ticket.Line |
Modifier and Type | Method and Description |
---|---|
void |
AuditLogging.auditLineModifier(TicketLine line,
int on,
int off) |
void |
AuditLogging.traceLine(String action_msg,
TicketLine line) |
Modifier and Type | Method and Description |
---|---|
TicketLine |
ModifierFunctions.activateVoucher()
Calls activateVoucher(false)
|
TicketLine |
ModifierFunctions.activateVoucher(boolean afterPayment)
Show a dialog to request scanning of a voucher and activate the voucher.
|
TicketLine |
ModifierFunctions.addComProducts(String codes)
Set the transient ticketline property comProducts to the string 'codes'.
|
TicketLine |
ModifierFunctions.buyNgetOneFree(int n)
Count the number of products on the current ticket and modify the price
of the current item to fit the condition "Buy n Get One For Free".
|
TicketLine |
ModifierFunctions.buyNgetOneFree(int n,
String descmod)
Count the number of products on the current ticket and modify the price
of the current item to fit the condition "Buy n Get One For Free".
|
TicketLine |
ModifierFunctions.buyNmodifyNext(int n,
String mod)
Count the number of products on the current ticket and modify the current
line with the given modifier function.
|
TicketLine |
ModifierFunctions.buyNmodifyNext(int n,
String mod,
String descmod)
Count the number of products on the current ticket and modify the current
line with the given modifier function.
|
TicketLine |
ModifierFunctions.checkRestrictedProduct()
Assign this function to an active product modifier to restrict users
having the permission Perm.RestrictedProduct to add this product line. .
|
TicketLine |
ModifierFunctions.checkRestrictedProduct(String permKey)
Assign this function to an active product modifier to restrict users
having the permission permKey to add this product line. .
|
TicketLine |
ModifierFunctions.createSlotReservation(int slot_type)
Creates a Reservation record for lines having a product assigned which
has a slot_length entry like slot_30 in unitType and a value for the
number of slots in units
|
TicketLine |
ModifierFunctions.customerDiscount()
Looks for an entry in the customer discount table and applies the found
discount rate if any.
|
TicketLine |
ModifierFunctions.discount(double discountRate)
Applies the given discount rate based on the products priceSell.
|
TicketLine |
ModifierFunctions.discount(double discountRate,
int cent)
This method is identical to discountFromLineTotal(double discountRate,
int cent)
|
TicketLine |
ModifierFunctions.discountFromItem(double discountRate,
int cent)
Applies the given discount rate based on the products priceSell.
|
TicketLine |
ModifierFunctions.discountFromLineTotal(double discountRate,
int cent)
Applies the given discount rate based on the products priceSell.
|
TicketLine |
ModifierFunctions.discountX(double discountRate)
Deprecated.
Use discount(double discountRate) instead.
|
TicketLine |
ModifierFunctions.discountX(double discountRate,
int cent)
Deprecated.
Obolete, use discountFromLineTotal(double discountRate, int
cent) instead.
|
TicketLine |
ModifierFunctions.priceAndTaxShift(int price_index,
int tax_index)
The price is calculated from the indexed price so that the the gross
price matches the gross price with the given tax
|
TicketLine |
ModifierFunctions.priceShift(int index)
Changes the products sell price from priceSell to the sell price
indicated by index (0|1|2).
|
TicketLine |
ModifierFunctions.protectLine()
Set status to PROTECTED to prevent unauthorized users from deleting or
editing the ticketline.
|
TicketLine |
ModifierFunctions.revertAmount()
Multiplies the number of items (amount) by -1.
|
TicketLine |
ModifierFunctions.sellUnit(double factor)
Set the transient ticketline property addComProduct to the string 'codes'
which is taken from the products unitType column.
|
TicketLine |
ModifierFunctions.setNegativeAmount()
Set the number of items (amount) to -abs(amount).
|
TicketLine |
ModifierFunctions.showMessage(String message)
Show a message dialog.
|
TicketLine |
ModifierFunctions.showMessage(String message,
String title)
Show a message dialog.
|
TicketLine |
ModifierFunctions.specialPrice(int mod)
The function looks for a SpecialPrice assigned to the product and, if
any, checks the cron-expression and date_from and date_to given in the
SpecialPrice entry.
|
TicketLine |
ModifierFunctions.taxShift(int taxId)
Applies the given taxId based on the products priceSell
|
TicketLine |
ModifierFunctions.taxShiftFromTo_1(int... taxes_from_to)
Applies a tax shift from the from value, if found, to the to-value of the
parameter list
|
TicketLine |
ModifierFunctions.taxShiftKeepPrice(int taxId)
Applies the given taxId based on the products priceSell. priceSell is
recalculated to keep the customer price stable.
|
TicketLine |
ModifierFunctions.taxShiftKeepPriceFromTo_1(int... taxes_from_to)
Applies a tax shift from the from value, if found, to the to-value of the
parameter list.
|
TicketLine |
ModifierFunctions.toggleAccountingLevels(int mask)
NOT YET IMPLEMENTED
|
TicketLine |
ModifierFunctions.variableDiscount()
The discount rate is retrieved from the current value in the ticket
views price input field.
|
TicketLine |
ModifierFunctions.warnLockedProduct()
This modifier checks if the referenced product is locked.
|
Modifier and Type | Method and Description |
---|---|
static int |
Modifiers.getCustomerGroupMask(TicketLine line)
Retrieves the active modifier mask for a customergroup
|
static int |
Modifiers.getCustomerMask(TicketLine line)
Retrieves the active modifier mask for a customer
|
String |
Modifiers.getDisplayNames(TicketLine oLine)
Retrieve the display names for all modifiers to be applied.
|
void |
Modifiers.modifyTicketline(TicketLine oTicketline)
Modifies oTicketline according to the active modifiers.
|
Constructor and Description |
---|
ModifierFunctions(TicketLine oTicketline,
ModifierTimers oTimers,
HashMap<Integer,Tax> mTaxes)
Creates an instance of ModifierFunctions to make the current ticketline
available to all functions.
|
Modifier and Type | Method and Description |
---|---|
void |
JKitchenLines.addTicketLine(TicketLine oLine) |
void |
JKitchenLines.insertTicketLine(int index,
TicketLine oLine) |
void |
JKitchenLines.setTicketLine(int index,
TicketLine oLine) |
Modifier and Type | Method and Description |
---|---|
TicketLine |
JPanelTicket.ScriptObject.getSelectedLine() |
TicketLine |
SimpleReceipt.getSelectedLine()
Removes the selected tickcetline from the ticket and returns a copy.
|
TicketLine |
SimpleReceipt.getSelectedLineUnit()
Creates a copy of the selected line and returns the copy with an amount
set to 1.
|
Modifier and Type | Method and Description |
---|---|
void |
SimpleReceipt.addLineItems(TicketLine line) |
void |
SimpleReceipt.addLineItemsConsolidateCurrent(TicketLine line)
Adds the item(s) in line to the ticket.
|
void |
SimpleReceipt.addLineItemsConsolidated(TicketLine line)
Adds the item(s) in line to the ticket.
|
void |
JTicketLines.addTicketLine(TicketLine oLine) |
protected void |
JPanelTicket.addTicketLine(TicketLine oLine) |
protected void |
SimpleReceipt.deleteLine(TicketLine line) |
void |
JTicketLines.insertTicketLine(int index,
TicketLine oLine) |
void |
JPanelTicket.printAuditTicket(TicketLine oLine,
Ticket oTicket,
String sAction,
String sresourcename)
If the 'Print Audit Receipt' option is set a receipt is printed whenever
an entry is written to the audit log (exception: com lines).
|
void |
TicketsEditor.printAuditTicket(TicketLine oLine,
Ticket oTicket,
String sAction,
String sResource) |
void |
JPanelTicket.setModifiers(TicketLine oLine) |
void |
TicketsEditor.setModifiers(TicketLine oLine) |
void |
JTicketLines.setTicketLine(int index,
TicketLine oLine) |
static boolean |
JProductLineEdit.showMessage(JPanelTicket parent,
AppView app,
TicketLine oLine) |
Modifier and Type | Method and Description |
---|---|
void |
KitchenPrinter.printLine(TicketLine oLine,
String template) |
Modifier and Type | Method and Description |
---|---|
void |
KitchenTableModel.addRow(TicketLine oLine) |
void |
TicketTableModel.addRow(TicketLine oLine) |
void |
KitchenTableModel.insertRow(int index,
TicketLine oLine) |
void |
TicketTableModel.insertRow(int index,
TicketLine oLine) |
void |
KitchenTableModel.setRow(int index,
TicketLine oLine) |
void |
TicketTableModel.setRow(int index,
TicketLine oLine) |
Copyright © 2021. All rights reserved.