You are on page 1of 7

INFORME EJERCICIO DE FACTURACION

INTEGRANTE

Menndez Quiroz Erika Liliana

DESCRIPCIN DE EJERCICIO

En este ejercicio lo que se quiere realizar el modelo de una factura y a la vez utilizar la
factura electrnica correctamente.

OBJETIVOS

El objetivo es aprender a utilizar la factura electrnica correctamente.

DESCRIPCIN DEL EJERCICIO

PAGINA PRINCIPAL DE LA
FACTURA

AQU SE INGRESA EL CODOGO DEL PRODUCTO

SE PRECIONA PARA

BUSCAR EL PRODUCTO
AQU APARECE LA
DESCRIPCION Y
PRECIO DEL
PRODUCTO

AQU SE
COLOCA LA
CANTIDAD A
COMPRAR Y SE
PRECIONA LA TECLA
ENTER

AQU YA
APARECE EL
SUBTOTAL Y SE
PRECIONA LA TECLA
ENTER

AQU YA SE
CALCULO EL IVA Y EL
TOTAL

Y SE ALMACENA
AQUI
AL
PRESIONAR EN EL
BOTN VENDER SE
GENERA EL NMERO DE
LA FACTURA

BOTON SALIR

LIMPIA TODOS LOS CAMPOS

MENOS LA TABLA
Public Class Form1
Dim cant As Integer
Dim precio_unitario, precio_total_por_producto As Integer
Dim total_a_pagar, total, iva As Integer
Const c_iva As Integer = 14
Dim a_precio As Integer
Dim g_num_fac As Integer
Sub producto()
Textcodigo.Text = "001"
Textnompro.Text = "laptos"
Textdespro.Text = "laptop HP compac"
Textprepro.Text = "800"
End Sub
Sub producto1()
Textcodigo.Text = "002"
Textnompro.Text = "monitores"
Textdespro.Text = "monitor lg 26"""
Textprepro.Text = "160"
End Sub
Sub producto2()
Textcodigo.Text = "003"
Textnompro.Text = "teclado"
Textdespro.Text = "teclado genius"
Textprepro.Text = "20" Esto es para
End Sub generar los
Sub producto3()
Textcodigo.Text = "004" cdigos de los
Textnompro.Text = "parlantes" productos
Textdespro.Text = "parlantes genius"
Textprepro.Text = "40"
End Sub
Sub producto4()
Textcodigo.Text = "005"
Textnompro.Text = "impresora"
Textdespro.Text = "impresora canon inyeccion de tinta"
Textprepro.Text = "1100"
End Sub
Sub producto5()
Textcodigo.Text = "006"
Textnompro.Text = "mouse"
Textdespro.Text = "mouse logitech"
Textprepro.Text = "25"
End Sub
Sub producto6()
Textcodigo.Text = "007"
Textnompro.Text = "tablet"
Textdespro.Text = "tablet intel TM75A"
Textprepro.Text = "650"
End Sub
Private Sub Textcodigo_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles Textcodigo.KeyPress
If e.KeyChar = ChrW(Keys.Enter) Then
Textcodigo.Focus()
End If
End Sub

Private Sub Textnompro_KeyPress(ByVal sender As Object, ByVal e As


System.Windows.Forms.KeyPressEventArgs) Handles Textnompro.KeyPress
If e.KeyChar = ChrW(Keys.Enter) Then
Textnompro.Focus() Esto es para
End If
realizar el
private Sub Textdespro_KeyPress(ByVal sender As Object, ByVal e As ingreso del
System.Windows.Forms.KeyPressEventArgs) Handles Textdespro.KeyPress cdigo y las
If e.KeyChar = ChrW(Keys.Enter) Then
Textdespro.Focus() descripciones
End If
End Sub

Private Sub Textprepro_KeyPress(ByVal sender As Object, ByVal e As


System.Windows.Forms.KeyPressEventArgs) Handles Textprepro.KeyPress
If e.KeyChar = ChrW(Keys.Enter) Then
Textprepro.Focus()
End If
End Sub

Private Sub TextBox2_KeyPress(ByVal sender As Object, ByVal e As Esto es para


System.Windows.Forms.KeyPressEventArgs) Handles TextBox2.KeyPress
realizar
If e.KeyChar = ChrW(Keys.Enter) Then
cant = CInt(Val(TextBox2.Text)) calcular solo el
precio_unitario = CInt(Val(Textprepro.Text)) subtotal
precio_total_por_producto = precio_unitario * cant
TextBox3.Text = CStr(CInt(precio_total_por_producto))
TextBox3.Focus()

Private Sub TextBox3_KeyPress(ByVal sender As Object, ByVal e As


System.Windows.Forms.KeyPressEventArgs) Handles TextBox3.KeyPress
If e.KeyChar = ChrW(Keys.Enter) Then
DataGridView1.Rows.Add(Textcodigo.Text, Textnompro.Text,
Textdespro.Text, Textprepro.Text, TextBox2.Text, TextBox3.Text, Label14.Text) Esto es para
a_precio = a_precio + precio_total_por_producto
total = a_precio realizar el
Label9.Text = CStr(total) clculo del IVA
iva = CInt((total * c_iva) / 100) y del total a
Label13.Text = CStr(iva)
total_a_pagar = total + iva pagar y
Label14.Text = CStr(total_a_pagar) guardar todo
End If
End Sub
en la tabla
Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles
LinkLabel1.LinkClicked
If Textcodigo.Text = "001" Then
Call producto()
Textprepro.Focus()
ElseIf Textcodigo.Text = "002" Then
Call producto1()
Textprepro.Focus()
ElseIf Textcodigo.Text = "003" Then
Call producto2()
Textprepro.Focus() Esto es para
ElseIf Textcodigo.Text = "004" Then
Call producto3() escoger el
Textprepro.Focus() producto con
ElseIf Textcodigo.Text = "005" Then un enlace
Call producto4()
Textprepro.Focus()
ElseIf Textcodigo.Text = "006" Then
Call producto5()
Textprepro.Focus()
ElseIf Textcodigo.Text = "007" Then
Call producto6()
Textprepro.Focus()

End If
TextBox2.Focus()
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click es el que le
g_num_fac = g_num_fac + 1
TextBox1.Text = CStr(g_num_fac) permite ir
MsgBox("venta realizada") contabilizando
End Sub las facturas

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button2.Click
Textcodigo.Text = ""
Textnompro.Text = ""
Textdespro.Text = "" Es para limpiar
Textprepro.Text = "" todas las
TextBox2.Text = ""
TextBox3.Text = "" opciones
Label9.Text = ""
Label13.Text = ""
Label14.Text = ""
Textcodigo.Focus()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As Es para salir
System.EventArgs) Handles Button3.Click
MsgBox("compra realizada con exito") de la factura
End

End Sub
End Class

CONCLUSIN

Pues en lo personal a mi facture le falt un poco de esttica.

SUGERENCIAS

DIFICULTADES

You might also like