Coder Social home page Coder Social logo

Comments (6)

jekkos avatar jekkos commented on June 5, 2024

I suppose it has always been that way. Returning sales is ought to be done with a barcode scanner, as the receipts have the POS sale_id identifier encoded in that barcode. The valid_receipt will only be true if you type in the full POS number. In that case you should get the autocomplete suggestion (probably just one in this case). Haven't got the time to test this now but can you confirm if it works this way?

In other words the suggestion for return should only show up once the complete POS is typed in.

from opensourcepos.

kagarwala avatar kagarwala commented on June 5, 2024

I tested it without any of my changes with a new ospos code base.
I made my first sale. The sale_id which showed in receipt was, 'POS 1'

I pasted the same while returning..Auto-complete didn't show up...
There was a JS error too...

But if you just press enter or try to add the sale_id even though auto-complete didn't show up...It is able to add the sale in return...

I guess that's because add_item is working because we entered the complete and valid sale_id...

from opensourcepos.

jekkos avatar jekkos commented on June 5, 2024

I just tried to reproduce what you did here and indeed, no suggestion showing up. However from reading the code it looks like there should be at least one. I'll look into once I have my debugger running.

from opensourcepos.

kagarwala avatar kagarwala commented on June 5, 2024

The code I posted above might fix this issue...I added this to master branch on github and it worked.

Can you please tell me, which branch is the stable one...master/feature ... I am new to Git...

Or should I just stick to a released 2.31 version...???

from opensourcepos.

jekkos avatar jekkos commented on June 5, 2024

master is the most current development branch. feature branch contains some modifications I plan to integrate sooner or later (unfinished work)

from opensourcepos.

jekkos avatar jekkos commented on June 5, 2024

I did a proper fix in b29cb85 by changing the javascript parsing on the client side. This fix is better as it give the server more flexibility in what it can send back (we shouldn't require two fields all the time).

from opensourcepos.

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.