コード例 #1
0
    protected bool CreateChange()
    {
        if (!DataOk())
        {
            return(false);
        }
        //
        DateTime myDate = (DateTime)rddpInvoiceDate.SelectedDate;
        string   reason = txtReason.Text;

        // create amendment invoice
        aInv = CntAriCli.CreateAmendmentInvoice(inv, myDate, reason, ctx);
        if (aInv == null)
        {
            lblMessage.Text = "No se ha podido crear la factura rectificativa, seguramente ya se ha generado otra contra esta factura";
            return(false);
        }
        return(true);
    }