Coder Social home page Coder Social logo

Return item about databases HOT 9 CLOSED

gminaker avatar gminaker commented on August 17, 2024
Return item

from databases.

Comments (9)

mikegfink avatar mikegfink commented on August 17, 2024

But what if you want to return it before it’s delivered? Just get a refund... then we save on the shipping. I think we don’t do that check because you then can’t change your mind and get your refund right away.

From: thpierce [mailto:[email protected]]
Sent: November-25-14 8:08 PM
To: gminaker/databases
Subject: [databases] Return if no delivery (#20)

We shouldn't be able to return stuff with no delivery date, right? I feel like we currently can, and should check this!


Reply to this email directly or view it on GitHub #20 .Image removed by sender.

from databases.

thpierce avatar thpierce commented on August 17, 2024

Ok fair, but then we should probably delete that thing from process deliveries

from databases.

mikegfink avatar mikegfink commented on August 17, 2024

I don’t know what’s in process delivery. Haven’t worked on that file.

from databases.

thpierce avatar thpierce commented on August 17, 2024

I guess what I mean is more general: if everything is returned, this purchase should not exist anymore. There was no purchase, so no need to process in other things, such as process delivery, top selling items, etc.

from databases.

mikegfink avatar mikegfink commented on August 17, 2024

I disagree, just because something gets returned doesn’t mean you remove the record of it. Once a transaction has happened you don’t want to edit it. We still want to know that something was purchased even if all are returned.

from databases.

anniechen92 avatar anniechen92 commented on August 17, 2024

Tried returning 1 from receipt 3926

Warning: array_push() expects parameter 1 to be array, null given in C:\Users\Annie\databases\views\clerk\process_refund.php on line 155

If I try returning it again:
1 of UPC, 616402673105, have/has already been returned on this receipt.

Warning: array_push() expects parameter 1 to be array, null given in C:\Users\Annie\databases\views\clerk\process_refund.php on line 150

from databases.

mikegfink avatar mikegfink commented on August 17, 2024

@anniechen92 try it now, pushed to master with change. It was an error checking scope thing.

from databases.

thpierce avatar thpierce commented on August 17, 2024

Doesn't update stock

from databases.

thpierce avatar thpierce commented on August 17, 2024

Fixed

from databases.

Related Issues (20)

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.