Author: danydb
Date: 2012-09-06 18:47:29 +0200 (Thu, 06 Sep 2012)
New Revision: 5099
Modified:
phpcompta/tags/rel650/contrib/document_test/all_tags.odt
phpcompta/tags/rel650/doc/manuel-fr.odt
phpcompta/tags/rel650/doc/manuel-fr.pdf
phpcompta/tags/rel650/include/class_document.php
Log:
0000721: Nouveaux tag pour les stocks dans g?\195?\169n?\195?\169ration de
documents
Modified: phpcompta/tags/rel650/contrib/document_test/all_tags.odt
===================================================================
(Binary files differ)
Modified: phpcompta/tags/rel650/doc/manuel-fr.odt
===================================================================
(Binary files differ)
Modified: phpcompta/tags/rel650/doc/manuel-fr.pdf
===================================================================
(Binary files differ)
Modified: phpcompta/tags/rel650/include/class_document.php
===================================================================
--- phpcompta/tags/rel650/include/class_document.php 2012-09-04 17:55:56 UTC
(rev 5098)
+++ phpcompta/tags/rel650/include/class_document.php 2012-09-06 16:47:29 UTC
(rev 5099)
@@ -1080,7 +1080,28 @@
return $p_array['acompte'];
return "0";
break;
- }
+ case 'STOCK_NAME':
+ if ( ! isset ($p_array['repo'])) return "";
+ $ret=$this->db->get_value('select r_name from
public.stock_repository where r_id=$1',array($p_array['repo']));
+ return $ret;
+ case 'STOCK_ADRESS':
+ if ( ! isset ($p_array['repo'])) return "";
+ $ret=$this->db->get_value('select r_adress from
public.stock_repository where r_id=$1',array($p_array['repo']));
+ return $ret;
+ case 'STOCK_COUNTRY':
+ if ( ! isset ($p_array['repo'])) return "";
+ $ret=$this->db->get_value('select r_country from
public.stock_repository where r_id=$1',array($p_array['repo']));
+ return $ret;
+ case 'STOCK_CITY':
+ if ( ! isset ($p_array['repo'])) return "";
+ $ret=$this->db->get_value('select r_city from
public.stock_repository where r_id=$1',array($p_array['repo']));
+ return $ret;
+ case 'STOCK_PHONE':
+ if ( ! isset ($p_array['repo'])) return "";
+ $ret=$this->db->get_value('select r_phone from
public.stock_repository where r_id=$1',array($p_array['repo']));
+ return $ret;
+
+ }
/*
* retrieve the value of ATTR for e_march
*/
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
_______________________________________________
Phpcompta est un logiciel libre de comptabilité en ligne
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev