mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
revert
This commit is contained in:
parent
48c812d345
commit
3ee008e871
|
@ -21,14 +21,13 @@ class CancelCheckoutRequest
|
|||
$data['item_quantity'] = 1;
|
||||
$settings = Setting::getSettings();
|
||||
|
||||
$logaction = Actionlog::create([
|
||||
'item_id' => $data['asset_id'] = $asset->id,
|
||||
'item_type' => $data['item_type'] = Asset::class,
|
||||
'created_at' => $data['requested_date'] = date('Y-m-d H:i:s'),
|
||||
'target_id' => $data['user_id'] = auth()->id(),
|
||||
'target_type' => User::class,
|
||||
'location_id' => $user->location_id ?? null,
|
||||
]);
|
||||
$logaction = new Actionlog();
|
||||
$logaction->item_id = $data['asset_id'] = $asset->id;
|
||||
$logaction->item_type = $data['item_type'] = Asset::class;
|
||||
$logaction->created_at = $data['requested_date'] = date('Y-m-d H:i:s');
|
||||
$logaction->target_id = $data['user_id'] = auth()->id();
|
||||
$logaction->target_type = User::class;
|
||||
$logaction->location_id = $user->location_id ?? null;
|
||||
$logaction->logaction('request canceled');
|
||||
|
||||
try {
|
||||
|
|
|
@ -33,14 +33,13 @@ class CreateCheckoutRequest
|
|||
$data['item_quantity'] = 1;
|
||||
$settings = Setting::getSettings();
|
||||
|
||||
$logaction = Actionlog::create([
|
||||
'target_id' => $data['asset_id'] = $asset->id,
|
||||
'item_type' => $data['item_type'] = Asset::class,
|
||||
'created_at' => $data['requested_date'] = date('Y-m-d H:i:s'),
|
||||
'user_id' => $data['user_id'] = auth()->id(),
|
||||
'target_type' => User::class,
|
||||
'location_id' => $user->location_id ?? null,
|
||||
]);
|
||||
$logaction = new Actionlog();
|
||||
$logaction->item_id = $data['asset_id'] = $asset->id;
|
||||
$logaction->item_type = $data['item_type'] = Asset::class;
|
||||
$logaction->created_at = $data['requested_date'] = date('Y-m-d H:i:s');
|
||||
$logaction->target_id = $data['user_id'] = auth()->id();
|
||||
$logaction->target_type = User::class;
|
||||
$logaction->location_id = $user->location_id ?? null;
|
||||
$logaction->logaction('requested');
|
||||
|
||||
$asset->request();
|
||||
|
|
Loading…
Reference in a new issue