Make quick sale products on machines as orders paid when ready
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\Sales\Application\Contracts;
|
||||
|
||||
use DateTimeImmutable;
|
||||
|
||||
/**
|
||||
* Puts the steps of quick sale order lines on machines' work lists and
|
||||
* takes them off, through the Machines module.
|
||||
*/
|
||||
interface ProductionQueue
|
||||
{
|
||||
/**
|
||||
* Puts the line's step on the machine's list for the day, with the
|
||||
* customer waiting rows first.
|
||||
*/
|
||||
public function enqueue(int $orderLineId, int $stepPosition, int $machineId, DateTimeImmutable $day): void;
|
||||
|
||||
/**
|
||||
* Closes the line's open row as made.
|
||||
*/
|
||||
public function complete(int $orderLineId, int $userId): void;
|
||||
|
||||
/**
|
||||
* Takes the line's open row off its machine's list.
|
||||
*/
|
||||
public function remove(int $orderLineId): void;
|
||||
}
|
||||
Reference in New Issue
Block a user