18 package org.turro.financials.model.contract;
20 import java.util.List;
21 import org.turro.string.Strings;
22 import org.turro.contacts.Address;
23 import org.turro.contacts.Contact;
24 import org.turro.contacts.util.ContactList;
25 import org.turro.elephant.security.IUser;
26 import org.turro.financials.db.FinancialsPU;
27 import org.turro.financials.entity.Contract;
28 import org.turro.jpa.Dao;
29 import org.turro.plugin.contacts.IContact;
41 private void fillSet() {
43 List<Contract> l = dao.getResultList(
"select ctc from Contract as ctc");
45 checkContractor(ctc.getIContractor());
49 private void checkContractor(IContact iContact) {
50 if(iContact !=
null) {
51 Contact contact = (Contact) iContact.getContact();
53 if(Strings.isBlank(contact.getGlobalIdentifier())) {
56 Address address = contact.getAddressMap().get(IUser.ADDRESS_FISCAL);
59 }
else if(Strings.isBlank(address.getZipCode())) {