]> git.mxchange.org Git - jfinancials-war.git/commitdiff
Don't cherry-pick:
authorRoland Häder <roland@mxchange.org>
Sat, 31 Mar 2018 00:23:51 +0000 (02:23 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 31 Mar 2018 00:23:51 +0000 (02:23 +0200)
- if for example an employee is assigned to a company (basic_data) then always
  link the "show basic data" view and not the company's website URL

Signed-off-by: Roland Häder <roland@mxchange.org>
web/WEB-INF/faces-config.xml
web/admin/financial/receipt_item/admin_receipt_item_list.xhtml

index 54ed8dc8effd3b9ada91270cb5d6f692c93e763e..43aeae355b646c7945a5bf891320a6fc0e7b6321 100644 (file)
                        <from-outcome>admin_show_generic_product</from-outcome>
                        <to-view-id>/admin/generic_product/admin_generic_product_show.xhtml</to-view-id>
                </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_show_basic_data</from-outcome>
+                       <to-view-id>/admin/basic_data/admin_basic_data_show.xhtml</to-view-id>
+               </navigation-case>
        </navigation-rule>
        <!--
        <factory>
index 1265d4f77e293848548a8fad4c37332c08bba3e5..5fc51f1148bc7055abb24a197f712b41681ffe05 100644 (file)
@@ -97,7 +97,7 @@
                                        </p:link>
                                </p:column>
 
-                               <p:column headerText="#{project.ADMIN_RECEIPT_ITEM_MANUFACTURER_NAME_HEADER}" sortBy="#{item.itemManufacturer.companyName}" filterBy="#{item.itemManufacturer}" filterMatchMode="in">
+                               <p:column headerText="#{project.ADMIN_RECEIPT_ITEM_MANUFACTURER_NAME_HEADER}" sortBy="#{receiptItem.itemManufacturer.companyName}" filterBy="#{receiptItem.itemManufacturer}" filterMatchMode="in">
                                        <f:facet name="filter">
                                                <p:selectCheckboxMenu
                                                        filter="true"
                                                </p:selectCheckboxMenu>
                                        </f:facet>
 
-                                       <p:link
-                                               href="#{item.itemManufacturer.companyWebsiteUrl}"
-                                               target="_blank"
-                                               title="#{msg.LINK_COMPANY_WEBSITE_URL_TITLE}"
-                                               rel="external"
-                                               rendered="#{not empty item.itemManufacturer.companyWebsiteUrl and not empty item.itemManufacturer.companyName}"
-                                               >
-                                               <h:outputText value="#{item.itemManufacturer.companyName}" />
+                                       <p:link outcome="admin_show_basic_data" value="#{beanHelper.renderBasicData(receiptItem.itemManufacturer)}" title="#{msg.ADMIN_LINK_SHOW_BASIC_DATA_TITLE}" rendered="#{not empty receiptItem.itemManufacturer}">
+                                               <f:param name="basicDataId" value="#{receiptItem.itemManufacturer.basicDataId}" />
                                        </p:link>
 
-                                       <h:outputText value="#{item.itemManufacturer.companyName}" title="#{msg.NO_WEBSITE_URL_ENTERED}" rendered="#{empty item.itemManufacturer.companyWebsiteUrl and not empty item.itemManufacturer.companyName}" />
-
-                                       <h:outputText value="#{msg.ADMIN_NOT_ASSIGNED}" title="#{project.ADMIN_NO_PRODUCT_MANUFACTURER_ASSIGNED_TITLE}" rendered="#{empty item.itemManufacturer}" />
+                                       <h:outputText value="#{msg.ADMIN_NOT_ASSIGNED}" title="#{project.ADMIN_NO_PRODUCT_MANUFACTURER_ASSIGNED_TITLE}" rendered="#{empty receiptItem.itemManufacturer}" />
                                </p:column>
 
                                <p:column headerText="#{msg.ENTRY_CREATED_HEADER}" sortBy="#{receipt.receiptCreated}" filterable="false">