mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
f38593b530
|
@ -780,7 +780,7 @@ class ObjectImportCommand extends Command
|
||||||
if (!empty($item["purchase_cost"])) {
|
if (!empty($item["purchase_cost"])) {
|
||||||
//TODO How to generalize this for not USD?
|
//TODO How to generalize this for not USD?
|
||||||
$purchase_cost = substr($item["purchase_cost"], 0, 1) === '$' ? substr($item["purchase_cost"], 1) : $item["purchase_cost"];
|
$purchase_cost = substr($item["purchase_cost"], 0, 1) === '$' ? substr($item["purchase_cost"], 1) : $item["purchase_cost"];
|
||||||
$asset->purchase_cost = number_format($purchase_cost, 2);
|
$asset->purchase_cost = number_format($purchase_cost, 2, '.', '');
|
||||||
$this->log("Asset cost parsed: " . $asset->purchase_cost);
|
$this->log("Asset cost parsed: " . $asset->purchase_cost);
|
||||||
} else {
|
} else {
|
||||||
$asset->purchase_cost = 0.00;
|
$asset->purchase_cost = 0.00;
|
||||||
|
|
Loading…
Reference in a new issue