feat: phase 3 — stock balances, restock/adjust mutations with activity logging, movements page

This commit is contained in:
sean
2026-08-25 18:46:03 +07:00
parent 4298544381
commit 002fdce854
7 changed files with 601 additions and 2 deletions
@@ -25,6 +25,11 @@ abstract class InsForgeTableService
return 'desc';
}
protected function select(): string
{
return '*';
}
/** @param array<string, mixed> $filters column => value (eq) */
public function paginate(
?string $search = null,
@@ -35,7 +40,7 @@ abstract class InsForgeTableService
array $filters = [],
): LengthAwarePaginator {
$query = [
'select' => '*',
'select' => $this->select(),
'limit' => max(1, min($perPage, 100)),
'offset' => ($page - 1) * $perPage,
'order' => sprintf(
@@ -122,7 +127,7 @@ abstract class InsForgeTableService
*
* @return array{0: InsForgeClient, 1: bool}
*/
private function scoped(): array
protected function scoped(): array
{
$token = session(InsForgeAuthService::SESSION_ACCESS_TOKEN);