Add confirmation button event

This commit is contained in:
Ethan Lane 2024-05-16 18:46:26 +01:00
parent fed06dfa65
commit 94ad819c95
4 changed files with 156 additions and 1 deletions

View file

@ -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);
}