-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #503 from bcgov/Hypercare-ALR-907
ALR-907
- Loading branch information
Showing
2 changed files
with
29 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @last modified by : [email protected] | ||
**/ | ||
public class ManageUnitsController { | ||
Public static String VALIDATE_QTY = 'Updated Quantity cannot be equal,null, negative or greater than the existing quantity.'; | ||
Public static String VALIDATE_QTY = 'Updated Quantity cannot be equal, null, negative or greater than the existing quantity.'; | ||
public static final String UNITREQUEST_RECTYPEID_NAME = 'Unit_Request_Record_Type'; | ||
Public static String NEW_UNIT_NAME='UnitRequest'; | ||
Public static String UNIT_FEE='Full Unit Fee'; | ||
|
@@ -49,7 +49,7 @@ public class ManageUnitsController { | |
newunit.Type__c = existingUnits.get(unit.Id).Type__c; | ||
newunit.Status = UNITREQUEST_STATUS; | ||
system.debug('unit.Quantity'+unit.Quantity); | ||
if(unit.Quantity >= existingUnits.get(unit.Id).Quantity || unit.Quantity < 0 || unit.Quantity == null) | ||
if(unit.Quantity >= existingUnits.get(unit.Id).Quantity || unit.Quantity < 0 || unit.Quantity == null) | ||
{ | ||
throw new MyException(VALIDATE_QTY); | ||
}else{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters