importe funcional sin haber hecho pruebas exaustivas
This commit is contained in:
@@ -21,13 +21,15 @@ namespace compabetov2.Ventas
|
||||
public string Telefono => txtTelefono.Text;
|
||||
private Envio envio;
|
||||
List<DetalleEnvioModel> detallesEnvio;
|
||||
List<DetalleImporte> importes;
|
||||
vender ventanaPadre;
|
||||
public datosEnvio(Envio envio, List<DetalleEnvioModel> detallesEnvio, vender ventanaPadre)
|
||||
public datosEnvio(Envio envio, List<DetalleEnvioModel> detallesEnvio, List<DetalleImporte> importes, vender ventanaPadre)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.envio = envio;
|
||||
this.detallesEnvio = detallesEnvio;
|
||||
this.ventanaPadre = ventanaPadre;
|
||||
this.importes = importes;
|
||||
txtTelefono.KeyPress += new KeyPressEventHandler(txtTelefono_KeyPress);
|
||||
}
|
||||
|
||||
@@ -38,14 +40,15 @@ namespace compabetov2.Ventas
|
||||
envio.cliente = txtCliente.Text;
|
||||
envio.direccion = txtDireccion.Text;
|
||||
envio.telefono = txtTelefono.Text;
|
||||
if (service.crearEnvio(envio, detallesEnvio))
|
||||
|
||||
if (service.crearEnvio(envio, detallesEnvio, importes))
|
||||
{
|
||||
MessageBox.Show("Envio hecho");
|
||||
ImprimirTicketEnvio();
|
||||
ventanaPadre.eliminarProductosTocket();
|
||||
ventanaPadre.llenarLayout();
|
||||
ventanaPadre.total = 0;
|
||||
|
||||
ventanaPadre.importes.Clear();
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
@@ -197,7 +200,7 @@ namespace compabetov2.Ventas
|
||||
envio.cliente = txtCliente.Text;
|
||||
envio.direccion = txtDireccion.Text;
|
||||
envio.telefono = txtTelefono.Text;
|
||||
if (service.crearEnvio(envio, detallesEnvio))
|
||||
if (service.crearEnvio(envio, detallesEnvio, importes))
|
||||
{
|
||||
MessageBox.Show("Envio hecho");
|
||||
ImprimirTicketEnvio();
|
||||
|
||||
Reference in New Issue
Block a user