]> git.mxchange.org Git - jfinancials-war.git/commitdiff
Don't cherry-pick:
authorRoland Häder <roland@mxchange.org>
Sun, 24 Jun 2018 20:41:20 +0000 (22:41 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 24 Jun 2018 21:29:32 +0000 (23:29 +0200)
- let's render the receipt's bar code into an actual barcode
- renamed RECEIPT_NUMBER -> RECEIPT_NUMBER_HEADER
- added showing receipt number in list view (receipts)

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/localization/project_de_DE.properties
src/java/org/mxchange/localization/project_en_US.properties
web/WEB-INF/templates/user/financial/receipt/login_form_financial_receipt.tpl
web/WEB-INF/web.xml
web/admin/financial/receipt/admin_receipt_list.xhtml

index 64e3905342025a8f784d75bc1da178ca450c3933..b9c5a808831566a468652eeedb1f6d703e5604a6 100644 (file)
@@ -215,7 +215,7 @@ ADMIN_PRODUCT_UNIT_I18N_KEY_REQUIRED=Bitte geben Sie den Uebersetzungschluessel
 ADMIN_PRODUCT_MANUFACTURER_NAME_HEADER=Produktehersteller:
 ADMIN_NO_PRODUCT_MANUFACTURER_ASSIGNED_TITLE=Es ist kein Hersteller dem Produkt zugewiesen.
 RECEIPT_ISSUED=Ausgestellt:
-RECEIPT_NUMBER=Kassenbonnummer:
+RECEIPT_NUMBER_HEADER=Kassenbonnummer:
 ADMIN_ENTER_GENERIC_PRODUCT_NUMBER=Geben Sie die Produktnummer ein:
 ADMIN_ENTER_GENERIC_PRODUCT_NUMBER_TITLE=Geben Sie die Nummer des Produktes ein.
 ENTER_RECEIPT_ITEM_NUMBER=Artikelnumber:
@@ -368,3 +368,4 @@ ENTER_RECEIPT_TRANSACTION_NUMBER=Transaktionsnummer eingeben:
 RECEIPT_REGISTER_NUMBER_HEADER=Kassennummer:
 RECEIPT_REGISTER_NUMBER_TITLE=Kassenummer des Kassenbons.
 ADMIN_PRODUCT_NUMBER_HEADER=Produktnummer:
+RECEIPT_NO_BARCODE_ASSIGNED=Dem Kassenbon wurde kein Barcode zugewiesen.
index aa7f56d42356dc618278faefc90194ca92770d8d..16f4c150d5beb39345eb39489311675b372c208f 100644 (file)
@@ -153,7 +153,7 @@ ADMIN_PRODUCT_UNIT_I18N_KEY_REQUIRED=Please enter unit's i18n key. Example: UNIT
 ADMIN_PRODUCT_MANUFACTURER_NAME_HEADER=Product manufacturer:
 ADMIN_NO_PRODUCT_MANUFACTURER_ASSIGNED_TITLE=No manufacturer is assigned with this product.
 RECEIPT_ISSUED=Issued at:
-RECEIPT_NUMBER=Receipt number:
+RECEIPT_NUMBER_HEADER=Receipt number:
 ADMIN_ENTER_GENERIC_PRODUCT_NUMBER=Enter product number:
 ADMIN_ENTER_GENERIC_PRODUCT_NUMBER_TITLE=Enter number of product.
 ENTER_RECEIPT_ITEM_NUMBER=Item number:
@@ -274,3 +274,4 @@ ENTER_RECEIPT_TRANSACTION_NUMBER=Enter transaction Number:
 RECEIPT_REGISTER_NUMBER_HEADER=Register number:
 RECEIPT_REGISTER_NUMBER_TITLE=Register's number of receipt.
 ADMIN_PRODUCT_NUMBER_HEADER=Product number:
+RECEIPT_NO_BARCODE_ASSIGNED=No barcode has been assigned to the receipt.
index 1662ce4eabf728b58ea12fd4180f5546f83c11c4..b8258e9aaa1b158c9352106dee0d433ebb9d9fcc 100644 (file)
@@ -86,7 +86,7 @@
                        columns="2"
                        columnClasses="ui-grid-col-4,ui-grid-col-8"
                        >
-                       <p:outputLabel for="receiptNumber" value="#{project.RECEIPT_NUMBER}" />
+                       <p:outputLabel for="receiptNumber" value="#{project.RECEIPT_NUMBER_HEADER}" />
                        <p:inputText
                                id="receiptNumber"
                                size="20"
index 0402abaf3e3209b1cc6e75c8d881c242a68a4cc5..cbf3761458b5a1d1b6148f7a087ec4aa5efa9b7c 100644 (file)
         <param-name>min_user_password_score</param-name>
         <param-value>50</param-value>
     </context-param>
+    <context-param>
+        <description>Type of receipt barcode (see p:barcode)</description>
+        <param-name>receipt_barcode_type</param-name>
+        <param-value>codabar</param-value>
+    </context-param>
     <servlet>
         <servlet-name>Faces Servlet</servlet-name>
         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
index dadecc3a65832b6be595891b2441b3717beb5808..3e2c3edc5422bb72a69448bfaafd27591b023664 100644 (file)
                                        </p:link>
                                </p:column>
 
+                               <p:column headerText="#{project.RECEIPT_NUMBER_HEADER}" sortBy="#{receipt.receiptNumber}" filterBy="#{receipt.receiptNumber}">
+                                       <h:outputText value="#{receipt.receiptNumber}" rendered="#{not empty receipt.receiptNumber}" />
+                                       <h:outputText value="-" rendered="#{empty receipt.receiptNumber}" />
+                               </p:column>
+
                                <p:column headerText="#{msg.ADMIN_ASSIGNED_BRANCH_OFFICE}" sortBy="#{receipt.receiptBranchOffice}" filterBy="#{receipt.receiptBranchOffice}" filterMatchMode="in">
                                        <f:facet name="filter">
                                                <p:selectCheckboxMenu
                                                <p:outputLabel value="#{msg.ID_NUMBER_HEADER}" title="#{project.RECEIPT_ID_NUMBER_TITLE}" />
                                                <h:outputText value="#{receiptListController.selectedReceipt.receiptId}" />
 
-                                               <p:outputLabel value="#{project.RECEIPT_NUMBER}" title="#{project.RECEIPT_NUMBER_TITLE}" />
+                                               <p:outputLabel value="#{project.RECEIPT_NUMBER_HEADER}" title="#{project.RECEIPT_NUMBER_HEADER_TITLE}" />
                                                <h:outputText value="#{receiptListController.selectedReceipt.receiptNumber}" />
 
                                                <p:outputLabel value="#{project.RECEIPT_ISSUED}" title="#{project.RECEIPT_ISSUED_TITLE}" />
                                                <h:outputText value="#{receiptListController.selectedReceipt.receiptRegisterNumber}" />
 
                                                <p:outputLabel value="#{project.RECEIPT_BARCODE_HEADER}" title="#{project.RECEIPT_BARCODE_TITLE}" />
-                                               <h:outputText value="#{receiptListController.selectedReceipt.receiptBarCodeNumber}" />
+                                               <h:outputText value="#{project.RECEIPT_NO_BARCODE_ASSIGNED}" rendered="#{empty receiptListController.selectedReceipt.receiptBarCodeNumber}" />
+                                               <p:barcode format="svg" width="100%" type="#{initParam['receipt_barcode_type']}" value="#{receiptListController.selectedReceipt.receiptBarCodeNumber}" rendered="#{not empty receiptListController.selectedReceipt.receiptBarCodeNumber}" />
 
                                                <p:outputLabel value="#{project.RECEIPT_SEQUENCE_NUMBER_HEADER}" title="#{project.RECEIPT_SEQUENCE_NUMBER_TITLE}" />
                                                <h:outputText value="#{receiptListController.selectedReceipt.receiptSequenceNumber}" />