From 4cf2d16c7af4a22609aac87d3ddf66e236322295 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 23 Aug 2016 19:01:40 -0700 Subject: [PATCH] Temp fix for number import on cost --- app/Console/Commands/ObjectImportCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/ObjectImportCommand.php b/app/Console/Commands/ObjectImportCommand.php index 09011d49ae..05198c418d 100644 --- a/app/Console/Commands/ObjectImportCommand.php +++ b/app/Console/Commands/ObjectImportCommand.php @@ -780,7 +780,7 @@ class ObjectImportCommand extends Command if (!empty($item["purchase_cost"])) { //TODO How to generalize this for not USD? $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); } else { $asset->purchase_cost = 0.00;