Merge branch 'main' into develop
This commit is contained in:
commit
76af70da06
3 changed files with 6 additions and 2 deletions
|
@ -29,6 +29,10 @@ export default class Inventory extends AppBaseEntity {
|
|||
this.Quantity = quantity;
|
||||
}
|
||||
|
||||
public AddQuantity(amount: number) {
|
||||
this.Quantity += amount;
|
||||
}
|
||||
|
||||
public RemoveQuantity(amount: number) {
|
||||
if (this.Quantity < amount) return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue