|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace NFePHP\EFD\Elements\Contribuicoes; |
|
4
|
|
|
|
|
5
|
|
|
use NFePHP\EFD\Common\Element; |
|
6
|
|
|
use NFePHP\EFD\Common\ElementInterface; |
|
7
|
|
|
use \stdClass; |
|
8
|
|
|
|
|
9
|
|
|
class Z1600 extends Element implements ElementInterface |
|
10
|
|
|
{ |
|
11
|
|
|
const REG = '1600'; |
|
12
|
|
|
const LEVEL = 2; |
|
13
|
|
|
const PARENT = '1001'; |
|
14
|
|
|
|
|
15
|
|
|
protected $parameters = [ |
|
16
|
|
|
'PER_APUR_ANT' => [ |
|
17
|
|
|
'type' => 'numeric', |
|
18
|
|
|
'regex' => '^(\d{6})$', |
|
19
|
|
|
'required' => false, |
|
20
|
|
|
'info' => 'Período de Apuração da Contribuição Social Extemporânea (MMAAAA) ', |
|
21
|
|
|
'format' => '' |
|
22
|
|
|
], |
|
23
|
|
|
'NAT_CONT_REC' => [ |
|
24
|
|
|
'type' => 'string', |
|
25
|
|
|
'regex' => '^.{0,2}$', |
|
26
|
|
|
'required' => false, |
|
27
|
|
|
'info' => 'Natureza da Contribuição a Recolher, conforme Tabela 4.3.5. ', |
|
28
|
|
|
'format' => '' |
|
29
|
|
|
], |
|
30
|
|
|
'VL_CONT_APUR' => [ |
|
31
|
|
|
'type' => 'numeric', |
|
32
|
|
|
'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
33
|
|
|
'required' => false, |
|
34
|
|
|
'info' => 'Valor da Contribuição Apurada ', |
|
35
|
|
|
'format' => '15v2' |
|
36
|
|
|
], |
|
37
|
|
|
'VL_CRED_COFINS_DESC' => [ |
|
38
|
|
|
'type' => 'numeric', |
|
39
|
|
|
'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
40
|
|
|
'required' => false, |
|
41
|
|
|
'info' => 'Valor do Crédito de COFINS a Descontar, da Contribuição Social Extemporânea. ', |
|
42
|
|
|
'format' => '15v2' |
|
43
|
|
|
], |
|
44
|
|
|
'VL_CONT_DEV' => [ |
|
45
|
|
|
'type' => 'numeric', |
|
46
|
|
|
'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
47
|
|
|
'required' => false, |
|
48
|
|
|
'info' => 'Valor da Contribuição Social Extemporânea Devida. ', |
|
49
|
|
|
'format' => '15v2' |
|
50
|
|
|
], |
|
51
|
|
|
'VL_OUT_DED' => [ |
|
52
|
|
|
'type' => 'numeric', |
|
53
|
|
|
'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
54
|
|
|
'required' => false, |
|
55
|
|
|
'info' => 'Valor de Outras Deduções. ', |
|
56
|
|
|
'format' => '15v2' |
|
57
|
|
|
], |
|
58
|
|
|
'VL_CONT_EXT' => [ |
|
59
|
|
|
'type' => 'numeric', |
|
60
|
|
|
'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
61
|
|
|
'required' => false, |
|
62
|
|
|
'info' => 'Valor da Contribuição Social Extemporânea a pagar. ', |
|
63
|
|
|
'format' => '15v2' |
|
64
|
|
|
], |
|
65
|
|
|
'VL_MUL' => [ |
|
66
|
|
|
'type' => 'numeric', |
|
67
|
|
|
'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
68
|
|
|
'required' => false, |
|
69
|
|
|
'info' => 'Valor da Multa. ', |
|
70
|
|
|
'format' => '15v2' |
|
71
|
|
|
], |
|
72
|
|
|
'VL_JUR' => [ |
|
73
|
|
|
'type' => 'numeric', |
|
74
|
|
|
'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
75
|
|
|
'required' => false, |
|
76
|
|
|
'info' => 'Valor dos Juros. ', |
|
77
|
|
|
'format' => '15v2' |
|
78
|
|
|
], |
|
79
|
|
|
'DT_RECOL' => [ |
|
80
|
|
|
'type' => 'string', |
|
81
|
|
|
'regex' => '^(0[1-9]|[1-2][0-9]|31(?!(?:0[2469]|11))|30(?!02))(0[1-9]|1[0-2])([12]\d{3})$', |
|
82
|
|
|
'required' => false, |
|
83
|
|
|
'info' => 'Data do Recolhimento. ', |
|
84
|
|
|
'format' => '' |
|
85
|
|
|
], |
|
86
|
|
|
|
|
87
|
|
|
]; |
|
88
|
|
|
|
|
89
|
|
|
/** |
|
90
|
|
|
* Constructor |
|
91
|
|
|
* @param \stdClass $std |
|
92
|
|
|
*/ |
|
93
|
|
|
public function __construct(\stdClass $std) |
|
94
|
|
|
{ |
|
95
|
|
|
parent::__construct(self::REG); |
|
96
|
|
|
$this->std = $this->standarize($std); |
|
97
|
|
|
} |
|
98
|
|
|
} |
|
99
|
|
|
|