Skip to content

Commit

Permalink
Prepaid/postpaid
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-marquardt committed Jun 14, 2017
1 parent 0460def commit 994acc5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/models/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export class User extends Identifiable {
@Expose() id: number;
@Expose() name: string;
@Expose() balance: number;
@Expose() allow_negative_balance: boolean;
@Expose() @Type(() => Tag) tags: Tag[];

constructor(id: number, name: string, balance: number = 0, tags: Tag[] = [], identifiers: Identifier[] = []){
Expand Down
11 changes: 11 additions & 0 deletions src/app/templates/user-edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ <h4>Balance</h4>
</div>
</div>
<div class="row"><div class="col-12 text-muted">If you want to deposit or withdraw funds from this account, please use the cash point view.</div></div>
<h4 class="mt-2">Prepaid/Postpaid</h4>
<div class="form-group row">
<div class="col-12">
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" [(ngModel)]="user.allow_negative_balance">
Allow the user to have a negative balance (postpaid acccount)
</label>
</div>
</div>
</div>
</div>
</div>

Expand Down

0 comments on commit 994acc5

Please sign in to comment.