Add code to make easier to test PDF generation with n lines of product

This commit is contained in:
Laurent Destailleur
2024-11-21 19:34:36 +01:00
parent 687e71dfa3
commit 71d988b015

View File

@@ -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);