mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-02 05:10:59 +00:00
fix(taxes): correct compound tax document flows (#754)
This commit is contained in:
@@ -7,9 +7,12 @@ use App\Domains\Contacts\Models\Customer;
|
||||
use App\Domains\Sales\Models\RecurringInvoice;
|
||||
use App\Support\DocumentTotals;
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
use Illuminate\Validation\Validator;
|
||||
|
||||
class RecurringInvoiceRequest extends FormRequest
|
||||
{
|
||||
use Concerns\ValidatesDocumentTaxPlaceholders;
|
||||
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
@@ -101,6 +104,11 @@ class RecurringInvoiceRequest extends FormRequest
|
||||
return $rules;
|
||||
}
|
||||
|
||||
public function withValidator(Validator $validator): void
|
||||
{
|
||||
$this->validateDocumentTaxPlaceholders($validator);
|
||||
}
|
||||
|
||||
public function getRecurringInvoicePayload()
|
||||
{
|
||||
$company_currency = CompanySetting::getSetting('currency', $this->header('company'));
|
||||
|
||||
Reference in New Issue
Block a user