mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-17 02:04:03 +00:00
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:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user