Lines 695-708
Link Here
|
695 |
params['replacementprice'] = row.replacement_price; |
695 |
params['replacementprice'] = row.replacement_price; |
696 |
params['unitprice'] = ( invoiceincgst=="1" ) ? ( row.unit_price_tax_included || row.ecost_tax_included ) : ( row.unit_price_tax_excluded || row.ecost_tax_excluded ); |
696 |
params['unitprice'] = ( invoiceincgst=="1" ) ? ( row.unit_price_tax_included || row.ecost_tax_included ) : ( row.unit_price_tax_excluded || row.ecost_tax_excluded ); |
697 |
params['order_internalnote'] = row.internal_note; |
697 |
params['order_internalnote'] = row.internal_note; |
698 |
if(effective_create_items == 'receiving') { |
698 |
if (effective_create_items == 'receiving') { |
699 |
Object.keys(row.items).forEach(function(key) { |
699 |
row.items.forEach(function(item){ |
700 |
var item = row.items[key]; |
700 |
Object.keys(item).forEach(function(item_field){ |
701 |
Object.keys(item).forEach(function(key) { |
701 |
Object.keys(item[item_field]).forEach(function(key){ |
702 |
var field = item[key]; |
702 |
if (!params[key]) params[key] = []; |
703 |
Object.keys(field).forEach(function(key) { |
703 |
params[key].push(item[item_field][key]); |
704 |
if(!params[key]) params[key] = []; |
|
|
705 |
params[key].push(item[key]); |
706 |
}); |
704 |
}); |
707 |
}); |
705 |
}); |
708 |
}); |
706 |
}); |
709 |
- |
|
|