fix invoice payment
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user