mirror of
https://github.com/Karaka-Management/oms-SupplierManagement.git
synced 2026-02-12 14:58:43 +00:00
test fixes and changes for release
This commit is contained in:
parent
9e44af2ac4
commit
8a9385bb2e
|
|
@ -22,6 +22,7 @@ use Modules\Media\Models\NullMedia;
|
|||
use Modules\Profile\Models\ContactElement;
|
||||
use Modules\Profile\Models\NullContactElement;
|
||||
use Modules\Profile\Models\Profile;
|
||||
use Modules\Admin\Models\Account;
|
||||
|
||||
/**
|
||||
* Supplier class.
|
||||
|
|
@ -58,7 +59,7 @@ class Supplier
|
|||
/**
|
||||
* Attributes.
|
||||
*
|
||||
* @var int[]|SupplierAttribute[]
|
||||
* @var SupplierAttribute[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private array $attributes = [];
|
||||
|
|
@ -221,6 +222,58 @@ class Supplier
|
|||
return $this->address;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add partner
|
||||
*
|
||||
* @param Account $partner Partner
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function addPartner(Account $partner) : void
|
||||
{
|
||||
$this->partners[] = $partner;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get partners
|
||||
*
|
||||
* @return Account[]
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getPartners() : array
|
||||
{
|
||||
return $this->partners;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add attribute to supplier
|
||||
*
|
||||
* @param SupplierAttribute $attribute Attribute
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function addAttribute(SupplierAttribute $attribute) : void
|
||||
{
|
||||
$this->attributes[] = $attribute;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get attributes
|
||||
*
|
||||
* @return SupplierAttribute[]
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getAttributes() : array
|
||||
{
|
||||
return $this->attributes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get contacts.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -257,6 +257,25 @@ $CONFIG = [
|
|||
'root' => '/',
|
||||
'https' => false,
|
||||
],
|
||||
'app' => [
|
||||
'path' => __DIR__,
|
||||
'default' => [
|
||||
'app' => 'Backend',
|
||||
'id' => 'backend',
|
||||
'lang' => 'en',
|
||||
'theme' => 'Backend',
|
||||
'org' => 1,
|
||||
],
|
||||
'domains' => [
|
||||
'127.0.0.1' => [
|
||||
'app' => 'Backend',
|
||||
'id' => 'backend',
|
||||
'lang' => 'en',
|
||||
'theme' => 'Backend',
|
||||
'org' => 1,
|
||||
],
|
||||
],
|
||||
],
|
||||
'socket' => [
|
||||
'master' => [
|
||||
'host' => '127.0.0.1',
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user