search for: purchase_id

Displaying 5 results from an estimated 5 matches for "purchase_id".

2011 Apr 27
2
Can not create model instance via params on specific model but can on others....
...ne have an idea on this? Got a weird situation where on a specific model I can not create an instance using params, yet it works fine on other models. The model which does not work is a stock model, there is no logic in it. Ruby 1.8.7/Rails 3.0.5. Does not work: (rdb:1) PaymentTransaction.create(:purchase_id => 3) #<PaymentTransaction id: 2, purchase_id: nil, action: nil, amount: nil, success: nil, authorization: nil, message: nil, params: nil, created_at: "2011-04-27 18:18:59", updated_at: "2011-04-27 18:18:59"> But this works (but is ugly): (rdb:1) bpt = PaymentTransact...
2017 Sep 04
1
Dataframe Manipulation
Hello Ulrik, Can you please explain this code means how and what this code is doing because I'm not able to understand it, if you can explain it i can use it in future by doing some Lil bit manipulation. Thanks data_help <- data_help %>% mutate(Purchase_ID = 1:n()) %>% group_by(Purchase_ID) %>% do(split_items(.)) cat_help %>% gather("Foo", "Item") %>% filter(!is.na(Item)) %>% left_join(data_help, by = "Item") %>% group_by(Foo, Purchase_ID) %>% summarise(Item = paste(Item, collapse =...
2017 Aug 31
0
Dataframe Manipulation
...) cat_help <- read_csv("cat_help.csv") # Helper function to split the Items and create a data_frame split_items <- function(items){ x <- items$Items_purchased_on_Receipts %>% str_split(pattern = ",") %>% unlist(use.names = FALSE) data_frame(Item = x, Purchase_ID = items$Purchase_ID) } data_help <- data_help %>% mutate(Purchase_ID = 1:n()) %>% group_by(Purchase_ID) %>% do(split_items(.)) cat_help %>% gather("Foo", "Item") %>% filter(!is.na(Item)) %>% left_join(data_help, by = "Item") %>...
2017 Aug 30
1
Dataframe Manipulation
by using these two tables we have to create third table in this format where categories will be on the top and transaction will be in the rows, On 30 August 2017 at 16:42, Hemant Sain <hemantsain55 at gmail.com> wrote: > Hello Ulrik, > Can you please once check this code again on the following data set > because it doesn't giving same output to me due to absence of quantity,a
2011 Aug 10
0
sql query in a more "rails 3 way"
Hi people I want to know if you know how to write the following sql query in a more "rails way" UPDATE buy_order_detail SET saldo = saldo - detail_purchase.cantidad FROM purchase_detail INNER JOIN purchase ON purchase.id = purchaser_detail.purchase_id INNER JOIN waybill ON waybill.id = purchase.waybill_id INNER JOIN buy_order ON buy_order.id = waybill.order_id INNER JOIN buy_order_detail ON buy_order.id = buy_order_detail.order_id WHERE purchase_detail.product_id = buy_order_detail.product_id -- You received th...