--cambio en tipo de dato de porcentajeieps
This commit is contained in:
@@ -2051,7 +2051,7 @@ Partial Class PopUpVerFactura
|
|||||||
Else
|
Else
|
||||||
Dim DR2 As DataRow = TmpDTImpuestosIVAIEPS.NewRow()
|
Dim DR2 As DataRow = TmpDTImpuestosIVAIEPS.NewRow()
|
||||||
If dr1("PorcentajeIEPS").ToString.ToDouble > 0 Then
|
If dr1("PorcentajeIEPS").ToString.ToDouble > 0 Then
|
||||||
DR2("Impuesto") = "IEPS" : DR2("tasa") = String.Format("{0} {1}", dr1("PorcentajeIEPS").ToString.ToDouble * 100, "%") : DR2("Importe") = dr1("ImporteIEPS").ToString.ToDouble : DR2("Orden") = If(dr1("PorcentajeIEPS").ToString = "0.03", "2", If(dr1("PorcentajeIEPS").ToString = "0.06", "3", If(dr1("PorcentajeIEPS").ToString = "0.07", "4", If(dr1("PorcentajeIEPS").ToString = "0.09", "5", ""))))
|
DR2("Impuesto") = "IEPS" : DR2("tasa") = String.Format("{0} {1}", dr1("PorcentajeIEPS").ToString.ToDouble * 100, "%") : DR2("Importe") = dr1("ImporteIEPS").ToString.ToDouble : DR2("Orden") = If(dr1("PorcentajeIEPS").ToString.ToDecimal = 0.03, "2", If(dr1("PorcentajeIEPS").ToString.ToDecimal = 0.06, "3", If(dr1("PorcentajeIEPS").ToString.ToDecimal = 0.07, "4", If(dr1("PorcentajeIEPS").ToString.ToDecimal = 0.09, "5", ""))))
|
||||||
TmpDTImpuestosIVAIEPS.Rows.Add(DR2)
|
TmpDTImpuestosIVAIEPS.Rows.Add(DR2)
|
||||||
TmpDTImpuestosIVAIEPS.AcceptChanges()
|
TmpDTImpuestosIVAIEPS.AcceptChanges()
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user