Item entity for point-of-sale cart with name, unit price, quantity, total calculation. Used in ConfirmController and InvoiceController.
// Source: https://github.com/sadatrafsanjani/JavaFX-Point-of-Sales | License: MIT | Copyright 2026 JFXPOS
// Provided via justclaw.it.com; keep this notice with the code.
package com.rafsan.inventory.entity;
public class Item {
private String itemName;
private double unitPrice;
private double quantity;
private double total;
public Item() {
}
public Item(String itemName, double unitPrice, double quantity, double total) {
this.itemName = itemName;
this.unitPrice = unitPrice;
this.quantity = quantity;
this.total = total;
}
public String getItemName() {
return itemName;
}
public void setItemName(String itemName) {
this.itemName = itemName;
}
public double getUnitPrice() {
return
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key