import org.mxchange.jcontacts.contact.utils.ContactUtils;
import org.mxchange.jcontacts.events.contact.add.ObservableAdminAddedContactEvent;
import org.mxchange.jcontacts.events.contact.update.ObservableAdminUpdatedContactEvent;
-import org.mxchange.jcontacts.exceptions.ContactNotFoundException;
+import org.mxchange.jcontactsbusiness.exceptions.BusinessContactNotFoundException;
import org.mxchange.jcountry.data.Country;
import org.mxchange.jfinancials.beans.BaseFinancialsController;
import org.mxchange.jfinancials.beans.login.user.FinancialsUserLoginWebSessionController;
}
@Override
- public Contact lookupContactById (final Long contactId) throws ContactNotFoundException {
+ public Contact lookupContactById (final Long contactId) throws BusinessContactNotFoundException {
// Init variable
Contact localContact = null;
// Is it still null?
if (null == localContact) {
// Not visible for the current user
- throw new ContactNotFoundException(contactId);
+ throw new BusinessContactNotFoundException(contactId);
}
// Copy all data to this bean
import javax.ejb.Local;
import org.mxchange.jcontacts.contact.Contact;
import org.mxchange.jcontacts.contact.gender.Gender;
-import org.mxchange.jcontacts.exceptions.ContactNotFoundException;
+import org.mxchange.jcontactsbusiness.exceptions.BusinessContactNotFoundException;
import org.mxchange.jcountry.data.Country;
import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider;
* <p>
* @return Contact instance
* <p>
- * @throws ContactNotFoundException If the user is not found
+ * @throws BusinessContactNotFoundException If the user is not found
*/
- Contact lookupContactById (final Long contactId) throws ContactNotFoundException;
+ Contact lookupContactById (final Long contactId) throws BusinessContactNotFoundException;
/**
* Creates an instance from all properties
</div>
<div class="table_right_medium">
- <h:selectOneMenu styleClass="select" id="receiptCompany" value="#{financialReceiptController.incomeInterval}" required="true" requiredMessage="#{msg.FIELD_FINANCIAL_RECEIPT_COMPANY_REQUIRED}">
+ <h:selectOneMenu styleClass="select" id="receiptCompany" value="#{financialReceiptController.receiptCompany}" required="true" requiredMessage="#{msg.FIELD_FINANCIAL_RECEIPT_COMPANY_REQUIRED}" converter="BusinessContactConverter">
<f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" noSelectionOption="true" />
- <f:selectItems value="#{financialReceiptController.allRegisteredCompanies()}" var="receiptCompany" itemValue="#{receiptCompany}" itemLabel="#{receiptCompany.someFoo}" />
+ <f:selectItems value="#{businessContactController.allRegisteredCompanies()}" var="receiptCompany" itemValue="#{receiptCompany}" itemLabel="#{receiptCompany.basicBusinessData.companyName}" />
</h:selectOneMenu>
</div>
<div class="table_row">
<div class="table_left_medium">
- <h:outputLabel for="receiptCreated" value="#{msg.LOGIN_FINANCIAL_ENTER_RECEIPT_CREATED}" />
+ <h:outputLabel for="receiptIssued" value="#{msg.LOGIN_FINANCIAL_ENTER_RECEIPT_CREATED}" />
</div>
<div class="table_right_medium">
- <p:calendar id="receiptCreated" locale="#{localizationController.locale.displayCountry}" value="#{financialReceiptController.receiptCreated}" />
+ <p:calendar id="receiptIssued" locale="#{localizationController.locale.displayCountry}" value="#{financialReceiptController.receiptIssued}" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="table_row">
+ <div class="table_left_medium">
+ <h:outputLabel for="receiptNumber" value="#{msg.LOGIN_FINANCIAL_RECEIPT_NUMBER}" />
+ </div>
+
+ <div class="table_right_medium">
+ <h:inputText styleClass="input" id="receiptNumber" size="2" maxlength="10" value="#{financialReceiptController.receiptNumber}" validatorMessage="#{msg.ENTERED_RECEIPT_NUMBER_INVALID}">
+ <f:validateLongRange minimum="1" maximum="20" />
+ </h:inputText>
</div>
<div class="clear"></div>
<div class="table_row">
<h:outputText value="#{msg.LOGIN_FINANCIAL_COMPANY_NOT_FOUND}" />
<h:outputText value=" " />
- <p:link title="#{msg.LINK_LOGIN_FINANCIAL_ADD_COMPANY_TITLE}" outcome="login_add_receipt_company" value="#{msg.LINK_LOGIN_FINANCIAL_ADD_COMPANY}" />
+ <h:link title="#{msg.LINK_LOGIN_FINANCIAL_ADD_COMPANY_TITLE}" outcome="login_add_receipt_company" value="#{msg.LINK_LOGIN_FINANCIAL_ADD_COMPANY}" />
+ </div>
+
+ <div class="table_row">
+ <div class="table_left_medium">
+ <h:outputLabel for="paymentType" value="#{msg.LOGIN_FINANCIAL_INCOME_INTERVAL}" />
+ </div>
+
+ <div class="table_right_medium">
+ <h:selectOneMenu styleClass="select" id="paymentType" value="#{financialReceiptController.paymentType}" required="true" requiredMessage="#{msg.FIELD_FINANCIAL_INCOME_REQUIRED}">
+ <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" noSelectionOption="true" />
+ <f:selectItems value="#{financialReceiptController.allPaymentTypes()}" var="paymentType" itemValue="#{paymentType}" itemLabel="#{msg[paymentType]}" />
+ </h:selectOneMenu>
+ </div>
+
+ <div class="clear"></div>
</div>
<div class="table_footer">