mirror of
https://github.com/Karaka-Management/oms-WarehouseManagement.git
synced 2026-02-16 06:08:40 +00:00
fix tests
This commit is contained in:
parent
fa9497a258
commit
5a8d4a2f4b
|
|
@ -134,12 +134,12 @@ final class ApiController extends Controller
|
||||||
/** @var \Modules\Billing\Models\BillElement $new */
|
/** @var \Modules\Billing\Models\BillElement $new */
|
||||||
|
|
||||||
$transaction->billElement = $new->id;
|
$transaction->billElement = $new->id;
|
||||||
$transaction->state = StockMovementState::DRAFT;
|
$transaction->state = StockMovementState::DRAFT;
|
||||||
|
|
||||||
// @todo: load default stock movement for bill type/organization settings (default stock location, default lot order e.g. FIFO/LIFO)
|
// @todo: load default stock movement for bill type/organization settings (default stock location, default lot order e.g. FIFO/LIFO)
|
||||||
// @todo: find stock candidates
|
// @todo: find stock candidates
|
||||||
|
|
||||||
$transaction->type = StockMovementType::TRANSFER; // @todo: depends on bill type
|
$transaction->type = StockMovementType::TRANSFER; // @todo: depends on bill type
|
||||||
$transaction->quantity = $new->getQuantity(); // @todo may require split quantity if not sufficient available from one lost
|
$transaction->quantity = $new->getQuantity(); // @todo may require split quantity if not sufficient available from one lost
|
||||||
|
|
||||||
// @todo: allow consignment bills
|
// @todo: allow consignment bills
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user