fix invoice payment

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

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);
}