Project

General

Profile

Download (488 Bytes) Statistics
| Branch: | Tag: | Revision:

calebasse / calebasse / facturation / forms.py @ 017f4158

1
from django import forms
2
from django.forms import ModelForm, Form
3

    
4
from models import Invoice
5

    
6
class CreateInvoiceForm(ModelForm):
7
    class Meta:
8
        model = Invoice
9

    
10

    
11
class EditInvoiceForm(ModelForm):
12
    class Meta:
13
        model = Invoice
14

    
15
class CloseInvoicingForm(Form):
16
    invoicing_id = forms.IntegerField()
17
    service_name = forms.CharField()
18
    date = forms.DateField(label=u'Date', localize=True)
19

    
20
class FacturationRebillForm(Form):
21
    invoice_id = forms.IntegerField()
(5-5/16)