mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Add code to make easier to test PDF generation with n lines of product
This commit is contained in:
@@ -4049,8 +4049,9 @@ class Commande extends CommonOrder
|
||||
$this->status = $this::STATUS_DRAFT;
|
||||
|
||||
// Lines
|
||||
$nbp = 5;
|
||||
$nbp = min(1000, GETPOSTINT('nblines') ? GETPOSTINT('nblines') : 5); // We can force the nb of lines to test from command line (but not more than 1000)
|
||||
$xnbp = 0;
|
||||
|
||||
while ($xnbp < $nbp) {
|
||||
$line = new OrderLine($this->db);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user