refactor datatables admin

This commit is contained in:
Ludovic CANDELLIER
2023-08-29 23:31:15 +02:00
parent b1d16a7871
commit 470560efb6
37 changed files with 64 additions and 40 deletions

View File

@@ -49,7 +49,6 @@ class Invoices
{
InvoiceStats::increase($data['total_taxed']);
$data['uuid'] = Str::uuid()->toString();
$data['ref'] = self::getNewRef();
return Invoice::create($data);
}

View File

@@ -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']);