Umrechnung von Einkaufs- in Lagereinheiten bei Wareneingang. Extrafeld "Umrechnungsfaktor" auf Produkten, Hook auf stockMovementCreate (type=3). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
39 lines
1 KiB
PHP
Executable file
39 lines
1 KiB
PHP
Executable file
<?php
|
|
/* Copyright (C) 2026 Eduard Wisch <data@data-it-solution.de>
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
/**
|
|
* \file stockkonversion/lib/stockkonversion.lib.php
|
|
* \ingroup stockkonversion
|
|
* \brief Admin-Tabs für StockKonversion
|
|
*/
|
|
|
|
/**
|
|
* Admin-Tabs vorbereiten
|
|
*
|
|
* @return array
|
|
*/
|
|
function stockkonversionAdminPrepareHead()
|
|
{
|
|
global $langs, $conf;
|
|
|
|
$langs->load("stockkonversion@stockkonversion");
|
|
|
|
$h = 0;
|
|
$head = array();
|
|
|
|
$head[$h][0] = dol_buildpath("/stockkonversion/admin/setup.php", 1);
|
|
$head[$h][1] = $langs->trans("Settings");
|
|
$head[$h][2] = 'settings';
|
|
$h++;
|
|
|
|
complete_head_from_modules($conf, $langs, null, $head, $h, 'stockkonversion@stockkonversion');
|
|
complete_head_from_modules($conf, $langs, null, $head, $h, 'stockkonversion@stockkonversion', 'remove');
|
|
|
|
return $head;
|
|
}
|