Added cost import via web
This commit is contained in:
@@ -31,6 +31,9 @@ class ImportCosts extends Command
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
if (! str_starts_with($this->argument('file'),'storage/app/'))
|
||||
throw new \Exception('Filename must start with storage/app/');
|
||||
|
||||
Job::dispatchSync(
|
||||
Site::findOrFail($this->argument('siteid')),
|
||||
Supplier::where('name',$this->argument('supplier'))->singleOrFail(),
|
||||
|
Reference in New Issue
Block a user