BrightSide Workbench Full Report + Source Code
org.turro.financials.entity.OperatingModifier Enum Reference

Public Member Functions

boolean isAllowTax (DocumentLine line)
 
boolean isSumTax (DocumentLine line)
 

Public Attributes

 OPMOD_NORMAL =(true, true, true, true)
 
 OPMOD_INTRACOMMUNITY =(false, true, false, false)
 
 OPMOD_EXTRACOMMUNITY =(true, true, true, true)
 
 OPMOD_TAXEXEMPT =(false, false, false, false)
 
boolean allowInputTax
 
boolean sumOutputTax
 
boolean allowOutputTax
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 24 of file OperatingModifier.java.

Member Function Documentation

◆ isAllowTax()

boolean org.turro.financials.entity.OperatingModifier.isAllowTax ( DocumentLine  line)

Definition at line 40 of file OperatingModifier.java.

40  {
41  if(line == null || line.getLineType() == null) return true;
42  return line.getLineType().getStockCoefficient() < 0 ? allowOutputTax : allowInputTax;
43  }
Here is the call graph for this function:

◆ isSumTax()

boolean org.turro.financials.entity.OperatingModifier.isSumTax ( DocumentLine  line)

Definition at line 45 of file OperatingModifier.java.

45  {
46  if(line == null || line.getLineType() == null) return true;
47  return line.getLineType().getStockCoefficient() < 0 ? sumOutputTax : sumInputTax;
48  }
Here is the call graph for this function:

Member Data Documentation

◆ allowInputTax

boolean org.turro.financials.entity.OperatingModifier.allowInputTax

Definition at line 31 of file OperatingModifier.java.

◆ allowOutputTax

boolean org.turro.financials.entity.OperatingModifier.allowOutputTax

Definition at line 31 of file OperatingModifier.java.

◆ OPMOD_EXTRACOMMUNITY

org.turro.financials.entity.OperatingModifier.OPMOD_EXTRACOMMUNITY =(true, true, true, true)

Definition at line 28 of file OperatingModifier.java.

◆ OPMOD_INTRACOMMUNITY

org.turro.financials.entity.OperatingModifier.OPMOD_INTRACOMMUNITY =(false, true, false, false)

Definition at line 27 of file OperatingModifier.java.

◆ OPMOD_NORMAL

org.turro.financials.entity.OperatingModifier.OPMOD_NORMAL =(true, true, true, true)

Definition at line 26 of file OperatingModifier.java.

◆ OPMOD_TAXEXEMPT

org.turro.financials.entity.OperatingModifier.OPMOD_TAXEXEMPT =(false, false, false, false)

Definition at line 29 of file OperatingModifier.java.

◆ sumOutputTax

boolean org.turro.financials.entity.OperatingModifier.sumOutputTax

Definition at line 31 of file OperatingModifier.java.


The documentation for this enum was generated from the following file: