Merge branch 'Verze_1.0'
This commit is contained in:
+1
-1
@@ -46,8 +46,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