mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix 1688 purchase order
This commit is contained in:
+7
-1
@@ -65,7 +65,13 @@ class CreatePurchaseOrderFor1688OrderProcessor
|
||||
}
|
||||
}
|
||||
|
||||
if(empty($products)) return false;
|
||||
if(empty($products))
|
||||
$object = new TransactionObject($billNumber, TransactionType::PURCHASE_ORDER, $booking->company->id, 1,
|
||||
1, PaymentMethodType::CASH,
|
||||
0, 0, $booking->fix_currency_id, $booking->fix_currency_id,
|
||||
1, 0, 0, null, ApprovalStatus::PENDING_SUBMISSION, []);
|
||||
$this->createPurchaseOrderTransactionProcessor->execute($booking, $object);
|
||||
return false;
|
||||
|
||||
$total = collect($products)->sum(function($product){
|
||||
return $product['quantity'] * floatval(str_replace(',', '', $product['unit_price']));
|
||||
|
||||
Reference in New Issue
Block a user