refactor(receivables): rewrite legacy-era regions of the allocation model, requests, pdf controller and routes in place

This commit is contained in:
Darko Gjorgjijoski
2026-08-21 09:38:43 +02:00
parent c4c816b0ed
commit c7130e1e17
6 changed files with 32 additions and 11 deletions
@@ -7,7 +7,8 @@ use Illuminate\Foundation\Http\FormRequest;
class CreditAllocationRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
* Access is settled by the controller, which weighs the customer and
* every payment named in the payload; this class only shapes input.
*/
public function authorize(): bool
{
@@ -15,7 +16,7 @@ class CreditAllocationRequest extends FormRequest
}
/**
* Get the validation rules that apply to the request.
* Credit rows: which payment covers which invoice, and by how much.
*
* @return array<string, array<int, string>>
*/