refactor datatables admin
This commit is contained in:
@@ -49,7 +49,6 @@ class Invoices
|
||||
{
|
||||
InvoiceStats::increase($data['total_taxed']);
|
||||
$data['uuid'] = Str::uuid()->toString();
|
||||
$data['ref'] = self::getNewRef();
|
||||
|
||||
return Invoice::create($data);
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ class Orders
|
||||
unset($data['basket']);
|
||||
$order = self::store($data);
|
||||
$detail = OrderDetails::saveBasket($order->id, $basket['detail']);
|
||||
$data['ref'] = $order->ref;
|
||||
unset($data['comment']);
|
||||
unset($data['agree']);
|
||||
unset($data['customer_id']);
|
||||
|
||||
Reference in New Issue
Block a user