Opraveno přegenerování vyúčtování služební cesty spolucestujících.
refs #195
This commit is contained in:
+1
-1
@@ -45,8 +45,8 @@ public class TripRequirementServiceImpl extends RequirementBaseServiceImpl<TripR
|
||||
super.update(entity);
|
||||
|
||||
if (entity.getState() == RequirementState.APPROVED) {
|
||||
TripBill newBill = tripBillService.createTripBill(entity);
|
||||
for (TripBill bill : getBills(entity)) {
|
||||
TripBill newBill = tripBillService.createTripBill(entity);
|
||||
bill.getBillItems().clear();
|
||||
bill.getBillItems().addAll(newBill.getBillItems());
|
||||
tripBillService.calculate(bill);
|
||||
|
||||
Reference in New Issue
Block a user