mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
feat: matching uncategorized transactions
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import { Transformer } from '@/lib/Transformer/Transformer';
|
||||
|
||||
export class GetMatchedTransactionExpensesTransformer extends Transformer {
|
||||
/**
|
||||
* Include these attributes to sale credit note object.
|
||||
* @returns {Array}
|
||||
*/
|
||||
public includeAttributes = (): string[] => {
|
||||
return ['referenceNo'];
|
||||
};
|
||||
|
||||
public excludeAttributes = (): string[] => {
|
||||
return ['*'];
|
||||
};
|
||||
|
||||
protected referenceNo(invoice) {
|
||||
return invoice.referenceNo;
|
||||
}
|
||||
|
||||
amount(invoice) {
|
||||
return 1;
|
||||
}
|
||||
amountFormatted() {}
|
||||
date() {}
|
||||
dateFromatted() {}
|
||||
transactionId(invoice) {
|
||||
return invoice.id;
|
||||
}
|
||||
transactionNo() {}
|
||||
transactionType() {}
|
||||
transsactionTypeFormatted() {}
|
||||
}
|
||||
Reference in New Issue
Block a user