wip: finalize implementation
This commit is contained in:
@@ -28,6 +28,7 @@ class BookingResponse
|
||||
public readonly array $priceItems = [],
|
||||
public readonly ?float $totalPrice = null,
|
||||
public readonly ?PaymentTerms $paymentTerms = null,
|
||||
public readonly ?string $message = null,
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ use Symfony\Component\DomCrawler\Crawler;
|
||||
* <satz typ="BUCHUNG" />
|
||||
* <buchung>möglich|erfolgt</buchung>
|
||||
* <vorgang>321530</vorgang>
|
||||
* <hinweis>...</hinweis>
|
||||
* <preise>
|
||||
* <preis position="1" art="BEF" unterart="BUS" bezeichnung="..." ... />
|
||||
* </preise>
|
||||
@@ -34,6 +35,7 @@ class BookingResponseParser extends AbstractParser
|
||||
$status = $node->filterXPath('//buchung')->text();
|
||||
$transactionNumber = $this->getStringOrNullValue($node->filterXPath('//vorgang'));
|
||||
$totalPrice = $this->getFloatOrNullValue($node->filterXPath('//gesamtpreis'));
|
||||
$message = $this->getStringOrNullValue($node->filterXPath('//hinweis'));
|
||||
|
||||
$priceItems = $this->parsePriceItems($node);
|
||||
$paymentTerms = $this->parsePaymentTerms($node);
|
||||
@@ -43,7 +45,8 @@ class BookingResponseParser extends AbstractParser
|
||||
transactionNumber: $transactionNumber,
|
||||
priceItems: $priceItems,
|
||||
totalPrice: $totalPrice,
|
||||
paymentTerms: $paymentTerms
|
||||
paymentTerms: $paymentTerms,
|
||||
message: $message,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -22,12 +22,12 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% include '_partials/_flashes.html.twig' %}
|
||||
|
||||
<h1>Neue Buchung</h1>
|
||||
|
||||
<div class="grid grid-cols-3 gap-8">
|
||||
<div id="form-wrapper" class="col-span-2">
|
||||
{% include '_partials/_flashes.html.twig' %}
|
||||
|
||||
<h2 class="mb-6">Zahlungsart</h2>
|
||||
|
||||
{{ form_start(form, {
|
||||
|
||||
Reference in New Issue
Block a user