TraitCalculations
Table of Contents
Properties
- $aProd : string
- $aVItem : array<string|int, mixed>
- $chNFe : string
- $dom : DOMImproved
- $stdTot : array<string|int, mixed>
Methods
- calculateTtensValues1() : void
- Calculates and updates the value of items based on various parameters.
- calculateTtensValues2() : void
- Calcula o vItem compo introduzido com o PL_010 que se refere ao total do item com o IBS/CBS/IS
- checkNFeKey() : void
- Remonta a chave da NFe de 44 digitos com base em seus dados já contidos na NFE.
- reCalculateNFTotValue() : float
- Recalcula o valor de vNFTot com base nos valores já inseridos no XML
Properties
$aProd
public
string
$aProd
$aVItem
public
array<string|int, mixed>
$aVItem
$chNFe
public
string
$chNFe
$dom
public
DOMImproved
$dom
$stdTot
public
array<string|int, mixed>
$stdTot
Methods
calculateTtensValues1()
Calculates and updates the value of items based on various parameters.
protected
calculateTtensValues1() : void
Adjusts item values based on the operation type and specific financial attributes. Updates the calculated value for each item in the internal data structure.
calculateTtensValues2()
Calcula o vItem compo introduzido com o PL_010 que se refere ao total do item com o IBS/CBS/IS
protected
calculateTtensValues2(DOMElement $det) : void
Parameters
- $det : DOMElement
checkNFeKey()
Remonta a chave da NFe de 44 digitos com base em seus dados já contidos na NFE.
protected
checkNFeKey(DOMImproved $dom) : void
Isso é útil no caso da chave informada estar errada se a chave estiver errada a mesma é substituida
Parameters
- $dom : DOMImproved
Tags
reCalculateNFTotValue()
Recalcula o valor de vNFTot com base nos valores já inseridos no XML
protected
reCalculateNFTotValue() : float