Corrige la gestión de movimientos de stock en TrabajoAT y StockAvanzadoTest - #84
Open
EstebanSM85 wants to merge 2 commits into
Open
Corrige la gestión de movimientos de stock en TrabajoAT y StockAvanzadoTest#84EstebanSM85 wants to merge 2 commits into
EstebanSM85 wants to merge 2 commits into
Conversation
…doTest https://facturascripts.com/roadmap/4984 - Se actualiza el comentario en StockAvanzadoTest para reflejar que no hay movimiento de stock cuando la gestión está desactivada. - Se modifica la función setStockMovement en TrabajoAT para evitar la creación de movimientos si la gestión de stock está desactivada. - Se ajustan las aserciones en StockAvanzadoTest para verificar correctamente la ausencia de movimientos tras la eliminación de TrabajoAT.
- Se implementan dos pruebas: `testUpdateStockWhenStockManagementEnabled` y `testUpdateStockWhenStockManagementDisabled`. - Se verifica el comportamiento del sistema al crear trabajos con la gestión de stock activada y desactivada. - Se asegura que el stock se actualiza correctamente y que no se generan movimientos de stock cuando la gestión está desactivada. - Se refactoriza el método `createServiceWithStock` para mejorar la legibilidad y reutilización del código.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://facturascripts.com/roadmap/4984