| 1 | <?php |
||
| 18 | class H020 extends Element implements ElementInterface |
||
| 19 | { |
||
| 20 | const REG = 'H020'; |
||
| 21 | const LEVEL = 4; |
||
| 22 | const PARENT = 'H010'; |
||
| 23 | |||
| 24 | protected $parameters = [ |
||
| 25 | 'CST_ICMS' => [ |
||
| 26 | 'type' => 'string', |
||
| 27 | 'regex' => '^[0-9]{3}$', |
||
| 28 | 'required' => true, |
||
| 29 | 'info' => 'Código da Situação Tributária referente ao ICMS, ' |
||
| 30 | . 'conforme a Tabela indicada no item 4.3.1', |
||
| 31 | 'format' => '' |
||
| 32 | ], |
||
| 33 | 'BC_ICMS' => [ |
||
| 34 | 'type' => 'numeric', |
||
| 35 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
||
| 36 | 'required' => true, |
||
| 37 | 'info' => 'Informe a base de cálculo do ICMS', |
||
| 38 | 'format' => '15v2' |
||
| 39 | ], |
||
| 40 | 'VL_ICMS' => [ |
||
| 41 | 'type' => 'numeric', |
||
| 42 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
||
| 43 | 'required' => true, |
||
| 44 | 'info' => 'Informe o valor do ICMS a ser debitado ou creditado', |
||
| 45 | 'format' => '15v2' |
||
| 46 | ] |
||
| 47 | ]; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Constructor |
||
| 51 | * @param \stdClass $std |
||
| 52 | */ |
||
| 53 | public function __construct(\stdClass $std) |
||
| 58 | } |
||
| 59 |