Commit bb9f625e authored by Gladys Forte's avatar Gladys Forte

merge

parents 01917a57 081c7140
......@@ -695,9 +695,6 @@ def cancelled_user_trigger(form_code):
# NOTIF MSG FOR NEXT APPROVER
msg = CANCEL_MESSAGE.split(';')[0]
# if n_approver.delegation.name.lower() == 'vendor/implementor':
# msg = VENDOR_ACKNOWLEDGE_MESSAGE.split(';')[0]
# next approver details --------------------------------------------------
receiver_instance = get_account_details(n_approver.user.code)
receiver_name = receiver_instance.values_list('name', flat=True)[0]
......
......@@ -198,7 +198,7 @@ class BatchUploadViewSet(viewsets.ModelViewSet):
)
return Response(
{"message": message},
status=status.HTTP_400_BAD_REQUEST
status=status.HTTP_200_OK
)
@transaction.atomic
......@@ -256,13 +256,15 @@ class BatchUploadViewSet(viewsets.ModelViewSet):
raise ParseError(
department_error
)
# user type authorization and user type per user
else:
user_department = Department.objects.get(
name__icontains=keys['department']
)
default_app = Application.objects.filter(
excel_code=keys['default_app']
excel_code=keys['Default_app']
).first()
dept_code = Department.objects.get(
......
......@@ -130,7 +130,6 @@ class Company(AuditClass):
def save(self, *args, **kwargs):
super(Company, self).save(*args, **kwargs)
if self.code == 'com':
print(self.code)
code = enums.GenerateCode.APP.value
code = number_generator(enums.GenerateCode.COMPANY.value, self.id)
Company.objects.filter(id=self.id).update(code=code)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment