Skip to content

Commit

Permalink
Merge pull request #11 from TassSinclair/patch-1
Browse files Browse the repository at this point in the history
Use absolute foreign amount value
  • Loading branch information
MajorArkwolf authored Apr 24, 2024
2 parents 99944d0 + 5069aba commit 4b9b8e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migrator/transaction_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub fn convert_up_bank_transaction_to_fire_fly(

match &up_bank_transaction.attributes.foreign_amount {
Some(foriegn_amount) => {
fire_fly_transaction.foreign_amount = Some(foriegn_amount.value.clone());
fire_fly_transaction.foreign_amount = Some(foriegn_amount.value.clone().replace('-', ""));
fire_fly_transaction.foreign_currency_code = Some(foriegn_amount.currency_code.clone());
}
None => fire_fly_transaction.foreign_amount = Some("0".to_string()),
Expand Down

0 comments on commit 4b9b8e3

Please sign in to comment.