Skip to content

Commit

Permalink
Added Revenue account details to departments
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsam726 committed Oct 13, 2023
1 parent 023d30f commit a1347bb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Filament/Resources/DepartmentResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ public static function form(Form $form): Form
Forms\Components\TextInput::make('account_number')
->required()
->maxLength(255),
Forms\Components\TextInput::make('revenue_object_code')
->required()
->maxLength(255),

Forms\Components\TextInput::make('revenue_account_number')
->required()
->maxLength(255),


Forms\Components\TextInput::make('sync_id')
->required()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ public static function getExportColumns(): array
Column::make('short_name'),
Column::make('name'),
Column::make('account_number'),
Column::make('revenue_account_number'),
Column::make('object_code'),
Column::make('revenue_object_code'),

];
}

Expand All @@ -73,6 +76,9 @@ public function getImportColumns(): array
ImportField::make('account_number')->required(),
ImportField::make('object_code')->required(),
ImportField::make('chart_code')->required(),
ImportField::make('revenue_object_code')->required(),
ImportField::make('revenue_chart_code')->required(),

];
}
public function importRecord(array $data)
Expand Down

0 comments on commit a1347bb

Please sign in to comment.