Show setup of option SHOW_SUBPRODUCT_REF_IN_PDF
This commit is contained in:
parent
f56b46bd3e
commit
075cacb8cf
@ -176,6 +176,7 @@ NEW: Weighing Scale compatibility with TakePOS connector
|
|||||||
NEW: when creating a user from a member linked to a thirdparty, you can choose to create it as external or internal user
|
NEW: when creating a user from a member linked to a thirdparty, you can choose to create it as external or internal user
|
||||||
NEW: add clone button on miscellaneous payment
|
NEW: add clone button on miscellaneous payment
|
||||||
NEW: #15065 Add option to put the product label in bold in the PDF templates if configured
|
NEW: #15065 Add option to put the product label in bold in the PDF templates if configured
|
||||||
|
NEW: Add option "If the feature to manage kits of module Stock is used, show details of subproducts of a kit on PDF."
|
||||||
|
|
||||||
|
|
||||||
For developers:
|
For developers:
|
||||||
|
|||||||
@ -33,7 +33,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
||||||
|
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members'));
|
$langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members', 'stocks'));
|
||||||
|
|
||||||
if (!$user->admin) accessforbidden();
|
if (!$user->admin) accessforbidden();
|
||||||
|
|
||||||
@ -80,6 +80,7 @@ if ($action == 'update')
|
|||||||
dolibarr_set_const($db, "MAIN_PDF_MAIN_HIDE_THIRD_TAX", GETPOST("MAIN_PDF_MAIN_HIDE_THIRD_TAX"), 'chaine', 0, '', $conf->entity);
|
dolibarr_set_const($db, "MAIN_PDF_MAIN_HIDE_THIRD_TAX", GETPOST("MAIN_PDF_MAIN_HIDE_THIRD_TAX"), 'chaine', 0, '', $conf->entity);
|
||||||
|
|
||||||
dolibarr_set_const($db, "PDF_USE_ALSO_LANGUAGE_CODE", GETPOST('PDF_USE_ALSO_LANGUAGE_CODE', 'alpha'), 'chaine', 0, '', $conf->entity);
|
dolibarr_set_const($db, "PDF_USE_ALSO_LANGUAGE_CODE", GETPOST('PDF_USE_ALSO_LANGUAGE_CODE', 'alpha'), 'chaine', 0, '', $conf->entity);
|
||||||
|
dolibarr_set_const($db, "SHOW_SUBPRODUCT_REF_IN_PDF", GETPOST('SHOW_SUBPRODUCT_REF_IN_PDF', 'alpha'), 'chaine', 0, '', $conf->entity);
|
||||||
|
|
||||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
||||||
|
|
||||||
@ -331,6 +332,10 @@ print $formadmin->select_language(GETPOSTISSET('PDF_USE_ALSO_LANGUAGE_CODE') ? G
|
|||||||
//}
|
//}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// SHOW_SUBPRODUCT_REF_IN_PDF - Option to show the detail of product ref for kits.
|
||||||
|
print '<tr class="oddeven"><td>'.$langs->trans("SHOW_SUBPRODUCT_REF_IN_PDF", $langs->transnoentitiesnoconv("AssociatedProductsAbility"), $langs->transnoentitiesnoconv("Products")).'</td><td>';
|
||||||
|
print $form->selectyesno('SHOW_SUBPRODUCT_REF_IN_PDF', (!empty($conf->global->SHOW_SUBPRODUCT_REF_IN_PDF)) ? $conf->global->SHOW_SUBPRODUCT_REF_IN_PDF : 0, 1);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|||||||
@ -1868,6 +1868,7 @@ class Expedition extends CommonObject
|
|||||||
$statusType = 'status'.$status;
|
$statusType = 'status'.$status;
|
||||||
if ($status == self::STATUS_VALIDATED) $statusType = 'status4';
|
if ($status == self::STATUS_VALIDATED) $statusType = 'status4';
|
||||||
if ($status == self::STATUS_CLOSED) $statusType = 'status6';
|
if ($status == self::STATUS_CLOSED) $statusType = 'status6';
|
||||||
|
if ($status == self::STATUS_CANCELED) $statusType = 'status9';
|
||||||
|
|
||||||
return dolGetStatus($labelStatus, $labelStatusShort, '', $statusType, $mode);
|
return dolGetStatus($labelStatus, $labelStatusShort, '', $statusType, $mode);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2085,3 +2085,4 @@ ModuleActivatedMayExposeInformation=This module may expose sensitive data. If yo
|
|||||||
ModuleActivatedDoNotUseInProduction=A module designed for the development has been enabled. Do not enable it on a production environment.
|
ModuleActivatedDoNotUseInProduction=A module designed for the development has been enabled. Do not enable it on a production environment.
|
||||||
CombinationsSeparator=Separator character for product combinations
|
CombinationsSeparator=Separator character for product combinations
|
||||||
SeeLinkToOnlineDocumentation=See link to online documention on top menu for examples
|
SeeLinkToOnlineDocumentation=See link to online documention on top menu for examples
|
||||||
|
SHOW_SUBPRODUCT_REF_IN_PDF=If the feature "%s" of module <b>%s</b> is used, show details of subproducts of a kit on PDF.
|
||||||
@ -30,6 +30,7 @@ OtherSendingsForSameOrder=Other shipments for this order
|
|||||||
SendingsAndReceivingForSameOrder=Shipments and receipts for this order
|
SendingsAndReceivingForSameOrder=Shipments and receipts for this order
|
||||||
SendingsToValidate=Shipments to validate
|
SendingsToValidate=Shipments to validate
|
||||||
StatusSendingCanceled=Canceled
|
StatusSendingCanceled=Canceled
|
||||||
|
StatusSendingCanceledShort=Canceled
|
||||||
StatusSendingDraft=Draft
|
StatusSendingDraft=Draft
|
||||||
StatusSendingValidated=Validated (products to ship or already shipped)
|
StatusSendingValidated=Validated (products to ship or already shipped)
|
||||||
StatusSendingProcessed=Processed
|
StatusSendingProcessed=Processed
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user