Skip to content

Commit 994acc5

Browse files
Prepaid/postpaid
1 parent 0460def commit 994acc5

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/app/models/user.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export class User extends Identifiable {
88
@Expose() id: number;
99
@Expose() name: string;
1010
@Expose() balance: number;
11+
@Expose() allow_negative_balance: boolean;
1112
@Expose() @Type(() => Tag) tags: Tag[];
1213

1314
constructor(id: number, name: string, balance: number = 0, tags: Tag[] = [], identifiers: Identifier[] = []){

src/app/templates/user-edit.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ <h4>Balance</h4>
2626
</div>
2727
</div>
2828
<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>
29+
<h4 class="mt-2">Prepaid/Postpaid</h4>
30+
<div class="form-group row">
31+
<div class="col-12">
32+
<div class="form-check">
33+
<label class="form-check-label">
34+
<input class="form-check-input" type="checkbox" [(ngModel)]="user.allow_negative_balance">
35+
Allow the user to have a negative balance (postpaid acccount)
36+
</label>
37+
</div>
38+
</div>
39+
</div>
2940
</div>
3041
</div>
3142

0 commit comments

Comments
 (0)