Subversion Repositories Integrator Subversion

Rev

Rev 305 | Rev 457 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 305 Rev 318
Line 1198... Line 1198...
1198
                }
1198
                }
1199
        }
1199
        }
1200
       
1200
       
1201
        @Transient
1201
        @Transient
1202
        public Double calculoIPI() {
1202
        public Double calculoIPI() {
1203
                return VerificadorUtil.naoEstaNulo(getAliquotaIPI())? getAliquotaIPI()/100 * getValorCompra() : 0.0;
-
 
-
 
1203
                return (VerificadorUtil.naoEstaNulo(getAliquotaIPI()) &&
-
 
1204
                                VerificadorUtil.naoEstaNulo(getValorCompra()))?
-
 
1205
                                        getAliquotaIPI()/100 * getValorCompra() : 0.0;
1204
        }
1206
        }
1205
       
1207
       
1206
        @Transient
1208
        @Transient
1207
        public Double calculoICMS() {
1209
        public Double calculoICMS() {
1208
                return VerificadorUtil.naoEstaNulo(getAliquotaIcms()) && VerificadorUtil.naoEstaNulo(getAliquotaFecoep())?
-
 
-
 
1210
                return (VerificadorUtil.naoEstaNulo(getAliquotaIcms()) &&
-
 
1211
                                VerificadorUtil.naoEstaNulo(getAliquotaFecoep()) &&
-
 
1212
                                VerificadorUtil.naoEstaNulo(getValorCompra()))?
1209
                                (getAliquotaIcms()/100 + getAliquotaFecoep()/100) * getValorCompra() : 0.0;
1213
                                (getAliquotaIcms()/100 + getAliquotaFecoep()/100) * getValorCompra() : 0.0;
1210
        }
1214
        }
1211
       
1215
       
1212
        @Transient
1216
        @Transient
1213
        public Double calculoICMSST() {
1217
        public Double calculoICMSST() {