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,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\Sales\Application\Contracts;
|
||||
|
||||
/**
|
||||
* Records the stock used in making quick sale orders, through the
|
||||
* Inventory module. Recording never stops production: a failure returns
|
||||
* false.
|
||||
*/
|
||||
interface OrderMaterials
|
||||
{
|
||||
public function use(int $stockItemId, int $quantityMilli, int $orderLineId, ?int $machineId, int $userId): bool;
|
||||
|
||||
/**
|
||||
* Records stock spoiled in production (e.g. a reprint) as a write-off.
|
||||
*/
|
||||
public function writeOff(int $stockItemId, int $quantityMilli, int $orderLineId, ?int $machineId, int $userId, string $reason): bool;
|
||||
}
|
||||
Reference in New Issue
Block a user