public class cmdItems extends DatecsFiscalDevice
Modifier and Type | Class and Description |
---|---|
static class |
cmdItems.ItemModel |
static class |
cmdItems.ItemsInfo
Store info of device items-data base.
|
Constructor and Description |
---|
cmdItems() |
Modifier and Type | Method and Description |
---|---|
boolean |
DelAllItems()
Deleting All Device items
|
boolean |
DelItemsInRange(int fromItem,
int toItem)
Item deleting
|
cmdItems.ItemModel |
GetFirstFoundProgrammed(int startItem)
Returns data about the first found programmed item
|
cmdItems.ItemModel |
GetFirstFoundWithSales(int startItem)
Returns data about the first found item with sales on it
|
int |
GetFirstNotProgrammed(int startItem)
Find the first not programmed item
|
int |
GetItemsInformation(cmdItems.ItemsInfo info) |
cmdItems.ItemModel |
GetLastFoundProgrammed(int lastPLU)
Returns data about the last found programmed item
|
cmdItems.ItemModel |
GetLastFoundWithSales(int startItem)
Returns data about the last found item with sales on it
|
int |
GetLastNotProgrammed(int startItem)
Find the last not programmed item
|
cmdItems.ItemModel |
GetNextFoundWithSales()
Returns data for the next found item with sales on it;
|
cmdItems.ItemModel |
GetNextProgrammed()
Returns data for the next found programmed item
|
cmdItems.ItemModel |
ReadItem(int itemID)
Reading item data
|
void |
SaveItem(cmdItems.ItemModel itemModel) |
void |
SaveItem(java.lang.String plu,
java.lang.String taxGr,
java.lang.String group,
java.lang.String sPrice,
java.lang.String quantity,
boolean replaceQty,
java.lang.String name)
Save Item data to device
|
void |
SetItemPrice(int itemID,
java.lang.Double newPrice)
Change of the available quantity for item
|
void |
SetItemQuantity(int itemID,
java.lang.Double quantity)
Change of the available quantity for item
|
checkErrorCode, close, getConnectedECRV1, getConnectedModelV2, getConnectedPrinterV1, isConnectedDeviceV2, isConnectedECR, isConnectedPrinter, setConnectedModel, setConnectedModel, setConnectedModel
public void SaveItem(cmdItems.ItemModel itemModel) throws java.lang.Exception
itemModel
- java.lang.Exception
public void SaveItem(java.lang.String plu, java.lang.String taxGr, java.lang.String group, java.lang.String sPrice, java.lang.String quantity, boolean replaceQty, java.lang.String name) throws java.lang.Exception
java.lang.Exception
public void SetItemQuantity(int itemID, java.lang.Double quantity) throws java.lang.Exception
itemID
- - Item number (1...999999999);quantity
- - Stock quantity (0.001...99999.999);java.lang.Exception
public void SetItemPrice(int itemID, java.lang.Double newPrice) throws java.lang.Exception
itemID
- - Item number (1...999999999);newPrice
- - Item price (0.001...99999.999);java.lang.Exception
public boolean DelItemsInRange(int fromItem, int toItem) throws java.lang.Exception
fromItem
- - First item to delete (1...999999999)toItem
- - last item to delete (1...999999999)java.lang.Exception
public boolean DelAllItems() throws java.lang.Exception
java.lang.Exception
public cmdItems.ItemModel ReadItem(int itemID) throws java.lang.Exception
itemID
- - Item number (1...999999999);java.lang.Exception
public cmdItems.ItemModel GetFirstFoundProgrammed(int startItem) throws java.lang.Exception
startItem
- Item number (1...999999999) Default: 0java.lang.Exception
public cmdItems.ItemModel GetLastFoundProgrammed(int lastPLU) throws java.lang.Exception
lastPLU
- Item number (1...3000). 999999999: 999999999;java.lang.Exception
public cmdItems.ItemModel GetNextProgrammed() throws java.lang.Exception
java.lang.Exception
public cmdItems.ItemModel GetFirstFoundWithSales(int startItem) throws java.lang.Exception
startItem
- java.lang.Exception
public cmdItems.ItemModel GetLastFoundWithSales(int startItem) throws java.lang.Exception
startItem
- - Item number (1...3000). Default: 3000;java.lang.Exception
public cmdItems.ItemModel GetNextFoundWithSales() throws java.lang.Exception
java.lang.Exception
public int GetFirstNotProgrammed(int startItem) throws java.lang.Exception
startItem
- Item numberjava.lang.Exception
public int GetLastNotProgrammed(int startItem) throws java.lang.Exception
startItem
- Item numberjava.lang.Exception
public int GetItemsInformation(cmdItems.ItemsInfo info) throws java.lang.Exception
java.lang.Exception