mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
feat: add sample import sheet to invoices
This commit is contained in:
@@ -3,6 +3,7 @@ import { Knex } from 'knex';
|
||||
import { IPaymentReceiveCreateDTO } from '@/interfaces';
|
||||
import { Importable } from '@/services/Import/Importable';
|
||||
import { CreatePaymentReceive } from './CreatePaymentReceive';
|
||||
import { PaymentsReceiveSampleData } from './constants';
|
||||
|
||||
@Service()
|
||||
export class PaymentReceivesImportable extends Importable {
|
||||
@@ -40,6 +41,6 @@ export class PaymentReceivesImportable extends Importable {
|
||||
* Retrieves the sample data that used to download accounts sample sheet.
|
||||
*/
|
||||
public sampleData(): any[] {
|
||||
return [];
|
||||
return PaymentsReceiveSampleData;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,3 +31,17 @@ export const ERRORS = {
|
||||
};
|
||||
|
||||
export const DEFAULT_VIEWS = [];
|
||||
|
||||
export const PaymentsReceiveSampleData = [
|
||||
{
|
||||
Customer: 'Randall Kohler',
|
||||
'Payment Date': '2024-10-10',
|
||||
'Payment Receive No.': 'PAY-0001',
|
||||
'Reference No.': 'REF-0001',
|
||||
'Deposit Account': 'Petty Cash',
|
||||
'Exchange Rate': '',
|
||||
Statement: 'Totam optio quisquam qui.',
|
||||
Invoice: 'INV-00001',
|
||||
'Payment Amount': 850,
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user