account_account Normal / ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELD
ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS
ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID
ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD
0.0 0.0 10000 50 50 N Y 50000 Y N 1000 100 - 2013/09/28 08:33:45.443 - 2013/09/28 08:33:45.443 source ${source_host} POSTGRESQL Native ${source} ${source_port} ${source_user} ${source_password} FORCE_IDENTIFIERS_TO_LOWERCASEN FORCE_IDENTIFIERS_TO_UPPERCASEN IS_CLUSTEREDN PORT_NUMBER${source_port} QUOTE_ALL_FIELDSN SUPPORTS_BOOLEAN_DATA_TYPEN USE_POOLINGN target ${target_host} POSTGRESQL Native ${target} ${target_port} ${target_user} ${target_password} FORCE_IDENTIFIERS_TO_LOWERCASEN FORCE_IDENTIFIERS_TO_UPPERCASEN IS_CLUSTEREDN PORT_NUMBER${target_port} QUOTE_ALL_FIELDSN SUPPORTS_BOOLEAN_DATA_TYPEY USE_POOLINGN Table inputsourceY Select values 2Table outputY targetSelect values 2N Table input 2digitsY sourcejoinY digitsjoinY Get data from XMLFilter rowsY Filter rowsDatabase join 2Y Database join 2Database joinY joinStream lookupY Stream lookuppadY padtargetY Database joinunionY unionStream lookupY Database join DBJoin Y 4 none target 0 select code as trytoncode from account_account where code like ? N N code String 460 406 Y Database join 2 DBJoin Y 4 none source 0 select code as opencode from account_account where code like ? N N code String 361 409 Y Filter rows FilterRows Y 1 none N name = constantStringcode-1-1N 249 410 Y Get data from XML getXMLData Y 1 none N N N N N N N N N Y UTF-8 ${transformation_path}/account_code_digits/account.xml N N code . node valueof String -1 -1 none N name @name attribut valueof String -1 -1 none N 0 /tryton/data/record/field N N 146 411 Y Select values 2 SelectValues N 1 none left left -2 -2 right right -2 -2 create_uid create_uid -2 -2 create_date create_date -2 -2 write_date write_date -2 -2 write_uid write_uid -2 -2 code code -2 -2 reconcile reconcile -2 -2 currency_id second_currency -2 -2 kind kind -2 -2 active active -2 -2 name name -2 -2 company company -2 -2 note note -2 -2 parent_id parent -2 -2 type type -2 -2 id id -2 -2 N 755 173 Y Stream lookup StreamLookup Y 1 none union N Y N N code opencode trytoncode trytoncode String 450 172 Y Table input TableInput Y 1 none source SELECT * FROM account_account where code in ('4720000221', '4720000321','4770000121'); 0 N N N 116 172 Y Table input 2 TableInput Y 1 none target select value from ir_property where res like 'account.configuration,%' and value not like 'account%' 0 N N N 145 314 Y Table output TableOutput Y 1 none target
account_account
1000 N N N N N N Y N Y N 853 174 Y digits ScriptValueMod N 1 none N 9 0 Script 1 //Script here digits = value.replace(',',''); digits digits Integer -1 -1 N 235 316 Y join JoinRows Y 1 none %%java.io.tmpdir%% out 500
source
N id = id 312 173 Y
pad ScriptValueMod Y 1 none N 9 0 Script 1 //Script here if (code != '4720000221' && code != '4720000321' && code != '4770000121') { code = trytoncode || code; } if(type != "view"){ code = rpad(code,'0', digits); } -1 lpad_Sample // Padds the string to the left with the given character for the specified length // // Usage: // lpad(var,var,var); // 1. String - The String to Pad // 2. Char - The Char to Pad // 3. Number - The Length for the padding // // 2006-11-15 // var str1= "Hello World!"; Alert("Input:" + str1); Alert("Lpad:" + lpad(str1, "x",20)); code code String -1 -1 Y 561 173 Y source Dummy Y 1 none 227 173 Y target Dummy N 1 none 670 171 Y union Dummy Y 1 none 454 297 Y N