@@ -945,6 +945,123 @@ public function test_tagadi(): void
945
945
$ this ->validarCriacaoTag2 ($ std , $ element , 'adi ' , ['item ' , 'nDI ' ]);
946
946
}
947
947
948
+ public function test_tagdetExport (): void
949
+ {
950
+ $ std = new \stdClass ();
951
+ $ std ->item = 1 ;
952
+ $ std ->nDraw = 123 ;
953
+
954
+ $ element = $ this ->make ->tagdetExport ($ std );
955
+ $ this ->validarCriacaoTag2 ($ std , $ element , 'detExport ' );
956
+ }
957
+
958
+ public function test_tagdetExportInd (): void
959
+ {
960
+ $ std = new \stdClass ();
961
+ $ std ->item = 1 ;
962
+ $ std ->nDraw = 123 ;
963
+ $ this ->make ->tagdetExport ($ std );
964
+
965
+ $ std = new \stdClass ();
966
+ $ std ->item = 1 ;
967
+ $ std ->nRE = 123 ;
968
+ $ std ->chNFe = '12345678901234567890123456789012345678901234 ' ;
969
+ $ std ->qExport = 45.1 ;
970
+
971
+ $ element = $ this ->make ->tagdetExportInd ($ std );
972
+ $ this ->validarCriacaoTag2 ($ std , $ element , 'exportInd ' );
973
+ }
974
+
975
+ public function test_tagRastro (): void
976
+ {
977
+ $ std = new \stdClass ();
978
+ $ std ->item = 1 ;
979
+ $ std ->nLote = 1 ;
980
+ $ std ->qLote = 1 ;
981
+ $ std ->dFab = '2024-01-01 ' ;
982
+ $ std ->dVal = '2024-01-01 ' ;
983
+ $ std ->cAgreg = 1234 ;
984
+
985
+ $ element = $ this ->make ->tagRastro ($ std );
986
+ $ this ->validarCriacaoTag2 ($ std , $ element , 'rastro ' );
987
+ }
988
+
989
+ public function test_tagICMSUFDest (): void
990
+ {
991
+ $ std = new \stdClass ();
992
+ $ std ->item = 1 ;
993
+ $ std ->vBCUFDest = 1 ;
994
+ $ std ->vBCFCPUFDest = 1 ;
995
+ $ std ->pFCPUFDest = 1 ;
996
+ $ std ->pICMSUFDest = 1 ;
997
+ $ std ->pICMSInter = 1 ;
998
+ $ std ->pICMSInterPart = 1 ;
999
+ $ std ->vFCPUFDest = 1 ;
1000
+ $ std ->vICMSUFDest = 1 ;
1001
+ $ std ->vICMSUFRemet = 1 ;
1002
+
1003
+ $ element = $ this ->make ->tagICMSUFDest ($ std );
1004
+ $ this ->validarCriacaoTag2 ($ std , $ element , 'ICMSUFDest ' );
1005
+ }
1006
+
1007
+ public function test_tagII (): void
1008
+ {
1009
+ $ std = new \stdClass ();
1010
+ $ std ->item = 1 ;
1011
+ $ std ->vBC = 100 ;
1012
+ $ std ->vDespAdu = 1 ;
1013
+ $ std ->vII = 1 ;
1014
+ $ std ->vIOF = 1 ;
1015
+
1016
+ $ element = $ this ->make ->tagII ($ std );
1017
+ $ this ->validarCriacaoTag2 ($ std , $ element , 'II ' );
1018
+ }
1019
+
1020
+ public function test_tagISSQN (): void
1021
+ {
1022
+ $ std = new \stdClass ();
1023
+ $ std ->item = 1 ;
1024
+ $ std ->cProd = '1111 ' ;
1025
+ $ std ->cEAN = "SEM GTIN " ;
1026
+ $ std ->xProd = 'CAMISETA REGATA GG ' ;
1027
+ $ std ->NCM = 61052000 ;
1028
+ $ std ->EXTIPI = '' ;
1029
+ $ std ->CFOP = 5101 ;
1030
+ $ std ->uCom = 'UNID ' ;
1031
+ $ std ->qCom = 1 ;
1032
+ $ std ->vUnCom = 100.00 ;
1033
+ $ std ->vProd = 100.00 ;
1034
+ $ std ->cEANTrib = "SEM GTIN " ; //'6361425485451';
1035
+ $ std ->uTrib = 'UNID ' ;
1036
+ $ std ->qTrib = 1 ;
1037
+ $ std ->vUnTrib = 100.00 ;
1038
+ $ std ->indTot = 1 ;
1039
+ $ this ->make ->tagprod ($ std );
1040
+
1041
+ $ std = new \stdClass ();
1042
+ $ std ->item = 1 ;
1043
+ $ std ->vBC = 1 ;
1044
+ $ std ->vAliq = 1 ;
1045
+ $ std ->vISSQN = 1 ;
1046
+ $ std ->cMunFG = '1234567 ' ;
1047
+ $ std ->cListServ = '10.10 ' ;
1048
+ $ std ->vDeducao = 1 ;
1049
+ $ std ->vOutro = 1 ;
1050
+ $ std ->vDescIncond = 1 ;
1051
+ $ std ->vDescCond = 1 ;
1052
+ $ std ->vISSRet = 1 ;
1053
+ $ std ->indISS = 1 ;
1054
+ $ std ->cServico = 1 ;
1055
+ $ std ->cMun = 123456 ;
1056
+ $ std ->cPais = 55 ;
1057
+ $ std ->nProcesso = '123 ' ;
1058
+ $ std ->indIncentivo = '12 ' ;
1059
+
1060
+
1061
+ $ element = $ this ->make ->tagISSQN ($ std );
1062
+ $ this ->validarCriacaoTag2 ($ std , $ element , 'ISSQN ' );
1063
+ }
1064
+
948
1065
private function validarCriacaoTag2 (
949
1066
\stdClass $ std ,
950
1067
\DOMElement $ element ,
0 commit comments