Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2106

Re: Factura en estado impreso (abrir:imprimido)

$
0
0

La forma de realizarlo es:

 

if (facturaPuc.Add() == 0)

{

 

       //con GetNewObjectKey() obtengo ultimo key insertado

      facturaPuc.GetByKey(Int32.Parse(oDictucPUC.GetNewObjectKey().ToString()));

      if (facturaPuc.Printed == 0)

      {

            facturaPuc.Printed = SAPbobsCOM.PrintStatusEnum.psYes;

            int ret = facturaPuc.Update();

 

 

            if (ret != 0)

            {

                   Console.WriteLine("Error al update: " + oDictucPUC.GetLastErrorDescription());

            }

      }

 

 

 

}

 

Saludos espero que les sea útil.


Viewing all articles
Browse latest Browse all 2106

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>