mirror of
https://github.com/Karaka-Management/oms-WarehouseManagement.git
synced 2026-02-15 21:58:41 +00:00
make id public, organigram impl. media password/encryption, settings bug fix, Money->FloatInt change, ...
This commit is contained in:
parent
28e5b2648f
commit
261c1f643a
|
|
@ -65,7 +65,7 @@ final class Installer extends InstallerAbstract
|
||||||
$stock->type = 0;
|
$stock->type = 0;
|
||||||
StockMapper::create()->execute($stock);
|
StockMapper::create()->execute($stock);
|
||||||
|
|
||||||
$stockLocation = new StockLocation((string) ($stock->getId() . '-1'));
|
$stockLocation = new StockLocation((string) ($stock->id . '-1'));
|
||||||
$stockLocation->stock = $stock;
|
$stockLocation->stock = $stock;
|
||||||
StockLocationMapper::create()->execute($stockLocation);
|
StockLocationMapper::create()->execute($stockLocation);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -66,11 +66,11 @@ final class ApiController extends Controller
|
||||||
StockMapper::create()->execute($stock);
|
StockMapper::create()->execute($stock);
|
||||||
|
|
||||||
$stockLocation = new StockLocation($stock->name . '-1');
|
$stockLocation = new StockLocation($stock->name . '-1');
|
||||||
$stockLocation->stock = $stock->getId();
|
$stockLocation->stock = $stock->id;
|
||||||
StockLocationMapper::create()->execute($stockLocation);
|
StockLocationMapper::create()->execute($stockLocation);
|
||||||
|
|
||||||
$stockShelf = new StockShelf($stockLocation->name . '-1');
|
$stockShelf = new StockShelf($stockLocation->name . '-1');
|
||||||
$stockShelf->location = $stockLocation->getId();
|
$stockShelf->location = $stockLocation->id;
|
||||||
StockShelfMapper::create()->execute($stockShelf);
|
StockShelfMapper::create()->execute($stockShelf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ class Stock
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected int $id = 0;
|
public int $id = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NAme.
|
* NAme.
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ class StockLocation
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected int $id = 0;
|
public int $id = 0;
|
||||||
|
|
||||||
public string $name = '';
|
public string $name = '';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ class StockMovement
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected int $id = 0;
|
public int $id = 0;
|
||||||
|
|
||||||
public int $quantity = 0;
|
public int $quantity = 0;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ class StockShelf
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected int $id = 0;
|
public int $id = 0;
|
||||||
|
|
||||||
public string $name = '';
|
public string $name = '';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,10 +32,10 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $count = 0; foreach ($stocks as $key => $value) :
|
<?php $count = 0; foreach ($stocks as $key => $value) :
|
||||||
++$count;
|
++$count;
|
||||||
$url = UriFactory::build('{/base}/warehouse/stock?{?}&id=' . $value->getId());
|
$url = UriFactory::build('{/base}/warehouse/stock?{?}&id=' . $value->id);
|
||||||
?>
|
?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr data-href="<?= $url; ?>">
|
||||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
<td><a href="<?= $url; ?>"><?= $value->id; ?></a>
|
||||||
<td><a href="<?= $url; ?>"><?= $value->type; ?></a>
|
<td><a href="<?= $url; ?>"><?= $value->type; ?></a>
|
||||||
<td><a href="<?= $url; ?>"><?= $value->name; ?></a>
|
<td><a href="<?= $url; ?>"><?= $value->name; ?></a>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
|
||||||
|
|
@ -32,10 +32,10 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $count = 0; foreach ($locations as $key => $value) :
|
<?php $count = 0; foreach ($locations as $key => $value) :
|
||||||
++$count;
|
++$count;
|
||||||
$url = UriFactory::build('{/base}/warehouse/stock/location?{?}&id=' . $value->getId());
|
$url = UriFactory::build('{/base}/warehouse/stock/location?{?}&id=' . $value->id);
|
||||||
?>
|
?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr data-href="<?= $url; ?>">
|
||||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
<td><a href="<?= $url; ?>"><?= $value->id; ?></a>
|
||||||
<td><a href="<?= $url; ?>"><?= $value->stock->name; ?></a>
|
<td><a href="<?= $url; ?>"><?= $value->stock->name; ?></a>
|
||||||
<td><a href="<?= $url; ?>"><?= $value->name; ?></a>
|
<td><a href="<?= $url; ?>"><?= $value->name; ?></a>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,6 @@ final class StockLocationTest extends \PHPUnit\Framework\TestCase
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
{
|
{
|
||||||
self::assertEquals(0, $this->stock->getId());
|
self::assertEquals(0, $this->stock->id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,6 @@ final class StockMovementTest extends \PHPUnit\Framework\TestCase
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
{
|
{
|
||||||
self::assertEquals(0, $this->movement->getId());
|
self::assertEquals(0, $this->movement->id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,6 @@ final class StockShelfTest extends \PHPUnit\Framework\TestCase
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
{
|
{
|
||||||
self::assertEquals(0, $this->stock->getId());
|
self::assertEquals(0, $this->stock->id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,6 @@ final class StockTest extends \PHPUnit\Framework\TestCase
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
{
|
{
|
||||||
self::assertEquals(0, $this->stock->getId());
|
self::assertEquals(0, $this->stock->id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user