Minor fixes

This commit is contained in:
David Bomba 2023-04-29 09:32:20 +10:00
parent 94a40a74b3
commit ed3b8240d6
3 changed files with 5 additions and 5 deletions

View File

@ -463,7 +463,7 @@ class BaseImport
} else {
$invoice = InvoiceFactory::create(
$this->company->id,
$this->getUserIDForRecord($invoice_data)
$this->company->owner()->id
);
if (! empty($invoice_data['status_id'])) {
$invoice->status_id = $invoice_data['status_id'];

View File

@ -397,7 +397,7 @@ class BaseTransformer
/**
* @param $name
*
* @return int
* @return float
*/
public function getTaxRate($name)
{
@ -437,7 +437,7 @@ class BaseTransformer
* @param mixed $data
* @param mixed $field
*
* @return null
* @return ?string
*/
public function getDate($data, $field)
{

View File

@ -24,8 +24,8 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property int|null $updated_at
* @property int|null $deleted_at
* @property string $name
* @property string $rate
* @property int $is_deleted
* @property float $rate
* @property bool $is_deleted
* @property-read mixed $hashed_id
* @property-read mixed $tax_rate_id
* @method static \Illuminate\Database\Eloquent\Builder|BaseModel company()