feat: show documents link only when applicable
This commit is contained in:
@@ -31,10 +31,12 @@ class BookingsParser extends AbstractParser
|
||||
$booking->travelId = $this->getIntOrNullValue($node->filterXPath('//idreise'));
|
||||
$booking->travelDate = $this
|
||||
->stringToDate($this->getStringOrNullValue($node->filterXPath('//reisedatum')));
|
||||
$booking->document = $this
|
||||
$booking->hasDocuments = $this
|
||||
->stringToBool($this->getStringOrNullValue($node->filterXPath('//reisedokument')));
|
||||
$booking->payment = $this
|
||||
->stringToFloat($this->getStringOrNullValue($node->filterXPath('//zahlung')));
|
||||
$booking->hasDocuments = $this
|
||||
->stringToBool($this->getStringOrNullValue($node->filterXPath('//reisedokument')));
|
||||
|
||||
$bookings[] = $booking;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user