mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
fix: Plaid syncs deposit imports as withdrawals (#481)
This commit is contained in:
@@ -42,7 +42,12 @@ export const transformPlaidTrxsToCashflowCreate = R.curry(
|
|||||||
): CreateUncategorizedTransactionDTO => {
|
): CreateUncategorizedTransactionDTO => {
|
||||||
return {
|
return {
|
||||||
date: plaidTranasction.date,
|
date: plaidTranasction.date,
|
||||||
amount: plaidTranasction.amount,
|
|
||||||
|
// Plaid: Positive values when money moves out of the account; negative values
|
||||||
|
// when money moves in. For example, debit card purchases are positive;
|
||||||
|
// credit card payments, direct deposits, and refunds are negative.
|
||||||
|
amount: -1 * plaidTranasction.amount,
|
||||||
|
|
||||||
description: plaidTranasction.name,
|
description: plaidTranasction.name,
|
||||||
payee: plaidTranasction.payment_meta?.payee,
|
payee: plaidTranasction.payment_meta?.payee,
|
||||||
currencyCode: plaidTranasction.iso_currency_code,
|
currencyCode: plaidTranasction.iso_currency_code,
|
||||||
|
|||||||
Reference in New Issue
Block a user