Guest User

Untitled

a guest
Nov 23rd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. else if (item == null)
  2. {
  3. inventarioEntity = new Inventario_Denominaciones;
  4. int cantidadTemp = 0;
  5.  
  6. if (_esRecibida == true)
  7. {
  8. _itemSelected.Subtotal = (decimal)(_itemSelected.ValorDenominacion * _itemSelected.Cantidad);
  9. Total = 0;
  10.  
  11. foreach (var i in TabuladorItems)
  12. {
  13. Total = Total + i.Subtotal;
  14. }
  15.  
  16. if (Total != CantOrigi)
  17. {
  18. Error = "El Total no coincide con la cantidad original";
  19. GenerarHabilitar = false;
  20. }
  21. else
  22. {
  23. Error = " ";
  24. GenerarHabilitar = true;
  25. }
  26. cantidadTemp += _itemSelected.Cantidad;
  27. }
  28.  
  29. else
  30. {
  31. MessageBox.Show("No existe registro de inventario para esta denominación", "Aceptar", MessageBoxButton.OK);
  32. }
  33. inventarioEntity.cantidad = cantidadTemp;
  34. service.Inventario_Denominaciones.Add(inventarioEntity);
  35. }
Add Comment
Please, Sign In to add comment