Difference between revisions of "Script rebuild merge pdf.php"

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
Line 14: Line 14:
  
 
= Syntax/Syntaxe/Sintaxis =
 
= Syntax/Syntaxe/Sintaxis =
 +
To build/merge PDF for invoices with at least one payment in a date range:
 
<source lang="bash">
 
<source lang="bash">
To build/merge PDF for invoices with at least one payment in a date range:
 
 
Usage:  rebuild_merge_pdf.php filter=payments dateafter datebefore [lang=langcode]
 
Usage:  rebuild_merge_pdf.php filter=payments dateafter datebefore [lang=langcode]
 +
</source>
 
To build/merge PDF for invoices ina date range:
 
To build/merge PDF for invoices ina date range:
 +
<source lang="bash">
 
Usage:  rebuild_merge_pdf.php filter=date dateafter datebefore [lang=langcode]
 
Usage:  rebuild_merge_pdf.php filter=date dateafter datebefore [lang=langcode]
 +
</source>
 
To build/merge PDF for all invoices, use filter=all
 
To build/merge PDF for all invoices, use filter=all
 +
<source lang="bash">
 
Usage:  rebuild_merge_pdf.php filter=all
 
Usage:  rebuild_merge_pdf.php filter=all
 +
</source>
 
To build/merge PDF for invoices with no payments, use filter=nopayment
 
To build/merge PDF for invoices with no payments, use filter=nopayment
 +
<source lang="bash">
 
Usage:  rebuild_merge_pdf.php filter=nopayment
 
Usage:  rebuild_merge_pdf.php filter=nopayment
To exclude credit notes, use filter=nocreditnote
+
</source>
To exclude replacement invoices, use filter=noreplacement
+
To exclude credit notes, use  
To exclude deposit invoices, use filter=nodeposit
+
<source lang="bash">
 +
filter=nocreditnote
 +
</source>
 +
To exclude replacement invoices, use  
 +
<source lang="bash">
 +
filter=noreplacement
 +
</source>
 +
To exclude deposit invoices, use  
 +
<source lang="bash">
 +
filter=nodeposit
 +
</source>
  
Example: rebuild_merge_pdf.php filter=payments 20080101 20081231 lang=fr_FR
+
Example:  
Example: rebuild_merge_pdf.php filter=all lang=it_IT
+
<source lang="bash">
 +
rebuild_merge_pdf.php filter=payments 20080101 20081231 lang=fr_FR
 +
rebuild_merge_pdf.php filter=all lang=it_IT
 
</source>
 
</source>
  

Revision as of 18:34, 17 November 2011

Feature/Fonction/Funcionalidad

En verysmall.png This script is used to build one PDF that contains several PDF.

Fr verysmall.png Ce script fabrique un fichier PDF à partir d'autres fichiers PDF.

Es verysmall.png Este script crea un fichero PDF a partir de otros ficheros PDF.

Localisation/Localización

  • /dolibarr/htdocs/scripts/invoices/rebuild_merge_pdf.php

Syntax/Syntaxe/Sintaxis

To build/merge PDF for invoices with at least one payment in a date range:

Usage:   rebuild_merge_pdf.php filter=payments dateafter datebefore [lang=langcode]

To build/merge PDF for invoices ina date range:

Usage:   rebuild_merge_pdf.php filter=date dateafter datebefore [lang=langcode]

To build/merge PDF for all invoices, use filter=all

Usage:   rebuild_merge_pdf.php filter=all

To build/merge PDF for invoices with no payments, use filter=nopayment

Usage:   rebuild_merge_pdf.php filter=nopayment

To exclude credit notes, use

filter=nocreditnote

To exclude replacement invoices, use

filter=noreplacement

To exclude deposit invoices, use

filter=nodeposit

Example:

rebuild_merge_pdf.php filter=payments 20080101 20081231 lang=fr_FR
rebuild_merge_pdf.php filter=all lang=it_IT

Tables used/Tables utilisées/Tablas utilizadas