From 2c961319059c4c53d46f8b49dbe39995331b0248 Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Tue, 13 Jun 2017 22:01:22 +0100 Subject: [PATCH] Fix Dev script to use correct id for seller_id --- lib/Pear/LocalLoop/Command/dev_transactions.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Pear/LocalLoop/Command/dev_transactions.pm b/lib/Pear/LocalLoop/Command/dev_transactions.pm index 2f4fe92..4c8001d 100644 --- a/lib/Pear/LocalLoop/Command/dev_transactions.pm +++ b/lib/Pear/LocalLoop/Command/dev_transactions.pm @@ -70,7 +70,7 @@ sub run { for ( 1 .. $number ) { for my $user_result ( $user_rs->all ) { $user_result->create_related( 'transactions', { - seller_id => $organisations[int(rand($#organisations))]->id, + seller_id => $organisations[int(rand($#organisations))]->organisation_id, value => int(rand(9999)) / 100, proof_image => 'a', submitted_at => $dtf->format_datetime($datetime->clone->add( minutes => int(rand(1440)) )),