mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
feat: matching uncategorized transactions
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
import { Transformer } from '@/lib/Transformer/Transformer';
|
||||
|
||||
export class GetMatchedTransactionBillsTransformer 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