mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-28 17:03:59 +00:00
debug update group error
This commit is contained in:
@@ -204,6 +204,10 @@ Route::get('/supplier/pi/export', function(){
|
||||
foreach ($group->transactions as $transaction){
|
||||
$booking = $purchaseOrder = $transaction->owner->owner;
|
||||
$purchaseOrder = $booking->transactions()->where('type', TransactionType::PURCHASE_ORDER)->where('status', ApprovalStatus::APPROVED)->first();
|
||||
if(!$purchaseOrder) {
|
||||
echo 'warning, booking ref.'.$booking->marking.' doesn\'t have purchase order';
|
||||
continue;
|
||||
}
|
||||
foreach ($purchaseOrder->transactionDetails as $item){
|
||||
$i++;
|
||||
echo '<tr>';
|
||||
|
||||
Reference in New Issue
Block a user