roos-fs tasks #544
open[BUG] In the Product table, the fields 'Service Name' and 'Vehicle Name' must be cleared after the status changes from 'installed' to 'in stock'.
0%
Description
Description:
When the service is completed, the status of the spare part changes from 'In Stock' to 'Installed'. After uploading this spare part to the customer, its status must change back to 'In Stock', and the fields 'Service Name' and 'Vehicle Name' must be cleared.
Critical BUG.
Environment: Staging.
Precondition:
A user must have the spare part with the status 'In stock'.(Product:'New Product', ID: 259, Serial Number: D001, Customer: Tretjacova-company, status: 'In stock').
Steps to Reproduse:
- Open 'Tasks' page. Click on the 'Create New Task Template' button.
- Entery 'Task Template' name 'Changing spare part'. Select 'Assignment Customer': 'Tretjacova-company'.
- Click on '+ Add checklist field' in '1 checklist section'. Fill the fields: Field Name : 'Test', Field Type: 'Warehouse Part Picker'.
- Click on the 'Create Task' button.
- Open Services page. Click on the 'Create New Service' button. The 'Create New Service' page is opened.
- Fill the fields: Name Service: 'ChangeSparePartService', Assignment Vehicle: 'OLENA121212121212 (1999)', 'Task Template':'Changing spare part'. Click on the ' Add task' button.Click on the ' Add task to Service' button. Click on the ' Create Service' button.
- The Services page is opened. Click on the 'Changing spare part' service in the table.
- The 'Service Detail' page is opened. Click the 'Book Service' button. Select the date 10/13/2025 02:46 pm in the 'Book Service' modal windows. Click on the 'Book Service' button.
- Click on the 'Set Planned Date' button. Select in the 'Planned Date' the date 10/13/2025 and 'Planned Time' 02:52 pm in the 'Set Planned Date' modal windows. Click on the 'Set Planned Date' button.
- Click on the 'In progress' button. Click on the 'In progress' in 'In progress' modal window.
- Click on the 'view task' icon in the '1 Task' section.
- The Task Detail page is opened.
- Skip to the '1 Checklist' section. Select D001 in the Test field. Click on the submit button. The '1 checklist' section is shown like
'1/1 completed (100%)'. - Click on the 'Completed' button on the Task Detail page. Click on the 'Completed' in the Completed modal winow.
- Open Serices page. Click on the 'Changing spare part' service name in the services table. Clicl on the 'Complete Service' button on the Service Detail page. Clicl on the 'Complete Service' button in the Complete Service modal window.
- Open 'Warehouse' page. Open 'New Product' product. 'D0001' spare part is marked as 'Installed'. https://screenrec.com/share/TkdNq1RHFP
- Click on the 'Import Spare Parts' button. Click on the 'Download Excel Template'.
- Prepare the Excel document using the template that was downloaded.(Test data: Product: 'New Product', Serial Number :'D0001', Customer ID: 22).
- Upload the corresponding Excel document in the 'Upload Your File' section.
- Click the 'Upload' button.
- Open 'New Product' page.
Actual Result:
The fields 'Service name' and 'Vehicle Name' are not cleared. https://screenrec.com/share/nS3j8IOXaH
Expected Result:
After uploading this spare part to the customer, its status must change back to 'In Stock', and the fields 'Service Name' and 'Vehicle Name' must be cleared.