Merge remote-tracking branch 'origin/develop'

This commit is contained in:
snipe
2025-08-20 11:32:27 +01:00
2 changed files with 6 additions and 3 deletions
+1
View File
@@ -53,6 +53,7 @@ class LicensePresenter extends Presenter
'searchable' => true,
'sortable' => true,
'title' => trans('admin/licenses/form.to_email'),
'formatter' => 'emailFormatter',
], [
'field' => 'license_name',
'searchable' => true,
+5 -3
View File
@@ -18,12 +18,14 @@ class SnipeModelTest extends TestCase
public function testSetsPurchaseCostsAppropriately()
{
$c = new SnipeModel;
$c->purchase_cost = '';
$this->assertTrue($c->purchase_cost == null);
$c->purchase_cost = '0.00';
$this->assertTrue($c->purchase_cost === null);
$this->assertTrue($c->purchase_cost == 0.00);
$c->purchase_cost = '9.54';
$this->assertTrue($c->purchase_cost === 9.54);
$this->assertTrue($c->purchase_cost == 9.54);
$c->purchase_cost = '9.50';
$this->assertTrue($c->purchase_cost === 9.5);
$this->assertTrue($c->purchase_cost == 9.5);
}
public function testNullsBlankLocationIdsButNotOthers()