Skip to content

Commit

Permalink
IN-392 Adds defaults to pricebook2 and stage_name
Browse files Browse the repository at this point in the history
  • Loading branch information
reinaldob committed Oct 22, 2014
1 parent 63e9289 commit 5eec38d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/integrations/builders/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def build
'CloseDate' => object['placed_on'],
'HasOpportunityLineItem' => true,
'Name' => object['id'],
'Pricebook2Id' => object['price_book_id'],
'StageName' => object.has_key?('stage_name') ? object['stage_name'] : object['status'],
'Pricebook2Id' => object['price_book_id'].present? ? object['price_book_id'] : 'standard price list',
'StageName' => 'closed-won',
'CurrencyIsoCode' => object['currency']
}
end
Expand Down

0 comments on commit 5eec38d

Please sign in to comment.