Esempio n. 1
0
        public decimal TotalGastosMermas(Batchs partidas)
        {
            decimal total   = 0;
            Batch   partida = null;

            foreach (Stock item in this)
            {
                if (item.ETipoStock != ETipoStock.Merma)
                {
                    continue;
                }

                partida = partidas.GetItem(item.OidPartida);
                total  += (partida.PrecioCompraKilo + partida.GastoKilo) * item.Kilos;
            }

            return(Math.Abs(total));
        }
Esempio n. 2
0
        public decimal TotalAyudaMermas(Batchs partidas)
        {
            decimal total   = 0;
            Batch   partida = null;

            foreach (Stock item in this)
            {
                if (item.ETipoStock != ETipoStock.Merma)
                {
                    continue;
                }

                partida = partidas.GetItem(item.OidPartida);
                total  += partida.AyudaKilo * item.Kilos;
            }

            return(Math.Abs(total));
        }