Add confirmation button event
This commit is contained in:
parent
fed06dfa65
commit
94ad819c95
4 changed files with 156 additions and 1 deletions
|
@ -29,6 +29,12 @@ export default class Inventory extends AppBaseEntity {
|
|||
this.Quantity = quantity;
|
||||
}
|
||||
|
||||
public RemoveQuantity(amount: number) {
|
||||
if (this.Quantity < amount) return;
|
||||
|
||||
this.Quantity -= amount;
|
||||
}
|
||||
|
||||
public AddClaim(claim: Claim) {
|
||||
this.Claims.push(claim);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue