mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 12:34:24 +00:00
fix rack do's
This commit is contained in:
+2
-1
@@ -106,9 +106,10 @@ Route::get('/fix_bills', function () {
|
||||
});
|
||||
})->get();
|
||||
foreach ($bookings as $booking){
|
||||
$booking->documents()->where('document_type', DocumentType::SUPPLIER_DELIVER_ORDER)->delete();
|
||||
// $booking->documents()->where('document_type', DocumentType::SUPPLIER_DELIVER_ORDER)->delete();
|
||||
$po = $booking->transactions()->where('type', TransactionType::PURCHASE_ORDER)->first();
|
||||
$supplier_deliver_order_transaction = $booking->transactions()->where('type', TransactionType::SUPPLIER_DELIVER)->first();
|
||||
dd($supplier_deliver_order_transaction);
|
||||
$supplier = Company::find($booking->transactions()->where('type', TransactionType::PAYMENT)->where('status', 3)->first()->transactions()->first());
|
||||
$supplier_order_pdf = LaravelMpdf::loadView('pages.pdfs.supplier_deliver_order', ['supplier_deliver_order_transaction' => $supplier_deliver_order_transaction, 'po_order_transaction' => $po, 'supplier' => $supplier]);
|
||||
$document_object = new DocumentObject(
|
||||
|
||||
Reference in New Issue
Block a user