| Server IP : 162.214.74.102 / Your IP : 216.73.216.59 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/www/lrsys_apps/regional/application/plugins/modulo_fiscal/controllers/ |
Upload File : |
<?php
require_once $dir.'/controllers/criaDataXML.php';
if(! isset($_FILES))
die();
$notas = $_FILES;
foreach($notas as $nota){
$xml_Nfe = new criaDataXML($nota);
$xml_Nfe->insDadosXML();
$xml_Nfe->loadXML();
$xml_Nfe->create();
$xml_Nfe->validaProdutos($xml_Nfe->xml);
if(sizeof($xml_Nfe->product_inseted)>0){
echo "<div class='alert alert-success'>Produtos inseridos:<br><br>";
$i=1;
echo "<ul>";
while($i<=sizeof($xml_Nfe->product_inseted)){
echo "<li>".$xml_Nfe->product_inseted[$i]."</li>";
$i++;
}
echo "<ul></div>";
}else{
echo "<div class='alert alert-success'>Todos os produtos presentes na nota já haviam no sistema, não houveram inserções, mas o estoque foi atualizado de acordo com as quantidades presentes na nota.</div>";
}
}
?>