Skip to content

Commit

Permalink
Merge pull request nfephp-org#657 from robmachado/master
Browse files Browse the repository at this point in the history
[UPD] ajustes Make
  • Loading branch information
robmachado authored Mar 25, 2019
2 parents f259e04 + 039739f commit 379d731
Showing 1 changed file with 11 additions and 67 deletions.
78 changes: 11 additions & 67 deletions src/Make.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,318 +32,258 @@ class Make
* @var array
*/
public $erros = [];

/**
* @var string
*/
public $chNFe;

/**
* @var string
*/
public $xml;

/**
* @var string
*/
protected $version;

/**
* @var integer
*/
protected $mod = 55;

/**
* @var \NFePHP\Common\DOMImproved
*/
public $dom;

/**
* @var integer
*/
protected $tpAmb = 2;

/**
* @var DOMElement
*/
protected $NFe;

/**
* @var DOMElement
*/
protected $infNFe;

/**
* @var DOMElement
*/
protected $ide;

/**
* @var DOMElement
*/
protected $emit;

/**
* @var DOMElement
*/
protected $enderEmit;

/**
* @var DOMElement
*/
protected $dest;

/**
* @var DOMElement
*/
protected $enderDest;

/**
* @var DOMElement
*/
protected $retirada;

/**
* @var DOMElement
*/
protected $entrega;

/**
* @var DOMElement
*/
protected $total;

/**
* @var DOMElement
*/
protected $cobr;

/**
* @var DOMElement
*/
protected $transp;

/**
* @var DOMElement
*/
protected $infAdic;

/**
* @var DOMElement
*/
protected $exporta;

/**
* @var DOMElement
*/
protected $compra;

/**
* @var DOMElement
*/
protected $cana;

/**
* @var DOMElement
*/
protected $infNFeSupl;

/**
* @var array of DOMElements
*/
protected $aNFref = [];

/**
* @var array of DOMElements
*/
protected $aDup = [];

/**
* @var DOMElement
*/
protected $pag;

/**
* @var array of DOMElements
*/
protected $aDetPag = [];

/**
* @var array of DOMElements
*/
protected $aReboque = [];

/**
* @var array of DOMElements
*/
protected $aVol = [];

/**
* @var array of DOMElements
*/
protected $aAutXML = [];

/**
* @var array of DOMElements
*/
protected $aDet = [];

/**
* @var array of DOMElements
*/
protected $aProd = [];

/**
* @var array of DOMElements
*/
protected $aRastro = [];

/**
* @var array of DOMElements
*/
protected $aNVE = [];

/**
* @var array of DOMElements
*/
protected $aCest = [];

/**
* @var array of DOMElements
*/
protected $aRECOPI = [];

/**
* @var array of DOMElements
*/
protected $aDetExport = [];

/**
* @var array of DOMElements
*/
protected $aDI = [];

/**
* @var array of DOMElements
*/
protected $aAdi = [];

/**
* @var array of DOMElements
*/
protected $aVeicProd = [];

/**
* @var array of DOMElements
*/
protected $aMed = [];

/**
* @var array of DOMElements
*/
protected $aArma = [];

/**
* @var array of DOMElements
*/
protected $aComb = [];

/**
* @var array of DOMElements
*/
protected $aEncerrante = [];

/**
* @var array of DOMElements
*/
protected $aImposto = [];

/**
* @var array of DOMElements
*/
protected $aICMS = [];

/**
* @var array of DOMElements
*/
protected $aICMSUFDest = [];

/**
* @var array of DOMElements
*/
protected $aIPI = [];

/**
* @var array of DOMElements
*/
protected $aII = [];

/**
* @var array of DOMElements
*/
protected $aISSQN = [];

/**
* @var array
*/
protected $aPIS = [];

/**
* @var array of DOMElements
*/
protected $aPISST = [];

/**
* @var array of DOMElements
*/
protected $aCOFINS = [];

/**
* @var array of DOMElements
*/
protected $aCOFINSST = [];

/**
* @var array of DOMElements
*/
protected $aImpostoDevol = [];

/**
* @var array of DOMElements
*/
protected $aInfAdProd = [];

/**
* @var array of DOMElements
*/
protected $aObsCont = [];

/**
* @var array of DOMElements
*/
protected $aObsFisco = [];

/**
* @var array of DOMElements
*/
protected $aProcRef = [];

/**
* @var stdClass
*/
protected $stdTot;

/**
* @var DOMElement
*/
protected $infRespTec;

/**
* @var string
*/
protected $csrt;

protected $replaceAccentedChars;
/**
* @var boolean
*/
protected $replaceAccentedChars = false;

/**
* Função construtora cria um objeto DOMDocument
Expand Down Expand Up @@ -381,6 +321,10 @@ public function __construct()
$this->stdTot->vTotTrib = 0;
}

/**
* Set character convertion to ASCII only ou not
* @param bool $option
*/
public function setOnlyAscii($option = false)
{
$this->replaceAccentedChars = $option;
Expand Down Expand Up @@ -427,8 +371,8 @@ public function montaNFe()

/**
* NFe xml mount method
 * this function returns TRUE on success or FALSE on error
 * The xml of the NFe must be retrieved by the getXML() function or
* this function returns TRUE on success or FALSE on error
 * The xml of the NFe must be retrieved by the getXML() function or
* directly by the public property $xml
* @return boolean
*/
Expand Down Expand Up @@ -7386,6 +7330,7 @@ protected function checkNFeKey(Dom $dom)

/**
* Includes missing or unsupported properties in stdClass
* Replace all unsuported chars
* @param stdClass $std
* @param array $possible
* @return stdClass
Expand Down Expand Up @@ -7417,6 +7362,5 @@ protected function hashCSRT($CSRT)
{
$comb = $CSRT . $this->chNFe;
return base64_encode(sha1($comb, true));
;
}
}

0 comments on commit 379d731

Please sign in to comment.