mirror of
https://github.com/Karaka-Management/oms-SupplierManagement.git
synced 2026-02-18 17:38:41 +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\ContactElement;
|
||||||
use Modules\Profile\Models\NullContactElement;
|
use Modules\Profile\Models\NullContactElement;
|
||||||
use Modules\Profile\Models\Profile;
|
use Modules\Profile\Models\Profile;
|
||||||
|
use Modules\Admin\Models\Account;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Supplier class.
|
* Supplier class.
|
||||||
|
|
@ -58,7 +59,7 @@ class Supplier
|
||||||
/**
|
/**
|
||||||
* Attributes.
|
* Attributes.
|
||||||
*
|
*
|
||||||
* @var int[]|SupplierAttribute[]
|
* @var SupplierAttribute[]
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private array $attributes = [];
|
private array $attributes = [];
|
||||||
|
|
@ -221,6 +222,58 @@ class Supplier
|
||||||
return $this->address;
|
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.
|
* Get contacts.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -257,6 +257,25 @@ $CONFIG = [
|
||||||
'root' => '/',
|
'root' => '/',
|
||||||
'https' => false,
|
'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' => [
|
'socket' => [
|
||||||
'master' => [
|
'master' => [
|
||||||
'host' => '127.0.0.1',
|
'host' => '127.0.0.1',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user