Add Convert to Estimate feature for invoices

New backend endpoint POST /invoices/{id}/convert-to-estimate that
creates a draft estimate from an invoice, copying items, taxes,
custom fields, and financial data. Frontend wired with dropdown
action, store method, and API service call.
This commit is contained in:
Darko Gjorgjijoski
2026-04-06 22:57:03 +02:00
parent c328d1cd10
commit 9ca998e64a
6 changed files with 107 additions and 0 deletions

View File

@@ -267,6 +267,8 @@ Route::prefix('/v1')->group(function () {
Route::post('/invoices/{invoice}/clone', [InvoicesController::class, 'clone']);
Route::post('/invoices/{invoice}/convert-to-estimate', [InvoicesController::class, 'convertToEstimate']);
Route::post('/invoices/{invoice}/status', [InvoicesController::class, 'changeStatus']);
Route::post('/invoices/delete', [InvoicesController::class, 'delete']);