Ver Fonte

MMIEntrepots & MMIProduct : Extrafield categorie fk_entrepot_loc

Mathieu Moulin há 1 ano atrás
pai
commit
13c5758855
3 ficheiros alterados com 12 adições e 2 exclusões
  1. 10 0
      htdocs/core/lib/pdf.lib.php
  2. 1 1
      htdocs/custom/mmientrepots
  3. 1 1
      htdocs/custom/mmiproduct

+ 10 - 0
htdocs/core/lib/pdf.lib.php

@@ -1701,6 +1701,16 @@ function pdf_getlinedesc($object, $i, $outputlangs, $hideref = 0, $hidedesc = 0,
 		if ($prodser->barcode)
 			$libelleproduitservice .= '__N__  Barcode: '.$prodser->barcode;
 	}
+	// Show Location
+	if (in_array($objecttype, ['Expedition']) && (true || !empty($conf->global->SHIPPING_PDF_LOCATION))) {
+		if (!empty($prodser->array_options['options_fk_categorie'])) {
+			include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
+			$categorie = new Categorie($db);
+			$categorie->fetch($prodser->array_options['options_fk_categorie']);
+			$libelleproduitservice .= '__N__  Localisation: '.$categorie->label;
+			//var_dump($prodser->array_options['options_fk_categorie']); die();
+		}
+	}
 
 	// Now we convert \n into br
 	if (dol_textishtml($libelleproduitservice)) {

+ 1 - 1
htdocs/custom/mmientrepots

@@ -1 +1 @@
-Subproject commit 6a531c5c5c0523e28342ef994868a3f25cbba3a6
+Subproject commit 74356533295810930d8e4a6290ed20a6adc00b2e

+ 1 - 1
htdocs/custom/mmiproduct

@@ -1 +1 @@
-Subproject commit 3a543c71a0e7f05a902717b437ce254f3f0ba12e
+Subproject commit 0d3c581711fde41924ccbed93da28b4b576a2285