Skip to content

Commit

Permalink
Temp fix for number import on cost
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Aug 24, 2016
1 parent b1324c2 commit 4cf2d16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Commands/ObjectImportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ public function createAssetIfNotExists(array $row, array $item)
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;
Expand Down

0 comments on commit 4cf2d16

Please sign in to comment.