move CurrencyField to counter

This commit is contained in:
imperosol
2025-03-14 16:04:16 +01:00
committed by Thomas Girod
parent 6dfd4e16e2
commit 002554b802
11 changed files with 55 additions and 53 deletions

View File

@ -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):
@ -55,7 +55,7 @@ class Migration(migrations.Migration):
("type_id", models.IntegerField(verbose_name="product type id")),
(
"product_unit_price",
accounting.models.CurrencyField(
counter.fields.CurrencyField(
decimal_places=2, max_digits=12, verbose_name="unit price"
),
),
@ -120,7 +120,7 @@ class Migration(migrations.Migration):
("type_id", models.IntegerField(verbose_name="product type id")),
(
"product_unit_price",
accounting.models.CurrencyField(
counter.fields.CurrencyField(
decimal_places=2, max_digits=12, verbose_name="unit price"
),
),

View File

@ -25,8 +25,8 @@ from django.db.models import F, OuterRef, Subquery, Sum
from django.utils.functional import cached_property
from django.utils.translation import gettext_lazy as _
from accounting.models import CurrencyField
from core.models import User
from counter.fields import CurrencyField
from counter.models import BillingInfo, Counter, Customer, Product, Refilling, Selling