Table llx facture: Difference between revisions

Jump to navigation Jump to search
Line 14: Line 14:


= Structure =
= Structure =
== Table ==
'''Version 1.1 2009/10/07'''
{|  align="left" width="100%" border="0" rules="all" cellpadding="1" cellspacing="0"  style="margin: 0 0 1px 1px; border: 1px solid #dddddd; border-right-width: 2px; border-bottom-width: 2px; background-color: #f3f3f5"
{|  align="left" width="100%" border="0" rules="all" cellpadding="1" cellspacing="0"  style="margin: 0 0 1px 1px; border: 1px solid #dddddd; border-right-width: 2px; border-bottom-width: 2px; background-color: #f3f3f5"
  |style="background-color: #e9e9ef"| <b>Field</b>
  |style="background-color: #e9e9ef"| <b>Field</b>
Line 25: Line 27:
| rowid  
| rowid  
| int(11)  
| int(11)  
| &nbsp;
| NO
| PRI
| PRI
| NULL
|  
| auto_increment  
| auto_increment  
| technical index
| technical index
Line 33: Line 35:
| facnumber  
| facnumber  
| varchar(30)  
| varchar(30)  
|  
| NO
| UNI  
| UNI  
|
|
Line 41: Line 43:
| entity
| entity
| int(11)  
| int(11)  
| &nbsp;
| NO
|  
| UNI
| 1
| 1
|  
|  
Line 49: Line 51:
| type  
| type  
| smallint(6)  
| smallint(6)  
|
| NO
|
|
| 0  
| 0  
Line 61: Line 63:
| NULL  
| NULL  
|  
|  
|
| costumer reference
|-
|-
| increment  
| increment  
Line 73: Line 75:
| fk_soc  
| fk_soc  
| int(11)  
| int(11)  
|
| NO
| MUL  
| MUL  
| 0  
| 0  
Line 102: Line 104:
|
|
| validation date of invoice
| validation date of invoice
|-
| tms
| timestamp
| NO
|
| CURRENT_TIMESTAMP
|
| last update date
|-
|-
| paye  
| paye  
| smallint(6)  
| smallint(6)  
|
| NO
|
|
| 0
| 0
|
|
| is the invoice payed?
| is the invoice payed (1=yes, 0=otherwise) ?
|-
|-
| amount
| amount
| double
| real
|
| NO
|  
|  
| 0  
| 0  
Line 120: Line 130:
|-
|-
| remise_percent
| remise_percent
| double
| real
| YES  
| YES  
|
|
| 0  
| 0  
|
|
|  
| discount percentage
|-
|-
| remise_absolue  
| remise_absolue  
| double
| real
| YES  
| YES  
|
|
| 0
| 0
|
|
|
| discount absolute
|-
|-
| remise  
| remise  
| double
| real
| YES  
| YES  
|
|
| 0  
| 0  
|
|
|
| discount
|-
|-
| close_code
| close_code
Line 149: Line 159:
| NULL  
| NULL  
|  
|  
|
| close code
|-
|-
| close_note  
| close_note  
Line 157: Line 167:
| NULL   
| NULL   
|
|
|
| close note
|-
|-
| tva  
| tva  
| double
| real
| YES  
| YES  
|
|
| 0  
| 0  
|
|
|  
| VAT
|-
|-
| total  
| total  
| double
| real
| YES  
| YES  
|
|
| 0  
| 0  
|
|
|
| total amount
|-
|-
| total_ttc  
| total_ttc  
| double
| real
| YES  
| YES  
|  
|  
| 0  
| 0  
|
|
|
| total amount with VAT
|-
|-
| fk_statut  
| fk_statut  
| smallint(6)  
| smallint(6)  
|
| NO
|
|
| 0  
| 0  
|
|
|
| ID of status (0=draft, 1=unpayed, 2=payed, 3=abandoned)
|-
|-
| fk_user_author  
| fk_user_author  
Line 221: Line 231:
| NULL
| NULL
|  
|  
|
| ID of related proyect ([[Table llx_projet|llx_projet]]->rowid)
|-
|-
| fk_cond_reglement  
| fk_cond_reglement  
| int(11)  
| int(11)  
|
| NO
|
|
| 1  
| 1  
|  
|  
|
| ID of payment condition ([[Table llx_cond_reglement|llx_cond_reglement]]->rowid)
|-
|-
| fk_mode_reglement  
| fk_mode_reglement  
Line 237: Line 247:
| NULL
| NULL
|
|
|
| ID of payment mode ([[Table llx_c_paiement|llx_c_paiement]]->id)
|-
|-
| date_lim_reglement  
| date_lim_reglement  
Line 245: Line 255:
| NULL
| NULL
|
|
|
| limit date of payment
|-
|-
| note  
| note  
Line 253: Line 263:
| NULL  
| NULL  
|
|
|
| comentary
|-
|-
| note_public  
| note_public  
Line 261: Line 271:
| NULL  
| NULL  
|
|
|
| public comentary
|-
|-
| model_pdf   
| model_pdf   
Line 269: Line 279:
| NULL  
| NULL  
|
|
|
| Model PDF to prin
|-
|-
| import_key  
| import_key  
Line 277: Line 287:
| NULL  
| NULL  
|
|
|
| import key
|}
|}&nbsp;
== Keys ==
'''Version 1.1 2009/10/07'''
{|  align="left" width="100%" border="0" rules="all" cellpadding="1" cellspacing="0"  style="margin: 0 0 1px 1px; border: 1px solid #dddddd; border-right-width: 2px; border-bottom-width: 2px; background-color: #f3f3f5"
|style="background-color: #e9e9ef"| <b>Key</b>
|style="background-color: #e9e9ef"| <b>Type</b>
|style="background-color: #e9e9ef"| <b>Fields</b>
|-
| PRIMARY
| PRIMARY
| rowid
|-
| idx_facture_uk_facnumber
| UNIQUE
| facnumber,entity
|-
| idx_facture_fk_soc
| MULTIPLE
| fk_soc
|-
| idx_facture_fk_user_author
| MULTIPLE
| fk_user_author
|-
| idx_facture_fk_user_valid
| MULTIPLE
| fk_user_valid
|-
| idx_facture_fk_facture_source
| MULTIPLE
| fk_facture_source
|-
| idx_facture_fk_projet
| MULTIPLE
| fk_projet
|}&nbsp;

Navigation menu