PMC-1518 Restructure the offline definition over the PM Tables

This commit is contained in:
Roly Rudy Gutierrez Pinto
2019-12-20 09:10:10 -04:00
parent 8a54785b52
commit cf9dfe30f4
7 changed files with 125 additions and 18 deletions

View File

@@ -90,4 +90,16 @@ class AdditionalTables extends Model
return $data;
}
/**
* Update the offline property.
* @param array $tablesUid
* @param int $value
* @return void
*/
public static function updatePropertyOffline(array $tablesUid, $value): void
{
$query = AdditionalTables::whereIn('ADD_TAB_UID', $tablesUid)
->update(['ADD_TAB_OFFLINE' => $value]);
}
}