changes
This commit is contained in:
@@ -27,6 +27,7 @@ def account_entry_api(code, amount, content, type, category, userid, ref=None, p
|
||||
entry_type = Entry_Type.objects.get(code=type)
|
||||
entry_category = Entry_Category.objects.get(id=category)
|
||||
system_date = date if date else datetime.now().strftime("%Y-%m-%d")
|
||||
amount = float(amount)
|
||||
|
||||
with transaction.atomic():
|
||||
account = Internal_Account.objects.select_for_update().get(code=code)
|
||||
|
||||
Reference in New Issue
Block a user