Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (item == null)
- {
- inventarioEntity = new Inventario_Denominaciones;
- int cantidadTemp = 0;
- if (_esRecibida == true)
- {
- _itemSelected.Subtotal = (decimal)(_itemSelected.ValorDenominacion * _itemSelected.Cantidad);
- Total = 0;
- foreach (var i in TabuladorItems)
- {
- Total = Total + i.Subtotal;
- }
- if (Total != CantOrigi)
- {
- Error = "El Total no coincide con la cantidad original";
- GenerarHabilitar = false;
- }
- else
- {
- Error = " ";
- GenerarHabilitar = true;
- }
- cantidadTemp += _itemSelected.Cantidad;
- }
- else
- {
- MessageBox.Show("No existe registro de inventario para esta denominación", "Aceptar", MessageBoxButton.OK);
- }
- inventarioEntity.cantidad = cantidadTemp;
- service.Inventario_Denominaciones.Add(inventarioEntity);
- }
Add Comment
Please, Sign In to add comment