- Added an audit trail feature that logs every create, update, and delete action on delivery notes and orders, capturing detailed changes per field. - Introduced the `AuditTimeline` component to display the history of changes for delivery notes and orders, enhancing traceability. - Updated the `page.tsx` files for delivery notes and orders to fetch and display audit logs, ensuring users can view the history of modifications. - Enhanced the `package.json` with a new migration script for setting up the audit log functionality. This feature improves accountability and transparency in the management of delivery notes and orders.
49 lines
No EOL
1.3 KiB
JSON
49 lines
No EOL
1.3 KiB
JSON
{
|
|
"grand": {
|
|
"compressed": 0,
|
|
"skipped": 1,
|
|
"errors": 0,
|
|
"dryRun": 0,
|
|
"tokensChanged": 0,
|
|
"originalBytes": 286689,
|
|
"compressedBytes": 286327,
|
|
"savedBytes": 362,
|
|
"savedPct": 0.1
|
|
},
|
|
"sources": [
|
|
{
|
|
"source": "quote_attachments",
|
|
"summary": {
|
|
"compressed": 0,
|
|
"skipped": 1,
|
|
"errors": 0,
|
|
"dryRun": 0,
|
|
"tokensChanged": 0,
|
|
"originalBytes": 286689,
|
|
"compressedBytes": 286327,
|
|
"savedBytes": 362,
|
|
"savedPct": 0.1
|
|
},
|
|
"results": [
|
|
{
|
|
"source": "quote_attachments",
|
|
"collection": "quote_attachments",
|
|
"field": "file",
|
|
"recordId": "0w824yt929upeyz",
|
|
"token": "image001_g8etl02zu0_fkomqnqq1p_w8ejj3eica.png",
|
|
"filename": "image001_g8etl02zu0_fkomqnqq1p_w8ejj3eica.png",
|
|
"displayFilename": "image001_g8etl02zu0_fkomqnqq1p_w8ejj3eica.png",
|
|
"ext": "png",
|
|
"originalBytes": 286689,
|
|
"compressedBytes": 286327,
|
|
"sourceHash": "18b004eff76c62e14a58582774c45e234d71ee339b2d63b8a23e69d13d08540f",
|
|
"compressedHash": null,
|
|
"action": "skipped",
|
|
"skipReason": "no_meaningful_savings",
|
|
"error": null,
|
|
"ratio": 0.999
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |