0.00.0100005050NY50000YN1000100-2013/09/28 08:33:45.443-2013/09/28 08:33:45.443source${source_host}POSTGRESQLNative${source}${source_port}${source_user}${source_password}FORCE_IDENTIFIERS_TO_LOWERCASENFORCE_IDENTIFIERS_TO_UPPERCASENIS_CLUSTEREDNPORT_NUMBER${source_port}QUOTE_ALL_FIELDSNSUPPORTS_BOOLEAN_DATA_TYPENUSE_POOLINGNtarget${target_host}POSTGRESQLNative${target}${target_port}${target_user}${target_password}FORCE_IDENTIFIERS_TO_LOWERCASENFORCE_IDENTIFIERS_TO_UPPERCASENIS_CLUSTEREDNPORT_NUMBER${target_port}QUOTE_ALL_FIELDSNSUPPORTS_BOOLEAN_DATA_TYPEYUSE_POOLINGNTable inputsourceYSelect values 2Table outputYtargetSelect values 2NTable input 2digitsYsourcejoinYdigitsjoinYGet data from XMLFilter rowsYFilter rowsDatabase join 2YDatabase join 2Database joinYjoinStream lookupYStream lookuppadYpadtargetYDatabase joinunionYunionStream lookupYDatabase joinDBJoinY4nonetarget0select code as trytoncode from account_account where code like ?NNcodeString460406YDatabase join 2DBJoinY4nonesource0select code as opencode from account_account where code like ?NNcodeString361409YFilter rowsFilterRowsY1noneNname=constantStringcode-1-1N249410YGet data from XMLgetXMLDataY1noneNNNNNNNNNYUTF-8${transformation_path}/account_code_digits/account.xmlNNcode.nodevalueofString-1-1noneNname@nameattributvalueofString-1-1noneN0/tryton/data/record/fieldNN146411YSelect values 2SelectValuesN1noneleftleft-2-2rightright-2-2create_uidcreate_uid-2-2create_datecreate_date-2-2write_datewrite_date-2-2write_uidwrite_uid-2-2codecode-2-2reconcilereconcile-2-2currency_idsecond_currency-2-2kindkind-2-2activeactive-2-2namename-2-2companycompany-2-2notenote-2-2parent_idparent-2-2typetype-2-2idid-2-2N755173YStream lookupStreamLookupY1noneunionNYNNcodeopencodetrytoncodetrytoncodeString450172YTable inputTableInputY1nonesourceSELECT * FROM account_account where code in ('4720000221', '4720000321','4770000121');0NNN116172YTable input 2TableInputY1nonetargetselect value from ir_property where res like 'account.configuration,%' and value not like 'account%'0NNN145314YTable outputTableOutputY1nonetarget
account_account
1000NNNNNNYNYN853174YdigitsScriptValueModN1noneN90Script 1//Script here
digits = value.replace(',','');digitsdigitsInteger-1-1N235316YjoinJoinRowsY1none%%java.io.tmpdir%%out500sourceNid=id312173YpadScriptValueModY1noneN90Script 1//Script here
if (code != '4720000221' && code != '4720000321' && code != '4770000121') {
code = trytoncode || code;
}
if(type != "view"){
code = rpad(code,'0', digits);
}-1lpad_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));codecodeString-1-1Y561173YsourceDummyY1none227173YtargetDummyN1none670171YunionDummyY1none454297YN