How to calculate appreciation in django

56 views
Skip to first unread message

Ernest Thuku

unread,
Sep 16, 2020, 11:44:16 AM9/16/20
to Django users
Hello guys,
I have developed a system to manage assets. It is more like a stock management system whereby the system has a reorder level and such. Anyone who can help me to apply appreciation/depreciation code?

Akorede Habeebullah

unread,
Sep 16, 2020, 11:48:25 AM9/16/20
to django...@googlegroups.com
Can you be more elaborate?
How does the system work?

Akorede Habeebullah A.


On Wed, Sep 16, 2020 at 4:43 PM Ernest Thuku <ernes...@gmail.com> wrote:
Hello guys,
I have developed a system to manage assets. It is more like a stock management system whereby the system has a reorder level and such. Anyone who can help me to apply appreciation/depreciation code?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPsfuoeLeeXJx3ZGA8X8vD3t1W7CYb3xi2t9%2BLUqXpdFuHD_0Q%40mail.gmail.com.

Ernest Thuku

unread,
Sep 16, 2020, 12:00:08 PM9/16/20
to Django users
The system is a managing system whereby you maage Items like the stock system, this one manages assets likes furniters,computers etc. The item is added in the system and the system can be able to offer an alert when a certain item is below where the reorder level is. The system can also be able to alert on maintenance dates whereby after a certain period it alerts it need to be maintained. I wanted to add a functionality whereby the system can be able to calculate either depreciation or appreciation on the asset.


Ernest Thuku

unread,
Sep 16, 2020, 12:03:56 PM9/16/20
to Django users
This is an example of a reorder level function in views.py
def reorder_level(request, pk):
queryset = Asset.objects.get(id=pk)
form = ReorderLevelForm(request.POST or None, instance=queryset)
if form.is_valid():
instance = form.save(commit=False)
instance.save()
messages.success(request, "Reorder level for " + str(instance.item_name) + " is updated to " + str(instance.reorder_level))
return redirect("list_items")
context = {
   "instance": queryset,
   "form": form,
}
return render(request, "add_items.html", context)

coolguy

unread,
Sep 16, 2020, 3:36:03 PM9/16/20
to Django users
Did you setup the limits and maintenance dates in your asset models?

If yes, then did you create any view that is available to designated user who can run that report to see what is due for maintenance and re-ordering.

Please share more detail..

Ernest Thuku

unread,
Sep 16, 2020, 4:40:37 PM9/16/20
to Django users
m concen is how I can calculate appreciation...the formula

Reply all
Reply to author
Forward
0 new messages