Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Somatorio de FCP ao ICMS #608

Open
twynroque opened this issue Jun 5, 2024 · 1 comment
Open

Somatorio de FCP ao ICMS #608

twynroque opened this issue Jun 5, 2024 · 1 comment

Comments

@twynroque
Copy link

Boa tarde.
Segue o código para uma config onde clientes que não demonstram o total de ICMS com o FCP somado, possam ter essa flexibilidade na impressão da DANFE. Se possível, por favor, realizar a implementação.

nfephp-org/sped-da/src/NFe/Danfe.php

image

       /**
     * Parâmetro para exibir o FCP somado ao ICMS.
     *
     * @var boolean
     */
    public $exibirSomatorioFcp = true;

image

           if($this->exibirSomatorioFcp == true){
               if ($campoImposto == 'vICMS') { // soma junto ao ICMS o FCP
                    $the_field_aux = $this->ICMSTot->getElementsByTagName('vFCP')->item(0);
                    if (isset($the_field_aux)) {
                        $value2 = $the_field_aux->nodeValue;
                    }
                } elseif ($campoImposto == 'vST') { // soma junto ao ICMS ST o FCP ST
                    $the_field_aux = $this->ICMSTot->getElementsByTagName('vFCPST')->item(0);
                    if (isset($the_field_aux)) {
                        $value2 = $the_field_aux->nodeValue;
                    }
                }
            }
@dermarios
Copy link

Bom dia @robmachado...

Essa é uma questão importante já que não há um consenso entre os contadores.
Dessa forma temos uma configuração individua de cada emitente.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants