| @@ 13-55 (lines=43) @@ | ||
| 10 | * Elemento I053 do Bloco I OBRIGATÓRIO [0:N] |
|
| 11 | * REGISTRO I053: SUBCONTAS CORRELATAS |
|
| 12 | */ |
|
| 13 | class I053 extends Element implements ElementInterface |
|
| 14 | { |
|
| 15 | const REG = 'I053'; |
|
| 16 | const LEVEL = 4; |
|
| 17 | const PARENT = ''; |
|
| 18 | ||
| 19 | protected $parameters = [ |
|
| 20 | 'cod_idt' => [ |
|
| 21 | 'type' => 'string', |
|
| 22 | 'regex' => '^[A-Za-z0-9]{6}$', |
|
| 23 | 'required' => true, |
|
| 24 | 'info' => 'Codigo de identificacao do grupo de conta-subcontas.', |
|
| 25 | 'format' => '' |
|
| 26 | ], |
|
| 27 | 'cod_cnt_corr' => [ |
|
| 28 | 'type' => 'string', |
|
| 29 | 'regex' => '^[A-Za-z0-9]$', |
|
| 30 | 'required' => true, |
|
| 31 | 'info' => 'Código da subconta correlata (deve estar no plano de contas ' |
|
| 32 | . 'e só pode estar relacionada a um único grupo)', |
|
| 33 | 'format' => '' |
|
| 34 | ], |
|
| 35 | 'nat_sub_cnt' => [ |
|
| 36 | 'type' => 'string', |
|
| 37 | 'regex' => '^[A-Za-z0-9]{2}$', |
|
| 38 | 'required' => true, |
|
| 39 | 'info' => 'Natureza da subconta correlata (conforme tabela de ' |
|
| 40 | . 'natureza da subconta publicada no Sped )', |
|
| 41 | 'format' => '' |
|
| 42 | ] |
|
| 43 | ]; |
|
| 44 | ||
| 45 | /** |
|
| 46 | * Constructor |
|
| 47 | * @param \stdClass $std |
|
| 48 | */ |
|
| 49 | public function __construct(\stdClass $std) |
|
| 50 | { |
|
| 51 | parent::__construct(self::REG); |
|
| 52 | $this->std = $this->standarize($std); |
|
| 53 | $this->postValidation(); |
|
| 54 | } |
|
| 55 | } |
|
| 56 | ||
| @@ 13-53 (lines=41) @@ | ||
| 10 | * Elemento I100 do Bloco I OBRIGATÓRIO [0:N] |
|
| 11 | * REGISTRO I100: CENTRO DE CUSTOS |
|
| 12 | */ |
|
| 13 | class I100 extends Element implements ElementInterface |
|
| 14 | { |
|
| 15 | const REG = 'I100'; |
|
| 16 | const LEVEL = 3; |
|
| 17 | const PARENT = ''; |
|
| 18 | ||
| 19 | protected $parameters = [ |
|
| 20 | 'dt_alt' => [ |
|
| 21 | 'type' => 'string', |
|
| 22 | 'regex' => '^(0[1-9]|[1-2][0-9]|31(?!(?:0[2469]|11))|30(?!02))(0[1-9]|1[0-2])([12]\d{3})$', |
|
| 23 | 'required' => true, |
|
| 24 | 'info' => 'Data de inclusao/alteracao.', |
|
| 25 | 'format' => '' |
|
| 26 | ], |
|
| 27 | 'cod_ccus' => [ |
|
| 28 | 'type' => 'string', |
|
| 29 | 'regex' => '^[A-Za-z0-9]$', |
|
| 30 | 'required' => true, |
|
| 31 | 'info' => 'Código do Centro de Custos', |
|
| 32 | 'format' => '' |
|
| 33 | ], |
|
| 34 | 'ccus' => [ |
|
| 35 | 'type' => 'string', |
|
| 36 | 'regex' => '^[A-Za-z0-9]$', |
|
| 37 | 'required' => true, |
|
| 38 | 'info' => 'Nome do Centro de Custo', |
|
| 39 | 'format' => '' |
|
| 40 | ] |
|
| 41 | ]; |
|
| 42 | ||
| 43 | /** |
|
| 44 | * Constructor |
|
| 45 | * @param \stdClass $std |
|
| 46 | */ |
|
| 47 | public function __construct(\stdClass $std) |
|
| 48 | { |
|
| 49 | parent::__construct(self::REG); |
|
| 50 | $this->std = $this->standarize($std); |
|
| 51 | $this->postValidation(); |
|
| 52 | } |
|
| 53 | } |
|
| 54 | ||