2
0
forked from Wavyzz/dolibarr

NEW : stock transfer sheet proforma + default model system like cmd invoice, etc...

This commit is contained in:
Gauthier PC portable 024
2021-08-02 17:28:41 +02:00
parent a45bab10bd
commit b83b77beb5
8 changed files with 1773 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ if ($action == 'updateMask') {
} elseif ($action == 'set') { // Activate a model
$ret = addDocumentModel($value, 'stocktransfer', $label, $scandir);
} elseif ($action == 'del') {
$tmpobjectkey = GETPOST('object');
$tmpobjectkey = 'StockTransfer';
$ret = delDocumentModel($value, 'stocktransfer');
if ($ret > 0) {
@@ -133,7 +133,7 @@ if ($action == 'updateMask') {
if ($conf->global->$constforval == "$value") dolibarr_del_const($db, $constforval, $conf->entity);
}
} elseif ($action == 'setdoc') { // Set default model
$tmpobjectkey = GETPOST('object');
$tmpobjectkey = 'StockTransfer';
$constforval = strtoupper($tmpobjectkey).'_ADDON_PDF';
if (dolibarr_set_const($db, $constforval, $value, 'chaine', 0, '', $conf->entity)) {
// The constant that was read before the new set
@@ -149,7 +149,7 @@ if ($action == 'updateMask') {
} elseif ($action == 'setmod') {
// TODO Check if numbering module chosen can be activated
// by calling method canBeActivated
$tmpobjectkey = GETPOST('object');
$tmpobjectkey = 'StockTransfer';
$constforval = 'STOCKTRANSFER_'.strtoupper($tmpobjectkey)."_ADDON";
dolibarr_set_const($db, $constforval, $value, 'chaine', 0, '', $conf->entity);
}