Beispiel #1
0
        partial void Total_Compute(ref decimal result)
        {
            decimal subTotal = 0;

            foreach (var item in this.FacturasArticulos)
            {
                subTotal = subTotal + item.Monto;
            }
            var facturador = new Facturador();

            result = facturador.ObtenerTotal(subTotal, Convert.ToDecimal(this.Recargo), Convert.ToDecimal(this.Descuento));
        }
Beispiel #2
0
        private void btnFacturar_Click(object sender, EventArgs e)
        {
            Facturador facturador = new Facturador();

            facturador.Show();
        }
Beispiel #3
0
        private void emitirRemitoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Facturador facturador = new Facturador();

            facturador.Show();
        }
Beispiel #4
0
        public void ObtenerTotalBasico()
        {
            var facturador = new Facturador();

            Assert.AreEqual(14, facturador.ObtenerTotal(10, 6, 2), "El total esta mal calculado.");
        }