Saturday, January 29, 2022

Syntax to Generate salary for next month

Hi,

I came across the problem, how to generate salary for upcoming month ( records are of month January in db)

 

 

I have records in django db.

Insert of new record

update / delete / hide    of record functions are ok

 

Request your support, to generate the salary for month February (by clicking on generate salary button) see pic2 below.

 

syntax to code in views??

 

model.py

Fields are :    month , cmonth, name, salary

 

* month field is in list format , (values from January to December)

                                                                                          pic1

                                                                                         

 

                                                                                          pic2

No comments:

Post a Comment