Comments (5)
If this resulted in payments not being captured, we should list each one of these cases so we can let the affected enterprises know. And the same for all other bugsnag instances.. 😬
from openfoodnetwork.
If this resulted in payments not being captured, we should list each one of these cases so we can let the affected enterprises know.
I went through Australian Bugsnag and send all affected order ids to @amidaOFN. But we should check others as well. Oh, and some subscriptions were affected bug I can't see the ids in Bugsnag.
from openfoodnetwork.
Potential causing change reverted.
Comment added in Bugsnag by Maikel
ActiveRecord::RecordInvalid in checkout#update
from openfoodnetwork.
An error linked to this issue has been marked as fixed in Bugsnag
ActiveRecord::RecordInvalid in checkout#update
from openfoodnetwork.
Looking at the code, I have a suspicion:
- Stock items can have negative stock if they are backorderable (on demand).
- But variant overrides can set
on_demand
while not overriding the stock level (count_on_hand == nil
).
A distributor with inventory can set a variant to on demand while not overriding the stock level. In the old model, orders would then not affect the stock level because on demand would disable stock tracking. But the offending pull request starting tracking stock for on demand products as well. I didn't consider this and thought that tracking stock for in this case was hidden to the user but it's actually a big change in logic. Now a sale of a distributor can reduce stock levels of the producer even though the distributor chose on demand.
I think that the solution is to enforce stock tracking on variant overrides when on demand
is set. So the sales don't affect the producers stock level and the distributor has its own hidden stock tracking.
from openfoodnetwork.
Related Issues (20)
- [Flaky] ./spec/system/admin/reports/enterprise_fee_summaries_spec.rb
- Release v4.4.51 HOT 1
- [BUU] Variant updates ignored when error on bulk updating products
- [White label] Update button always inactive (can't make changes) HOT 6
- [BUU] Stock settings selection is lost, if there are errors on saving HOT 7
- [BUU] Unit field is out of sync with the popout HOT 1
- Release
- Error 500 when product category left blank
- [BUU] Messy flash notifications on new products page
- Release v4.4.53 Chifrijo HOT 1
- Auto Assign PR to the Author
- Reports delayed on French instance HOT 5
- Release v4.4.54 Feijoada HOT 1
- Remove MaskDataService to use hidding on rendering instead.
- Rubocop Rails/ResponseParsedBody
- [BUU] Insert cloned products below the original product
- [BUU] Use vertical transitions for cloning and deleting products
- [BUU] Pagination info is incorrect after cloning/deleting products
- [BUU] No explanation why cloning failed
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 openfoodnetwork.