-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OH2-409 | Add lock field to medical ward #1448
base: develop
Are you sure you want to change the base?
OH2-409 | Add lock field to medical ward #1448
Conversation
@SteveGT96 is it possible to add some tests to ensure that lock is effectively updated when we update a 'ward medical'? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left a few minor comments
@@ -1106,7 +1107,7 @@ void testMgrValidateLotWithCostZero() { | |||
Movement movement = movementIoOperationRepository.findById(code).orElse(null); | |||
assertThat(movement).isNotNull(); | |||
Lot lot = movement.getLot(); | |||
lot.setCost(new BigDecimal(0.0)); | |||
lot.setCost(new BigDecimal("0.0")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lot.setCost(new BigDecimal("0.0")); | |
lot.setCost(BigDecimal.ZERO); |
@Version | ||
@Column(name = "MDSRWRD_LOCK", columnDefinition = "INT(11) NOT NULL DEFAULT 0") | ||
private int lock; | ||
@Transient | ||
private Double qty = 0.0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Version | |
@Column(name = "MDSRWRD_LOCK", columnDefinition = "INT(11) NOT NULL DEFAULT 0") | |
private int lock; | |
@Transient | |
private Double qty = 0.0; | |
@Version | |
@Column(name = "MDSRWRD_LOCK", columnDefinition = "INT(11) NOT NULL DEFAULT 0") | |
private int lock; | |
@Transient | |
private Double qty = 0.0; |
See OH2-409