This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
order|id:40;number:40;item_total:1399.0;total:1112.99;completed_at:2014/04/14; | |
line_item|id:59;quantity:1;price:285.0;offering_id:O178;course_id:CS1149; | |
line_item|id:60;quantity:1;price:1100.0;offering_id:O120;course_id:CS1132; | |
line_item|id:61;quantity:1;price:14.0;offering_id:O121; | |
billing_address|firstname:Mayra;lastname:Cabrera;address1:Address;address2:Another address;city:city;zipcode:1234;phone:1234;state:AB;country:CA; | |
shipping_address|firstname:Mayra;lastname:Cabrera;address1:Address;address2:Another address;city:city;zipcode:1234;phone:1234;state:AB;country:CA; | |
promotion|amount:-300.0;campaign_id:MC16; | |
shipping|amount:13.99;shiptype:Courier; | |
order|id:87;number:87;item_total:14.0;total:14.0;completed_at:2014/04/23; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When starting a project that includes refinerycms-blog: | |
$ rake refinery:override view=refinery/pages/* | |
$ rake refinery:override view=layouts/* | |
$ rake refinery:override view=refinery/blog/shared/* | |
$ rake refinery:override view=refinery/blog/posts/* | |
$ rake refinery:override view=refinery/* | |
$ rake refinery:override controller=refinery/blog/* | |
$ rake refinery:override controller=refinery/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.5 WHMIS | |
=> #<Offering id: 4222, offering_osg_id: "O715", name: ".5 WHMIS", description: "4 hours WHMIS at site", variant_id: 2468, volume_price_id: nil, code: "IH-WHMIS", price: #<BigDecimal:d7546dc,'0.1095E4',9(18)>, duration: "4.0", outline: "Failure to recognize and control hazards associated...", created_at: "2014-04-18 23:35:08", updated_at: "2014-04-18 23:35:08"> | |
=> #<Spree::Variant id: 2468, sku: "IH-WHMIS", weight: nil, height: nil, width: nil, depth: nil, deleted_at: nil, is_master: false, product_id: 845, cost_price: nil, position: 1, cost_currency: "CAD", track_inventory: true> | |
# Electrical Safety Awareness (Ontario) | |
=> #<Offering id: 4115, offering_osg_id: "O235", name: "Electrical Safety Awareness (Ontario) - Classroom", description: "8 hours ESP at site", variant_id: 2512, volume_price_id: nil, code: "IH-ESAO", price: #<BigDecimal:d747f18,'0.299E3',9(18)>, duration: "8.0", outline: "Our Electrical Safety Awareness training program pr...", created_at: "2014-04-18 23:35:02", updated_at: "2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"courseserid"=>"CS22889", | |
"created"=>Wed, 16 Apr 2014 15:01:06 +0000, | |
"modified"=>Thu, 24 Apr 2014 11:21:31 +0000, | |
"location_id"=>"lon", | |
"startdate"=>Fri, 04 Jul 2014, | |
"enddate"=>Fri, 04 Jul 2014, | |
"prod_id"=>"67", | |
"starttime"=>Mon, 01 Jan -4712 08:30:00 +0000, | |
"endtime"=>Mon, 01 Jan -4712 16:30:00 +0000, | |
"description"=> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=> variant | |
#<Spree::Variant id: 5637, sku: "PM-AWPPM", weight: #<BigDecimal:7fd03c64cff8,'0.338E3',9(18)>, height: nil, width: nil, depth: nil, deleted_at: nil, is_master: false, product_id: 2384, cost_price: nil, position: 2, cost_currency: "USD", track_inventory: true, is_classroom: false> | |
* Todos los offerings tienen un offertypecode = "PM" * | |
=> variant.offerings | |
[#<Offering id: 7630, offering_osg_id: "O199", name: "Aerial Work Platforms Participant Manuals (10-50)", description: "Aerial Work Platforms Participant Manuals (10-50)", variant_id: 5637, code: "PM-AWPPM", price: #<BigDecimal:7fd03c611840,'0.1595E2',18(18)>,...., range: "(10..50)", offertypecode: "PM">, | |
#<Offering id: 7678, offering_osg_id: "O573", name: "Aerial Work Platforms Participant Manuals (51-100)", description: "Aerial Work Platforms Participant Manuals (51-100)", variant_id: 5637, code: "PM-AWPPM", price: #<BigDecimal:7fd03c610300,'0.1525E2',18(18)>, ...., range: "(51..100)", offertypecode: "PM">, | |
#<Offering id: 7679, offering_osg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failures: | |
1) Crm::SubscriptionTransactionBuilder#build_payments with no payments imported builds a new payment | |
Failure/Error: @builder.build_payments(chargify_statement) | |
NoMethodError: | |
undefined method `find_by_remote_id' for #<Class:0x007fdbeec54708> | |
# ./app/models/crm/subscription_transaction_builder.rb:22:in `block in build_payments' | |
# ./app/models/crm/subscription_transaction_builder.rb:19:in `each' | |
# ./app/models/crm/subscription_transaction_builder.rb:19:in `build_payments' | |
# ./spec/models/crm/subscription_transaction_builder_spec.rb:73:in `block (5 levels) in <top (required)>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def make_donation | |
if recurring? | |
customer = create_customer | |
result = recurrent_donation(customer) if customer.success? | |
else | |
result = one_time_donation | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
celsius = 100 | |
fahrenheit = (celsius * 9 / 5) + 32 | |
print "The result is: " | |
print fahrenheit | |
puts “." |