Fix js syntax error
This commit is contained in:
parent
b883a8092a
commit
6743169faa
@ -63,7 +63,7 @@ if (in_array($object->element, array('propal','commande','order','facture','fact
|
||||
|
||||
// Lines for extrafield
|
||||
$objectline = null;
|
||||
if (!empty($extrafieldsline))
|
||||
if (!empty($extrafields))
|
||||
{
|
||||
if ($this->table_element_line=='commandedet') {
|
||||
$objectline = new OrderLine($this->db);
|
||||
@ -475,7 +475,7 @@ if ($nolinesbefore) {
|
||||
|
||||
<?php
|
||||
if (is_object($objectline)) {
|
||||
print $objectline->showOptionals($extrafieldsline, 'edit', array('style'=>$bcnd[$var], 'colspan'=>$coldisplay), '', '', empty($conf->global->MAIN_EXTRAFIELDS_IN_ONE_TD)?0:1);
|
||||
print $objectline->showOptionals($extrafields, 'edit', array('colspan'=>$coldisplay), '', '', empty($conf->global->MAIN_EXTRAFIELDS_IN_ONE_TD)?0:1);
|
||||
}
|
||||
|
||||
if ((! empty($conf->service->enabled) || ($object->element == 'contrat')) && $dateSelector && GETPOST('type') != '0') // We show date field if required
|
||||
@ -854,7 +854,7 @@ function setforpredef() {
|
||||
<?php if (empty($conf->global->MAIN_EDIT_PREDEF_PRICEHT)) { ?>
|
||||
jQuery("#price_ht").val('').hide();
|
||||
<?php } ?>
|
||||
jQuery("#price_ht").val('')
|
||||
jQuery("#price_ht").val('');
|
||||
jQuery("#price_ht, #multicurrency_price_ht, #price_ttc, #fourn_ref, #tva_tx, #title_vat, #title_up_ht, #title_up_ht_currency, #title_up_ttc, #title_up_ttc_currency").hide();
|
||||
jQuery("#np_marginRate, #np_markRate, .np_marginRate, .np_markRate, #units, #title_units").hide();
|
||||
jQuery("#buying_price").show();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user