Пример #1
0
 public System.IAsyncResult BeginFERecuperaLastCMPRequest(FEAuthRequest argAuth, FELastCMPtype argTCMP, System.AsyncCallback callback, object asyncState)
 {
     return(this.BeginInvoke("FERecuperaLastCMPRequest", new object[] {
         argAuth,
         argTCMP
     }, callback, asyncState));
 }
Пример #2
0
        public FELastCMPtype GenerarFELastCMPtype()
        {
            FELastCMPtype feLastCMPtype = new FELastCMPtype();

            feLastCMPtype.TipoCbte = Convert.ToInt32(comprobante.Tipo.Codigo);
            feLastCMPtype.PtoVta   = Convert.ToInt32(comprobante.NroCbante.Substring(0, 4));
            return(feLastCMPtype);
        }
Пример #3
0
 public FERecuperaLastCMPResponse FERecuperaLastCMPRequest(FEAuthRequest argAuth, FELastCMPtype argTCMP)
 {
     object[] results = this.Invoke("FERecuperaLastCMPRequest", new object[] {
         argAuth,
         argTCMP
     });
     return((FERecuperaLastCMPResponse)(results[0]));
 }
Пример #4
0
        //public FELastCMPtype GenerarFELastCMPtype() {
        //    FELastCMPtype feLastCMPtype = new FELastCMPtype();
        //    feLastCMPtype.TipoCbte = Convert.ToInt32(comprobante.Tipo.Codigo);
        //    feLastCMPtype.PtoVta = Convert.ToInt32(comprobante.NroCbante.Substring(0, 4));
        //    return feLastCMPtype;

        //}
        public FELastCMPtype GenerarFELastCMPtype()
        {
            if (empresa.PuntoDeVenta.HasValue)
            {
                FELastCMPtype feLastCMPtype = new FELastCMPtype();
                feLastCMPtype.TipoCbte = Convert.ToInt32(comprobante.Tipo.Codigo);
                feLastCMPtype.PtoVta   = empresa.PuntoDeVenta.Value;              //1;// Convert.ToInt32(comprobante.NroCbante.Substring(0, 4));
                return(feLastCMPtype);
            }
            else
            {
                throw new Exception("La empresa debe tener un puento de venta asociado.");
            }
        }