Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #51757 Back to Issue ]
Summary 0051757: StandardStep do not save initial value in context
Revision 2023-07-04 09:47 by gorka_gil
Steps To Reproduce Apply the diff included in the issue to revert a hack done.

Enter in pos2,
go to print labels (last entry in the left menu)
don't edit any field,
go to next step,
in selector category select any category like for example 'food'
select any product in the left list so it is added to the second list.

ERROR 1: there is an error in the console:
'Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'scale')'

If debugged and checkend in the context of the multistep, the initial values of the fields of the step1 have not been saved before navigating to step2.

To debugg it:
- in file PrintProductLabelProductListGrid.jsx
- set a break point in line 45 - const { processData } = useMultiStepProcessContext();
- if we click next , procssData comes with properties with value undefined, if changing any value, comes with that value


ERROR 2:
- probably related to first one, the default values are not loaded till click on reset form. Default values can be edited on PrintProductLabel.config.json
Revision 2023-07-04 09:43 by gorka_gil
Steps To Reproduce Apply the diff included in the issue to revert a hack done.

Enter in pos2,
go to print labels (last entry in the left menu)
don't edit any field,
go to next step,
in selector category select any category like for example 'food'
select any product in the left list so it is added to the second list.

ERROR 1: there is an error in the console:
'Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'scale')'

If debugged and checkend in the context of the multistep, the initial values of the fields of the step1 have not been saved before navigating to step2.

To debugg it:
- in file PrintProductLabelProductListGrid.jsx
- set a break point in line 45 - const { processData } = useMultiStepProcessContext();
- if we click next , procssData comes with properties with value undefined, if changing any value, comes with that value


- other bug found, default values are not loaded till click on reset form
Revision 2023-07-04 09:29 by gorka_gil
Steps To Reproduce Enter in pos2,
go to print labels (last entry in the left menu)
don't edit any field,
go to next step,
in selector category select any category like for example 'food'
select any product in the left list so it is added to the second list.

Error: the product added to the second list have quantity 0, when the default value of quantity in the step 1 is qty=1.

If debugged and checkend in the context of the multistep, the initial values of the fields of the step1 have not been saved before navigating to step2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker