feat: add sample import sheet to invoices

This commit is contained in:
Ahmed Bouhuolia
2024-04-07 15:26:23 +02:00
parent bbafdcd8bd
commit 086b060351
8 changed files with 81 additions and 21 deletions

View File

@@ -3,6 +3,7 @@ import { Knex } from 'knex';
import { ISaleInvoiceCreateDTO } from '@/interfaces';
import { CreateSaleInvoice } from './CreateSaleInvoice';
import { Importable } from '@/services/Import/Importable';
import { SaleInvoicesSampleData } from './constants';
@Service()
export class SaleInvoicesImportable extends Importable {
@@ -40,6 +41,6 @@ export class SaleInvoicesImportable extends Importable {
* Retrieves the sample data that used to download accounts sample sheet.
*/
public sampleData(): any[] {
return [];
return SaleInvoicesSampleData;
}
}