mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-18 11:15:02 +00:00
- Invoice sorting refactored
- Frontend build
This commit is contained in:
@@ -100,7 +100,7 @@ class SetupOasisEnvironment extends Command
|
||||
['client_id' => $clients[3]->id],
|
||||
['client_id' => $clients[4]->id],
|
||||
['client_id' => $clients[5]->id],
|
||||
))->count(2)
|
||||
))->count(8)
|
||||
->create([
|
||||
'user_id' => $user->id,
|
||||
'invoice_type' => 'regular-invoice',
|
||||
@@ -109,7 +109,7 @@ class SetupOasisEnvironment extends Command
|
||||
]);
|
||||
|
||||
$advance_invoices = Invoice::factory(Invoice::class)
|
||||
->count(2)
|
||||
->count(6)
|
||||
->state(new Sequence(
|
||||
['client_id' => $clients[0]->id],
|
||||
['client_id' => $clients[1]->id],
|
||||
|
||||
@@ -20,7 +20,7 @@ class ClientController extends Controller
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$clients = Client::sortable()
|
||||
$clients = Client::sortable(['created_at', 'DESC'])
|
||||
->whereUserId(Auth::id())
|
||||
->get();
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ class InvoiceController extends Controller
|
||||
*/
|
||||
public function get_all_regular_invoices()
|
||||
{
|
||||
$invoices = Invoice::sortable()
|
||||
$invoices = Invoice::sortable(['created_at', 'DESC'])
|
||||
->whereUserId(Auth::id())
|
||||
->whereInvoiceType('regular-invoice')
|
||||
->get();
|
||||
@@ -43,7 +43,7 @@ class InvoiceController extends Controller
|
||||
*/
|
||||
public function get_all_advance_invoices()
|
||||
{
|
||||
$invoices = Invoice::sortable()
|
||||
$invoices = Invoice::sortable(['created_at', 'DESC'])
|
||||
->whereUserId(Auth::id())
|
||||
->whereInvoiceType('advance-invoice')
|
||||
->get();
|
||||
|
||||
Reference in New Issue
Block a user