Atualizando arquivos
This commit is contained in:
parent
e83da0c1b1
commit
922c35ae89
1 changed files with 5 additions and 5 deletions
10
js/main.js
10
js/main.js
|
|
@ -1698,16 +1698,16 @@ function prepareBudget(id, source, productId, budgetsId){
|
|||
case 'products':
|
||||
|
||||
/** Carrega a descrição */
|
||||
$('#description').val($(id).find('td:eq(3)').text());
|
||||
$('#description').val($(id).find('td:eq(3)').text().trim());
|
||||
|
||||
/** Seleciona o mês */
|
||||
$("#readjustment_month option:contains(" + $(id).find('td:eq(4)').text() + ")").attr('selected', true);
|
||||
$("#readjustment_month option:contains(" + $(id).find('td:eq(4)').text().trim() + ")").attr('selected', true);
|
||||
|
||||
/** Carrega o dia do vencimento*/
|
||||
$('#day_due').val($(id).find('td:eq(5)').text());
|
||||
$('#day_due').val($(id).find('td:eq(5)').text().trim());
|
||||
|
||||
/** Carrega o valor do orçamento */
|
||||
$('#budget').val($(id).find('td:eq(6)').text());
|
||||
$('#budget').val($(id).find('td:eq(6)').text().trim());
|
||||
|
||||
/** Informa o id do produto */
|
||||
$('#products_id').val(productId);
|
||||
|
|
@ -1717,7 +1717,7 @@ function prepareBudget(id, source, productId, budgetsId){
|
|||
case 'budgets':
|
||||
|
||||
/** Carrega a descrição */
|
||||
$('#description').val($(id).find('td:eq(2)').text());
|
||||
$('#description').val($(id).find('td:eq(2)').text().trim());
|
||||
|
||||
/** Separa o último mês de reajuste */
|
||||
let lastMonth = ($(id).find('td:eq(9)').text()).split('/');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue