Skip to content

Commit 7a57fd7

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents c8526a6 + 41b3f5b commit 7a57fd7

File tree

59 files changed

+461
-444
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+461
-444
lines changed

app/commands/AssetImportCommand.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,17 @@ public function fire()
144144
$user_asset_purchase_date = '';
145145
}
146146

147+
// Asset purchase cost
148+
if (array_key_exists('11',$row)) {
149+
if ($row[11]!='') {
150+
$user_asset_purchase_cost = trim($row[11]);
151+
} else {
152+
$user_asset_purchase_cost = '';
153+
}
154+
} else {
155+
$user_asset_purchase_cost = '';
156+
}
157+
147158
// A number was given instead of a name
148159
if (is_numeric($user_name)) {
149160
$this->comment('User '.$user_name.' is not a name - assume this user already exists');
@@ -212,6 +223,7 @@ public function fire()
212223
$this->comment('Asset Tag: '.$user_asset_tag);
213224
$this->comment('Location: '.$user_asset_location);
214225
$this->comment('Purchase Date: '.$user_asset_purchase_date);
226+
$this->comment('Purchase Cost: '.$user_asset_purchase_cost);
215227
$this->comment('Notes: '.$user_asset_notes);
216228

217229
$this->comment('------------- Action Summary ----------------');
@@ -333,6 +345,11 @@ public function fire()
333345
} else {
334346
$asset->purchase_date = NULL;
335347
}
348+
if ($user_asset_purchase_cost!='') {
349+
$asset->purchase_cost = ParseFloat(e($user_asset_purchase_cost));
350+
} else {
351+
$asset->purchase_cost = 0.00;
352+
}
336353
$asset->serial = e($user_asset_serial);
337354
$asset->asset_tag = e($user_asset_tag);
338355
$asset->model_id = $asset_model->id;

app/config/version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22
return array (
3-
'app_version' => 'v2.0-118',
4-
'hash_version' => 'v2.0-118-gf9dc576',
3+
'app_version' => 'v2.0-125',
4+
'hash_version' => 'v2.0-125-g9b04954',
55
);

app/controllers/admin/AssetsController.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public function getDelete($assetId)
334334
// Check if the asset exists
335335
if (is_null($asset = Asset::find($assetId))) {
336336
// Redirect to the asset management page with error
337-
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.not_found'));
337+
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.does_not_exist'));
338338
}
339339

340340
if (isset($asset->assigneduser->id) && ($asset->assigneduser->id!=0)) {
@@ -366,7 +366,7 @@ public function getCheckout($assetId)
366366
// Check if the asset exists
367367
if (is_null($asset = Asset::find($assetId))) {
368368
// Redirect to the asset management page with error
369-
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.not_found'));
369+
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.does_not_exist'));
370370
}
371371

372372
// Get the dropdown of users and then pass it to the checkout view
@@ -384,7 +384,7 @@ public function postCheckout($assetId)
384384

385385
// Check if the asset exists
386386
if (!$asset = Asset::find($assetId)) {
387-
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.not_found'));
387+
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.does_not_exist'));
388388
}
389389

390390
// Declare the rules for the form validation
@@ -446,7 +446,7 @@ public function getCheckin($assetId, $backto = null)
446446
// Check if the asset exists
447447
if (is_null($asset = Asset::find($assetId))) {
448448
// Redirect to the asset management page with error
449-
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.not_found'));
449+
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.does_not_exist'));
450450
}
451451

452452
return View::make('backend/hardware/checkin', compact('asset'))->with('backto', $backto);
@@ -464,7 +464,7 @@ public function postCheckin($assetId = null, $backto = null)
464464
// Check if the asset exists
465465
if (is_null($asset = Asset::find($assetId))) {
466466
// Redirect to the asset management page with error
467-
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.not_found'));
467+
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.does_not_exist'));
468468
}
469469

470470
// Check for a valid user to checkout fa-random
@@ -681,7 +681,7 @@ public function getRestore($assetId = null)
681681
return Redirect::route('hardware')->with('success', $success);
682682

683683
} else {
684-
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.not_found'));
684+
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.does_not_exist'));
685685
}
686686

687687
}

app/lang/bg/admin/locations/message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
'does_not_exist' => 'Местоположението не съществува.',
66
'assoc_users' => 'Местоположението е свързано с поне един потребител и не може да бъде изтрито. Моля, актуализирайте потребителите, така че да не са свързани с това местоположение и опитайте отново. ',
77
'assoc_assets' => 'Местоположението е свързано с поне един актив и не може да бъде изтрито. Моля, актуализирайте активите, така че да не са свързани с това местоположение и опитайте отново. ',
8-
'assoc_child_loc' => 'This location is currently the parent of at least one child location and cannot be deleted. Please update your locations to no longer reference this location and try again. ',
8+
'assoc_child_loc' => 'В избраното местоположение е присъединено едно или повече местоположения. Моля преместете ги в друго и опитайте отново.',
99

1010

1111
'create' => array(

app/lang/bg/admin/locations/table.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
'city' => 'Град',
77
'state' => 'Област',
88
'country' => 'Държава',
9-
'create' => 'Create Location',
10-
'update' => 'Update Location',
11-
'name' => 'Location Name',
9+
'create' => 'Създаване на местоположение',
10+
'update' => 'Обновяване на местоположение',
11+
'name' => 'Местоположение',
1212
'address' => 'Aдрес',
1313
'zip' => 'Пощенски код',
14-
'locations' => 'Locations',
15-
'parent' => 'Parent',
16-
'currency' => 'Location Currency', // this is deprecated
14+
'locations' => 'Местоположения',
15+
'parent' => 'Присъединено към',
16+
'currency' => 'Валута на местоположението', // this is deprecated
1717
);

app/lang/bg/admin/models/message.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,29 @@
33
return array(
44

55
'does_not_exist' => 'Моделът не съществува.',
6-
'assoc_users' => 'This model is currently associated with one or more assets and cannot be deleted. Please delete the assets, and then try deleting again. ',
6+
'assoc_users' => 'Този модел е асоцииран с един или повече активи и не може да бъде изтрит. Моля изтрийте активите и опитайте отново.',
77

88

99
'create' => array(
10-
'error' => 'Model was not created, please try again.',
11-
'success' => 'Model created successfully.',
12-
'duplicate_set' => 'An asset model with that name, manufacturer and model number already exists.',
10+
'error' => 'Моделът не беше създаден. Моля опитайте отново.',
11+
'success' => 'Моделът създаден успешно.',
12+
'duplicate_set' => 'Актив с това име, производител и номер на модел вече е въведен.',
1313
),
1414

1515
'update' => array(
16-
'error' => 'Model was not updated, please try again',
17-
'success' => 'Model updated successfully.'
16+
'error' => 'Моделът не беше обновен. Моля опитайте отново.',
17+
'success' => 'Моделът обновен успешно.'
1818
),
1919

2020
'delete' => array(
21-
'confirm' => 'Are you sure you wish to delete this asset model?',
22-
'error' => 'There was an issue deleting the model. Please try again.',
23-
'success' => 'The model was deleted successfully.'
21+
'confirm' => 'Желаете ли изтриване на модела?',
22+
'error' => 'Проблем при изтриване на модела. Моля опитайте отново.',
23+
'success' => 'Моделът изтрит успешно.'
2424
),
2525

2626
'restore' => array(
27-
'error' => 'Model was not restored, please try again',
28-
'success' => 'Model restored successfully.'
27+
'error' => 'Моделът не беше възстановен. Моля опитайте отново.',
28+
'success' => 'Моделът възстановен успешно.'
2929
),
3030

3131
);

app/lang/bg/admin/models/table.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
return array(
44

5-
'create' => 'Create Asset Model',
6-
'created_at' => 'Created at',
5+
'create' => 'Създаване на модел на актив',
6+
'created_at' => 'Създаден в',
77
'eol' => 'EOL',
88
'modelnumber' => 'Модел №',
9-
'name' => 'Asset Model Name',
9+
'name' => 'Модел на актив',
1010
'numassets' => 'Активи',
1111
'title' => 'Модели на активи',
12-
'update' => 'Update Asset Model',
13-
'view' => 'View Asset Model',
14-
'update' => 'Update Asset Model',
15-
'clone' => 'Clone Model',
16-
'edit' => 'Edit Model',
12+
'update' => 'Обновяване на модел на актив',
13+
'view' => 'Преглед на модел на актив',
14+
'update' => 'Обновяване на модел на актив',
15+
'clone' => 'Копиране на модел',
16+
'edit' => 'Редакция на модел',
1717
);

app/lang/bg/admin/settings/message.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
'success' => 'Настройките са актуализирани успешно.'
99
),
1010
'backup' => array(
11-
'delete_confirm' => 'Are you sure you would like to delete this backup file? This action cannot be undone. ',
12-
'file_deleted' => 'The backup file was successfully deleted. ',
13-
'generated' => 'A new backup file was successfully created.',
14-
'file_not_found' => 'That backup file could not be found on the server.',
11+
'delete_confirm' => 'Желаете ли изтриването на този архивен файл? Действието е окончателно.',
12+
'file_deleted' => 'Архивният файл беше изтрит успешно.',
13+
'generated' => 'Нов архивен файл беше създаден успешно.',
14+
'file_not_found' => 'Архивният файл не беше открит на сървъра.',
1515
),
1616

1717
);

app/lang/bg/admin/users/general.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'filetype_info' => 'Позволените типове файлове са png, gif, jpg, jpeg, doc, docx, pdf, txt, zip, и rar.',
1111
'history_user' => 'История за :name',
1212
'last_login' => 'Последен достъп до системата',
13-
'ldap_config_text' => 'LDAP configuration settings can be found in the app/config folder in a file called ldap.php. The selected location will be set for all imported users. You will need to have at least one location set to use this feature.',
13+
'ldap_config_text' => 'Конфигурационните настройки за LDAP са в директорията app/config във файла ldap.php. Избраното местоположение ще бъде асоциирано с всички заредени от LDAP потребители. Необходимо е да имате създадено поне едно местоположение, за да използвате тази функционалност.',
1414
'ldap_text' => 'Връзка с LDAP и създаване на потребители. Паролите ще бъдат генерирани автоматично.',
1515
'software_user' => 'Софтуерни продукти, изписани на :name',
1616
'view_user' => 'Преглед на потребител :name',

app/lang/bg/admin/users/message.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
'create' => 'Потребителят е създаден.',
1818
'update' => 'Потребителят е обновен.',
1919
'delete' => 'Потребителят е изтрит.',
20-
'ban' => 'User was successfully banned.',
21-
'unban' => 'User was successfully unbanned.',
20+
'ban' => 'Потребителят беше забранен успешно.',
21+
'unban' => 'Потребителят възстановен успешно.',
2222
'suspend' => 'User was successfully suspended.',
2323
'unsuspend' => 'User was successfully unsuspended.',
2424
'restored' => 'Потребителят е възстановен.',

0 commit comments

Comments
 (0)