feat: phase 3 — stock balances, restock/adjust mutations with activity logging, movements page
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user