You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
504 B
18 lines
504 B
<?php
|
|
|
|
namespace App\Livewire\Forms\Billing;
|
|
|
|
use Livewire\Attributes\Validate;
|
|
use Livewire\Form;
|
|
|
|
class ProductForm extends Form
|
|
{
|
|
#[Validate('required|string|max:255', as: 'domains/billing/field.product.code')]
|
|
public string $code = '';
|
|
|
|
#[Validate('required|string|max:255', as: 'domains/billing/field.product.name')]
|
|
public string $name = '';
|
|
|
|
#[Validate('required|integer|exists:chart_of_accounts,id', as: 'domains/billing/field.product.coa')]
|
|
public ?int $coa_id = null;
|
|
}
|
|
|