mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
move CurrencyField to counter
This commit is contained in:
@ -4,7 +4,7 @@ import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
import accounting.models
|
||||
import counter.fields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@ -78,7 +78,7 @@ class Migration(migrations.Migration):
|
||||
),
|
||||
(
|
||||
"amount",
|
||||
accounting.models.CurrencyField(
|
||||
counter.fields.CurrencyField(
|
||||
decimal_places=2, max_digits=12, verbose_name="amount"
|
||||
),
|
||||
),
|
||||
@ -145,19 +145,19 @@ class Migration(migrations.Migration):
|
||||
),
|
||||
(
|
||||
"purchase_price",
|
||||
accounting.models.CurrencyField(
|
||||
counter.fields.CurrencyField(
|
||||
decimal_places=2, max_digits=12, verbose_name="purchase price"
|
||||
),
|
||||
),
|
||||
(
|
||||
"selling_price",
|
||||
accounting.models.CurrencyField(
|
||||
counter.fields.CurrencyField(
|
||||
decimal_places=2, max_digits=12, verbose_name="selling price"
|
||||
),
|
||||
),
|
||||
(
|
||||
"special_selling_price",
|
||||
accounting.models.CurrencyField(
|
||||
counter.fields.CurrencyField(
|
||||
decimal_places=2,
|
||||
max_digits=12,
|
||||
verbose_name="special selling price",
|
||||
@ -240,7 +240,7 @@ class Migration(migrations.Migration):
|
||||
),
|
||||
(
|
||||
"amount",
|
||||
accounting.models.CurrencyField(
|
||||
counter.fields.CurrencyField(
|
||||
decimal_places=2, max_digits=12, verbose_name="amount"
|
||||
),
|
||||
),
|
||||
@ -324,7 +324,7 @@ class Migration(migrations.Migration):
|
||||
("label", models.CharField(max_length=64, verbose_name="label")),
|
||||
(
|
||||
"unit_price",
|
||||
accounting.models.CurrencyField(
|
||||
counter.fields.CurrencyField(
|
||||
decimal_places=2, max_digits=12, verbose_name="unit price"
|
||||
),
|
||||
),
|
||||
|
@ -4,7 +4,7 @@ import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
import accounting.models
|
||||
import counter.fields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@ -67,7 +67,7 @@ class Migration(migrations.Migration):
|
||||
),
|
||||
(
|
||||
"value",
|
||||
accounting.models.CurrencyField(
|
||||
counter.fields.CurrencyField(
|
||||
max_digits=12, verbose_name="value", decimal_places=2
|
||||
),
|
||||
),
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
import accounting.models
|
||||
import counter.fields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@ -14,7 +14,7 @@ class Migration(migrations.Migration):
|
||||
migrations.AlterField(
|
||||
model_name="customer",
|
||||
name="amount",
|
||||
field=accounting.models.CurrencyField(
|
||||
field=counter.fields.CurrencyField(
|
||||
decimal_places=2, default=0, max_digits=12, verbose_name="amount"
|
||||
),
|
||||
),
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
import accounting.models
|
||||
import counter.fields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@ -18,7 +18,7 @@ class Migration(migrations.Migration):
|
||||
migrations.AlterField(
|
||||
model_name="product",
|
||||
name="purchase_price",
|
||||
field=accounting.models.CurrencyField(
|
||||
field=counter.fields.CurrencyField(
|
||||
decimal_places=2,
|
||||
help_text="Initial cost of purchasing the product",
|
||||
max_digits=12,
|
||||
@ -28,7 +28,7 @@ class Migration(migrations.Migration):
|
||||
migrations.AlterField(
|
||||
model_name="product",
|
||||
name="special_selling_price",
|
||||
field=accounting.models.CurrencyField(
|
||||
field=counter.fields.CurrencyField(
|
||||
decimal_places=2,
|
||||
help_text="Price for barmen during their permanence",
|
||||
max_digits=12,
|
||||
|
Reference in New Issue
Block a user