Failed to save user fields in sales editor

Asked

Viewed 107 times

1

When the article is identified it makes all the changes below that it has to do. When I save the Sales Document it does not correctly save the changes to the document, when I load the document later saved some fields remain empty or incomplete.

  • Cdu_lote and Cdu_variety below are as nvarchar and are also present in Linhasdoc.
  • Cdu_boxes is recorded correctly (int)
  • Cdu_lote only saves 10 characters (nvarchar 20)
  • Cdu_variety does not write at all and stays inside the database as null (nvarchar 50)
  • The Description is correctly recorded

When the article is identified: Artigo é identificado

When the saved document is loaded: Documento gravado é carregado

Code

public override void ArtigoIdentificado(string Artigo, int NumLinha, ref bool Cancel, ExtensibilityEventArgs e)
{
    base.ArtigoIdentificado(Artigo, NumLinha, ref Cancel, e); 
    DocumentoVenda.Linhas.GetEdita(NumLinha).CamposUtil["CDU_Caixas"].Valor = 30;
    DocumentoVenda.Linhas.GetEdita(NumLinha).CamposUtil["CDU_Lote"].Valor = "0123456789A";
    DocumentoVenda.Linhas.GetEdita(NumLinha).CamposUtil["CDU_Variedade"].Valor = "Nova-Vila L";
    DocumentoVenda.Linhas.GetEdita(NumLinha).Descricao = "Descr";
}
  • Hello, I tested the same scenario and the values are not being saved either. Place a ticket to resolve this.

  • I also tested on V9.15 and apparently it’s a bug. Contact the software producer.

No answers

Browser other questions tagged

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