o
    h                     @   sN   d dl Zd dlZd dlmZ d dlmZ d dlmZm	Z	 G dd dej
Z
dS )    N)Decimal)settings)
migrationsmodelsc                #   @   s  e Zd ZdZdeejgZej	dde
jdddddfde
jd	dd
fde
jddfde
jddfde
jddfde
jddfgddgddej	dde
jdddddfde
jdddfde
jdedddfde
jg dd d!d"fd#e
 fd$e
 fd%e
jddfde
jddfde
jddfde
jddfd&e
jdejj
jjd'ejd(fd)e
jejj
jjd*d+d,fd-e
jejj
jjd.d/d,fgd0gd1hd2dej	d3de
jdddddfd4e
jdd5dd6fd7e
jd8d9d:fde
jd;d<fd=e
jdddfd>e
jejjjdfd?e
jdd@d9dAfdBe
jddCd	dAfdDe
jg dEdFd!d"fdGe
jddfdHe
jdddIfdJe
jdddIfdKe
jddfdLe
jdddIfdMe
jdd5dNfdOe
jdd	dNfd%e
jddfdPe
jddQdRfde
jddfde
jddfdSe
jddejj
jjdTejdUfdVe
jddejj
jjdWdXfd)e
jejj
jjdYd+d,fdZe
jddejj
jjd[ejdUfd-e
jejj
jjdYd/d,fgd\d]gidej	d^de
jdddddfd_e
jg d`d!dafdbe
jddfdce
jddfdde
jejj
jjdedfd,fdge
jdejj
jjejdhfgd\digidej	djde
jdddddfdke
jg dldmd!d"fd7e
jdnd9d:fdoe
jdpdqfdre
jddfdse
jddtdufdde
jejj
jjdvdfd,fgd\dwgidgZdxS )y	MigrationT)hr0003_employeedocumentExpenseCategoryidFID)auto_createdprimary_key	serializeverbose_namenamed   )
max_lengthuniquedescription)blank	is_active)default
created_at)auto_now_add
updated_at)auto_nowzExpense Categories)verbose_name_pluralordering)r   fieldsoptionsBudgetAllocationallocated_amount      )decimal_places
max_digitsspent_amountz0.00)r$   r   r%   allocation_period))monthlyMonthly)	quarterly	Quarterly)yearlyYearlyr(      )choicesr   r   
start_dateend_datenotes
created_bycreated_allocations)null	on_deleterelated_nametoemployeebudget_allocationszhr.employee)r6   r7   r8   categoryallocationszexpenditure.expensecategoryz-created_at)r9   r;   r0   r1   )r   unique_togetherExpenseexpense_number2   )editabler   r   titlez Brief description of the expense   )	help_textr   z0Detailed description of what this expense is for)rD   amountexpense_datevendor_namezName of vendor/supplier)r   rD   r   vendor_contactzVendor contact infostatus))pendingzPending ApprovalapprovedApprovedrejectedRejected)paidPaidrJ   submitted_atapproved_at)r   r5   rejected_atrejection_reasonpaid_atpayment_method)r   r   payment_referenceis_reimbursablez2Should this expense be reimbursed to the employee?)r   rD   approved_byapproved_expenses)r   r5   r6   r7   r8   budget_allocationzexpenditure.budgetallocation)r   r5   r6   r8   expensesrejected_byrejected_expensesr   z-submitted_atExpenseApprovalLogaction))	submitted	SubmittedrK   rN   )rQ   zMarked as Paid)modifiedModified)r/   r   comments	timestampexpenseapproval_logszexpenditure.expenseperformed_by)r5   r6   r8   z
-timestampExpenseAttachmentattachment_type))receiptReceipt)invoiceInvoice)photoPhoto)documentDocument)otherOtherrn   zDescription of the attachmentfilezexpenses/attachments/)	upload_touploaded_at	file_sizezFile size in bytes)rA   rD   attachmentsz-uploaded_atN)__name__
__module____qualname__initialr   swappable_dependencyr   AUTH_USER_MODELdependenciesCreateModelr   BigAutoField	CharField	TextFieldBooleanFieldDateTimeFieldDecimalFieldr   	DateField
ForeignKeydjangodbdeletionSET_NULLCASCADEutilstimezonenow	FileFieldPositiveIntegerField
operations r   r   C/var/www/html/optinet_system/expenditure/migrations/0001_initial.pyr   
   s    
	

  !	
r   )django.db.models.deletionr   django.utils.timezonedecimalr   django.confr   	django.dbr   r   r   r   r   r   r   <module>   s   