Chore: Upgraded to Angular v17 and all the refactoring for that
Chore: Updated all dependencies in overlord
This commit is contained in:
1 parent
43cb697737
commit
34b4227148
89 files changed
+776
-613
No files matched your search
@@ -5,6 +5,7 @@ Revises: a1372ed99c45
|
||||
Create Date: 2023-04-14 07:50:22.110724
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
|
||||
from alembic import op
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0bf3d70ee7de
|
||||
Create Date: 2022-10-31 06:23:13.091598
|
||||
|
||||
"""
|
||||
|
||||
from hashlib import md5
|
||||
|
||||
import sqlalchemy as sa
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: ba0fff092981
|
||||
Create Date: 2023-10-16 16:26:45.922654
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
|
||||
from alembic import op
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 12262aadbc08
|
||||
Create Date: 2023-08-07 13:01:05.401492
|
||||
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 2438cd581f00
|
||||
Create Date: 2023-12-28 12:45:01.275322
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
|
||||
from alembic import op
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 185c674cc392
|
||||
Create Date: 2023-03-31 05:03:40.408240
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
|
||||
from sqlalchemy import func
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 48af31eb6f3f
|
||||
Create Date: 2023-08-11 18:12:51.293741
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
|
||||
from alembic import op
|
||||
|
||||
@@ -245,7 +245,7 @@ def delete_with_data(account: Account, db: Session) -> None:
|
||||
assert acc_jnl is not None
|
||||
if sus_jnl is None:
|
||||
acc_jnl.account = suspense_account
|
||||
voucher.narration += f"\nSuspense \u20B9{acc_jnl.amount:,.2f} is {account.name}"
|
||||
voucher.narration += f"\nSuspense \u20b9{acc_jnl.amount:,.2f} is {account.name}"
|
||||
else:
|
||||
amount = (sus_jnl.debit * sus_jnl.amount) + (acc_jnl.debit * acc_jnl.amount)
|
||||
db.delete(acc_jnl)
|
||||
@@ -254,7 +254,7 @@ def delete_with_data(account: Account, db: Session) -> None:
|
||||
else:
|
||||
sus_jnl.amount = abs(amount)
|
||||
sus_jnl.debit = -1 if amount < 0 else 1
|
||||
voucher.narration += f"\nDeleted \u20B9{acc_jnl.amount * acc_jnl.debit:,.2f} of {account.name}"
|
||||
voucher.narration += f"\nDeleted \u20b9{acc_jnl.amount * acc_jnl.debit:,.2f} of {account.name}"
|
||||
if voucher.voucher_type in (
|
||||
VoucherType.PAYMENT,
|
||||
VoucherType.RECEIPT,
|
||||
|
||||
@@ -232,7 +232,7 @@ def delete_with_data(employee: Employee, db: Session) -> None:
|
||||
assert acc_jnl is not None
|
||||
if sus_jnl is None:
|
||||
acc_jnl.account = suspense_account
|
||||
voucher.narration += f"\nSuspense \u20B9 {acc_jnl.amount:,.2f} is {employee.name}"
|
||||
voucher.narration += f"\nSuspense \u20b9 {acc_jnl.amount:,.2f} is {employee.name}"
|
||||
else:
|
||||
amount = (sus_jnl.debit * sus_jnl.amount) + (acc_jnl.debit * acc_jnl.amount)
|
||||
if acc_jnl.employee_benefit is not None:
|
||||
@@ -243,7 +243,7 @@ def delete_with_data(employee: Employee, db: Session) -> None:
|
||||
else:
|
||||
sus_jnl.amount = abs(amount)
|
||||
sus_jnl.debit = -1 if amount < 0 else 1
|
||||
voucher.narration += f"\nDeleted \u20B9 {acc_jnl.amount * acc_jnl.debit:,.2f} of {employee.name}"
|
||||
voucher.narration += f"\nDeleted \u20b9 {acc_jnl.amount * acc_jnl.debit:,.2f} of {employee.name}"
|
||||
if voucher.voucher_type in (
|
||||
VoucherType.PAYMENT,
|
||||
VoucherType.RECEIPT,
|
||||
|
||||
@@ -95,7 +95,7 @@ def save_starred(date_: date, db: Session) -> list[uuid.UUID]:
|
||||
|
||||
for other in others:
|
||||
if voucher.voucher_type != VoucherType.OPENING_ACCOUNTS:
|
||||
voucher.narration += f"\nSuspense \u20B9{other.amount:,.2f} is {other.account.name}"
|
||||
voucher.narration += f"\nSuspense \u20b9{other.amount:,.2f} is {other.account.name}"
|
||||
if other.employee_benefit:
|
||||
db.delete(other.employee_benefit)
|
||||
if other.incentive:
|
||||
|
||||
Reference in new issue
Block a user