Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fmido88 authored Feb 3, 2024
1 parent 3cdbd04 commit 770fcd1
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion amd/build/cdiscount.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions amd/src/cdiscount.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* @copyright 2024 Mohammad Farouk <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
/* eslint-disable camelcase */
import {get_string} from 'core/str';

let form;
Expand Down
14 changes: 7 additions & 7 deletions classes/util/balance.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ class balance {
* The current source of wallet.
* @var int
*/
protected int $source;
protected $source;
/**
* The current userid.
* @var int
*/
protected int $userid;
protected $userid;
/**
* The current category id.
* @var int
*/
protected int $catid;
protected $catid;
/**
* category operation helper class
* @var operations
Expand All @@ -68,22 +68,22 @@ class balance {
* The main balance for the user
* @var float
*/
public float $balance;
public $balance;
/**
* The whole balance details
* @var array
*/
public array $details;
public $details;
/**
* The id of the record in the database.
* @var int
*/
protected int $recordid;
protected $recordid;
/**
* The valid balance for the user.
* @var float
*/
public float $valid;
public $valid;
/**
* Balance helper object to get all balance data of a given user.
* use enrol_wallet\util\balance_op for operations like credit or debit.
Expand Down
4 changes: 2 additions & 2 deletions classes/util/balance_op.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ class balance_op extends balance {
* The amount per transaction.
* @var float
*/
private float $amount;
private $amount;
/**
* The course id at which the operation done.
* @var int
*/
private int $courseid;
private $courseid;

/**
* Helper calss
Expand Down
19 changes: 10 additions & 9 deletions templates/display.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,18 @@
"currentuser": true,
"catdetails": [
{
name: "some category",
refundable: 20,
nonrefundable: 100,
total: 120
"name": "some category",
"refundable": 20,
"nonrefundable": 100,
"total": 120
},
{
name: "Another one",
refundable: 10,
nonrefundable: 5,
total: 15
}]
"name": "Another one",
"refundable": 10,
"nonrefundable": 5,
"total": 15
}
]
}
}}
Expand Down

0 comments on commit 770fcd1

Please sign in to comment.