Added organisations page to admin interface
This commit is contained in:
parent
25c0d06211
commit
98f15a67af
8 changed files with 217 additions and 19 deletions
|
@ -102,24 +102,5 @@ sub post_admin_merge {
|
|||
);
|
||||
}
|
||||
|
||||
sub copy_transactions_and_delete {
|
||||
my ( $c, $from_org, $to_org ) = @_;
|
||||
|
||||
my $from_org_transaction_rs = $from_org->transactions;
|
||||
|
||||
while ( my $from_org_transaction = $from_org_transaction_rs->next ) {
|
||||
$to_org->create_related(
|
||||
'transactions', {
|
||||
buyer_id => $from_org_transaction->buyer_id,
|
||||
value => $from_org_transaction->value,
|
||||
proof_image => $from_org_transaction->proof_image,
|
||||
submitted_at => $from_org_transaction->submitted_at,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
$from_org->delete;
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
|
|
Reference in a new issue