MCPcopy Create free account
hub / github.com/Grashjs/cmms / setQuantity

Method setQuantity

api/src/main/java/com/grash/model/Part.java:206–209  ·  view source on GitHub ↗
(double quantity)

Source from the content-addressed store, hash-verified

204 //Location
205
206 public void setQuantity(double quantity) {
207 if (quantity < 0) throw new CustomException("The quantity should not be negative", HttpStatus.NOT_ACCEPTABLE);
208 this.quantity = quantity;
209 }
210
211 public void setMinQuantity(double minQuantity) {
212 if (minQuantity < 0)

Callers 7

respondMethod · 0.95
consumePartMethod · 0.95
createPartMethod · 0.95
patchPurchaseOrderMethod · 0.80
patchMethod · 0.80
importPartMethod · 0.80
createCheckoutSessionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected