Skip to content

Commit

Permalink
Merge pull request #11 from smgallo/openxdmod/accountname-as-chargenu…
Browse files Browse the repository at this point in the history
…mber

Save the pi/group as the account and allocation charge number
  • Loading branch information
smgallo authored Jan 17, 2017
2 parents 415c17d + 1cee0fe commit 1330a65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/OpenXdmod/Ingestor/Hpcdb/Accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function __construct($dest_db, $src_db, $start_date = '1997-01-01', $end_date =
"
SELECT
account_id AS id,
'' AS charge_number,
account_name AS charge_number,
-1 AS granttype_id,
account_name AS short_name,
account_name AS long_name
Expand Down
3 changes: 2 additions & 1 deletion classes/OpenXdmod/Ingestor/Hpcdb/Allocations.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ function __construct($dest_db, $src_db, $start_date = '1997-01-01', $end_date =
al.account_id,
req.request_id,
pi.person_id AS principalinvestigator_person_id,
req.primary_fos_id AS fos_id
req.primary_fos_id AS fos_id,
acc.account_name AS charge_number
FROM hpcdb_allocations al
JOIN hpcdb_accounts acc
ON al.account_id = acc.account_id
Expand Down

0 comments on commit 1330a65

Please sign in to comment.