some progress
This commit is contained in:
parent
a0c2d10269
commit
0f17ed730d
|
@ -128,6 +128,8 @@ class BusinessController extends AbstractController
|
||||||
$response['shortlinks'] = $bus->isShortLinks();
|
$response['shortlinks'] = $bus->isShortLinks();
|
||||||
$response['walletEnabled'] = $bus->isWalletEnable();
|
$response['walletEnabled'] = $bus->isWalletEnable();
|
||||||
$response['walletMatchBank'] = null;
|
$response['walletMatchBank'] = null;
|
||||||
|
$response['updateSellPrice'] = $bus->isCommodityUpdateSellPriceAuto();
|
||||||
|
$response['updateBuyPrice'] = $bus->isCommodityUpdateBuyPriceAuto();
|
||||||
if ($bus->isWalletEnable())
|
if ($bus->isWalletEnable())
|
||||||
$response['walletMatchBank'] = $provider->Entity2Array($bus->getWalletMatchBank(), 0);
|
$response['walletMatchBank'] = $provider->Entity2Array($bus->getWalletMatchBank(), 0);
|
||||||
$year = $entityManager->getRepository(Year::class)->findOneBy([
|
$year = $entityManager->getRepository(Year::class)->findOneBy([
|
||||||
|
@ -219,7 +221,10 @@ class BusinessController extends AbstractController
|
||||||
$business->setWesite($params['website']);
|
$business->setWesite($params['website']);
|
||||||
if ($params['email'])
|
if ($params['email'])
|
||||||
$business->setEmail($params['email']);
|
$business->setEmail($params['email']);
|
||||||
|
if ($params['commodityUpdateBuyPriceAuto'])
|
||||||
|
$business->setCommodityUpdateBuyPriceAuto($params['commodityUpdateBuyPriceAuto']);
|
||||||
|
if ($params['commodityUpdateSellPriceAuto'])
|
||||||
|
$business->setCommodityUpdateSellPriceAuto($params['commodityUpdateSellPriceAuto']);
|
||||||
if (array_key_exists('walletEnabled', $params)) {
|
if (array_key_exists('walletEnabled', $params)) {
|
||||||
if ($params['walletEnabled']) {
|
if ($params['walletEnabled']) {
|
||||||
if (array_key_exists('walletMatchBank', $params)) {
|
if (array_key_exists('walletMatchBank', $params)) {
|
||||||
|
|
|
@ -237,6 +237,12 @@ class Business
|
||||||
#[ORM\Column(length: 255, nullable: true)]
|
#[ORM\Column(length: 255, nullable: true)]
|
||||||
private ?string $archiveEmail = null;
|
private ?string $archiveEmail = null;
|
||||||
|
|
||||||
|
#[ORM\Column(nullable: true)]
|
||||||
|
private ?bool $CommodityUpdateSellPriceAuto = null;
|
||||||
|
|
||||||
|
#[ORM\Column(nullable: true)]
|
||||||
|
private ?bool $CommodityUpdateBuyPriceAuto = null;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->logs = new ArrayCollection();
|
$this->logs = new ArrayCollection();
|
||||||
|
@ -1705,4 +1711,28 @@ class Business
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isCommodityUpdateSellPriceAuto(): ?bool
|
||||||
|
{
|
||||||
|
return $this->CommodityUpdateSellPriceAuto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setCommodityUpdateSellPriceAuto(?bool $CommodityUpdateSellPriceAuto): static
|
||||||
|
{
|
||||||
|
$this->CommodityUpdateSellPriceAuto = $CommodityUpdateSellPriceAuto;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function isCommodityUpdateBuyPriceAuto(): ?bool
|
||||||
|
{
|
||||||
|
return $this->CommodityUpdateBuyPriceAuto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setCommodityUpdateBuyPriceAuto(?bool $CommodityUpdateBuyPriceAuto): static
|
||||||
|
{
|
||||||
|
$this->CommodityUpdateBuyPriceAuto = $CommodityUpdateBuyPriceAuto;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue