Merge branch 'Verze_1.0'

Verze_2.0
Josef Rokos 10 years ago
commit 5d9e6226d3

@ -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);

Loading…
Cancel
Save