feat: improved order payment lifecycle
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
# Generated by Django 5.1.4 on 2025-01-16 17:00
|
||||
|
||||
import django.db.models.deletion
|
||||
from decimal import Decimal
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("shop", "0004_shopsettings_tpv_domain"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name="order",
|
||||
options={
|
||||
"ordering": ("creation_date",),
|
||||
"verbose_name": "pedido",
|
||||
"verbose_name_plural": "pedidos",
|
||||
},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="order",
|
||||
name="amount_paid",
|
||||
field=models.DecimalField(
|
||||
decimal_places=2,
|
||||
default=Decimal("0.00"),
|
||||
max_digits=11,
|
||||
verbose_name="cantidad pagada",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="order",
|
||||
name="from_cart",
|
||||
field=models.ForeignKey(
|
||||
blank=True,
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.SET_NULL,
|
||||
to="shop.cart",
|
||||
verbose_name="carrito de origen de pedido",
|
||||
),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user