wbaccounting 1.61.3__tar.gz → 1.61.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/PKG-INFO +1 -1
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_serializers/test_transactions.py +4 -4
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/menu/booking_entry.py +1 -2
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/menu/cashflows.py +1 -2
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/menu/entry_accounting_information.py +1 -2
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/menu/invoice.py +1 -2
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/menu/invoice_type.py +1 -2
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/menu/transactions.py +1 -2
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/.gitignore +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/pyproject.toml +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/admin/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/admin/booking_entry.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/admin/entry_accounting_information.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/admin/invoice.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/admin/invoice_type.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/admin/transactions.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/apps.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/dynamic_preferences_registry.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/factories/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/factories/booking_entry.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/factories/entry_accounting_information.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/factories/invoice.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/factories/transactions.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/files/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/files/invoice_document_file.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/files/utils.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/generators/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/generators/base.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/io/handlers/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/io/handlers/transactions.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/io/parsers/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/io/parsers/societe_generale_lux.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/io/parsers/societe_generale_lux_prenotification.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/migrations/0001_initial_squashed_squashed_0005_alter_bookingentry_counterparty_and_more.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/migrations/0006_alter_invoice_status.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/migrations/0007_alter_invoice_options.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/migrations/0008_alter_invoice_options.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/migrations/0009_invoicetype_alter_bookingentry_options_and_more.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/migrations/0010_alter_bookingentry_options.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/migrations/0011_transaction.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/migrations/0012_entryaccountinginformation_external_invoice_users.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/migrations/0013_vat_alter_entryaccountinginformation_vat_vatrate.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/migrations/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/models/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/models/booking_entry.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/models/entry_accounting_information.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/models/invoice.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/models/invoice_type.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/models/model_tasks.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/models/transactions.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/permissions.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/processors/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/processors/dummy_processor.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/serializers/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/serializers/booking_entry.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/serializers/consolidated_invoice.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/serializers/entry_accounting_information.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/serializers/invoice.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/serializers/invoice_type.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/serializers/transactions.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/conftest.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_displays/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_displays/test_booking_entries.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_models/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_models/test_booking_entries.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_models/test_entry_accounting_information.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_models/test_invoice_types.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_models/test_invoices.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_models/test_transactions.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_processors.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_serializers/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_serializers/test_booking_entries.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_serializers/test_entry_accounting_information.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_serializers/test_invoice_types.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/urls.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/booking_entry.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/buttons/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/buttons/booking_entry.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/buttons/entry_accounting_information.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/buttons/invoice.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/cashflows.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/display/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/display/booking_entry.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/display/cashflows.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/display/entry_accounting_information.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/display/invoice.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/display/invoice_type.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/display/transactions.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/endpoints/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/endpoints/invoice.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/entry_accounting_information.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/invoice.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/invoice_type.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/menu/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/titles/__init__.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/titles/booking_entry.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/titles/entry_accounting_information.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/titles/invoice.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/titles/invoice_type.py +0 -0
- {wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/transactions.py +0 -0
{wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_serializers/test_transactions.py
RENAMED
|
@@ -35,9 +35,9 @@ class TestTransactionModelSerializer:
|
|
|
35
35
|
"_to_bank_account": BankingContactRepresentationSerializer(transaction.bank_account).data,
|
|
36
36
|
"currency": transaction.currency.pk,
|
|
37
37
|
"_currency": CurrencyRepresentationSerializer(transaction.currency).data,
|
|
38
|
-
"fx_rate":
|
|
39
|
-
"value_local_ccy":
|
|
40
|
-
"value":
|
|
38
|
+
"fx_rate": round(transaction.fx_rate, 4),
|
|
39
|
+
"value_local_ccy": round(transaction.value_local_ccy, 2),
|
|
40
|
+
"value": round(transaction.value, 2),
|
|
41
41
|
"bank_account_currency_symbol": transaction.bank_account.currency.symbol,
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -68,6 +68,6 @@ class TestTransactionRepresentationSerializer:
|
|
|
68
68
|
"booking_date": transaction.booking_date.strftime("%Y-%m-%d"),
|
|
69
69
|
"bank_account": transaction.bank_account.id,
|
|
70
70
|
"_bank_account": BankingContactRepresentationSerializer(transaction.bank_account).data,
|
|
71
|
-
"value":
|
|
71
|
+
"value": round(transaction.value, 2),
|
|
72
72
|
"_detail": reverse("wbaccounting:transaction-detail", args=[transaction.pk]),
|
|
73
73
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
from wbcore.menus import ItemPermission, MenuItem
|
|
2
|
-
from wbcore.permissions.shortcuts import is_internal_user
|
|
3
2
|
|
|
4
3
|
BOOKINGENTRY_MENUITEM = MenuItem(
|
|
5
4
|
label="Bookings",
|
|
6
5
|
endpoint="wbaccounting:bookingentry-list",
|
|
7
6
|
permission=ItemPermission(
|
|
8
|
-
method=lambda request:
|
|
7
|
+
method=lambda request: request.user.is_internal, permissions=["wbaccounting.view_bookingentry"]
|
|
9
8
|
),
|
|
10
9
|
add=MenuItem(
|
|
11
10
|
label="Create Booking",
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
from wbcore.menus import ItemPermission, MenuItem
|
|
2
|
-
from wbcore.permissions.shortcuts import is_internal_user
|
|
3
2
|
|
|
4
3
|
CASHFLOW_MENUITEM = MenuItem(
|
|
5
4
|
label="Cashflow",
|
|
6
5
|
endpoint="wbaccounting:futurecashflow-list",
|
|
7
6
|
permission=ItemPermission(
|
|
8
|
-
method=lambda request:
|
|
7
|
+
method=lambda request: request.user.is_internal, permissions=["wbaccounting.view_transaction"]
|
|
9
8
|
),
|
|
10
9
|
)
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
from wbcore.menus import ItemPermission, MenuItem
|
|
2
|
-
from wbcore.permissions.shortcuts import is_internal_user
|
|
3
2
|
|
|
4
3
|
ENTRYACCOUNTINGINFORMATION_MENUITEM = MenuItem(
|
|
5
4
|
label="Counterparties",
|
|
6
5
|
endpoint="wbaccounting:entryaccountinginformation-list",
|
|
7
6
|
permission=ItemPermission(
|
|
8
|
-
method=lambda request:
|
|
7
|
+
method=lambda request: request.user.is_internal,
|
|
9
8
|
permissions=["wbaccounting.view_entryaccountinginformation"],
|
|
10
9
|
),
|
|
11
10
|
)
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
from wbcore.menus import ItemPermission, MenuItem
|
|
2
|
-
from wbcore.permissions.shortcuts import is_internal_user
|
|
3
2
|
|
|
4
3
|
INVOICE_MENUITEM = MenuItem(
|
|
5
4
|
label="Invoices",
|
|
6
5
|
endpoint="wbaccounting:invoice-list",
|
|
7
6
|
permission=ItemPermission(
|
|
8
|
-
method=lambda request:
|
|
7
|
+
method=lambda request: request.user.is_internal, permissions=["wbaccounting.view_invoice"]
|
|
9
8
|
),
|
|
10
9
|
add=MenuItem(
|
|
11
10
|
label="Create Invoice",
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
from wbcore.menus import ItemPermission, MenuItem
|
|
2
|
-
from wbcore.permissions.shortcuts import is_internal_user
|
|
3
2
|
|
|
4
3
|
INVOICETYPE_MENUITEM = MenuItem(
|
|
5
4
|
label="Invoice Types",
|
|
6
5
|
endpoint="wbaccounting:invoicetype-list",
|
|
7
6
|
permission=ItemPermission(
|
|
8
|
-
method=lambda request:
|
|
7
|
+
method=lambda request: request.user.is_internal, permissions=["wbaccounting.view_invoicetype"]
|
|
9
8
|
),
|
|
10
9
|
add=MenuItem(
|
|
11
10
|
label="Create Invoice Type",
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
from wbcore.menus import ItemPermission, MenuItem
|
|
2
|
-
from wbcore.permissions.shortcuts import is_internal_user
|
|
3
2
|
|
|
4
3
|
TRANSACTION_MENUITEM = MenuItem(
|
|
5
4
|
label="Transactions",
|
|
6
5
|
endpoint="wbaccounting:transaction-list",
|
|
7
6
|
permission=ItemPermission(
|
|
8
|
-
method=lambda request:
|
|
7
|
+
method=lambda request: request.user.is_internal, permissions=["wbaccounting.view_transaction"]
|
|
9
8
|
),
|
|
10
9
|
add=MenuItem(
|
|
11
10
|
label="Create Transaction",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/admin/entry_accounting_information.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/factories/entry_accounting_information.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/migrations/0006_alter_invoice_status.py
RENAMED
|
File without changes
|
{wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/migrations/0007_alter_invoice_options.py
RENAMED
|
File without changes
|
{wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/migrations/0008_alter_invoice_options.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/models/entry_accounting_information.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/serializers/consolidated_invoice.py
RENAMED
|
File without changes
|
{wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/serializers/entry_accounting_information.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_displays/test_booking_entries.py
RENAMED
|
File without changes
|
|
File without changes
|
{wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_models/test_booking_entries.py
RENAMED
|
File without changes
|
|
File without changes
|
{wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_models/test_invoice_types.py
RENAMED
|
File without changes
|
|
File without changes
|
{wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/tests/test_models/test_transactions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wbaccounting-1.61.3 → wbaccounting-1.61.4}/wbaccounting/viewsets/entry_accounting_information.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|