Comments (6)
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.
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.
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.
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.
master is the most current development branch. feature branch contains some modifications I plan to integrate sooner or later (unfinished work)
from opensourcepos.
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)
- CI4 Testing with different versions HOT 1
- Adding Serial Number prevents us from chaning the quantity of that item HOT 1
- Fix reference to chartist-tooltip plugin
- Windows 11 HTTP ERROR 500 HOT 4
- Customers Table Comments with newline HOT 1
- Feature: Rename Company Logo on upload and housekeeping of company_logo files HOT 2
- delete button for suspended sales direct from menu HOT 6
- Request for a new feature: Off-line capability of OSPOS HOT 6
- Nuestra pagina web es inestable y se cae constantemente HOT 2
- LIFO method HOT 1
- Offline Online Sync HOT 8
- Credit Saale, Price Toggle and Report to mail: HOT 2
- [Bug]: Item Kits Save Failure HOT 6
- Item Kits Barcode Issue HOT 2
- [Bug]: Missing /var/www/html/.htaccess file contents within installation documentation HOT 22
- [Bug]: Disappearing Item Image HOT 2
- [Feature]: Fixed Width Barcodes HOT 7
- Escaping output in CI4 HOT 5
- Return item kit always adds an whole extra item kit HOT 3
- [Bug]: HOT 28
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 opensourcepos.