Skip to content

Commit

Permalink
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 13, 2024
2 parents 9b510f7 + 16fcb19 commit e8c79df
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion htdocs/asset/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
print '<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.'">';
}
if (GETPOSTISSET('supplier_invoice_id')) {
$object->fields['supplier_invoice_id'] = array('type' => 'integer:FactureFournisseur:fourn/class/fournisseur.facture.class.php:1:entity IN (__SHARED_ENTITIES__)', 'label' => 'SupplierInvoice', 'enabled' => '1', 'noteditable' => '1', 'position' => 280, 'notnull' => 0, 'visible' => 1, 'index' => 1, 'validate' => '1',);
$object->fields['supplier_invoice_id'] = array('type' => 'integer:FactureFournisseur:fourn/class/fournisseur.facture.class.php:1:entity IN (__SHARED_ENTITIES__)', 'label' => 'SupplierInvoice', 'enabled' => '1', 'noteditable' => 1, 'position' => 280, 'notnull' => 0, 'visible' => 1, 'index' => 1, 'validate' => '1',);
print '<input type="hidden" name="supplier_invoice_id" value="' . GETPOSTINT('supplier_invoice_id') . '">';
}

Expand Down
12 changes: 6 additions & 6 deletions htdocs/asset/class/asset.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,12 +434,12 @@ public function fetch($id, $ref = null)
if ($res < 0) {
return -1;
} elseif ($res > 0) {
$this->fields['date_acquisition']['noteditable'] = '1';
$this->fields['date_start']['noteditable'] = '1';
$this->fields['acquisition_value_ht']['noteditable'] = '1';
$this->fields['recovered_vat']['noteditable'] = '1';
$this->fields['reversal_date']['noteditable'] = '1';
$this->fields['reversal_amount_ht']['noteditable'] = '1';
$this->fields['date_acquisition']['noteditable'] = 1;
$this->fields['date_start']['noteditable'] = 1;
$this->fields['acquisition_value_ht']['noteditable'] = 1;
$this->fields['recovered_vat']['noteditable'] = 1;
$this->fields['reversal_date']['noteditable'] = 1;
$this->fields['reversal_amount_ht']['noteditable'] = 1;
}
}

Expand Down
2 changes: 1 addition & 1 deletion htdocs/asset/class/assetdepreciationoptions.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function setInfosForMode($mode, $class_type = 0, $all_field = false)
$this->{$field_key} = $this->deprecation_options[$mode][$field_key] ?? null;
}

$this->fields['rowid'] = array('type' => 'integer', 'label' => 'TechnicalID', 'enabled' => 1, 'position' => 1, 'notnull' => 1, 'visible' => 0, 'noteditable' => 1, 'index' => 1, 'css' => 'left', 'comment' => "Id");
$this->fields['rowid'] = array('type' => 'integer', 'label' => 'TechnicalID', 'enabled' => '1', 'position' => 1, 'notnull' => 1, 'visible' => 0, 'noteditable' => 1, 'index' => 1, 'css' => 'left', 'comment' => "Id");
if (empty($class_type)) {
$this->fields['fk_asset'] = array('type' => 'integer:Asset:asset/class/asset.class.php:1:status=1 AND entity IN (__SHARED_ENTITIES__)', 'label' => 'Asset', 'enabled' => 1, 'position' => 0, 'notnull' => 0, 'visible' => 0, 'index' => 1, 'validate' => 1,);
} else {
Expand Down
4 changes: 2 additions & 2 deletions htdocs/mrp/mo_production.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@

// Line to produce
$moline->fk_mo = $object->id;
$moline->qty = GETPOSTINT('qtytoadd');
$moline->qty = GETPOSTFLOAT('qtytoadd');
$moline->fk_product = GETPOSTINT('productidtoadd');
if (GETPOST('addconsumelinebutton')) {
$moline->role = 'toconsume';
Expand Down Expand Up @@ -493,7 +493,7 @@
$value = GETPOST('options_'.$key, 'alphanohtml');
$moline->array_options["options_".$key] = $value;
}
$moline->qty = GETPOSTINT('qty_lineProduce');
$moline->qty = GETPOSTFLOAT('qty_lineProduce');
$res = $moline->update($user);
if ($res < 0) {
setEventMessages($moline->error, $moline->errors, 'errors');
Expand Down

0 comments on commit e8c79df

Please sign in to comment.