fix duplicated currency order booking for payments bug

This commit is contained in:
omair saleh
2021-07-13 20:00:52 +08:00
parent 246db641be
commit 672cc5696b
@@ -101,6 +101,9 @@ class CreateSupplierTransactionLogic extends AbstractControllerLogic
/** @var Transaction $payment */
$payment = $this->fetchesTransaction->execute(['id' => $payment['id']]);
if($payment->status !== ApprovalStatus::APPROVED) continue;
$this->updatesTransactionStatus->execute($payment, ApprovalStatus::COMPLETED);
$billNumber = $this->generatesTransactionBillNumber->execute('SPLR-');
$object = new TransactionObject($billNumber, TransactionType::BILL, $supplier->id, 1,