First Aid list, amount list and kitchen list PDF download implemented
This commit is contained in:
@@ -67,13 +67,12 @@ class EventResource extends JsonResource{
|
||||
$returnArray['participants'][$participationType] = $this->getParticipants($participationType);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$returnArray['costUnit'] = new CostUnitResource($this->event->costUnit()->first())->toArray(true);
|
||||
$returnArray['solidarityPayment'] = $this->event->participation_fee_type === ParticipationFeeType::PARTICIPATION_FEE_TYPE_SOLIDARITY;
|
||||
$returnArray['payPerDay'] = $this->event->pay_per_day;
|
||||
$returnArray['maxAmount'] = $this->event->total_max_amount->getFormattedAmount();
|
||||
$returnArray['arrivalDefault'] = $this->event->start_date->format('Y-m-d');
|
||||
$returnArray['departureDefault'] = $this->event->end_date->format('Y-m-d');
|
||||
$returnArray['eventBegin'] = $this->event->start_date->format('d.m.Y');
|
||||
$returnArray['eventBeginInternal'] = $this->event->start_date;
|
||||
$returnArray['eventEnd'] = $this->event->end_date->format('d.m.Y');
|
||||
@@ -94,7 +93,6 @@ class EventResource extends JsonResource{
|
||||
|
||||
$totalBalanceReal->subtractAmount($returnArray['costUnit']['overAllAmount']['value']);
|
||||
$totalBalanceExpected->subtractAmount($returnArray['costUnit']['overAllAmount']['value']);
|
||||
|
||||
$returnArray['totalBalance'] = [
|
||||
'real' => [
|
||||
'value' => $totalBalanceReal->getAmount(),
|
||||
|
||||
Reference in New Issue
Block a user