Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

"has no valid bank account connected" #404

Closed
chadwhitacre opened this issue Dec 6, 2012 · 4 comments
Closed

"has no valid bank account connected" #404

chadwhitacre opened this issue Dec 6, 2012 · 4 comments

Comments

@chadwhitacre
Copy link
Contributor

@jnoller and I have no valid bank account connected. But we do. But our deposits failed to clear today (#403). No doubt related to #393 shenanigans.

@chadwhitacre
Copy link
Contributor Author

The check for whether there's a valid account was bad. I took it out entirely, let's let Balanced handle that. Need to do manual payouts for @jnoller and myself.

@chadwhitacre
Copy link
Contributor Author

My payout is $145.09. Jesse's is $76.20.

@chadwhitacre
Copy link
Contributor Author

$payout = total payout, including fee (76.50 in Jesse's case here, e.g.)
$fee = 0.30
$credit = amount to credit on Balanced (76.20 in Jesse's case here, e.g.)

INSERT INTO exchanges (amount, fee, participant_id) VALUES (-$credit, $fee, $participant_id);
UPDATE participants SET balance = balance - $payout WHERE id=$participant_id;

@chadwhitacre
Copy link
Contributor Author

Blech, okay!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant