◆ ContractWrapper()
org.turro.financials.model.contract.ContractWrapper.ContractWrapper |
( |
Contract |
entity | ) |
|
◆ addAdvanceIfNeeded()
void org.turro.financials.model.contract.ContractWrapper.addAdvanceIfNeeded |
( |
RegisterView |
view, |
|
|
Collection< Contract > |
contracts |
|
) |
| |
◆ canDelete()
boolean org.turro.financials.model.contract.ContractWrapper.canDelete |
( |
| ) |
|
◆ clearActives()
static void org.turro.financials.model.contract.ContractWrapper.clearActives |
( |
Collection< Contract > |
contracts | ) |
|
|
static |
◆ clearInactives()
static void org.turro.financials.model.contract.ContractWrapper.clearInactives |
( |
Collection< Contract > |
contracts | ) |
|
|
static |
◆ createDao()
Dao org.turro.financials.model.contract.ContractWrapper.createDao |
( |
| ) |
|
|
protected |
◆ generateRegisters()
void org.turro.financials.model.contract.ContractWrapper.generateRegisters |
( |
DocumentDefinition |
docDef, |
|
|
int |
year |
|
) |
| |
◆ getAdvance()
double org.turro.financials.model.contract.ContractWrapper.getAdvance |
( |
RegisterView |
view | ) |
|
Definition at line 101 of file bsfinancials-core/src/main/java/org/turro/financials/model/contract/ContractWrapper.java.
102 String acc =
entity.getContractDefinition().getAsCash();
103 if(!Strings.isBlank(acc) && (acc.startsWith(
"560") ||
104 acc.startsWith(
"561") || acc.startsWith(
"565") || acc.startsWith(
"566"))) {
106 wc.
addClause(
"select sum(re.debit-re.credit) from RegisterEntry as re");
107 wc.
addClause(
"where re.account.id = :idacc");
109 wc.
addClause(
"and re.register.view = :view");
116 if(
"566".
equals(
entity.getContractDefinition().getAsCash())) {
117 advance = advance !=
null ? -advance : 0.0d;
119 advance = advance !=
null ? advance : 0.0d;
void addClause(String clause)
void addNamedValue(String name, Object value)
Object getSingleResultOrNull(SqlClause sc)
boolean equals(Object obj)
◆ getContracts() [1/3]
static Collection<Contract> org.turro.financials.model.contract.ContractWrapper.getContracts |
( |
ContractDefinition |
contractDefinition | ) |
|
|
static |
◆ getContracts() [2/3]
static Collection<Contract> org.turro.financials.model.contract.ContractWrapper.getContracts |
( |
IContact |
contact | ) |
|
|
static |
◆ getContracts() [3/3]
static Collection<Contract> org.turro.financials.model.contract.ContractWrapper.getContracts |
( |
Long |
contractDefinitionId | ) |
|
|
static |
◆ getDocuments()
◆ getDossier()
IDossier org.turro.financials.model.contract.ContractWrapper.getDossier |
( |
| ) |
|
Definition at line 180 of file bsfinancials-core/src/main/java/org/turro/financials/model/contract/ContractWrapper.java.
182 IDossier dossier = (IDossier) Plugins.loadImplementation(IDossier.class);
183 ICategory cat = dossier.addCategory();
184 cat.setDescription(
"Financials");
186 cat = dossier.addCategory();
187 cat.setDescription(
"Contracts");
189 cat.setParentId(9000);
190 cat = dossier.addCategory();
191 cat.setDescription(
entity.getContractDefinition().getName());
192 cat.setId(9500 +
entity.getContractDefinition().getId());
193 cat.setParentId(9001);
194 dossier.setDescription(
entity.getFullDescription());
195 dossier.setIdCategory(cat.getId());
197 dossier.setSubject(
entity.getIContractor());
static String getObjectPath(Object object)
◆ getExpiryDefinitions() [1/2]
◆ getExpiryDefinitions() [2/2]
◆ isActive()
static boolean org.turro.financials.model.contract.ContractWrapper.isActive |
( |
Date |
now, |
|
|
Contract |
contract |
|
) |
| |
|
static |
◆ shouldLog()
boolean org.turro.financials.model.contract.ContractWrapper.shouldLog |
( |
| ) |
|
|
protected |
The documentation for this class was generated from the following file: