Skip to content
Code-Schnipsel Gruppen Projekte
Commit 3eff441d erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: #24

Übergeordneter 4cc04f7e
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -68,6 +68,15 @@ public function createChild($data = [])
]);
}
if (!isset($data['paymentFee'])) {
$data['paymentFee'] = null;
}
if ($data['paymentFee'] === '' || \is_numeric($data['paymentFee'])) {
$data['paymentFee'] = null;
}
QUI::getEvents()->fireEvent('paymentsCreateBegin', [$data['payment_type']]);
$payment = $data['payment_type'];
......@@ -83,7 +92,7 @@ public function createChild($data = [])
]
]);
if (count($children)) {
if (\count($children)) {
throw new QUI\ERP\Accounting\Payments\Exception([
'quiqqer/payments',
'exception.create.unique.payment.already.exists'
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren