eFacturas Observaciones, Compras prorrateo validacion IVA, Proveedores Abonar aplicacion de mas en pago RNC
This commit is contained in:
@@ -22668,7 +22668,20 @@ Partial Class Compras_Compras
|
||||
nRow("SubTotal") = subtotalParcial.RoundSQL(4)
|
||||
|
||||
nRow("Total") = totalParcialDeseado.RoundSQL(4)
|
||||
nRow("PorcentajeIVA") = (ivaParcial / subtotalParcial).RoundSQL(2)
|
||||
|
||||
|
||||
Dim tmpPorcentajeIVA As Decimal = 0
|
||||
If ivaParcial > 0 Then
|
||||
tmpPorcentajeIVA = (ivaParcial / subtotalParcial).RoundSQL(2)
|
||||
If tmpPorcentajeIVA = 0.17 Or tmpPorcentajeIVA = 0.15 Then
|
||||
tmpPorcentajeIVA = 0.16D
|
||||
End If
|
||||
If tmpPorcentajeIVA = 0.07 Or tmpPorcentajeIVA = 0.09 Then
|
||||
tmpPorcentajeIVA = 0.16D
|
||||
End If
|
||||
End If
|
||||
|
||||
nRow("PorcentajeIVA") = tmpPorcentajeIVA
|
||||
nRow("Porcentaje") = ((totalParcialDeseado.RoundSQL(4) * 100) / TotalOriginal).RoundSQL(2)
|
||||
|
||||
nRow("RetIVAPorcentaje") = (retIvaParcial / subtotalParcial).RoundSQL(4)
|
||||
|
||||
Reference in New Issue
Block a user