From: Roland Häder Date: Sun, 5 Nov 2017 12:58:50 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aae4b8a9436bd4491a6d30b731a4c44918e8606d;p=jbonuscard-core.git Continued: - added item's number Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jfinancials/model/receipt_item/BillableReceiptItem.java b/src/org/mxchange/jfinancials/model/receipt_item/BillableReceiptItem.java index c2dc8bd..228d69c 100644 --- a/src/org/mxchange/jfinancials/model/receipt_item/BillableReceiptItem.java +++ b/src/org/mxchange/jfinancials/model/receipt_item/BillableReceiptItem.java @@ -212,6 +212,20 @@ public interface BillableReceiptItem extends Serializable { */ void setItemBrandName (final String itemBrandName); + /** + * Getter for item number + *

+ * @return Item number + */ + Long getItemNumber (); + + /** + * Setter for item number + *

+ * @param itemNumber Item number + */ + void setItemNumber (final Long itemNumber); + @Override boolean equals (final Object object); diff --git a/src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItem.java b/src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItem.java index bc695ed..35a00e5 100644 --- a/src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItem.java +++ b/src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItem.java @@ -74,7 +74,7 @@ public class FinancialReceiptItem implements BillableReceiptItem { /** * Item branding */ - @Column(name = "item_brand_name") + @Column (name = "item_brand_name") private String itemBrandName; /** @@ -131,6 +131,12 @@ public class FinancialReceiptItem implements BillableReceiptItem { @Column (name = "item_net_price") private Float itemNetPrice; + /** + * Item's number + */ + @Column(name = "item_number") + private Long itemNumber; + /** * Product being linked in this itemReceipt item */ @@ -299,6 +305,16 @@ public class FinancialReceiptItem implements BillableReceiptItem { this.itemNetPrice = itemNetPrice; } + @Override + public Long getItemNumber () { + return this.itemNumber; + } + + @Override + public void setItemNumber (final Long itemNumber) { + this.itemNumber = itemNumber; + } + @Override public Product getItemProduct () { return this.itemProduct;