| @@ 9-116 (lines=108) @@ | ||
| 6 | use NFePHP\EFD\Common\ElementInterface; |
|
| 7 | use \stdClass; |
|
| 8 | ||
| 9 | class M200 extends Element implements ElementInterface |
|
| 10 | { |
|
| 11 | const REG = 'M200'; |
|
| 12 | const LEVEL = 2; |
|
| 13 | const PARENT = 'M001'; |
|
| 14 | ||
| 15 | protected $parameters = [ |
|
| 16 | 'VL_TOT_CONT_NC_PER' => [ |
|
| 17 | 'type' => 'numeric', |
|
| 18 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 19 | 'required' => false, |
|
| 20 | 'info' => 'Valor Total da Contribuição Não Cumulativa do Período (recuperado do campo 13 do ' . |
|
| 21 | 'Registro M210, quando o campo “COD_CONT” = 01, 02, 03, 04, 32 e 71) ', |
|
| 22 | 'format' => '15v2' |
|
| 23 | ], |
|
| 24 | 'VL_TOT_CRED_DESC' => [ |
|
| 25 | 'type' => 'numeric', |
|
| 26 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 27 | 'required' => false, |
|
| 28 | 'info' => 'Valor do Crédito Descontado, Apurado no Próprio Período da Escrituração (recuperado ' . |
|
| 29 | 'do campo 14 do Registro M100) ', |
|
| 30 | 'format' => '15v2' |
|
| 31 | ], |
|
| 32 | 'VL_TOT_CRED_DESC_ANT' => [ |
|
| 33 | 'type' => 'numeric', |
|
| 34 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 35 | 'required' => false, |
|
| 36 | 'info' => 'Valor do Crédito Descontado, Apurado em Período de Apuração Anterior (recuperado do ' . |
|
| 37 | 'campo 13 do Registro 1100) ', |
|
| 38 | 'format' => '15v2' |
|
| 39 | ], |
|
| 40 | 'VL_TOT_CONT_NC_DEV' => [ |
|
| 41 | 'type' => 'numeric', |
|
| 42 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 43 | 'required' => false, |
|
| 44 | 'info' => 'Valor Total da Contribuição Não Cumulativa Devida (02 – 03 - 04) ', |
|
| 45 | 'format' => '15v2' |
|
| 46 | ], |
|
| 47 | 'VL_RET_NC' => [ |
|
| 48 | 'type' => 'numeric', |
|
| 49 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 50 | 'required' => false, |
|
| 51 | 'info' => 'Valor Retido na Fonte Deduzido no Período ', |
|
| 52 | 'format' => '15v2' |
|
| 53 | ], |
|
| 54 | 'VL_OUT_DED_NC' => [ |
|
| 55 | 'type' => 'numeric', |
|
| 56 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 57 | 'required' => false, |
|
| 58 | 'info' => 'Outras Deduções no Período ', |
|
| 59 | 'format' => '15v2' |
|
| 60 | ], |
|
| 61 | 'VL_CONT_NC_REC' => [ |
|
| 62 | 'type' => 'numeric', |
|
| 63 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 64 | 'required' => false, |
|
| 65 | 'info' => 'Valor da Contribuição Não Cumulativa a Recolher/Pagar (05 – 06 - 07) ', |
|
| 66 | 'format' => '15v2' |
|
| 67 | ], |
|
| 68 | 'VL_TOT_CONT_CUM_PER' => [ |
|
| 69 | 'type' => 'numeric', |
|
| 70 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 71 | 'required' => false, |
|
| 72 | 'info' => 'Valor Total da Contribuição Cumulativa do Período (recuperado do campo 13 do Registro ' . |
|
| 73 | 'M210, quando o campo “COD_CONT” = 31, 32, 51, 52, 53, 54 e 72) ', |
|
| 74 | 'format' => '15v2' |
|
| 75 | ], |
|
| 76 | 'VL_RET_CUM' => [ |
|
| 77 | 'type' => 'numeric', |
|
| 78 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 79 | 'required' => false, |
|
| 80 | 'info' => 'Valor Retido na Fonte Deduzido no Período ', |
|
| 81 | 'format' => '15v2' |
|
| 82 | ], |
|
| 83 | 'VL_OUT_DED_CUM' => [ |
|
| 84 | 'type' => 'numeric', |
|
| 85 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 86 | 'required' => false, |
|
| 87 | 'info' => 'Outras Deduções no Período ', |
|
| 88 | 'format' => '15v2' |
|
| 89 | ], |
|
| 90 | 'VL_CONT_CUM_REC' => [ |
|
| 91 | 'type' => 'numeric', |
|
| 92 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 93 | 'required' => false, |
|
| 94 | 'info' => 'Valor da Contribuição Cumulativa a Recolher/Pagar (09 - 10 – 11) ', |
|
| 95 | 'format' => '15v2' |
|
| 96 | ], |
|
| 97 | 'VL_TOT_CONT_REC' => [ |
|
| 98 | 'type' => 'numeric', |
|
| 99 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 100 | 'required' => false, |
|
| 101 | 'info' => 'Valor Total da Contribuição a Recolher/Pagar no Período (08 + 12) ', |
|
| 102 | 'format' => '15v2' |
|
| 103 | ], |
|
| 104 | ||
| 105 | ]; |
|
| 106 | ||
| 107 | /** |
|
| 108 | * Constructor |
|
| 109 | * @param \stdClass $std |
|
| 110 | */ |
|
| 111 | public function __construct(\stdClass $std) |
|
| 112 | { |
|
| 113 | parent::__construct(self::REG); |
|
| 114 | $this->std = $this->standarize($std); |
|
| 115 | } |
|
| 116 | } |
|
| 117 | ||
| @@ 9-116 (lines=108) @@ | ||
| 6 | use NFePHP\EFD\Common\ElementInterface; |
|
| 7 | use \stdClass; |
|
| 8 | ||
| 9 | class M600 extends Element implements ElementInterface |
|
| 10 | { |
|
| 11 | const REG = 'M600'; |
|
| 12 | const LEVEL = 2; |
|
| 13 | const PARENT = 'M001'; |
|
| 14 | ||
| 15 | protected $parameters = [ |
|
| 16 | 'VL_TOT_CONT_NC_PER' => [ |
|
| 17 | 'type' => 'numeric', |
|
| 18 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 19 | 'required' => false, |
|
| 20 | 'info' => 'Valor Total da Contribuição Não Cumulativa do Período (recuperado do campo 13 do ' . |
|
| 21 | 'Registro M610, quando o campo “COD_CONT” = 01, 02, 03, 04, 32 e 71) ', |
|
| 22 | 'format' => '15v2' |
|
| 23 | ], |
|
| 24 | 'VL_TOT_CRED_DESC' => [ |
|
| 25 | 'type' => 'numeric', |
|
| 26 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 27 | 'required' => false, |
|
| 28 | 'info' => 'Valor do Crédito Descontado, Apurado no Próprio Período da Escrituração (recuperado ' . |
|
| 29 | 'do campo 14 do Registro M500) ', |
|
| 30 | 'format' => '15v2' |
|
| 31 | ], |
|
| 32 | 'VL_TOT_CRED_DESC_ANT' => [ |
|
| 33 | 'type' => 'numeric', |
|
| 34 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 35 | 'required' => false, |
|
| 36 | 'info' => 'Valor do Crédito Descontado, Apurado em Período de Apuração Anterior (recuperado do ' . |
|
| 37 | 'campo 13 do Registro 1500) ', |
|
| 38 | 'format' => '15v2' |
|
| 39 | ], |
|
| 40 | 'VL_TOT_CONT_NC_DEV' => [ |
|
| 41 | 'type' => 'numeric', |
|
| 42 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 43 | 'required' => false, |
|
| 44 | 'info' => 'Valor Total da Contribuição Não Cumulativa Devida (02 - 03 - 04) ', |
|
| 45 | 'format' => '15v2' |
|
| 46 | ], |
|
| 47 | 'VL_RET_NC' => [ |
|
| 48 | 'type' => 'numeric', |
|
| 49 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 50 | 'required' => false, |
|
| 51 | 'info' => 'Valor Retido na Fonte Deduzido no Período ', |
|
| 52 | 'format' => '15v2' |
|
| 53 | ], |
|
| 54 | 'VL_OUT_DED_NC' => [ |
|
| 55 | 'type' => 'numeric', |
|
| 56 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 57 | 'required' => false, |
|
| 58 | 'info' => 'Outras Deduções no Período ', |
|
| 59 | 'format' => '15v2' |
|
| 60 | ], |
|
| 61 | 'VL_CONT_NC_REC' => [ |
|
| 62 | 'type' => 'numeric', |
|
| 63 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 64 | 'required' => false, |
|
| 65 | 'info' => 'Valor da Contribuição Não Cumulativa a Recolher/Pagar (05 - 06 - 07) ', |
|
| 66 | 'format' => '15v2' |
|
| 67 | ], |
|
| 68 | 'VL_TOT_CONT_CUM_PER' => [ |
|
| 69 | 'type' => 'numeric', |
|
| 70 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 71 | 'required' => false, |
|
| 72 | 'info' => 'Valor Total da Contribuição Cumulativa do Período (recuperado do campo 13 do Registro ' . |
|
| 73 | 'M610, quando o campo “COD_CONT” = 31, 32, 51, 52, 53, 54 e 72) ', |
|
| 74 | 'format' => '15v2' |
|
| 75 | ], |
|
| 76 | 'VL_RET_CUM' => [ |
|
| 77 | 'type' => 'numeric', |
|
| 78 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 79 | 'required' => false, |
|
| 80 | 'info' => 'Valor Retido na Fonte Deduzido no Período ', |
|
| 81 | 'format' => '15v2' |
|
| 82 | ], |
|
| 83 | 'VL_OUT_DED_CUM' => [ |
|
| 84 | 'type' => 'numeric', |
|
| 85 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 86 | 'required' => false, |
|
| 87 | 'info' => 'Outras Deduções no Período ', |
|
| 88 | 'format' => '15v2' |
|
| 89 | ], |
|
| 90 | 'VL_CONT_CUM_REC' => [ |
|
| 91 | 'type' => 'numeric', |
|
| 92 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 93 | 'required' => false, |
|
| 94 | 'info' => 'Valor da Contribuição Cumulativa a Recolher/Pagar (09 - 10 - 11) ', |
|
| 95 | 'format' => '15v2' |
|
| 96 | ], |
|
| 97 | 'VL_TOT_CONT_REC' => [ |
|
| 98 | 'type' => 'numeric', |
|
| 99 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 100 | 'required' => false, |
|
| 101 | 'info' => 'Valor Total da Contribuição a Recolher/Pagar no Período (08 + 12) ', |
|
| 102 | 'format' => '15v2' |
|
| 103 | ], |
|
| 104 | ||
| 105 | ]; |
|
| 106 | ||
| 107 | /** |
|
| 108 | * Constructor |
|
| 109 | * @param \stdClass $std |
|
| 110 | */ |
|
| 111 | public function __construct(\stdClass $std) |
|
| 112 | { |
|
| 113 | parent::__construct(self::REG); |
|
| 114 | $this->std = $this->standarize($std); |
|
| 115 | } |
|
| 116 | } |
|
| 117 | ||
| @@ 9-115 (lines=107) @@ | ||
| 6 | use NFePHP\EFD\Common\ElementInterface; |
|
| 7 | use \stdClass; |
|
| 8 | ||
| 9 | class Z1900 extends Element implements ElementInterface |
|
| 10 | { |
|
| 11 | const REG = '1900'; |
|
| 12 | const LEVEL = 2; |
|
| 13 | const PARENT = '1001'; |
|
| 14 | ||
| 15 | protected $parameters = [ |
|
| 16 | 'CNPJ' => [ |
|
| 17 | 'type' => 'string', |
|
| 18 | 'regex' => '^[0-9]{14}$', |
|
| 19 | 'required' => false, |
|
| 20 | 'info' => 'CNPJ do estabelecimento da pessoa jurídica, emitente dos documentos geradores de receita ', |
|
| 21 | 'format' => '' |
|
| 22 | ], |
|
| 23 | 'COD_MOD' => [ |
|
| 24 | 'type' => 'string', |
|
| 25 | 'regex' => '^(98|99)$', |
|
| 26 | 'required' => false, |
|
| 27 | 'info' => 'Código do modelo do documento fiscal conforme a Tabela 4.1.1, ou ' . |
|
| 28 | ' 98 – Nota Fiscal de Prestação de Serviços (ISSQN) 99 – Outros Documentos ', |
|
| 29 | 'format' => '' |
|
| 30 | ], |
|
| 31 | 'SER' => [ |
|
| 32 | 'type' => 'string', |
|
| 33 | 'regex' => '^.{0,4}$', |
|
| 34 | 'required' => false, |
|
| 35 | 'info' => 'Série do documento fiscal ', |
|
| 36 | 'format' => '' |
|
| 37 | ], |
|
| 38 | 'SUB_SER' => [ |
|
| 39 | 'type' => 'numeric', |
|
| 40 | 'regex' => '^(\d{0,20})$', |
|
| 41 | 'required' => false, |
|
| 42 | 'info' => 'Subserie do documento fiscal ', |
|
| 43 | 'format' => '' |
|
| 44 | ], |
|
| 45 | 'COD_SIT' => [ |
|
| 46 | 'type' => 'numeric', |
|
| 47 | 'regex' => '^(00|02|09)$', |
|
| 48 | 'required' => false, |
|
| 49 | 'info' => 'Código da situação do documento fiscal ' . |
|
| 50 | ' 00 – Documento regular 02 – Documento cancelado 99 – Outros ', |
|
| 51 | 'format' => '' |
|
| 52 | ], |
|
| 53 | 'VL_TOT_REC' => [ |
|
| 54 | 'type' => 'numeric', |
|
| 55 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
| 56 | 'required' => false, |
|
| 57 | 'info' => 'Valor total da receita, conforme os documentos emitidos no período, representativos da ' . |
|
| 58 | 'venda de bens e serviços ', |
|
| 59 | 'format' => '15v2' |
|
| 60 | ], |
|
| 61 | 'QUANT_DOC' => [ |
|
| 62 | 'type' => 'numeric', |
|
| 63 | 'regex' => '^([0-9]+)$', |
|
| 64 | 'required' => false, |
|
| 65 | 'info' => 'Quantidade total de documentos emitidos no período ', |
|
| 66 | 'format' => '' |
|
| 67 | ], |
|
| 68 | 'CST_PIS' => [ |
|
| 69 | 'type' => 'string', |
|
| 70 | 'regex' => '^((0[1-9])|49|99)$', |
|
| 71 | 'required' => false, |
|
| 72 | 'info' => 'Código da Situação Tributária do PIS/Pasep ', |
|
| 73 | 'format' => '' |
|
| 74 | ], |
|
| 75 | 'CST_COFINS' => [ |
|
| 76 | 'type' => 'string', |
|
| 77 | 'regex' => '^((0[1-9])|49|99)$', |
|
| 78 | 'required' => false, |
|
| 79 | 'info' => 'Código da Situação Tributária da Cofins ', |
|
| 80 | 'format' => '' |
|
| 81 | ], |
|
| 82 | 'CFOP' => [ |
|
| 83 | 'type' => 'numeric', |
|
| 84 | 'regex' => '^(\d{4})$', |
|
| 85 | 'required' => false, |
|
| 86 | 'info' => 'Código fiscal de operação e prestação ', |
|
| 87 | 'format' => '' |
|
| 88 | ], |
|
| 89 | 'INF_COMPL' => [ |
|
| 90 | 'type' => 'string', |
|
| 91 | 'regex' => '^(.*)$', |
|
| 92 | 'required' => false, |
|
| 93 | 'info' => 'Informações complementares ', |
|
| 94 | 'format' => '' |
|
| 95 | ], |
|
| 96 | 'COD_CTA' => [ |
|
| 97 | 'type' => 'string', |
|
| 98 | 'regex' => '^.{0,255}$', |
|
| 99 | 'required' => false, |
|
| 100 | 'info' => 'Código da conta analítica contábil representativa da receita ', |
|
| 101 | 'format' => '' |
|
| 102 | ], |
|
| 103 | ||
| 104 | ]; |
|
| 105 | ||
| 106 | /** |
|
| 107 | * Constructor |
|
| 108 | * @param \stdClass $std |
|
| 109 | */ |
|
| 110 | public function __construct(\stdClass $std) |
|
| 111 | { |
|
| 112 | parent::__construct(self::REG); |
|
| 113 | $this->std = $this->standarize($std); |
|
| 114 | } |
|
| 115 | } |
|
| 116 | ||