Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Jonathan Vargas
Added: Apr 29, 2020 4:23 PM
Views: 128
Tags: no tags
  1. var sublista = custpage_cuentas_ventas_machine
  2.  
  3. // fill subsidiarias
  4. var e = [4,7,5,16,14,29,11,30,28,12,2];
  5.  
  6. for(var i =1; i< e.length;i++){
  7.        
  8.         sublista.copyline();
  9.         nlapiSetCurrentLineItemValue('custpage_cuentas_ventas','custpage_cuentas_ventas_subsidiaria',e[i]);
  10.         sublista.doAddEdit();
  11.  
  12. }
  13.