[Bug]: Deliv.-Rem. Ext. Text Transfer: OnAfterReadLines will never be reached due to exit(true)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Área
- backend
Línea de trabajo
Lee codeunit 5005272, "Deliv.-Rem. Ext. Text Transfer", y compara su función ReadLines con codeunit 378, "Transfer Extended Text", concretamente con ReadExtTextLines. Comprueba cómo afecta exit(true) a OnAfterReadLines cuando se encuentra texto extendido e identifica las pruebas pertinentes para este comportamiento. Se considerará terminado cuando se alcance OnAfterReadLines después de leer las líneas y el comportamiento coincida con el de la función de referencia.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the issue
In the codeunit 5005272 "Deliv.-Rem. Ext. Text Transfer" there is the function ReadLines. The OnAfterReadLines Event will never be reached because of exit(true) if there are extended texts found. It should work similar as the codeunit 378 "Transfer Extended Text" function ReadExtTextLines.
Expected behavior
Here is the fix:
procedure ReadLines(var ExtTextHeader: Record "Extended Text Header"; DocDate: Date; LanguageCode: Code[10]): Result: Boolean
var
ExtTextLine: Record "Extended Text Line";
IsHandled: Boolean;
begin
IsHandled := false;
Result := false;
OnBeforeReadLines(ExtTextHeader, DocDate, LanguageCode, IsHandled, Result, TempExtTextLine);
if IsHandled then
exit(Result);
ExtTextHeader.SetCurrentKey(
"Table Name", "No.", "Language Code", "All Language Codes", "Starting Date", "Ending Date");
ExtTextHeader.SetRange("Starting Date", 0D, DocDate);
ExtTextHeader.SetFilter("Ending Date", '%1..|%2', DocDate, 0D);
if LanguageCode = '' then begin
ExtTextHeader.SetRange("Language Code", '');
if not ExtTextHeader.Find('+') then
exit;
end else begin
ExtTextHeader.SetRange("Language Code", LanguageCode);
if not ExtTextHeader.Find('+') then begin
ExtTextHeader.SetRange("All Language Codes", true);
ExtTextHeader.SetRange("Language Code", '');
if not ExtTextHeader.Find('+') then
exit;
end;
end;
ExtTextLine.SetRange("Table Name", ExtTextHeader."Table Name");
ExtTextLine.SetRange("No.", ExtTextHeader."No.");
ExtTextLine.SetRange("Language Code", ExtTextHeader."Language Code");
ExtTextLine.SetRange("Text No.", ExtTextHeader."Text No.");
if ExtTextLine.Find('-') then begin
TempExtTextLine.DeleteAll();
repeat
TempExtTextLine := ExtTextLine;
TempExtTextLine.Insert();
until ExtTextLine.Next() = 0;
Result := true;
end;
OnAfterReadLines(TempExtTextLine, ExtTextHeader, LanguageCode);
end;
Steps to reproduce
Please see codeunit 378 "Transfer Extended Text" function ReadExtTextLines for the correct behavior.
Additional context
No response
I will provide a fix for a bug
- I will provide a fix for a bug
- Lenguaje dominante
- AL
- Estrellas
- 720
- Forks
- 488
- Merge medio
- 2 d 17 h
- PR fusionados (30 d)
- 568
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/BCApps
-
Team: Integrations
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
microsoft/BCApps#13777 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Team: SCM
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
microsoft/BCApps#13723 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Team: SCM
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
microsoft/BCApps#13708 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Approved ext-requester-pr request-for-external Team: Finance
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
microsoft/BCApps#13691 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Team: SCM
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
microsoft/BCApps#13635 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de microsoft/BCApps
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
-
desktop v3 windows
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
esengine/DeepSeek-Reasonix#15016 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[yugabyted] xcluster set_up and add_to_replication fail for database names containing - . or (Abiertokind/bug priority/medium qa_automation
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
yugabyte/yugabyte-db#37324 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
balovess/aria2_rust#88 ·
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 87/100
btclib-org/btclib-node#2260 ·
Los mantenedores suelen responder en 1 día