update xpo

This commit is contained in:
omair saleh
2022-03-11 10:51:54 +08:00
parent 8253b4672d
commit 896670682c
@@ -70,7 +70,7 @@ class AutoPurchaseOrderFillLogic extends AbstractControllerLogic
$q->where('type', TransactionType::PURCHASE_ORDER);
$q->whereIn('status', [ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED]);
})->get();
dd($bookings);
foreach ($bookings as $booking) {
$po = Transaction::where('type', TransactionType::PURCHASE_ORDER)
->where('status', ApprovalStatus::APPROVED)->where('issuer', $booking->company_id)
@@ -106,7 +106,8 @@ class AutoPurchaseOrderFillLogic extends AbstractControllerLogic
$total, $total, $booking->fix_currency_id, $booking->fix_currency_id,
1, 0, 0, null, ApprovalStatus::PENDING_SUBMISSION, $products->toArray());
$this->createPurchaseOrderTransactionProcessor->execute($booking, $object);
dd($object);
// $this->createPurchaseOrderTransactionProcessor->execute($booking, $object);
}
return $this->response([]);