|
@@ -690,8 +690,14 @@ abstract class CommonDocGenerator
|
|
|
$array_shipment = $this->fill_substitutionarray_with_extrafields($object, $array_shipment, $extrafields, $array_key, $outputlangs);
|
|
|
}
|
|
|
|
|
|
- return $array_shipment;
|
|
|
- }
|
|
|
+ // Add infor from $object->xxx where xxx has been loaded by fetch_origin() of shipment
|
|
|
+ if (!empty($object->commande) && is_object($object->commande)) {
|
|
|
+ $array_shipment['order_ref'] = $object->commande->ref;
|
|
|
+ $array_shipment['order_ref_customer'] = $object->commande->ref_customer;
|
|
|
+ }
|
|
|
+
|
|
|
+ return $array_shipment;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|