Comments (2)
This may require the addition of an additional field on the user model - 'user_credit'.
proposed user_credit would be a value to track bids across all listings but only tally up the user's highest bid for any single listing (rebids do not stack with previous bids on the same listing). This would allow the user's cash to remain untouched until the conclusion of a Listing assuming said user wins the listing. user_credit would also be reset/released for any bids that are not marked as "winning".
from cs50_commerce.
updated logic at Listing "end":
- Listing should determine winning Bid
- owner of winning Bid should have cash withdrawn from their account/notify user of winning status
- Listing should have active status set to False
- all other bids associated with the Listing should not withdraw money from their respective users
from cs50_commerce.
Related Issues (14)
- Bids should not be negative HOT 1
- Bid must exceed value of previous bids HOT 1
- Automatically end Listings HOT 3
- Address datetime errors in the Listing model HOT 2
- Implement code quality best practices HOT 1
- Implement Task Queue/message broker HOT 1
- Watchlist functionality HOT 1
- End Listing (manual)
- User Cash and Credit HOT 1
- Invalid bids and user cash withdrawal HOT 3
- User "Credit Card" HOT 2
- Listing Countdown timer HOT 1
- Bid validation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cs50_commerce.