mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Include Asset for advanced users
This commit is contained in:
parent
4fee5ece43
commit
fb467d9078
|
@ -3,7 +3,6 @@
|
|||
namespace App\Models\Labels;
|
||||
|
||||
use App\Helpers\Helper;
|
||||
use App\Models\Asset;
|
||||
use App\Models\Setting;
|
||||
|
||||
class DefaultLabel extends RectangleSheet
|
||||
|
@ -101,7 +100,7 @@ class DefaultLabel extends RectangleSheet
|
|||
|
||||
public function write($pdf, $record) {
|
||||
|
||||
$asset = Asset::find($record->get('id'));
|
||||
$asset = $record->get('asset');
|
||||
$settings = Setting::getSettings();
|
||||
|
||||
$textY = 0;
|
||||
|
|
|
@ -108,6 +108,7 @@ class Label implements View
|
|||
|
||||
$assetData = new Collection();
|
||||
|
||||
$assetData->put('asset', $asset);
|
||||
$assetData->put('id', $asset->id);
|
||||
$assetData->put('tag', $asset->asset_tag);
|
||||
|
||||
|
|
Loading…
Reference in a new issue