Skip to content

Instantly share code, notes, and snippets.

@pupca
Created December 1, 2010 13:55
Show Gist options
  • Save pupca/723501 to your computer and use it in GitHub Desktop.
Save pupca/723501 to your computer and use it in GitHub Desktop.
a = {:outcome =>{:accounting_tag_list_raw =>"", :accounting_budget_id =>"105", :notice =>"", :detailed_transaction =>"0", :accounting_partial_transactions_attributes =>{518410005 =>{:accounting_budget_id =>"105", :notice =>"", :amount =>"", :tag =>"", :transaction_type =>"outcome"}}}, :accounting_account_id =>"53", :active_at =>"01.12.2010", :transfer =>{:accounting_account_id =>"53", :other_accounting_account_id =>"53", :accounting_budget_id =>"105", :accounting_tag_list_raw =>"", :notice =>"", :other_accounting_budget_id =>"105"}, :amount =>"100", :transaction_type =>"income", :income =>{:accounting_tag_list_raw =>"trvalé platby, ", :accounting_budget_id =>"107", :notice =>"test", :accounting_partial_transactions_attributes =>{0 =>{:accounting_budget_id =>"107", :amount =>"100,00", :transaction_type =>"income"}, 1 =>{:accounting_budget_id =>"105", :amount =>"0,00", :transaction_type =>"income"}}}, :correction =>{:correction_real =>"", :accounting_budget_id =>"105", :notice =>""}}
AccountingTransaction.build_from_raw_params(a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment