|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace NFePHP\EFD\Elements\ICMSIPI; |
|
4
|
|
|
|
|
5
|
|
|
use NFePHP\EFD\Common\Element; |
|
6
|
|
|
use NFePHP\EFD\Common\ElementInterface; |
|
7
|
|
|
use \stdClass; |
|
8
|
|
|
|
|
9
|
|
|
class Z1255 extends Element implements ElementInterface |
|
10
|
|
|
{ |
|
11
|
|
|
const REG = '1255'; |
|
12
|
|
|
const LEVEL = 3; |
|
13
|
|
|
const PARENT = '1250'; |
|
14
|
|
|
|
|
15
|
|
|
protected $parameters = [ |
|
16
|
|
|
'COD_MOT_REST_COMPL' => [ |
|
17
|
|
|
'type' => 'string', |
|
18
|
|
|
'regex' => '^[0-9]{5}$', |
|
19
|
|
|
'required' => true, |
|
20
|
|
|
'info' => 'Código do motivo da restituição ou complementação conforme Tabela 5.7', |
|
21
|
|
|
'format' => '' |
|
22
|
|
|
], |
|
23
|
|
|
'VL_CREDITO_ICMS_OP_MOT' => [ |
|
24
|
|
|
'type' => 'numeric', |
|
25
|
|
|
'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
26
|
|
|
'required' => true, |
|
27
|
|
|
'info' => 'Informar o valor total do ICMS operação própria que o informante tem direito ao crédito, na forma prevista na legislação, referente às hipóteses de restituição em que há previsão deste crédito, para o mesmo COD_MOT_REST_COMPL', |
|
28
|
|
|
'format' => '15v2' |
|
29
|
|
|
], |
|
30
|
|
|
'VL_ICMS_ST_REST_MOT' => [ |
|
31
|
|
|
'type' => 'numeric', |
|
32
|
|
|
'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
33
|
|
|
'required' => true, |
|
34
|
|
|
'info' => 'Informar o valor total do ICMS/ST que o informante tem direito ao crédito, na forma prevista na legislação, referente às hipóteses de restituição em que há previsão deste crédito, para o mesmo COD_MOT_REST_COMPL', |
|
35
|
|
|
'format' => '15v2' |
|
36
|
|
|
], |
|
37
|
|
|
'VL_FCP_ST_REST_MOT' => [ |
|
38
|
|
|
'type' => 'numeric', |
|
39
|
|
|
'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
40
|
|
|
'required' => true, |
|
41
|
|
|
'info' => 'Informar o valor total do FCP_ST agregado ao valor do ICMS/ST informado no campo VL_ICMS_ST_REST_MOT', |
|
42
|
|
|
'format' => '15v2' |
|
43
|
|
|
], |
|
44
|
|
|
'VL_ICMS_ST_COMPL_MOT' => [ |
|
45
|
|
|
'type' => 'numeric', |
|
46
|
|
|
'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
47
|
|
|
'required' => true, |
|
48
|
|
|
'info' => 'Informar o valor total do débito referente ao complemento do imposto, nos casos previstos na legislação, para o mesmo COD_MOT_REST_COMPL', |
|
49
|
|
|
'format' => '15v2' |
|
50
|
|
|
], |
|
51
|
|
|
'VL_FCP_ST_COMPL_MOT' => [ |
|
52
|
|
|
'type' => 'numeric', |
|
53
|
|
|
'regex' => '^\d+(\.\d*)?|\.\d+$', |
|
54
|
|
|
'required' => true, |
|
55
|
|
|
'info' => 'Informar o valor total do FCP_ST agregado ao valor informado no campo VL_ICMS_ST_COMPL_MOT', |
|
56
|
|
|
'format' => '15v2' |
|
57
|
|
|
] |
|
58
|
|
|
]; |
|
59
|
|
|
|
|
60
|
|
|
/** |
|
61
|
|
|
* Constructor |
|
62
|
|
|
* @param \stdClass $std |
|
63
|
|
|
*/ |
|
64
|
|
|
public function __construct(\stdClass $std) |
|
65
|
|
|
{ |
|
66
|
|
|
parent::__construct(self::REG); |
|
67
|
|
|
$this->std = $this->standarize($std); |
|
68
|
|
|
} |
|
69
|
|
|
|
|
70
|
|
|
} |
|
71
|
|
|
|