Skip to content

Commit c30a61b

Browse files
committed
fix IS and IBS types / bad generation
1 parent 8c9f868 commit c30a61b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

nfelib/nfe/bindings/v4_0/leiaute_nfe_v4_00.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
from typing import List, Optional
1010

1111
from nfelib import CommonMixin
12+
from nfelib.nfe.bindings.v4_0.dfe_tipos_basicos_v1_00 import (
13+
Tis,
14+
TtribNfe,
15+
Tistot,
16+
TibscbsmonoTot,
17+
)
1218
from nfelib.nfe.bindings.v4_0.leiaute_cons_sit_nfe_v4_00 import TprotNfe
1319
from nfelib.nfe.bindings.v4_0.tipos_basico_v4_00 import (
1420
Tamb,
@@ -5008,14 +5014,14 @@ class Imposto(CommonMixin):
50085014
},
50095015
)
50105016
)
5011-
IS: Optional[str] = field(
5017+
IS: Optional[Tis] = field(
50125018
default=None,
50135019
metadata={
50145020
"type": "Element",
50155021
"namespace": "http://www.portalfiscal.inf.br/nfe",
50165022
},
50175023
)
5018-
IBSCBS: Optional[str] = field(
5024+
IBSCBS: Optional[TtribNfe] = field(
50195025
default=None,
50205026
metadata={
50215027
"type": "Element",
@@ -9617,14 +9623,14 @@ class Total(CommonMixin):
96179623
"namespace": "http://www.portalfiscal.inf.br/nfe",
96189624
},
96199625
)
9620-
ISTot: Optional[str] = field(
9626+
ISTot: Optional[Tistot] = field(
96219627
default=None,
96229628
metadata={
96239629
"type": "Element",
96249630
"namespace": "http://www.portalfiscal.inf.br/nfe",
96259631
},
96269632
)
9627-
IBSCBSTot: Optional[str] = field(
9633+
IBSCBSTot: Optional[TibscbsmonoTot] = field(
96289634
default=None,
96299635
metadata={
96309636
"type": "Element",

0 commit comments

Comments
 (0)