grid( row = 4, column = 1, sticky = E)ĬhildName = Label( create_invoice, text = 'Name of child'). grid( row = 3, column = 1, sticky = E)īCancelEx = Button( add_exception, text = 'Cancel'). grid( row = 2, column = 0)ĮntDetails = Listbox( add_exception, height = 4, borderwidth = 0)īSaveEx = Button( add_exception, text = 'Save', command = writeException). grid( row = 1, column = 0)ĮxDetails = Label( add_exception, text = 'Details'). grid( row = 11, column = 1, sticky = E)ĮxDate = Label( add_exception, text = 'Date'). grid( row = 10, column = 1, sticky = E)īCancel = Button( add_child, text = 'cancel'). grid( row = 7, column = 0, sticky = E)īOk = Button( add_child, text = 'ok', command = writeChild). LFri = Label( add_child, text = 'Friday hours').
![dj invoicer dj invoicer](https://i.pinimg.com/originals/7d/ea/a7/7deaa748c7e2907cf3b648dd442523bf.jpg)
LThu = Label( add_child, text = 'Thursday hours'). LWed = Label( add_child, text = 'Wednesday hours'). LTue = Label( add_child, text = 'Tuesday hours'). LMon = Label( add_child, text = 'Monday hours'). LDob = Label( add_child, text = 'D.O.B.'). LName = Label( add_child, text = 'name'). Mess = Label( text_display, text = "this is the text display area"). # Other frames: text_display add_child add_exception create_invoice grid( row = 0, column = 0, columnspan = 2) pack( side = LEFT, padx = 2, pady = 2)Ĭ = Button( toolbar, text = "Create invoice", command = createInvoice)Ĭ. pack( side = LEFT, padx = 2, pady = 2)ī = Button( toolbar, text = "Add exception", command = addException)ī. add_cascade( label = "File", menu = filemenu)Ī = Button( toolbar, text = "Add child", command = addChild)Ī. add_command( label = "Help") # need to add command in add_command( label = "Exit", command = app. Print( calcFees()) #this is just for testing, to make sure i can call a function within a function properly. Sd_date = date( int( sd_str), int( sd_str), int( sd_str))Įd_date = date( int( ed_str), int( ed_str), int( ed_str))ĭef calcFees(): # multiplies the return value of calcDays() by the recorded fees level (need to work out where to store this) If dict contains child name, do the thing, if not move onto the next lineĭef calcDays(): # counts the number of days in the queried date range and substracts the return value of checkExceptions() I imagine this will be a matter of 'for line in file, make that the dict. Obviously needs to look up child against data held.
![dj invoicer dj invoicer](https://images.template.net/wp-content/uploads/2016/10/14053904/Sample-Dj-Invoice-Template.jpg)
This will be a list with a child-specific object nameĭef checkExceptions(): # this function checks whether the queried date range includes any of the date exceptions and returns how many. grid( row = 1, column = 0, sticky = W)ĭef writeChild(): # this function writes the child data to fileĭef writeException(): # this function writes the date exceptions to file. grid( row = 1, column = 0, sticky = W)ĭef createInvoice(): # shows the create invoice frame and hides the others when the add child button is clickedĬreate_invoice. grid( row = 1, column = 0, sticky = W)ĭef addException(): # shows the add exception frame and hides the others when the add child button is clickedĪdd_exception. I think it can be happily done with just a csv file.ĭef addChild(): # shows the add child frame and hides the others when the add child button is clickedĪdd_child. # I realise the information will need to be stored somewhere - so a text file, or # There needs to be a screen on which the invoice is returned in a printable format. # There needs to be a screen for entering the parameters of the invoice. # Screens: There needs to be a place to create a new child and enter details. And attributes could be added and changed at any time. # to the system would create a new instance of the child class, and add the info # would be name DOB contact number, stuff like that maybe. # possibly one attribute for each day of the week, or a total weekly hours. # 'child' class would need to have attributes representing the hours they are in # I need to be able to enter information into attributes of a 'child' class. # list of any extras that have been applied to any child account # it will return the charge for that period.You will also be able to return a # hours were, when any extra or reduced costs were. # about standard hours for each child, standard cost per hour and when any extra
![dj invoicer dj invoicer](https://i.ytimg.com/vi/H8jRjVlZtaM/maxresdefault.jpg)
# It will run off of calculations and a database. # This is going to be a program to create invoices for a childminder (ie Sarah).