Bajo cambios
This commit is contained in:
@@ -613,6 +613,15 @@ namespace compabetov2
|
||||
private void ImprimirContenido(PrintPageEventArgs e)
|
||||
{
|
||||
|
||||
decimal totalimporte = 0;
|
||||
foreach (DetalleImporte importe in importes)
|
||||
{
|
||||
if (importe.cantidad!=0) {
|
||||
|
||||
totalimporte += importe.cantidad * importe.precioImporte;
|
||||
|
||||
}
|
||||
}
|
||||
string responsable = responsablecb.SelectedItem.ToString();
|
||||
// Contenido que deseas imprimir
|
||||
string contenido = " Mini Súper\n" +
|
||||
@@ -632,6 +641,8 @@ namespace compabetov2
|
||||
contenido += $"------------------------------------\n" +
|
||||
$" Total: ${total}\n" +
|
||||
"------------------------------------\n" +
|
||||
|
||||
$" Importe: {totalimporte}\n " +
|
||||
" Mini Súper\n" +
|
||||
" Compa BETO\n" +
|
||||
" ¡Gracias por su compra!";
|
||||
@@ -681,6 +692,7 @@ namespace compabetov2
|
||||
Label lbPrecio = panelInfo.Controls[1] as Label;
|
||||
Label Lbcantidad = panelInfo.Controls[2] as Label;
|
||||
Label Lbtotal = panelInfo.Controls[3] as Label;
|
||||
|
||||
//nombre producto
|
||||
string textoLbnombre = lbnombre.Text;
|
||||
string[] cadenas = textoLbnombre.Split(':');
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user