www in docker support
This commit is contained in:
parent
539a848e95
commit
c227fce036
2145 changed files with 399596 additions and 58 deletions
|
|
@ -0,0 +1,54 @@
|
|||
package it.acxent.contab.iva;
|
||||
|
||||
import it.acxent.anag.IvaInterface;
|
||||
import it.acxent.util.DoubleOperator;
|
||||
|
||||
public class RegimeMargine {
|
||||
private IvaInterface iva;
|
||||
|
||||
private double importo;
|
||||
|
||||
private double costo;
|
||||
|
||||
private double imponibileMargine;
|
||||
|
||||
private double impostaMargine;
|
||||
|
||||
public RegimeMargine(IvaInterface l_ivaStdVendite, double l_mporto, double l_costo) {
|
||||
this.iva = l_ivaStdVendite;
|
||||
this.importo = l_mporto;
|
||||
this.costo = l_costo;
|
||||
DoubleOperator temp2 = new DoubleOperator((float)getIva().getAliquota());
|
||||
temp2.setScale(2, 5);
|
||||
temp2.divide(100.0F);
|
||||
temp2.add(1);
|
||||
DoubleOperator impo = new DoubleOperator(this.importo);
|
||||
impo.subtract(this.costo);
|
||||
DoubleOperator l_imposta = new DoubleOperator(impo.getResult());
|
||||
impo.setScale(2, 5);
|
||||
impo.divide(temp2);
|
||||
this.imponibileMargine = impo.getResult();
|
||||
l_imposta.subtract(this.imponibileMargine);
|
||||
this.impostaMargine = l_imposta.getResult();
|
||||
}
|
||||
|
||||
public IvaInterface getIva() {
|
||||
return this.iva;
|
||||
}
|
||||
|
||||
public void setIva(IvaInterface iva) {
|
||||
this.iva = iva;
|
||||
}
|
||||
|
||||
public double getImponibileMargine() {
|
||||
return this.imponibileMargine;
|
||||
}
|
||||
|
||||
public double getImpostaMargine() {
|
||||
return this.impostaMargine;
|
||||
}
|
||||
|
||||
public double getCosto() {
|
||||
return this.costo;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue