mirror of
https://github.com/Karaka-Management/oms-WarehouseManagement.git
synced 2026-02-12 20:28:41 +00:00
more code fixes
This commit is contained in:
parent
ae033cb03e
commit
8a4158f2e1
|
|
@ -166,7 +166,7 @@ final class Installer extends InstallerAbstract
|
||||||
: \Modules\SupplierManagement\Models\SupplierMapper::class;
|
: \Modules\SupplierManagement\Models\SupplierMapper::class;
|
||||||
|
|
||||||
/** @var \Modules\ClientManagement\Models\Client|\Modules\SupplierManagement\Models\Supplier $person */
|
/** @var \Modules\ClientManagement\Models\Client|\Modules\SupplierManagement\Models\Supplier $person */
|
||||||
foreach ($mapper::yield()->execute() as $person) {
|
foreach ($mapper::yield()->executeYield() as $person) {
|
||||||
$response = new HttpResponse();
|
$response = new HttpResponse();
|
||||||
$request = new HttpRequest();
|
$request = new HttpRequest();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -447,7 +447,7 @@ final class ApiController extends Controller
|
||||||
// and then do normal algorithm like for a new element
|
// and then do normal algorithm like for a new element
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
if ($new->item->id !== $old->item->id) {
|
if ($new->item?->id !== $old->item?->id) {
|
||||||
// @todo: also undo stock amount in stock distribution
|
// @todo: also undo stock amount in stock distribution
|
||||||
StockTransactionMapper::delete()->execute($transactions);
|
StockTransactionMapper::delete()->execute($transactions);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user