Git Product home page Git Product logo

Comments (2)

eld120 avatar eld120 commented on July 17, 2024

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.

eld120 avatar eld120 commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.