Project

General

Profile

Bug #4453

Updated by Pavan Kumar Murala about 2 months ago

* Added “Edit” button in the Preorder List table under the Actions column. 
 * Passed the selected preorder’s _id to the edit mode for fetching specific preorder details. 
 * Implemented useEffect logic in the Preorder Creation page to: 
 * Fetch preorder details based on the passed _id. 
 * Automatically populate all related fields in edit mode. 
 * Handled Product Details section with two product detail modes: 
 * Same details for all products. 
 * Different details for each product. 
 * Fixed pagination issue — ensured each page displays the correct set of products in Product Details. 
 * Stored page-wise product details to maintain state consistency during navigation between pages. 
 * Integrated edit mode data binding — all product details now load correctly when editing an existing preorder. 
 * Split combined date-time fields into separate inputs: 
 * Pickup From Date/Time → expectedAvailabilityStartDate + availabilityFromTime 
 * Pickup To Date/Time → expectedAvailabilityEndDate + availabilityToTime 
 * Implemented logic for merging and updating split date/time fields in edit mode. 
 * Handled missing date/time values in edit mode — 
 * When new values are not provided (onChange not triggered), 
 * Used previously saved date and time values as fallback. 
 * Ensured correct handling when backend doesn’t return split values. 
 * Added Active/Inactive toggle buttons for Selected Products in edit mode. 
 * Tested full preorder edit flow — verified update and save operations with correct date/time handling. 
 * Team discussion with Sreenu Sir (30 mins) about Preorder Edit Mode implementation and logic improvements. 
 * Preorder Edit Mode technical meeting (40 mins) with the team — discussed product pagination, date split logic, and field update behavior.

Back