|
@@ 264-269 (lines=6) @@
|
| 261 |
|
* $this->values->vl_unit_limite_bc_icms_ult_e, |
| 262 |
|
2 |
| 263 |
|
); |
| 264 |
|
if (round($this->values->vl_unit_icms_ult_e, 2) != $multplicacao) { |
| 265 |
|
throw new \InvalidArgumentException("[" . self::REG . "] " . |
| 266 |
|
"O campo VL_UNIT_ICMS_ULT_E deve ser maior que zero e " . |
| 267 |
|
"deve corresponder a multiplicação entre os campos " . |
| 268 |
|
"campos ALIQ_ICMS_ULT_E e VL_UNIT_LIMITE_BC_ICMS_ULT_E"); |
| 269 |
|
} |
| 270 |
|
if ($this->values->aliq_st_ult_e <= 0) { |
| 271 |
|
throw new \InvalidArgumentException("[" . self::REG . "] " . |
| 272 |
|
"O campo ALIQ_ST_ULT_E deve ser maior que zero"); |
|
@@ 280-285 (lines=6) @@
|
| 277 |
|
- $this->values->vl_unit_icms_ult_e, |
| 278 |
|
2 |
| 279 |
|
); |
| 280 |
|
if (round($this->values->vl_unit_res, 2) !== $calc) { |
| 281 |
|
throw new \InvalidArgumentException("[" . self::REG . "] " . |
| 282 |
|
"o valor informado no campo VL_UNIT_RES deve ser maior ou igual que “0” (zero), e deve corresponder " . |
| 283 |
|
"a multiplicação entre os campos VL_UNIT_BC_ST e ALIQ_ST_ULT_E, subtraindo, deste resultado," . |
| 284 |
|
" o campo VL_UNIT_ICMS_ULT_E."); |
| 285 |
|
} |
| 286 |
|
if (!$this->std->cod_da and $this->std->cod_resp_ret == 3) { |
| 287 |
|
throw new \InvalidArgumentException("[" . self::REG . "] " . |
| 288 |
|
"Quando o campo COD_RESP_RET é igual a '3', o campo COD_DA é obrigatório"); |