You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

589 lines
21 KiB

4 years ago
  1. <?php
  2. require_once('F_DMUG.php');
  3. require_once "./inc/AppConfig.php";
  4. require_once "./inc/PostgreClass.php";
  5. require_once "./inc/ObtieneDatosPg.php";
  6. $server="192.96.50.8";
  7. $port = 1030; //1030
  8. $hs = "DEMIURGO10-MCANET";
  9. $user = "general";
  10. $pass = "123456789";
  11. $exportando = 0 ;
  12. $pid = getmypid();
  13. $appConfig =& new AppConfig;
  14. /* Crea un objeto para el manejo postgres */
  15. $dataBD_PG =& $appConfig->BASE_DATOS_PG;
  16. $manejaBD_PG =& new PostgreClass($dataBD_PG["host"], $dataBD_PG["name"],
  17. $dataBD_PG["user"], $dataBD_PG["pass"]);
  18. $obtieneDatos_pg = & new ObtieneDatos_PG($appConfig, $manejaBD_PG);
  19. $pg_sql_factu = "SELECT * FROM forumvta.factu WHERE fac_trans = 0 LIMIT 10";
  20. $v_FACTU = $obtieneDatos_pg->obtenerDatos($pg_sql_factu);
  21. $v_MAXFACTU = 10 ; //utl_count($v_FACTU);
  22. for( $v_i=0 ; $v_i < $v_MAXFACTU ; $v_i++ )
  23. {
  24. $FAC_SUC = $v_FACTU[$v_i]['fac_suc'] ;
  25. $FAC_NRO = $v_FACTU[$v_i]['fac_nro'] ;
  26. echo "FACTURA pos = $v_i nro = $FAC_NRO \n";
  27. $pg_sql_movi_fac = "SELECT * FROM forumvta.movi_fac ";
  28. $pg_sql_movi_fac .="WHERE mof_fac_suc = $FAC_SUC AND mof_fac = $FAC_NRO";
  29. $v_MOVI_FAC = $obtieneDatos_pg->obtenerDatos( $pg_sql_movi_fac );
  30. $ConDMUG = new ConexDMUG( $server , $port , $hs ,$user , $pass );
  31. $ConDMUG->SetProgram( "Interfaz_FactuPG_Forum" );
  32. Carga_CABECERA( $ConDMUG , $v_FACTU , $v_i );
  33. //Carga_DETALLES( $ConDMUG , $v_MOVI_FAC );
  34. $ConDMUG->SetParameter( "CANTIDAD_CABECERAS" , 1 );
  35. $ConDMUG->SetParameter( "CANTIDAD_DETALLES" , $vCantiDetalles );
  36. $ConDMUG->SetParameter( "FECHA_TRASMITE" , date("h:i:s. A") );
  37. $ConDMUG->SetParameter( "HORA_TRASMITE" , time() );
  38. $ConDMUG->Execute_DMUG();
  39. echo "RESULTADO:".$ConDMUG->GetChild( "STRERROR" )."\n" ;
  40. echo "INFORME :".$ConDMUG->GetChild( "INFO" )."\n" ;
  41. if ( $ConDMUG->GetNError() )
  42. {
  43. echo "SE HA PRODUCIDO UN ERROR EN LA INTERFAZ ConexDMUG ";
  44. }
  45. else
  46. {
  47. echo "Se marca FACTU $FAC_NRO en PG TRANS es 1 \n";
  48. //Marcar_CABECERA();
  49. }
  50. $ConDMUG->CloseConex();
  51. echo "-------------------------------------------------------\n";
  52. sleep(2);
  53. }
  54. /***********************************************************************/
  55. /*----------------------- function Carga_CABECERA ---------------------*/
  56. /***********************************************************************/
  57. function Carga_CABECERA( $ConDMUG , $p_FACTU , $v_i )
  58. {
  59. # define FACTU_FAC_SUC (dbfield) 0x0a01 /* Integer /
  60. $ConDMUG->SetParameter("FAC_SUC" , $p_FACTU[$vh_i]['fac_suc'] );
  61. # define FACTU_FAC_TIP (dbfield) 0x0a02 /* String
  62. $ConDMUG->SetParameter("FAC_TIP" , $p_FACTU[$v_i]['fac_tip'] );
  63. # define FACTU_FAC_STIP (dbfield) 0x0a03 /* Integer
  64. $ConDMUG->SetParameter("FAC_STIP" , $p_FACTU[$v_i]['fac_stip'] );
  65. # define FACTU_FAC_NRO (dbfield) 0x0a04 /* Long
  66. $ConDMUG->SetParameter("FAC_NRO" , $p_FACTU[$v_i]['fac_nro'] );
  67. /*********************
  68. # define FACTU_FAC_FEC (dbfield) 0x0a05 /* Date /
  69. $ConDMUG->SetParameter("FAC_FEC" , $p_FACTU[$v_i]['fac_suc'] );
  70. # define FACTU_FAC_CLIE (dbfield) 0x0a06 /* Long /
  71. $ConDMUG->SetParameter("FAC_CLIE" , $p_FACTU[$v_i]['fac_suc'] );
  72. # define FACTU_FAC_FPED (dbfield) 0x0a07 /* Date /
  73. $ConDMUG->SetParameter("FAC_FPED" , $p_FACTU[$v_i]['fac_suc'] );
  74. # define FACTU_FAC_NREP (dbfield) 0x0a08 /* Long /
  75. $ConDMUG->SetParameter("FAC_NREP" , $p_FACTU[$v_i]['fac_suc'] );
  76. # define FACTU_FAC_CPAG (dbfield) 0x0a09 /* Integer /
  77. $ConDMUG->SetParameter("FAC_CPAG" , $p_FACTU[$v_i]['fac_suc'] );
  78. # define FACTU_FAC_IVA (dbfield) 0x0a0a /* Integer /
  79. $ConDMUG->SetParameter("FAC_IVA" , $p_FACTU[$v_i]['fac_suc'] );
  80. # define FACTU_FAC_CAJA (dbfield) 0x0a0b /* Integer /
  81. $ConDMUG->SetParameter("FAC_CAJA" , $p_FACTU[$v_i]['fac_suc'] );
  82. # define FACTU_FAC_CAJ (dbfield) 0x0a0c /* Integer /
  83. $ConDMUG->SetParameter("FAC_CAJ" , $p_FACTU[$v_i]['fac_suc'] );
  84. # define FACTU_FAC_FAC (dbfield) 0x0a0d /* Integer
  85. $ConDMUG->SetParameter("FACTU_FAC_FAC" , $p_FACTU[$v_i]['fac_suc'] );
  86. # define FACTU_FAC_SEC (dbfield) 0x0a0e /* String /
  87. $ConDMUG->SetParameter("FAC_SEC" , $result-> ... );
  88. # define FACTU_FAC_TVEN (dbfield) 0x0a0f /* String
  89. $ConDMUG->SetParameter("FAC_TVEN" , $result-> ... );
  90. # define FACTU_FAC_COM (dbfield) 0x0a10 /* Long /
  91. $ConDMUG->SetParameter("FAC_COM" , $result-> ... );
  92. # define FACTU_FAC_TDEV (dbfield) 0x0a11 /* String
  93. $ConDMUG->SetParameter("FAC_TDEV" , $result-> ... );
  94. # define FACTU_FAC_SDEV (dbfield) 0x0a12 /* Integer
  95. $ConDMUG->SetParameter("FAC_SDEV" , $result-> ... );
  96. # define FACTU_FAC_NDEV (dbfield) 0x0a13 /* Long /
  97. $ConDMUG->SetParameter("FAC_NDEV" , $result-> ... );
  98. # define FACTU_FAC_FDEV (dbfield) 0x0a14 /* Date
  99. $ConDMUG->SetParameter("FAC_FDEV" , $result-> ... );
  100. # define FACTU_FAC_DES (dbfield) 0x0a15 /* Long /
  101. $ConDMUG->SetParameter("FAC_DES" , $result-> ... );
  102. # define FACTU_FAC_RECCP (dbfield) 0x0a16 /* Long /
  103. $ConDMUG->SetParameter("FAC_RECCP", $result-> ... );
  104. # define FACTU_FAC_RECVT (dbfield) 0x0a17 /* Long /
  105. $ConDMUG->SetParameter("FAC_RECVT", $result-> ... );
  106. # define FACTU_FAC_RECOF (dbfield) 0x0a18 /* Long /
  107. $ConDMUG->SetParameter("FAC_RECOF", $result-> ... );
  108. # define FACTU_FAC_RECUN (dbfield) 0x0a19 /* Long /
  109. $ConDMUG->SetParameter("FAC_RECUN", $result-> ... );
  110. # define FACTU_FAC_LIS (dbfield) 0x0a1a /* Integer
  111. $ConDMUG->SetParameter("FAC_LIS" , $result-> ... );
  112. # define FACTU_FAC_TGRA (dbfield) 0x0a1b /* Float /
  113. $ConDMUG->SetParameter("FAC_TGRA" , $result-> ... );
  114. # define FACTU_FAC_TEIVA (dbfield) 0x0a1c /* Float /
  115. $ConDMUG->SetParameter("FAC_TEIVA", $result-> ... );
  116. # define FACTU_FAC_RPIE (dbfield) 0x0a1d /* Float /
  117. $ConDMUG->SetParameter("FAC_RPIE" , $result-> ... );
  118. # define FACTU_FAC_FLE (dbfield) 0x0a1e /* Integer /
  119. $ConDMUG->SetParameter("FAC_FLE" , $result-> ... );
  120. # define FACTU_FAC_FLCA (dbfield) 0x0a1f /* Integer
  121. $ConDMUG->SetParameter("FAC_FLCA" , $result-> ... );
  122. # define FACTU_FAC_FLET (dbfield) 0x0a20 /* Long
  123. $ConDMUG->SetParameter("FAC_FLET" , $result-> ... );
  124. # define FACTU_FAC_FLPO (dbfield) 0x0a21 /* Long /
  125. $ConDMUG->SetParameter("FAC_FLPO" , $result-> ... );
  126. # define FACTU_FAC_IFLE (dbfield) 0x0a22 /* Float
  127. $ConDMUG->SetParameter("FAC_IFLE" , $result-> ... );
  128. # define FACTU_FAC_TIVA (dbfield) 0x0a23 /* Float/
  129. $ConDMUG->SetParameter("FAC_TIVA" , $result-> ... );
  130. # define FACTU_FAC_TNIVA (dbfield) 0x0a24 /* Float
  131. $ConDMUG->SetParameter("FAC_TNIVA", $result-> ... );
  132. # define FACTU_FAC_TIVAP (dbfield) 0x0a25 /* Float
  133. $ConDMUG->SetParameter("FAC_TIVAP", $result-> ... );
  134. # define FACTU_FAC_TIINT (dbfield) 0x0a26 /* Float
  135. $ConDMUG->SetParameter("FAC_TIINT", $result-> ... );
  136. # define FACTU_FAC_TABAS (dbfield) 0x0a27 /* Float
  137. $ConDMUG->SetParameter("FAC_TABAS", $result-> ... );
  138. # define FACTU_FAC_IPOL (dbfield) 0x0a28 /* Float
  139. $ConDMUG->SetParameter("FAC_IPOL" , $result-> ... );
  140. # define FACTU_FAC_INGB (dbfield) 0x0a29 /* Float
  141. $ConDMUG->SetParameter("FAC_INGB" , $result-> ... );
  142. # define FACTU_FAC_PIBBS (dbfield) 0x0a2a /* Float
  143. $ConDMUG->SetParameter("FAC_PIBBS", $result-> ... );
  144. # define FACTU_FAC_PIB14 (dbfield) 0x0a2b /* Float /
  145. $ConDMUG->SetParameter("FAC_PIB14", $result-> ... );
  146. # define FACTU_FAC_ITOT (dbfield) 0x0a2c /* Float /
  147. $ConDMUG->SetParameter("FAC_ITOT" , $result-> ... );
  148. # define FACTU_FAC_REC (dbfield) 0x0a2d /* Float /
  149. $ConDMUG->SetParameter("FAC_REC" , $result-> ... );
  150. # define FACTU_FAC_ICOM (dbfield) 0x0a2e /* Float
  151. $ConDMUG->SetParameter("FAC_ICOM" , $result-> ... );
  152. # define FACTU_FAC_IMP (dbfield) 0x0a2f /* Integer
  153. $ConDMUG->SetParameter("FAC_IMP" , $result-> ... );
  154. # define FACTU_FAC_ADM (dbfield) 0x0a30 /* Integer
  155. $ConDMUG->SetParameter("FAC_ADM" , $result-> ... );
  156. # define FACTU_FAC_OBS (dbfield) 0x0a31 /* String
  157. $ConDMUG->SetParameter("FAC_OBS" , $result-> ... );
  158. # define FACTU_FAC_CON1 (dbfield) 0x0a32 /* Integer
  159. $ConDMUG->SetParameter("FAC_CON1" , $result-> ... );
  160. # define FACTU_FAC_CON2 (dbfield) 0x0a33 /* Integer
  161. $ConDMUG->SetParameter("FAC_CON2" , $result-> ... );
  162. # define FACTU_FAC_IT (dbfield) 0x0a34 /* Integer /
  163. $ConDMUG->SetParameter("FAC_IT" , $result-> ... );
  164. # define FACTU_FAC_REVTA (dbfield) 0x0a35 /* Long /
  165. $ConDMUG->SetParameter("FAC_REVTA", $result-> ... );
  166. # define FACTU_FAC_TRES (dbfield) 0x0a36 /* String /
  167. $ConDMUG->SetParameter("FAC_TRES" , $result-> ... );
  168. # define FACTU_FAC_ORES (dbfield) 0x0a37 /* Integer
  169. $ConDMUG->SetParameter("FAC_ORES" , $result-> ... );
  170. # define FACTU_FAC_NRES (dbfield) 0x0a38 /* Long /
  171. $ConDMUG->SetParameter("FAC_NRES" , $result-> ... );
  172. # define FACTU_FAC_HORA (dbfield) 0x0a39 /* Time /
  173. $ConDMUG->SetParameter("FAC_HORA" , $result-> ... );
  174. # define FACTU_FAC_DUP (dbfield) 0x0a3a /* Integer /
  175. $ConDMUG->SetParameter("FAC_DUP" , $result-> ... );
  176. # define FACTU_FAC_FAF (dbfield) 0x0a3b /* Long /
  177. $ConDMUG->SetParameter("FAC_FAF" , $result-> ... );
  178. # define FACTU_FAC_MOT (dbfield) 0x0a3c /* Integer /
  179. $ConDMUG->SetParameter("FAC_MOT" , $result-> ... );
  180. # define FACTU_FAC_NOM (dbfield) 0x0a3d /* String /
  181. $ConDMUG->SetParameter("FAC_NOM" , $result-> ... );
  182. # define FACTU_FAC_CPOS (dbfield) 0x0a3e /* Integer /
  183. $ConDMUG->SetParameter("FAC_CPOS" , $result-> ... );
  184. # define FACTU_FAC_CMP (dbfield) 0x0a3f /* String /
  185. $ConDMUG->SetParameter("FAC_CMP" , $result-> ... );
  186. # define FACTU_FAC_CAT (dbfield) 0x0a40 /* Integer /
  187. $ConDMUG->SetParameter("FAC_CAT" , $result-> ... );
  188. # define FACTU_FAC_ZON (dbfield) 0x0a41 /* Integer /
  189. $ConDMUG->SetParameter("FAC_ZON" , $result-> ... );
  190. # define FACTU_FAC_TVTA (dbfield) 0x0a42 /* String /
  191. $ConDMUG->SetParameter("FAC_TVTA" , $result-> ... );
  192. # define FACTU_FAC_TIPOP (dbfield) 0x0a43 /* String /
  193. $ConDMUG->SetParameter("FAC_TIPOP", $result-> ... );
  194. # define FACTU_FAC_FEXT (dbfield) 0x0a44 /* Date /
  195. $ConDMUG->SetParameter("FAC_FEXT" , $result-> ... );
  196. # define FACTU_FAC_TEXT (dbfield) 0x0a45 /* String /
  197. $ConDMUG->SetParameter("FAC_TEXT" , $result-> ... );
  198. # define FACTU_FAC_LEXT (dbfield) 0x0a46 /* Integer /
  199. $ConDMUG->SetParameter("FAC_LEXT" , $result-> ... );
  200. # define FACTU_FAC_SEXT (dbfield) 0x0a47 /* String /
  201. $ConDMUG->SetParameter("FAC_SEXT" , $result-> ... );
  202. # define FACTU_FAC_NEXTI (dbfield) 0x0a48 /* Long /
  203. $ConDMUG->SetParameter("FAC_NEXTI", $result-> ... );
  204. # define FACTU_FAC_NEXTF (dbfield) 0x0a49 /* Long /
  205. $ConDMUG->SetParameter("FAC_NEXTF", $result-> ... );
  206. # define FACTU_FAC_AFEST (dbfield) 0x0a4a /* Integer /
  207. $ConDMUG->SetParameter("FAC_AFEST", $result-> ... );
  208. # define FACTU_FAC_ESTVT (dbfield) 0x0a4b /* Integer /
  209. $ConDMUG->SetParameter("FAC_ESTVT", $result-> ... );
  210. # define FACTU_FAC_ESTVC (dbfield) 0x0a4c /* Integer /
  211. $ConDMUG->SetParameter("FAC_ESTVC", $result-> ... );
  212. # define FACTU_FAC_ESTCT (dbfield) 0x0a4d /* Integer /
  213. $ConDMUG->SetParameter("FAC_ESTCT", $result-> ... );
  214. # define FACTU_FAC_ESTCC (dbfield) 0x0a4e /* Integer /
  215. $ConDMUG->SetParameter("FAC_ESTCC", $result-> ... );
  216. # define FACTU_FAC_CODEST (dbfield) 0x0a4f /* String
  217. $ConDMUG->SetParameter("FAC_CODEST", $result-> ... );
  218. # define FACTU_FAC_TCEST (dbfield) 0x0a50 /* String /
  219. $ConDMUG->SetParameter("FAC_TCEST" , $result-> ... );
  220. # define FACTU_FAC_MAFEST (dbfield) 0x0a51 /* String /
  221. $ConDMUG->SetParameter("FAC_MAFEST", $result-> ... );
  222. # define FACTU_FAC_REG (dbfield) 0x0a52 /* String /
  223. $ConDMUG->SetParameter("FAC_REG" , $result-> ... );
  224. # define FACTU_FAC_LUGENT (dbfield) 0x0a53 /* Integer /
  225. $ConDMUG->SetParameter("FAC_LUGENT", $result-> ... );
  226. # define FACTU_FAC_NCAI (dbfield) 0x0a54 /* String /
  227. $ConDMUG->SetParameter("FAC_NCAI" , $result-> ... );
  228. # define FACTU_FAC_FVCAI (dbfield) 0x0a55 /* Date /
  229. $ConDMUG->SetParameter("FAC_FVCAI" , $result-> ... );
  230. # define FACTU_FAC_CFIS (dbfield) 0x0a56 /* Integer /
  231. $ConDMUG->SetParameter("FAC_CFIS" , $result-> ... );
  232. # define FACTU_FAC_COSTO (dbfield) 0x0a57 /* Float /
  233. $ConDMUG->SetParameter("FAC_COSTO" , $result-> ... );
  234. # define FACTU_FAC_AUXF (dbfield) 0x0a58 /* Integer /
  235. $ConDMUG->SetParameter("FAC_AUXF" , $result-> ... );
  236. # define FACTU_FAC_TIVAF (dbfield) 0x0a59 /* Float /
  237. $ConDMUG->SetParameter("FAC_TIVAF" , $result-> ... );
  238. # define FACTU_FAC_TNIVAF (dbfield) 0x0a5a /* Float /
  239. $ConDMUG->SetParameter("FAC_TNIVAF", $result-> ... );
  240. # define FACTU_FAC_ENTIP (dbfield) 0x0a5b /* Long /
  241. $ConDMUG->SetParameter("FAC_ENTIP" , $result-> ... );
  242. # define FACTU_FAC_TKGSN (dbfield) 0x0a5c /* Float/
  243. $ConDMUG->SetParameter("FAC_TKGSN" , $result-> ... );
  244. # define FACTU_FAC_TXKG (dbfield) 0x0a5d /* Float/
  245. $ConDMUG->SetParameter("FAC_TXKG" , $result-> ... );
  246. # define FACTU_FAC_INC (dbfield) 0x0a5e /* Float
  247. $ConDMUG->SetParameter("FAC_INC" , $result-> ... );
  248. # define FACTU_FAC_CNC (dbfield) 0x0a5f /* Integer /
  249. $ConDMUG->SetParameter("FAC_CNC" , $result-> ... );
  250. # define FACTU_FAC_EMP (dbfield) 0x0a60 /* Integer /
  251. $ConDMUG->SetParameter("FAC_EMP" , $result-> ... );
  252. # define FACTU_FAC_CONSO (dbfield) 0x0a61 /* Long
  253. $ConDMUG->SetParameter("FAC_CONSO" , $result-> ... );
  254. # define FACTU_FAC_OBSC (dbfield) 0x0a62 /* String /
  255. $ConDMUG->SetParameter("FAC_OBSC" , $result-> ... );
  256. # define FACTU_FAC_HPED (dbfield) 0x0a63 /* Time /
  257. $ConDMUG->SetParameter("FAC_HPED" , $result-> ... );
  258. # define FACTU_FAC_CBUL (dbfield) 0x0a64 /* Integer /
  259. $ConDMUG->SetParameter("FAC_CBUL" , $result-> ... );
  260. # define FACTU_FAC_NREM (dbfield) 0x0a65 /* Long
  261. $ConDMUG->SetParameter("FAC_NREM" , $result-> ... );
  262. # define FACTU_FAC_CBAR (dbfield) 0x0a66 /* String
  263. $ConDMUG->SetParameter("FAC_CBAR" , $result-> ... );
  264. **************/
  265. }
  266. /****************************************************************************************/
  267. /*--------------------------- function Carga_DETALLES ----------------------------------*/
  268. /****************************************************************************************/
  269. function Carga_DETALLES( $ConDMUG , $result )
  270. {
  271. /******************
  272. # define MOVI_FAC_MOF_SUC (dbfield) 0x0b01 nteger
  273. $ConDMUG->SetParameter( "MOF_SUC" , $result->... );
  274. # define MOVI_FAC_MOF_TIP (dbfield) 0x0b02 /* String
  275. $ConDMUG->SetParameter( "MOF_TIP" , $result->... );
  276. # define MOVI_FAC_MOF_STIP (dbfield) 0x0b03 /* Integer
  277. $ConDMUG->SetParameter( "MOF_STIP" , $result->... );
  278. # define MOVI_FAC_MOF_FAC (dbfield) 0x0b04 /* Long
  279. $ConDMUG->SetParameter( "MOF_FAC" , $result->... );
  280. # define MOVI_FAC_MOF_ART (dbfield) 0x0b05 /* Long
  281. $ConDMUG->SetParameter( "MOF_ART" , $result->... );
  282. # define MOVI_FAC_MOF_ITE (dbfield) 0x0b06 /* Integer
  283. $ConDMUG->SetParameter( "MOF_ITE" , $result->... );
  284. # define MOVI_FAC_MOF_DEV (dbfield) 0x0b07 /* Integer
  285. $ConDMUG->SetParameter( "MOF_DEV" , $result->... );
  286. # define MOVI_FAC_MOF_PREC (dbfield) 0x0b08 /* Long
  287. $ConDMUG->SetParameter( "MOF_PREC" , $result->... );
  288. # define MOVI_FAC_MOF_COST (dbfield) 0x0b09 /* Long
  289. $ConDMUG->SetParameter( "MOF_COST" , $result->... );
  290. # define MOVI_FAC_MOF_CANT (dbfield) 0x0b0a /* Long
  291. $ConDMUG->SetParameter( "MOF_CANT" , $result->... );
  292. # define MOVI_FAC_MOF_UDAD (dbfield) 0x0b0b /* String
  293. $ConDMUG->SetParameter( "MOF_UDAD" , $result->... );
  294. # define MOVI_FAC_MOF_IABA (dbfield) 0x0b0c /* Long
  295. $ConDMUG->SetParameter( "MOF_IABA" , $result->... );
  296. # define MOVI_FAC_MOF_IINT (dbfield) 0x0b0d /* Long
  297. $ConDMUG->SetParameter( "MOF_IINT" , $result->... );
  298. # define MOVI_FAC_MOF_OFE (dbfield) 0x0b0e /* Integer
  299. $ConDMUG->SetParameter( "MOF_OFE" , $result->... );
  300. # define MOVI_FAC_MOF_DIG (dbfield) 0x0b0f /* Integer
  301. $ConDMUG->SetParameter( "MOF_DIG" , $result->... );
  302. # define MOVI_FAC_MOF_SCAN (dbfield) 0x0b10 /* Long
  303. $ConDMUG->SetParameter( "MOF_SCAN" , $result->... );
  304. # define MOVI_FAC_MOF_CPIE (dbfield) 0x0b11 /* Long
  305. $ConDMUG->SetParameter( "MOF_CPIE" , $result->... );
  306. # define MOVI_FAC_MOF_MVT (dbfield) 0x0b12 /* Integer
  307. $ConDMUG->SetParameter( "MOF_MVT" , $result->... );
  308. # define MOVI_FAC_MOF_IVA1 (dbfield) 0x0b13 /* Float
  309. $ConDMUG->SetParameter( "MOF_IVA1" , $result->... );
  310. # define MOVI_FAC_MOF_IVA2 (dbfield) 0x0b14 /* Float
  311. $ConDMUG->SetParameter( "MOF_IVA2" , $result->... );
  312. # define MOVI_FAC_MOF_IVA3 (dbfield) 0x0b15 /* Float
  313. $ConDMUG->SetParameter( "MOF_IVA3" , $result->... );
  314. # define MOVI_FAC_MOF_IVA4 (dbfield) 0x0b16 /* Float
  315. $ConDMUG->SetParameter( "MOF_IVA4" , $result->... );
  316. # define MOVI_FAC_MOF_TAS1 (dbfield) 0x0b17 /* Long
  317. $ConDMUG->SetParameter( "MOF_TASA1" , $result->... );
  318. # define MOVI_FAC_MOF_TAS2 (dbfield) 0x0b18 /* Long
  319. $ConDMUG->SetParameter( "MOF_TASA2" , $result->... );
  320. # define MOVI_FAC_MOF_TAS3 (dbfield) 0x0b19 /* Long
  321. $ConDMUG->SetParameter( "MOF_TASA3" , $result->... );
  322. # define MOVI_FAC_MOF_TAS4 (dbfield) 0x0b1a /* Long
  323. $ConDMUG->SetParameter( "MOF_TASA4" , $result->... );
  324. # define MOVI_FAC_MOF_OBS (dbfield) 0x0b1b /* String
  325. $ConDMUG->SetParameter( "MOF_OBS" , $result->... );
  326. # define MOVI_FAC_MOF_POL (dbfield) 0x0b1c /* Float
  327. $ConDMUG->SetParameter( "MOF_POL" , $result->... );
  328. # define MOVI_FAC_MOF_ADU (dbfield) 0x0b1d /* Integer
  329. $ConDMUG->SetParameter( "MOF_ADU" , $result->... );
  330. # define MOVI_FAC_MOF_DES (dbfield) 0x0b1e /* Long
  331. $ConDMUG->SetParameter( "MOF_DES" , $result->... );
  332. # define MOVI_FAC_MOF_CAD (dbfield) 0x0b1f /* Long
  333. $ConDMUG->SetParameter( "MOF_CAD" , $result->... );
  334. # define MOVI_FAC_MOF_DDEBAR (dbfield) 0x0b20 /* Integer
  335. $ConDMUG->SetParameter( "MOF_DDBAR" , $result->... );
  336. # define MOVI_FAC_MOF_PLISTA (dbfield) 0x0b21 /* Long
  337. $ConDMUG->SetParameter( "MOF_PLISTA", $result->... );
  338. # define MOVI_FAC_MOF_ACCION (dbfield) 0x0b22 /* Integer
  339. $ConDMUG->SetParameter( "MOF_ACCION", $result->... );
  340. # define MOVI_FAC_MOF_PROMO (dbfield) 0x0b23 /* Integer
  341. $ConDMUG->SetParameter( "MOF_PROMO" , $result->... );
  342. # define MOVI_FAC_MOF_MSTRA (dbfield) 0x0b24 /* Integer
  343. $ConDMUG->SetParameter( "MOF_MSTRA" , $result->... );
  344. # define MOVI_FAC_MOF_ESTVT (dbfield) 0x0b25 /* Integer
  345. $ConDMUG->SetParameter( "MOF_ESTVT" , $result->... );
  346. # define MOVI_FAC_MOF_ESTVC (dbfield) 0x0b26 /* Integer
  347. $ConDMUG->SetParameter( "MOF_ESTVC" , $result->... );
  348. # define MOVI_FAC_MOF_ESTCT (dbfield) 0x0b27 /* Integer
  349. $ConDMUG->SetParameter( "MOF_ESTCT" , $result->... );
  350. # define MOVI_FAC_MOF_ESTCC (dbfield) 0x0b28 /* Integer
  351. $ConDMUG->SetParameter( "MOF_ESTCC" , $result->... );
  352. # define MOVI_FAC_MOF_FAM (dbfield) 0x0b29 /* Integer
  353. $ConDMUG->SetParameter( "MOF_FAM" , $result->... );
  354. # define MOVI_FAC_MOF_DEP (dbfield) 0x0b2a /* Integer
  355. $ConDMUG->SetParameter( "MOF_DEO" , $result->... );
  356. # define MOVI_FAC_MOF_SEC (dbfield) 0x0b2b /* Integer
  357. $ConDMUG->SetParameter( "MOF_SEC" , $result->... );
  358. # define MOVI_FAC_MOF_GRU (dbfield) 0x0b2c /* Integer
  359. $ConDMUG->SetParameter( "MOF_GRU" , $result->... );
  360. # define MOVI_FAC_MOF_PREP (dbfield) 0x0b2d /* Long
  361. $ConDMUG->SetParameter( "MOF_PREP" , $result->... );
  362. # define MOVI_FAC_MOF_FEC (dbfield) 0x0b2e /* Date
  363. $ConDMUG->SetParameter( "MOF_FEC" , $result->... );
  364. # define MOVI_FAC_MOF_PCONG (dbfield) 0x0b2f /* Long
  365. $ConDMUG->SetParameter( "MOF_PCONG" , $result->... );
  366. # define MOVI_FAC_MOF_NCSCAN (dbfield) 0x0b30 /* Long
  367. $ConDMUG->SetParameter( "MOF_NSCAN" , $result->... );
  368. # define MOVI_FAC_MOF_NCCPIE (dbfield) 0x0b31 /* Long
  369. $ConDMUG->SetParameter( "MOF_NCCPIE", $result->... );
  370. # define MOVI_FAC_MOF_CBAR (dbfield) 0x0b32 /* String
  371. $ConDMUG->SetParameter( "MOF_CBAR" , $result->... );
  372. # define MOVI_FAC_MOF_KGSN (dbfield) 0x0b33 /* Float
  373. $ConDMUG->SetParameter( "MOF_KGSN" , $result->... );
  374. cd ..
  375. # define MOVI_FAC_MOF_CATR (dbfield) 0x0b34 /* Intege
  376. $ConDMUG->SetParameter( "MOF_CATR" , $result->... );
  377. # define MOVI_FAC_MOF_PVTAB (dbfield) 0x0b35 /* Long
  378. $ConDMUG->SetParameter( "MOF_PVTAB" , $result->... );
  379. # define MOVI_FAC_MOF_COLOR (dbfield) 0x0b36 /* String
  380. $ConDMUG->SetParameter( "MOF_COLOR" , $result->... );
  381. # define MOVI_FAC_MOF_TCOL (dbfield) 0x0b37 /* String
  382. $ConDMUG->SetParameter( "MOF_TCOL" , $result->... );
  383. # define MOVI_FAC_MOF_PROV (dbfield) 0x0b38 /* Long
  384. $ConDMUG->SetParameter( "MOF_PROV" , $result->... );
  385. # define MOVI_FAC_MOF_CLIE (dbfield) 0x0b39 /* Long
  386. $ConDMUG->SetParameter( "MOF_CLIE" , $result->... );
  387. ****************/
  388. }
  389. ?>