RECEIPT_ITEM_PRODUCT_QUANTITY_TITLE=Menge des Kassenboneintrages.
RECEIPT_ITEM_BRAND_NAME_TITLE=Warenzeichen des Kassenboneintrages.
PRODUCT_I18N_KEY_HEADER=Internationalisierungsschluessel des Produktes:
-ADMIN_ASSIGNED_RECEIPT_ITEM_CATEGORY_HEADER=Zum Eintrag zugewiesene Kategorie:
-ADMIN_ASSIGNED_RECEIPT_ITEM_CATEGORY_TITLE=Dem Kassenboneintrag zugewiesene Kategorie.
RECEIPT_ITEM_GROSS_PRICE_TITLE=Gesamtbruttopreis eines einzelnen Kassenboneintrages.
RECEIPT_ITEM_NET_PRICE_TITLE=GesamtNettopreis eines einzelnen Kassenboneintrages.
ADMIN_ASSIGNED_MANUFACTURER_HEADER=Zugewiesener Hersteller:
RECEIPT_ITEM_PRODUCT_QUANTITY_TITLE=Quantity of the receipt item.
RECEIPT_ITEM_BRAND_NAME_TITLE=Brand name of receipt item.
PRODUCT_I18N_KEY_HEADER=Product's internationalization key:
-ADMIN_ASSIGNED_RECEIPT_ITEM_CATEGORY_HEADER=Assigned category to receipt item:
-ADMIN_ASSIGNED_RECEIPT_ITEM_CATEGORY_TITLE=Category assigned to receipt item.
RECEIPT_ITEM_GROSS_PRICE_TITLE=Total gross price of a single receipt item.
RECEIPT_ITEM_NET_PRICE_TITLE=Total net price of a single receipt item.
ADMIN_ASSIGNED_MANUFACTURER_HEADER=Assigned manufacturer:
required="true"
requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_REQUIRED}"
>
+
<f:converter converterId="BranchOfficeConverter" />
+
<f:selectItem itemValue="#{null}" itemLabel="#{msg.PLEASE_SELECT}" noSelectionOption="true" itemDisabled="true" />
- <f:selectItems value="#{branchOfficeListController.allBranchOffices()}" var="branchOffice" itemValue="#{branchOffice}" itemLabel="#{branchOffice.branchCompany.companyName} #{branchOffice.branchStreet} #{branchOffice.branchHouseNumber}, #{branchOffice.branchCity}" />
+
+ <f:selectItems
+ value="#{branchOfficeListController.allBranchOffices()}"
+ var="branchOffice"
+ itemValue="#{branchOffice}"
+ itemLabel="#{beanHelper.renderBranchOffice(branchOffice)}"
+ />
</p:selectOneMenu>
<p:outputLabel for="receiptIssued" value="#{project.ENTER_RECEIPT_ISSUE_DATE}" />
required="true"
requiredMessage="#{msg.FIELD_PAYMENT_TYPE_REQUIRED}"
>
+
<f:converter converterId="PaymentTypeConverter" />
+
<f:selectItem itemValue="#{null}" itemLabel="#{msg.PLEASE_SELECT}" noSelectionOption="true" itemDisabled="true" />
- <f:selectItems value="#{dataController.paymentTypes}" var="paymentType" itemValue="#{paymentType}" itemLabel="#{msg[paymentType.i18nKey]}" />
+
+ <f:selectItems
+ value="#{dataController.paymentTypes}"
+ var="paymentType"
+ itemValue="#{paymentType}"
+ itemLabel="#{msg[paymentType.i18nKey]}"
+ />
</p:selectOneMenu>
<p:outputLabel for="receiptSellerEmployee" value="#{msg.ADMIN_SELECT_SELLER_EMPLOYEE}" />
filter="true"
filterMatchMode="contains"
>
+
<f:converter converterId="EmployeeConverter" />
+
<f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{employeeController.allEmployees()}" var="employee" itemValue="#{employee}" itemLabel="#{beanHelper.renderEmployee(employee)}" itemDescription="#{employee.employeeBasicData.companyName}, #{beanHelper.renderBranchOffice(employee.employeeBranchOffice)}" />
+
+ <f:selectItems
+ value="#{employeeController.allEmployees()}"
+ var="employee"
+ itemValue="#{employee}"
+ itemLabel="#{beanHelper.renderEmployee(employee)}"
+ itemDescription="#{employee.employeeBasicData.companyName}, #{beanHelper.renderBranchOffice(employee.employeeBranchOffice)}"
+ />
</p:selectOneMenu>
<p:outputLabel for="receiptUser" value="#{project.ADMIN_SELECT_RECEIPT_USER_OWNER}" />
filter="true"
filterMatchMode="contains"
>
+
<f:converter converterId="UserConverter" />
+
<f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{userController.allUsers()}" var="receiptUser" itemValue="#{receiptUser}" itemLabel="#{receiptUser.userContact.contactFirstName} #{receiptUser.userContact.contactFamilyName} (#{receiptUser.userName})" />
+
+ <f:selectItems
+ value="#{userController.allUsers()}"
+ var="receiptUser"
+ itemValue="#{receiptUser}"
+ itemLabel="#{beanHelper.renderContact(receiptUser.userContact)} (#{receiptUser.userName})"
+ />
</p:selectOneMenu>
</p:panelGrid>
</p:fieldset>
required="true"
requiredMessage="#{project.ADMIN_PRODUCT_REQUIRED}"
>
+
<f:converter converterId="GenericProductConverter" />
+
<f:selectItem itemValue="#{null}" itemLabel="#{msg.PLEASE_SELECT}" noSelectionOption="true" itemDisabled="true" />
- <f:selectItems value="#{productListController.allProducts}" var="product" itemValue="#{product}" itemLabel="#{productBeanHelper.renderGenericProduct(product)}" />
+
+ <f:selectItems
+ value="#{productListController.allProducts}"
+ var="product"
+ itemValue="#{product}"
+ itemLabel="#{productBeanHelper.renderGenericProduct(product)}"
+ />
</p:selectOneMenu>
<p:outputLabel for="itemManufacturer" value="#{project.SELECT_RECEIPT_ITEM_MANUFACTURER}" />
filter="true"
filterMatchMode="contains"
>
+
<f:converter converterId="BasicCompanyDataConverter" />
+
<f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{basicDataListController.allBasicData}" var="basicData" itemValue="#{basicData}" itemLabel="#{basicData.companyName}" />
+
+ <f:selectItems
+ value="#{basicDataListController.allBasicData}"
+ var="basicData"
+ itemValue="#{basicData}"
+ itemLabel="#{beanHelper.renderBasicData(basicData)}"
+ />
</p:selectOneMenu>
<p:outputLabel for="itemQuantity" value="#{project.ENTER_RECEIPT_ITEM_QUANTITY}" />
required="true"
requiredMessage="#{project.ADMIN_RECEIPT_REQUIRED}"
>
+
<f:converter converterId="ReceiptConverter" />
+
<f:selectItem itemValue="#{null}" itemLabel="#{msg.PLEASE_SELECT}" noSelectionOption="true" itemDisabled="true" />
- <f:selectItems value="#{receiptListController.allReceipts}" var="receipt" itemValue="#{receipt}" itemLabel="#{receiptBeanHelper.renderReceipt(receipt)}" />
+
+ <f:selectItems
+ value="#{receiptListController.allReceipts}"
+ var="receipt"
+ itemValue="#{receipt}"
+ itemLabel="#{receiptBeanHelper.renderReceipt(receipt)}"
+ />
</p:selectOneMenu>
<p:outputLabel value="#{project.ADMIN_ENTER_GENERIC_PRODUCT_PRICE}" />
required="true"
requiredMessage="#{msg.LOGIN_BRANCH_OFFICE_REQUIRED}"
>
+
<f:converter converterId="BranchOfficeConverter" />
+
<f:selectItem itemValue="#{null}" itemLabel="#{msg.PLEASE_SELECT}" noSelectionOption="true" itemDisabled="true" />
- <f:selectItems value="#{branchOfficeListController.allBranchOffices()}" var="branchOffice" itemValue="#{branchOffice}" itemLabel="#{branchOffice.branchCompany.companyName} #{branchOffice.branchStreet} #{branchOffice.branchHouseNumber}, #{branchOffice.branchCity}" />
+
+ <f:selectItems
+ value="#{branchOfficeListController.allBranchOffices()}"
+ var="branchOffice"
+ itemValue="#{branchOffice}"
+ itemLabel="#{beanHelper.renderBranchOffice(branchOffice)}"
+ />
</p:selectOneMenu>
<p:message for="branchOffice" />
required="true"
requiredMessage="#{msg.FIELD_PAYMENT_TYPE_REQUIRED}"
>
+
<f:converter converterId="PaymentTypeConverter" />
+
<f:selectItem itemValue="#{null}" itemLabel="#{msg.PLEASE_SELECT}" noSelectionOption="true" itemDisabled="true" />
- <f:selectItems value="#{dataController.paymentTypes}" var="receiptPaymentType" itemValue="#{paymentType}" itemLabel="#{msg[paymentType.i18nKey]}" />
+
+ <f:selectItems
+ value="#{dataController.paymentTypes}"
+ var="receiptPaymentType"
+ itemValue="#{paymentType}"
+ itemLabel="#{msg[paymentType.i18nKey]}"
+ />
</p:selectOneMenu>
<p:message for="receiptPaymentType" />
filter="true"
filterMatchMode="contains"
>
+
<f:converter converterId="EmployeeConverter" />
+
<f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{employeeController.allEmployees()}" var="companyHeadquarter" itemValue="#{companyEmployee}" itemLabel="#{companyEmployee.foo}" />
+
+ <f:selectItems
+ value="#{employeeController.allEmployees()}"
+ var="companyHeadquarter"
+ itemValue="#{companyEmployee}"
+ itemLabel="#{beanHelper.renderEmployee(companyEmployee)}"
+ />
</p:selectOneMenu>
<p:message for="receiptSellerEmployee" />
</p:panelGrid>
oncomplete="PF('receiptDialog').show()"
/>
- <p:column headerText="#{msg.ID_NUMBER_HEADER}" sortBy="#{receipt.receiptId}" filterBy="#{receipt.receiptId}">
+ <p:column headerText="#{msg.ID_HEADER}" sortBy="#{receipt.receiptId}" filterBy="#{receipt.receiptId}">
<p:link outcome="admin_show_receipt" title="#{project.ADMIN_LINK_SHOW_RECEIPT_TITLE}" value="#{receipt.receiptId}">
<f:param name="receiptId" value="#{receipt.receiptId}" />
</p:link>
title="#{msg.FILTER_BY_MULTIPLE_BRANCH_OFFICES_TITLE}"
>
<f:converter converterId="BranchOfficeConverter" />
- <f:selectItems value="#{branchOfficeListController.allBranchOffices()}" var="branchOffice" itemValue="#{branchOffice}" itemLabel="#{beanHelper.renderBranchOffice(branchOffice)}" />
+
+ <f:selectItems
+ value="#{branchOfficeListController.allBranchOffices()}"
+ var="branchOffice"
+ itemValue="#{branchOffice}"
+ itemLabel="#{beanHelper.renderBranchOffice(branchOffice)}"
+ />
</p:selectCheckboxMenu>
</f:facet>
title="#{project.FILTER_BY_MULTIPLE_RECEIPT_SELLERS_TITLE}"
>
<f:converter converterId="EmployeeConverter" />
+
<f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{employeeController.allEmployees()}" var="employee" itemValue="#{employee}" itemLabel="#{beanHelper.renderEmployee(employee)}" />
+
+ <f:selectItems
+ value="#{employeeController.allEmployees()}"
+ var="employee"
+ itemValue="#{employee}"
+ itemLabel="#{beanHelper.renderEmployee(employee)}"
+ />
</p:selectCheckboxMenu>
</f:facet>
title="#{msg.FILTER_BY_MULTIPLE_USERS_TITLE}"
>
<f:converter converterId="UserConverter" />
+
<f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
- <f:selectItems value="#{userController.allUsers()}" var="user" itemValue="#{user}" itemLabel="#{user.userName}" />
+
+ <f:selectItems
+ value="#{userController.allUsers()}"
+ var="user"
+ itemValue="#{user}"
+ itemLabel="#{beanHelper.renderUser(user)}"
+ />
</p:selectCheckboxMenu>
</f:facet>
onchange="PF('receiptList').filter()"
>
<f:converter converterId="PaymentTypeConverter" />
- <f:selectItems value="#{dataController.paymentTypes}" var="paymentType" itemValue="#{paymentType}" itemLabel="#{msg[paymentType.i18nKey]}" />
+
+ <f:selectItems
+ value="#{dataController.paymentTypes}"
+ var="paymentType"
+ itemValue="#{paymentType}"
+ itemLabel="#{msg[paymentType.i18nKey]}"
+ />
</p:selectCheckboxMenu>
</f:facet>
</h:outputFormat>
</f:facet>
- <p:outputLabel value="#{msg.ID_NUMBER_HEADER}" title="#{project.RECEIPT_ID_NUMBER_TITLE}" />
+ <p:outputLabel value="#{msg.ID_HEADER}" title="#{project.RECEIPT_ID_NUMBER_TITLE}" />
<h:outputText value="#{receiptListController.selectedReceipt.receiptId}" />
<p:outputLabel value="#{project.RECEIPT_NUMBER_HEADER}" title="#{project.RECEIPT_NUMBER_HEADER_TITLE}" />
</p:dialog>
</h:form>
- <h:form id="form-add-receipt">
+ <h:form>
<p:panelGrid
layout="grid"
columns="1"
/>
<p:commandButton
- process="@form"
type="submit"
value="#{project.BUTTON_ADMIN_ADD_RECEIPT}"
action="#{adminReceiptController.addReceipt()}"
oncomplete="PF('receiptItemDialog').show()"
/>
- <p:column headerText="#{msg.ID_NUMBER_HEADER}" sortBy="#{receiptItem.itemId}" filterBy="#{receiptItem.itemId}">
+ <p:column headerText="#{msg.ID_HEADER}" sortBy="#{receiptItem.itemId}" filterBy="#{receiptItem.itemId}">
<p:link outcome="admin_show_receipt_item" title="#{project.ADMIN_LINK_SHOW_RECEIPT_ITEM_TITLE}" value="#{receiptItem.itemId}">
<f:param name="receiptItemId" value="#{receiptItem.itemId}" />
</p:link>
title="#{project.FILTER_BY_MULTIPLE_RECEIPTS_TITLE}"
>
<f:converter converterId="ReceiptConverter" />
- <f:selectItems value="#{receiptListController.allReceipts}" var="receipt" itemValue="#{receipt}" itemLabel="#{receiptBeanHelper.renderReceipt(receipt)}" />
+
+ <f:selectItems
+ value="#{receiptListController.allReceipts}"
+ var="receipt"
+ itemValue="#{receipt}"
+ itemLabel="#{receiptBeanHelper.renderReceipt(receipt)}"
+ />
</p:selectCheckboxMenu>
</f:facet>
title="#{project.FILTER_BY_MULTIPLE_ITEM_PRODUCTS_TITLE}"
>
<f:converter converterId="GenericProductConverter" />
- <f:selectItems value="#{productListController.allProducts}" var="product" itemValue="#{product}" itemLabel="#{productBeanHelper.renderGenericProduct(product)}" />
+
+ <f:selectItems
+ value="#{productListController.allProducts}"
+ var="product"
+ itemValue="#{product}"
+ itemLabel="#{productBeanHelper.renderGenericProduct(product)}"
+ />
</p:selectCheckboxMenu>
</f:facet>
title="#{msg.FILTER_BY_MULTIPLE_COMPANIES_TITLE}"
>
<f:converter converterId="BasicCompanyDataConverter" />
- <f:selectItems value="#{basicDataListController.allBasicData}" var="basicData" itemValue="#{basicData}" itemLabel="#{basicData.companyName}" />
+
+ <f:selectItems
+ value="#{basicDataListController.allBasicData}"
+ var="basicData"
+ itemValue="#{basicData}"
+ itemLabel="#{basicData.companyName}"
+ />
</p:selectCheckboxMenu>
</f:facet>
</h:outputFormat>
</f:facet>
- <p:outputLabel value="#{msg.ID_NUMBER_HEADER}" title="#{project.RECEIPT_ID_NUMBER_TITLE}" />
+ <p:outputLabel value="#{msg.ID_HEADER}" title="#{project.RECEIPT_ID_NUMBER_TITLE}" />
<h:outputText value="#{receiptItemListController.selectedReceiptItem.itemId}" />
<p:outputLabel value="#{project.RECEIPT_ITEM_NUMBER_HEADER}" title="#{project.RECEIPT_ITEM_NUMBER_TITLE}" />
<f:param name="productId" value="#{receiptItemListController.selectedReceiptItem.itemProduct.productId}" />
</p:link>
- <p:outputLabel value="#{project.ADMIN_ASSIGNED_RECEIPT_ITEM_CATEGORY_HEADER}" title="#{project.ADMIN_ASSIGNED_RECEIPT_ITEM_CATEGORY_TITLE}" />
- <p:link outcome="admin_show_product_category" title="#{project.ADMIN_LINK_SHOW_RECEIPT_ITEM_CATEGORY_TITLE}" value="#{local[receiptItemListController.selectedReceiptItem.itemCategory.categoryI18nKey]}">
- <f:param name="categoryId" value="#{receiptItemListController.selectedReceiptItem.itemCategory.categoryId}" />
- </p:link>
-
<p:outputLabel value="#{project.ADMIN_ASSIGNED_MANUFACTURER_HEADER}" title="#{project.ADMIN_ASSIGNED_RECEIPT_ITEM_MANUFACTURER_TITLE}" />
<p:link
outcome="admin_show_basic_data"
</p:dialog>
</h:form>
- <h:form id="form-add-receipt-item">
+ <h:form>
<p:panelGrid
columns="1"
layout="grid"
/>
<p:commandButton
- process="@form"
type="submit"
value="#{project.BUTTON_ADMIN_ADD_RECEIPT_TEM}"
action="#{adminReceiptItemController.addReceiptItem()}"
</ui:define>
<ui:define name="content">
- <h:form id="form_add_financials_income">
+ <h:form>
<h:panelGroup layout="block">
<div class="table-header">
<h:outputText value="#{project.LOGIN_FINANCIAL_ADD_INCOME_FORM_TITLE}" />
required="true"
requiredMessage="#{project.FIELD_FINANCIAL_INCOME_REQUIRED}"
>
- <f:selectItems value="#{financialIncomeController.allIncomeIntervals()}" var="incomeInterval" itemValue="#{incomeInterval}" itemLabel="#{msg[incomeInterval.concat('_INTERVAL')]}" />
+ <f:selectItems
+ value="#{financialIncomeController.allIncomeIntervals()}"
+ var="incomeInterval"
+ itemValue="#{incomeInterval}"
+ itemLabel="#{msg[incomeInterval.concat('_INTERVAL')]}"
+ />
</p:selectOneMenu>
</div>
</h:panelGroup>
/>
<p:commandButton
- process="@form"
type="submit"
value="#{project.BUTTON_LOGIN_FINANCIAL_ADD_INCOME}"
action="#{financialIncomeController.addIncome()}"
</ui:define>
<ui:define name="content">
- <h:form id="form_add_financial_receipt">
+ <h:form>
<p:panelGrid
columns="1"
layout="grid"
/>
<p:commandButton
- process="@form"
type="submit"
value="#{project.BUTTON_LOGIN_ADD_RECEIPT}"
action="#{receiptController.addReceipt()}"