MukeshKapoor25 commited on
Commit
c4ab641
·
1 Parent(s): f2af800

feat(notes): enhance FollowupDate updates with logging and error handling

Browse files
.gitconfig/CUSTOMER_NOTES_FOLLOWUP_IMPLEMENTATION.md CHANGED
@@ -75,7 +75,7 @@ When an existing customer note is updated via `PUT /api/v1/notes/customers/{cust
75
 
76
  **Transaction Steps**:
77
  1. Update the note fields in `CustomerNotes` table
78
- 2. If the note update was successful, **UPDATE** the customer's `FollowupDate` to current time
79
  3. Commit both operations as a single transaction
80
 
81
  **SQL Operations**:
@@ -86,7 +86,7 @@ WHERE NoteID2 = :note_id2 AND CustomerID = :customer_id;
86
 
87
  -- Update customer FollowupDate (if note was updated)
88
  UPDATE Customers
89
- SET FollowupDate = GETDATE()
90
  WHERE CustomerID = :customer_id;
91
  ```
92
 
 
75
 
76
  **Transaction Steps**:
77
  1. Update the note fields in `CustomerNotes` table
78
+ 2. If the note update was successful, **UPDATE** the customer's `FollowupDate` to the UI-provided date (or current time if not provided)
79
  3. Commit both operations as a single transaction
80
 
81
  **SQL Operations**:
 
86
 
87
  -- Update customer FollowupDate (if note was updated)
88
  UPDATE Customers
89
+ SET FollowupDate = :followup_date
90
  WHERE CustomerID = :customer_id;
91
  ```
92