refactor(sales): rewrite legacy-era regions of the document services, controllers, credit-note request and routes in place

This commit is contained in:
Darko Gjorgjijoski
2026-08-21 01:26:47 +02:00
parent 28ce4ed264
commit 7170ba8241
7 changed files with 257 additions and 223 deletions
@@ -8,7 +8,7 @@ use Illuminate\Validation\Rule;
class CreateCreditNoteRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
* Whether this request may proceed at all.
*
* The controller authorizes the ability against the invoice being credited.
*/
@@ -18,7 +18,7 @@ class CreateCreditNoteRequest extends FormRequest
}
/**
* Get the validation rules that apply to the request.
* The shape a credit-note payload has to satisfy.
*
* "items" is optional: an absent or empty list credits every remaining
* quantity of the invoice, which is the full reversal. Each supplied line