From: Roland Häder Date: Sat, 16 Jun 2018 13:15:03 +0000 (+0200) Subject: Don't cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0dc647dfb26ddd9c50a86709e8f40db881c33095;p=jfinancials-war.git Don't cherry-pick: - added transaction number as some receipts contain it Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jfinancials/beans/financial/model/receipt/FinancialAdminReceiptWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/financial/model/receipt/FinancialAdminReceiptWebRequestBean.java index 30621c30..479029aa 100644 --- a/src/java/org/mxchange/jfinancials/beans/financial/model/receipt/FinancialAdminReceiptWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/financial/model/receipt/FinancialAdminReceiptWebRequestBean.java @@ -117,6 +117,11 @@ public class FinancialAdminReceiptWebRequestBean extends BaseFinancialsBean impl */ private Long receiptSequenceNumber; + /** + * Transaction number + */ + private Long receiptTransactionNumber; + /** * User who "owns" this receipt */ @@ -328,6 +333,24 @@ public class FinancialAdminReceiptWebRequestBean extends BaseFinancialsBean impl this.receiptSequenceNumber = receiptSequenceNumber; } + /** + * Getter for receipt transaction number + *

+ * @return Receipt transaction number + */ + public Long getReceiptTransactionNumber () { + return this.receiptTransactionNumber; + } + + /** + * Setter for receipt transaction number + *

+ * @param receiptTransactionNumber Receipt transaction number + */ + public void setReceiptTransactionNumber (final Long receiptTransactionNumber) { + this.receiptTransactionNumber = receiptTransactionNumber; + } + /** * Getter for user instance *

@@ -359,6 +382,7 @@ public class FinancialAdminReceiptWebRequestBean extends BaseFinancialsBean impl this.setReceiptRegisterNumber(null); this.setReceiptSellerEmployee(null); this.setReceiptSequenceNumber(null); + this.setReceiptTransactionNumber(null); this.setReceiptUser(null); } @@ -378,6 +402,7 @@ public class FinancialAdminReceiptWebRequestBean extends BaseFinancialsBean impl receipt.setReceiptRegisterNumber(this.getReceiptRegisterNumber()); receipt.setReceiptSellerEmployee(this.getReceiptSellerEmployee()); receipt.setReceiptSequenceNumber(this.getReceiptSequenceNumber()); + receipt.setReceiptTransactionNumber(this.getReceiptTransactionNumber()); // Return prepared instance return receipt; diff --git a/src/java/org/mxchange/localization/project_de_DE.properties b/src/java/org/mxchange/localization/project_de_DE.properties index b0531713..fa67bafe 100644 --- a/src/java/org/mxchange/localization/project_de_DE.properties +++ b/src/java/org/mxchange/localization/project_de_DE.properties @@ -364,3 +364,4 @@ ADMIN_EDIT_GENERIC_PRODUCT_TITLE=Produkt-Id {0} editieren ADMIN_EDIT_GENERIC_PRODUCT_MINIMUM_DATA=Sie koennen hier alle Werte aendern aber geben oder waehlen Sie mindestens die markierten (*) ein/aus. #@TODO Please fix German umlauts! BUTTON_ADMIN_EDIT_GENERIC_PRODUCT=Allgemeines Produkt aendern +ENTER_RECEIPT_TRANSACTION_NUMBER=Transaktionsnummer eingeben: diff --git a/src/java/org/mxchange/localization/project_en_US.properties b/src/java/org/mxchange/localization/project_en_US.properties index 4e26cf27..72e95267 100644 --- a/src/java/org/mxchange/localization/project_en_US.properties +++ b/src/java/org/mxchange/localization/project_en_US.properties @@ -270,3 +270,4 @@ RECEIPT_ENTRY_CREATED_TITLE=When this receipt entry has been added to database. ADMIN_EDIT_GENERIC_PRODUCT_TITLE=Edit product id {0} ADMIN_EDIT_GENERIC_PRODUCT_MINIMUM_DATA=You can edit all values here but enter or select at least all marked (*) values. BUTTON_ADMIN_EDIT_GENERIC_PRODUCT=Change generic product +ENTER_RECEIPT_TRANSACTION_NUMBER=Enter transaction Number: diff --git a/web/WEB-INF/templates/admin/financial/receipt/admin_form_financial_receipt.tpl b/web/WEB-INF/templates/admin/financial/receipt/admin_form_financial_receipt.tpl index c25e5c0a..26e87727 100644 --- a/web/WEB-INF/templates/admin/financial/receipt/admin_form_financial_receipt.tpl +++ b/web/WEB-INF/templates/admin/financial/receipt/admin_form_financial_receipt.tpl @@ -112,6 +112,9 @@ + + +