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

Aplicar retención a una factura #49

Closed
VTCop opened this issue Apr 25, 2019 · 3 comments
Closed

Aplicar retención a una factura #49

VTCop opened this issue Apr 25, 2019 · 3 comments
Assignees

Comments

@VTCop
Copy link

VTCop commented Apr 25, 2019

¿Cómo podría establecerse una retención en una factura?

Por ejemplo, en la factura:

    
<InvoiceTotals>
        <TotalGrossAmount>4.81</TotalGrossAmount>
        <TotalGeneralDiscounts>0.00</TotalGeneralDiscounts>
        <TotalGeneralSurcharges>0.00</TotalGeneralSurcharges>
        <TotalGrossAmountBeforeTaxes>4.81</TotalGrossAmountBeforeTaxes>
        <TotalTaxOutputs>1.01</TotalTaxOutputs>
        <TotalTaxesWithheld>0.00</TotalTaxesWithheld>
        <InvoiceTotal>5.82</InvoiceTotal>
        <TotalFinancialExpenses>0.00</TotalFinancialExpenses>
        <TotalOutstandingAmount>5.82</TotalOutstandingAmount>
        <TotalPaymentsOnAccount>0.00</TotalPaymentsOnAccount>
        <AmountsWithheld>
          <WithholdingReason>Garantía</WithholdingReason>
          <WithholdingAmount>2.50</WithholdingAmount>
        </AmountsWithheld>
        <TotalExecutableAmount>3.32</TotalExecutableAmount>
      </InvoiceTotals>

Los campos para la retención serían y
¿Alguno de los métodos de Facturae-PHP añade esos nodos al XML? ¿o existe algún modo de añadir esos nodos "a mano"?

@VTCop
Copy link
Author

VTCop commented Apr 25, 2019

El pull request #50 permite poder añadir retenciones a la factura, usando el método addAmountWithheld()

@josemmo
Copy link
Owner

josemmo commented Apr 28, 2019

Hola @VTCop,

El PR que has propuesto hace fallar los tests de Travis. Además, no se si añadir 14 commits que se llaman igual a la rama develop es buena idea.

Si puede ser, mejor haz otro pull request.

@josemmo
Copy link
Owner

josemmo commented Jun 5, 2019

Cerrado por inactividad.

Para aquellos que estén buscando una forma de implementar modificaciones a una factura sin tener que alterar el código de la libraría se han creado las extensiones de terceros.

@josemmo josemmo closed this as completed Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants