Merge Invoice and Bill into Document
This commit is contained in:
@@ -156,12 +156,13 @@ return [
|
||||
],
|
||||
],
|
||||
|
||||
App\Models\Purchase\Bill::class => [
|
||||
App\Models\Document\Document::class => [
|
||||
'columns' => [
|
||||
'bill_number' => ['searchable' => true],
|
||||
'type' => ['searchable' => true],
|
||||
'document_number' => ['searchable' => true],
|
||||
'order_number' => ['searchable' => true],
|
||||
'status',
|
||||
'billed_at' => ['date' => true],
|
||||
'issued_at' => ['date' => true],
|
||||
'due_at' => ['date' => true],
|
||||
'amount',
|
||||
'currency_code' => [
|
||||
@@ -182,32 +183,6 @@ return [
|
||||
],
|
||||
],
|
||||
|
||||
App\Models\Sale\Invoice::class => [
|
||||
'columns' => [
|
||||
'invoice_number' => ['searchable' => true],
|
||||
'order_number' => ['searchable' => true],
|
||||
'status',
|
||||
'invoiced_at' => ['date' => true],
|
||||
'due_at' => ['date' => true],
|
||||
'amount',
|
||||
'currency_code' => [
|
||||
'route' => 'currencies.index'
|
||||
],
|
||||
'contact_id' => [
|
||||
'route' => 'customers.index'
|
||||
],
|
||||
'contact_name' => ['searchable' => true],
|
||||
'contact_email' => ['searchable' => true],
|
||||
'contact_tax_number',
|
||||
'contact_phone' => ['searchable' => true],
|
||||
'contact_address' => ['searchable' => true],
|
||||
'category_id' => [
|
||||
'route' => 'categories.index'
|
||||
],
|
||||
'parent_id',
|
||||
],
|
||||
],
|
||||
|
||||
App\Models\Setting\Category::class => [
|
||||
'columns' => [
|
||||
'name' => ['searchable' => true],
|
||||
|
||||
Reference in New Issue
Block a user