24 lines
483 B
PHP
24 lines
483 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class ActivityLock extends SigdModel
|
|
{
|
|
protected $table = 'lock_activity';
|
|
protected $fillable = [
|
|
'id',
|
|
'inventory_year',
|
|
'lock_status',
|
|
'row_status',
|
|
'created_by',
|
|
'updated_by',
|
|
];
|
|
|
|
public static function isLocked($inventoryYear)
|
|
{
|
|
return self::where('inventory_year', $inventoryYear)
|
|
->where('lock_status', 'locked')->rowActive()
|
|
->exists();
|
|
}
|
|
}
|