Está en la página 1de 2

Dim total As Double

Dim pago As String


Dim efectivo As Double
Dim afectivo As Double
Dim credito As Double
Dim ael As Double
Dim creo As Double
Dim vaba As Double
Dim difer As Double
Dim llama As Double
Dim ter As Integer
afectivo = 0
credito = 0
ael = 0
creo = 0
vaba = 0

total = Val(Text1.Text)
efectivo = 0
pago = Val(Text2.Text)
pago = InputBox("cuanto cancelara en efectivo", "cuanto")

If (pago <= 99) Then


efectivo = (Text1.Text * pago) / 100
Else
If (pago = 100) Then
MsgBox "pago cancelado"
End If

If (pago <= 99) Then


credito = InputBox("ingrese el pago en tarjeta", "pago")
ael = pago + credito
If (ael < 100) Then
creo = (total * credito) / 100
Else
If (ael > 100) Then
MsgBox "verificar porcentaje"
End If
vaba = efectivo + creo
llama = pago + credito
difer = llama - 100
If (vaba = total) Then
MsgBox "el pago a sido cancelado"
Else
If (vaba < total) Then
ter = InputBox("ingrese el pago en cheque", "cheque")
If (ter = difer) Then
MsgBox " el pago a sido terminado"
MsgBox "efectivo:" & efectivo
Else
If (ter < difer) Then
MsgBox "verificar el pago"
End If

También podría gustarte