19 package org.turro.financials.linetype;
21 import java.util.Collection;
22 import java.util.Iterator;
23 import org.turro.financials.db.FinancialsPU;
24 import org.turro.financials.entity.Contract;
25 import org.turro.financials.entity.ContractPreference;
26 import org.turro.financials.entity.Document;
27 import org.turro.financials.entity.LineType;
28 import org.turro.jpa.Dao;
36 public void setData(
Contract contract,
long lineTypeId,
long contractPreferenceId) {
37 if(contract !=
null) {
40 Iterator<LineType> it = types.iterator();
42 long id = it.next().getId();
43 if(!(
id == 108L ||
id == 4L)) {
ContractPreference getDefaultContractPreference()
Collection< LineType > getLineTypes()
void setContractPreference(ContractPreference contractPreference)
void setData(Contract contract, long lineTypeId, long contractPreferenceId)