Line 1:
Line 1:
+
<!-- BEGIN origin interlang links -->
+
<!-- You can edit this section but do NOT remove these comments
+
Links below will be automatically replicated on translated pages by PolyglotBot -->
+
[[fr:Module_Factures_Clients_(développeur)]]
+
[[es:Módulo_Facturas_a_clientes_(desarrollador)]]
+
<!-- END interlang links -->
+
[[Category:Invoices]]
[[Category:Invoices]]
{{TemplateDocDevEn}}
{{TemplateDocDevEn}}
+
{{TemplateModEN Developer}}
{{BasculeDevUserEn|
{{BasculeDevUserEn|
−
name=Invoice|
+
name=Invoice|
+
num=30|
devdoc=This page|
devdoc=This page|
userdoc=[[Module Customers Invoices]]|}}
userdoc=[[Module Customers Invoices]]|}}
Line 11:
Line 20:
* Lines of customer invoices
* Lines of customer invoices
* Predefined invoices
* Predefined invoices
−
The suppliers invoices are managed by the module [[Module Suppliers Invoices]].
+
The suppliers invoices are managed by the [[Module Suppliers (developer)]].
Rounding of VAT lines is done by the rule "the nearest".
Rounding of VAT lines is done by the rule "the nearest".
Line 20:
Line 29:
for 0,0050 to 0,0099 --> 0,01
for 0,0050 to 0,0099 --> 0,01
−
−
''Number : 30''
= Entity Invoice =
= Entity Invoice =
{{TemplateDocDevEntityEn|
{{TemplateDocDevEntityEn|
−
class=htdocs/facture.class.php}}
+
class=htdocs/compta/facture/class/facture.class.php}}
'''Business rules''':
'''Business rules''':
Line 34:
Line 41:
'''Life cycle''':
'''Life cycle''':
−
* An invoice can be create as a draft (This call trigger BILL_CREATE)
+
* An invoice can be created as a draft (This calls trigger BILL_CREATE)
−
* An invoice can be modified (This call trigger BILL_UPDATE)
+
* An invoice can be modified (This calls trigger BILL_UPDATE)
−
* An invoice can be validated (This call trigger BILL_VALIDATE)
+
* An invoice can be validated (This calls trigger BILL_VALIDATE)
−
* An invoice can receive one or several payments
+
* An invoice can receive one or more payments
−
* An invoice can be closed by status Abandoned or Payed (This call trigger BILL_CANCEL or BILL_UPDATE)
+
* An invoice can be closed by status Abandoned or Payed (This calls trigger BILL_CANCEL or BILL_UPDATE)
= Entity Invoice line =
= Entity Invoice line =
{{TemplateDocDevEntityEn|
{{TemplateDocDevEntityEn|
−
class=htdocs/facture.class.php}}
+
class=htdocs/compta/facture/class/facture.class.php}}
−
* An invoice line has type product or service (you choose if both module [[Products]] and [[ServicesEn|Services]] are activated).
+
* An invoice line has type product or service (you have to choose if both module [[Products]] and [[ServicesEn|Services]] are activated).
−
* An invoice line represent a product into an invoice (with a unit price, a qty, a vat and a discount)
+
* An invoice line represents a product/service in an invoice (with a unit price, a qty, a vat and a discount)
* Each invoice has between 1 and n invoice lines
* Each invoice has between 1 and n invoice lines
= Entity Predefined invoice =
= Entity Predefined invoice =
{{TemplateDocDevEntityEn|
{{TemplateDocDevEntityEn|
−
class=htdocs/compta/facture/facture-rec.class.php}}
+
class=htdocs/compta/facture/class/facture-rec.class.php}}
= Permissions =
= Permissions =
Line 72:
Line 79:
* FACTURE_ADDON
* FACTURE_ADDON
* FAC_FORCE_DATE_VALIDATION
* FAC_FORCE_DATE_VALIDATION
+
+
= Scripts =
+
* [[Script rebuild_merge_pdf.php|rebuild_merge_pdf.php]]
+
* [[Script email_unpaid_invoices_to_representatives.php|email_unpaid_invoices_to_representatives.php]]