How to update a document line field in V9?

Asked

Viewed 78 times

-1

I was looking at examples of V10 codes and I found this,

 // Add new line to the invoice and set all the item related information.
 PriEngine.Engine.Vendas.Documentos.AdicionaLinha(invoice, item.SubItems[0].Text, ref qtd);
 linhas = invoice.Linhas;
 linhas.GetEdita(1).Desconto1 = 10;

I would like to achieve the same result using the V9 interops so that I can update the CCUSTO field of a purchase document lines.

Does anyone know how to proceed? Thank you!

1 answer

1


Good afternoon, it can be done like this:

PriEngine.BSO.Comercial.Compras.AdicionaLinha(invoice, "A0001", 1);
invoice.get_Linhas()[1].set_CCustoCBL("valor");
  • Thank you! It worked

Browser other questions tagged

You are not signed in. Login or sign up in order to post.