Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Merge branch 'master' into fix-create-fulfillment-with-invalid-orderline-
Marcin Gębala154a13b07e4e
diff --cc CHANGELOG.mdindex 64813a1e60,cae47a9c07..8986fa2d81--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -31,7 -32,11 +32,12 @@@ All notable, unreleased changes to thi- Filter order by payment status from order's last payment - #3749 @jxltom- Reuse cart creation logic in API - #3761 by @maarcingebala- Add json fields to models for content/description - #3756 by @michaljelonek+- Fix bug where errors are not returned when creating fulfillment with non-existed order line - #3777 by @jxltom+ - Support fulfill order with 0 quantity only if total quantity is larger than 0 - #3754 by @jxltom+ - Fix storefront styles after bootstrap is updated to 4.3.1 - #3753 by @jxltom+ - Fix logo size in different browser and devices with different sizes - #3722 by @jxltom+ - Add missing type definition for dashboard 2.0 - #3776 by @jxltom+## 2.3.0### APIdiff --cc saleor/graphql/order/mutations/fulfillments.pyindex 50117b5d6e,18aa83fe66..b738bb2d5e--- a/saleor/graphql/order/mutations/fulfillments.py+++ b/saleor/graphql/order/mutations/fulfillments.py@@@ -68,15 -68,8 +68,11 @@@ class FulfillmentCreate(BaseMutation)@classmethoddef clean_lines(cls, order_lines, quantities, errors):+ if errors:+ return errors+for order_line, quantity in zip(order_lines, quantities):- if quantity <= 0:- cls.add_error(- errors, order_line,- 'Quantity must be larger than 0.')- elif quantity > order_line.quantity_unfulfilled:+ if quantity > order_line.quantity_unfulfilled:msg = npgettext_lazy('Fulfill order line mutation error','Only %(quantity)d item remaining to fulfill.',