Skip to content

Commit

Permalink
fix generator to support costcenters
Browse files Browse the repository at this point in the history
  • Loading branch information
semteacher committed Sep 28, 2024
1 parent 20bddae commit 8eb7d2d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/generator/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ public function create_user_credit($record = null) {
global $DB, $USER;

$record = (object) $record;
$res = shopping_cart_credits::add_credit($record->userid, $record->credit, $record->currency);
$res = shopping_cart_credits::add_credit(
$record->userid,
$record->credit,
$record->currency,
$record->costcenter ?? ''
);
return $res;
}

Expand Down

0 comments on commit 8eb7d2d

Please sign in to comment.