mirror of
https://github.com/Karaka-Management/oms-WarehouseManagement.git
synced 2026-02-04 01:08: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;
|
||||
StockMapper::create()->execute($stock);
|
||||
|
||||
$stockLocation = new StockLocation((string) ($stock->getId() . '-1'));
|
||||
$stockLocation = new StockLocation((string) ($stock->id . '-1'));
|
||||
$stockLocation->stock = $stock;
|
||||
StockLocationMapper::create()->execute($stockLocation);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,11 +66,11 @@ final class ApiController extends Controller
|
|||
StockMapper::create()->execute($stock);
|
||||
|
||||
$stockLocation = new StockLocation($stock->name . '-1');
|
||||
$stockLocation->stock = $stock->getId();
|
||||
$stockLocation->stock = $stock->id;
|
||||
StockLocationMapper::create()->execute($stockLocation);
|
||||
|
||||
$stockShelf = new StockShelf($stockLocation->name . '-1');
|
||||
$stockShelf->location = $stockLocation->getId();
|
||||
$stockShelf->location = $stockLocation->id;
|
||||
StockShelfMapper::create()->execute($stockShelf);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class Stock
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected int $id = 0;
|
||||
public int $id = 0;
|
||||
|
||||
/**
|
||||
* NAme.
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class StockLocation
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected int $id = 0;
|
||||
public int $id = 0;
|
||||
|
||||
public string $name = '';
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class StockMovement
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected int $id = 0;
|
||||
public int $id = 0;
|
||||
|
||||
public int $quantity = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class StockShelf
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected int $id = 0;
|
||||
public int $id = 0;
|
||||
|
||||
public string $name = '';
|
||||
|
||||
|
|
|
|||
|
|
@ -32,10 +32,10 @@ echo $this->getData('nav')->render(); ?>
|
|||
<tbody>
|
||||
<?php $count = 0; foreach ($stocks as $key => $value) :
|
||||
++$count;
|
||||
$url = UriFactory::build('{/base}/warehouse/stock?{?}&id=' . $value->getId());
|
||||
$url = UriFactory::build('{/base}/warehouse/stock?{?}&id=' . $value->id);
|
||||
?>
|
||||
<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->name; ?></a>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
|||
|
|
@ -32,10 +32,10 @@ echo $this->getData('nav')->render(); ?>
|
|||
<tbody>
|
||||
<?php $count = 0; foreach ($locations as $key => $value) :
|
||||
++$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; ?>">
|
||||
<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->name; ?></a>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
|||
|
|
@ -37,6 +37,6 @@ final class StockLocationTest extends \PHPUnit\Framework\TestCase
|
|||
*/
|
||||
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
|
||||
{
|
||||
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
|
||||
{
|
||||
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
|
||||
{
|
||||
self::assertEquals(0, $this->stock->getId());
|
||||
self::assertEquals(0, $this->stock->id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user