Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Merge branch 'master' into update-default-decimal-places

IKarbowiakcaef3b0d486c
diff --cc saleor/checkout/migrations/0029_auto_20200904_0529.py
index afb39a40c7,0000000000..10291c6f38
mode 100644,000000..100644
--- a/saleor/checkout/migrations/0029_auto_20200904_0529.py
+++ b/saleor/checkout/migrations/0029_auto_20200904_0529.py
@@@ -1,18 -1,0 +1,18 @@@
- # Generated by Django 3.1 on 2020-09-02 12:49
++# Generated by Django 3.1 on 2020-09-04 05:29
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
- ("checkout", "0027_auto_20200810_1415"),
++ ("checkout", "0028_auto_20200824_1019"),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name="checkout",
+ name="discount_amount",
+ field=models.DecimalField(decimal_places=3, default=0, max_digits=12),
+ ),
+ ]
diff --cc saleor/graphql/product/tests/test_product.py
index 387312a284,d23c3c1c09..04f814685e
--- a/saleor/graphql/product/tests/test_product.py
+++ b/saleor/graphql/product/tests/test_product.py
@@@ -1720,9 -1905,10 +1902,10 @@@ def test_update_product
$slug: String!,
$descriptionJson: JSONString!,
$isPublished: Boolean!,
+ $visibleInListings: Boolean!,
$chargeTaxes: Boolean!,
$taxCode: String!,
- $basePrice: Decimal!,
+ $basePrice: MoneyScalar!,
$attributes: [AttributeValueInput!]) {
productUpdate(
id: $productId,
diff --cc saleor/graphql/schema.graphql
index 7bdd272b7a,e7eee51dc4..3f8f1968d6
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@@ -3719,7 -3724,8 +3726,8 @@@ input ProductCreateInput
weight: WeightScalar
sku: String
trackInventory: Boolean
- basePrice: Decimal
+ basePrice: MoneyScalar
+ visibleInListings: Boolean
productType: ID!
stocks: [StockInput!]
}
@@@ -3850,7 -3858,8 +3860,8 @@@ input ProductInput
weight: WeightScalar
sku: String
trackInventory: Boolean
- basePrice: Decimal
+ basePrice: MoneyScalar
+ visibleInListings: Boolean
}
input ProductOrder {
diff --cc saleor/product/migrations/0123_auto_20200904_0529.py
index e3cb30f3b6,0000000000..605c7c1b0a
mode 100644,000000..100644
--- a/saleor/product/migrations/0123_auto_20200904_0529.py
+++ b/saleor/product/migrations/0123_auto_20200904_0529.py
@@@ -1,32 -1,0 +1,32 @@@
- # Generated by Django 3.1 on 2020-09-02 12:49
++# Generated by Django 3.1 on 2020-09-04 05:29
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
- ("product", "0121_auto_20200810_1415"),
++ ("product", "0122_auto_20200828_1135"),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name="product",
+ name="minimal_variant_price_amount",
+ field=models.DecimalField(
+ blank=True, decimal_places=3, max_digits=12, null=True
+ ),
+ ),
+ migrations.AlterField(
+ model_name="productvariant",
+ name="cost_price_amount",
+ field=models.DecimalField(
+ blank=True, decimal_places=3, max_digits=12, null=True
+ ),
+ ),
+ migrations.AlterField(
+ model_name="productvariant",
+ name="price_amount",
+ field=models.DecimalField(decimal_places=3, max_digits=12),
+ ),
+ ]