Displaying 20 results from an estimated 31 matches for "transaction_id".
2007 Apr 30
2
has_many :through polymorphic
...tiveRecord::Base
belongs_to :request, :polymorphic => true
has_many :postings
end
class Posting < ActiveRecord::Base
belongs_to :transaction
end
But when I ask for PickAndPackRequest.find(:first).postings.find(:all)
it fails with:
Mysql::Error: Unknown column ''transactions.transaction_id'' in ''on
clause''
It generates the following SQL (which appears to be incorrect):
SELECT postings.* FROM postings INNER JOIN transactions ON
postings.id = transactions.transaction_id WHERE
((transactions.request_id = 14) AND (transactions.request_type =
''PickAn...
2013 Nov 08
2
Export CSV
...ers = ["Transaction ID", "Activity ID", "Product Name","Customer
Name", "Ticket code"] -%>
<%= CSV.generate_line(headers).strip %>
<%if !@trans.nil? && @trans.length > 0 %>
<% @trans.each do |tran|%>
<% if !tran.transaction_id.nil? && tran.transaction_id.present?%><%tran_id
= tran.transaction_id%><%else%><%tran_id = "-"%><%end%>
<% if !tran.activity_id.nil? && tran.activity_id.present?%><%tran_actid =
tran.activity_id%><%else%><%tran_actid = "...
2011 Apr 21
8
[PATCH 0/8] staging: hv: clean up forward declarations and camel cases in netvsc.c
From: haiyangz <haiyangz at hz-dev.msft.interop.novell.com>
This patch series cleans up forward declarations and the
remaining camel cases in netvsc.c
Haiyang Zhang (8):
staging: hv: move netvsc_initialize() to clean up forward declaration
staging: hv: move netvsc_receive_completion() to clean up forward
declaration
staging: hv: move netvsc_send_recv_completion() to clean up
2011 Apr 21
8
[PATCH 0/8] staging: hv: clean up forward declarations and camel cases in netvsc.c
From: haiyangz <haiyangz at hz-dev.msft.interop.novell.com>
This patch series cleans up forward declarations and the
remaining camel cases in netvsc.c
Haiyang Zhang (8):
staging: hv: move netvsc_initialize() to clean up forward declaration
staging: hv: move netvsc_receive_completion() to clean up forward
declaration
staging: hv: move netvsc_send_recv_completion() to clean up
2006 May 15
0
acts_as_list, move_higher, odd indexing behaviour?
...I can''t seem to change the list element
positioning in a rails unit test using move_higher/move_lower, although
move_to_top works. (See code following below)
Cheers,
N
----
# model defs
class AccountTransaction < ActiveRecord::Base
has_many :credits, :foreign_key => ''transaction_id'', :order =>
''position ASC''
end
class Credit < ActiveRecord::Base
belongs_to :account_transaction, :foreign_key => ''transaction_id''
belongs_to :account
acts_as_list :scope => :transaction_id
belongs_to :credit_type
end
#unit test...
2011 Jun 17
7
[PATCH 1/5] staging: hv: fix some white spaces in netvsc driver
Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane at microsoft.com>
Signed-off-by: Hank Janssen <hjanssen at microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys at microsoft.com>
---
drivers/staging/hv/netvsc.c | 8 ++++----
drivers/staging/hv/netvsc_drv.c | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff
2011 Jun 17
7
[PATCH 1/5] staging: hv: fix some white spaces in netvsc driver
Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane at microsoft.com>
Signed-off-by: Hank Janssen <hjanssen at microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys at microsoft.com>
---
drivers/staging/hv/netvsc.c | 8 ++++----
drivers/staging/hv/netvsc_drv.c | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff
2011 Sep 01
10
[PATCH 00/10] netvsc bug fixes and cleanups
Fixed a set of bugs in netvsc module, and cleaned up some coding style issues.
Haiyang Zhang (10):
staging: hv: remove unnecessary includes in netvsc
staging: hv: add newline to log messages in netvsc
staging: hv: convert dev_<loglevel> to netdev_<loglevel> in netvsc
staging: hv: fix a kernel warning in netvsc_linkstatus_callback()
staging: hv: re-order the code in
2011 Sep 01
10
[PATCH 00/10] netvsc bug fixes and cleanups
Fixed a set of bugs in netvsc module, and cleaned up some coding style issues.
Haiyang Zhang (10):
staging: hv: remove unnecessary includes in netvsc
staging: hv: add newline to log messages in netvsc
staging: hv: convert dev_<loglevel> to netdev_<loglevel> in netvsc
staging: hv: fix a kernel warning in netvsc_linkstatus_callback()
staging: hv: re-order the code in
2011 Jul 21
11
[PATCH 0/9] netvsc bug fixes and cleanups
Fixed a set of bugs in netvsc module, and cleaned up some coding style issues.
Haiyang Zhang (9):
staging: hv: remove unnecessary includes in netvsc
staging: hv: add newline to log messages in netvsc
staging: hv: convert dev_<loglevel> to netdev_<loglevel> in netvsc
staging: hv: fix a kernel warning in netvsc_linkstatus_callback()
staging: hv: re-order the code in
2011 Jul 21
11
[PATCH 0/9] netvsc bug fixes and cleanups
Fixed a set of bugs in netvsc module, and cleaned up some coding style issues.
Haiyang Zhang (9):
staging: hv: remove unnecessary includes in netvsc
staging: hv: add newline to log messages in netvsc
staging: hv: convert dev_<loglevel> to netdev_<loglevel> in netvsc
staging: hv: fix a kernel warning in netvsc_linkstatus_callback()
staging: hv: re-order the code in
2008 Mar 17
0
arules - getting transaction data in
Hi All
Hoping someone can help me with the "transactions" object. I am struggling
to get my data in. I know the answer is in the help somewhere I'm sure, I
just cannot find it. Essentially, I have data in this format (though I can
change it if it particularly unsuitable)
Transaction_id, store , salesman, date_time , items
1 , waterfront, john , 2008-01-01 12:00:00, hardware games
audio_visual photo
2 , sandton , lisa , 2008-01-02 12:00:00, photo
3 , waterfront, peter , 2008-01-01 12:00:00, hardware photo
How do I g...
2005 Jan 14
0
Strange CRCX
...ything it sends
(RSIPs, acks, etc.) my app answers. And everything I send, Stretto
answers.
At extensions.conf (Asterisk) I have the following number of my
softphone in another PC:
exten => 123456,1,Dial(MGCP/aaln/1@leonardo)
When my app sends CRCX to Stretto, it answers with a "200
<transaction_id> OK, with session description", but the channel on the
E1 card is not occuped and the softphone doesn't ring. I was observing
the Asterisk debug screen, but nothing happens. It seems the
connection doesn't leave the Stretto 2000. Is it possible the media
gateway answer to the CA tha...
2006 Feb 07
21
Paypal and Rails
Hello everyone,
I am looking for a way to pass off a simple payment to paypal using our
own interface. I understand that this requires making full use of
Paypal''s API since we won''t be using their shopping cart or anything. I
found the article by Pranav Bihari on his site and in the Wiki on using
SOAP4R and the paypal WSDL file to interface with paypal web services,
but I
2010 Dec 10
3
[PATCH 1/7] staging: hv: Convert camel cased variables in netvsc.c to lower cases
...iptor *packet);
-static void NetVscOnReceiveCompletion(void *Context);
+static void NetVscOnReceiveCompletion(void *context);
-static void NetVscSendReceiveCompletion(struct hv_device *Device,
- u64 TransactionId);
+static void NetVscSendReceiveCompletion(struct hv_device *device,
+ u64 transaction_id);
-static struct netvsc_device *AllocNetDevice(struct hv_device *Device)
+static struct netvsc_device *AllocNetDevice(struct hv_device *device)
{
- struct netvsc_device *netDevice;
+ struct netvsc_device *net_device;
- netDevice = kzalloc(sizeof(struct netvsc_device), GFP_KERNEL);
- if (!net...
2010 Dec 10
3
[PATCH 1/7] staging: hv: Convert camel cased variables in netvsc.c to lower cases
...iptor *packet);
-static void NetVscOnReceiveCompletion(void *Context);
+static void NetVscOnReceiveCompletion(void *context);
-static void NetVscSendReceiveCompletion(struct hv_device *Device,
- u64 TransactionId);
+static void NetVscSendReceiveCompletion(struct hv_device *device,
+ u64 transaction_id);
-static struct netvsc_device *AllocNetDevice(struct hv_device *Device)
+static struct netvsc_device *AllocNetDevice(struct hv_device *device)
{
- struct netvsc_device *netDevice;
+ struct netvsc_device *net_device;
- netDevice = kzalloc(sizeof(struct netvsc_device), GFP_KERNEL);
- if (!net...
2005 Apr 12
2
Transactions, audit trails, and logging (fairly long)
I''m building a system where every change made to the database has to
auditable. Every time a change is made I store a timestamp, a user id,
and description of the transaction in a db_transactions table. Every
other table has a transaction_id field that references what transaction
last created or updated it. How I handle updates now is have a
DbTransactions model that contains has_many relationships to all other
tables. I create a DbTransaction, add whatever records I am creating or
updating and save the DbTransaction item. It works...
2006 Feb 28
0
Help: Script isn''t sending any email
...er info MUST be added here
@recipients = user.email
@from = "billing@mywebsite.com"
@subject = "Thank you for your payment"
# Email body substitutions go here
@body["first_name"] = user.first_name
@body["last_name"] = user.last_name
@body["transaction_id"] = transaction.id
@body["amount"] = transaction.amount
@body["account_balance"] = bill.current_account_balance
end
View Code:
<html>
<body>
Dear <%= @first_name %> <%= @last_name %>,
<p>We have successfully received your payment of $<...
2011 Mar 29
9
[PATCH 00/07] Remove and replace all un-needed DPRINT and printk
This patch set removes all un-needed DPRINT and printk calls and replaces
the remaining ones with the correct pr_, dev_ and netdev_ calls
from hv_vmbus, hv_netvsc, hv_timesource and hv_utils.
Several DPRINTS are remaining that will be cleaned up in my next
set of patches. They deal with printing out certain debugging that will be
implemented slightly differently.
The remaining hv_storvsc and
2011 Mar 29
9
[PATCH 00/07] Remove and replace all un-needed DPRINT and printk
This patch set removes all un-needed DPRINT and printk calls and replaces
the remaining ones with the correct pr_, dev_ and netdev_ calls
from hv_vmbus, hv_netvsc, hv_timesource and hv_utils.
Several DPRINTS are remaining that will be cleaned up in my next
set of patches. They deal with printing out certain debugging that will be
implemented slightly differently.
The remaining hv_storvsc and