Release 2.4.1
[fa-stable.git] / reporting / includes / doctext.inc
index 1234fc3edf3715079e1d65e6fbb842f230937ba4..c9011b45bd5f23ee983573486f33e30765e76295 100644 (file)
@@ -78,7 +78,7 @@
                        break;
 
                case ST_CUSTDELIVERY:
-                       $this->title = ($packing_slip==1 ? _("PACKING SLIP") : _("DELIVERY NOTE"));
+                       $this->title = ($this->params['packing_slip'] ? _("PACKING SLIP") : _("DELIVERY NOTE"));
                        $this->formData['document_name'] = _("Delivery Note No.");
                        if (@$packing_slip)
                                $Payment_Terms = '';