]> git.mxchange.org Git - jfinancials-war.git/commitdiff
Don't cherry-pick:
authorRoland Häder <roland@mxchange.org>
Sat, 22 Dec 2018 01:12:27 +0000 (02:12 +0100)
committerRoland Häder <roland@mxchange.org>
Sat, 22 Dec 2018 01:12:27 +0000 (02:12 +0100)
- used beanHelper.renderBasicData() instead of direct access to BasicData's
  properties
- added 2nd parameter for beanHelper.renderBasicData()
- re-formatted JSF tag to have distinct lines for each attribute

Signed-off-by: Roland Häder <roland@mxchange.org>
web/WEB-INF/templates/admin/financial/receipt/admin_form_financial_receipt.tpl
web/WEB-INF/templates/admin/financial/receipt_item/admin_form_financial_receipt_item.tpl
web/admin/financial/receipt_item/admin_receipt_item_list.xhtml

index 41a415160ba6d77cc823f9a5c7af92875e982eb5..8ae98f77cd3af6c995280eeffb0d62b127ae56ec 100644 (file)
@@ -92,7 +92,7 @@
                                        var="employee"
                                        itemValue="#{employee}"
                                        itemLabel="#{beanHelper.renderEmployee(employee)}"
-                                       itemDescription="#{employee.employeeBasicData.companyName}, #{beanHelper.renderBranchOffice(employee.employeeBranchOffice)}"
+                                       itemDescription="#{beanHelper.renderBasicData(employee.employeeBasicData, true)}, #{beanHelper.renderBranchOffice(employee.employeeBranchOffice)}"
                                        />
                        </p:selectOneMenu>
 
index 95eb23badf0ff21576514a4db7df2a7eb6441e20..495e7043521f51751aa7c7e4a84d207f84a10191 100644 (file)
@@ -74,7 +74,7 @@
                                        value="#{basicDataListController.allBasicData}"
                                        var="basicData"
                                        itemValue="#{basicData}"
-                                       itemLabel="#{beanHelper.renderBasicData(basicData)}"
+                                       itemLabel="#{beanHelper.renderBasicData(basicData, true)}"
                                        />
                        </p:selectOneMenu>
 
index ac0da8b7839a239f098479de38f85e261924680f..3b2c14442443b7c97d7c375062976a3cf2bebebb 100644 (file)
                                                                value="#{basicDataListController.allBasicData}"
                                                                var="basicData"
                                                                itemValue="#{basicData}"
-                                                               itemLabel="#{basicData.companyName}"
+                                                               itemLabel="#{beanHelper.renderBasicData(basicData, true)}"
                                                                />
                                                </p:selectCheckboxMenu>
                                        </f:facet>
 
-                                       <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}">
+                                       <p:link
+                                               outcome="admin_show_basic_data"
+                                               value="#{beanHelper.renderBasicData(receiptItem.itemManufacturer, true)}"
+                                               title="#{msg.ADMIN_LINK_SHOW_BASIC_DATA_TITLE}"
+                                               rendered="#{not empty receiptItem.itemManufacturer}"
+                                               >
                                                <f:param name="basicDataId" value="#{receiptItem.itemManufacturer.basicDataId}" />
                                        </p:link>