fix invoice payment

This commit is contained in:
ludo
2023-11-25 19:33:41 +01:00
parent b812a78f9f
commit be468304c9
10 changed files with 127 additions and 149 deletions

View File

@@ -38,12 +38,9 @@ class InvoiceController extends Controller
{
$data = Invoices::init();
$data['invoice'] = Invoices::getFull($id)->toArray();
$model = new invoicePaymentsDataTable();
$model = new InvoicePaymentsDataTable();
$data['invoice_payments'] = $model->html();
// dump($data);
// exit;
return view('Admin.Shop.Invoices.edit', $data);
}

View File

@@ -16,7 +16,9 @@ class InvoicePaymentController extends Controller
public function create()
{
return view('Admin.Shop.InvoicePayments.create');
$data = InvoicePayments::init();
return view('Admin.Shop.InvoicePayments.create' , $data);
}
public function store(Request $request)
@@ -37,8 +39,6 @@ class InvoicePaymentController extends Controller
{
$data = InvoicePayments::init();
$data['invoice_payment'] = InvoicePayments::getFull($id)->toArray();
$model = new invoice_paymentPaymentsDataTable();
$data['invoice_payment_payments'] = $model->html();
return view('Admin.Shop.InvoicePayments.edit', $data);
}