Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v2' into v2
Browse files Browse the repository at this point in the history
  • Loading branch information
gnovaro committed Nov 1, 2024
2 parents f6cc04c + 814f690 commit 63c504a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion app/Models/Supplier.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ class Supplier extends Model
#[OAT\Property(type: 'string', example: 'password123')]
protected ?string $order_password = null;


public function company()
{
return $this->belongsTo(Company::class);
Expand Down
10 changes: 5 additions & 5 deletions app/Repositories/SupplierRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ public function save(array $data): ?Supplier
$supplier->province = (! empty($data['province'])) ? $data['province'] : null;
$supplier->street = (! empty($data['street'])) ? $data['street'] : null;
$supplier->zipcode = (! empty($data['zipcode'])) ? $data['zipcode'] : null;
$supplier->notes = !empty($data['notes']) ? $data['notes'] : null;
$supplier->account_number = !empty($data['account_number']) ? $data['account_number'] : null;
$supplier->order_url = !empty($data['order_url']) ? $data['order_url'] : null;
$supplier->order_user = !empty($data['order_user']) ? $data['order_user'] : null;
$supplier->order_password = !empty($data['order_password']) ? $data['order_password'] : null;
$supplier->notes = ! empty($data['notes']) ? $data['notes'] : null;
$supplier->account_number = ! empty($data['account_number']) ? $data['account_number'] : null;
$supplier->order_url = ! empty($data['order_url']) ? $data['order_url'] : null;
$supplier->order_user = ! empty($data['order_user']) ? $data['order_user'] : null;
$supplier->order_password = ! empty($data['order_password']) ? $data['order_password'] : null;
$supplier->updated_at = now();
$supplier->save();

Expand Down

0 comments on commit 63c504a

Please sign in to comment.