Renamed Service Charges to Incentives including account fixture and permission

replaced my custom ValidationErro with FastAPI HTTPException
Fixed?:
 Attendance
 Employee Attendance
This commit is contained in:
tanshu
2020-05-12 20:52:07 +05:30
parent de4d248de7
commit 9c9f0dfdd6
33 changed files with 373 additions and 314 deletions

View File

@ -38,7 +38,7 @@ from brewman.models.voucher import (
Product,
SalaryDeduction,
Voucher,
ServiceCharge,
Incentive,
DbImage,
)
@ -137,7 +137,7 @@ def main(argv=sys.argv):
Role("Stock Movement", uuid.UUID("20b707ee-2b59-41ad-be87-76d5fe1efca8")),
Role("Purchases", uuid.UUID("cf7019c8-3fd3-45b0-9a42-601029ce5b71")),
Role("Dashboard", uuid.UUID("53eecc09-bd06-4890-b6f5-6885dda762d4")),
Role("Service Charge", uuid.UUID("99b56390-96c2-4f3d-8b0f-5ae3c868594f")),
Role("Incentive", uuid.UUID("99b56390-96c2-4f3d-8b0f-5ae3c868594f")),
Role("Maintenance", uuid.UUID("770532e4-21de-4712-8a6b-4ff9fd63a503")),
]
@ -229,7 +229,7 @@ def main(argv=sys.argv):
),
Account(
2,
"Service Charges",
"Incentives",
11,
False,
True,