FIX : stickler feddbacks
This commit is contained in:
parent
2577936670
commit
6e7fa5ffeb
@ -864,7 +864,13 @@ class pdf_eagle extends ModelePdfStockTransfer
|
|||||||
}*/
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
function atLeastOneBatch($object)
|
/**
|
||||||
|
 * Used to know if at least one line of Stock Transfer object has a batch set
|
||||||
|
 *
|
||||||
|
 * @param $object Stock Transfer object
|
||||||
|
 * @return bool true if at least one line has batch set, false if not
|
||||||
|
 */
|
||||||
|
public function atLeastOneBatch($object)
|
||||||
{
|
{
|
||||||
|
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|||||||
@ -505,30 +505,22 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
// Create an array for form
|
// Create an array for form
|
||||||
$formquestion = array();
|
$formquestion = array();
|
||||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ToClone'), $langs->trans('ConfirmCloneAsk', $object->ref), 'confirm_clone', $formquestion, 'yes', 1);
|
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ToClone'), $langs->trans('ConfirmCloneAsk', $object->ref), 'confirm_clone', $formquestion, 'yes', 1);
|
||||||
}
|
} elseif ($action == 'destock') { // Destock confirmation
|
||||||
// Destock confirmation
|
|
||||||
elseif ($action == 'destock') {
|
|
||||||
// Create an array for form
|
// Create an array for form
|
||||||
$formquestion = array( 'text' => '',
|
$formquestion = array( 'text' => '',
|
||||||
array('type' => 'text', 'name' => 'label', 'label' => $langs->trans("Label"), 'value' => $langs->trans('ConfirmDestock', $object->ref), 'size'=>40));
|
array('type' => 'text', 'name' => 'label', 'label' => $langs->trans("Label"), 'value' => $langs->trans('ConfirmDestock', $object->ref), 'size'=>40));
|
||||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DestockAllProduct'), '', 'confirm_destock', $formquestion, 'yes', 1);
|
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DestockAllProduct'), '', 'confirm_destock', $formquestion, 'yes', 1);
|
||||||
}
|
} elseif ($action == 'destockcancel') { // Destock confirmation cancel
|
||||||
// Destock confirmation cancel
|
|
||||||
elseif ($action == 'destockcancel') {
|
|
||||||
// Create an array for form
|
// Create an array for form
|
||||||
$formquestion = array( 'text' => '',
|
$formquestion = array( 'text' => '',
|
||||||
array('type' => 'text', 'name' => 'label', 'label' => $langs->trans("Label"), 'value' => $langs->trans('ConfirmDestockCancel', $object->ref), 'size'=>40));
|
array('type' => 'text', 'name' => 'label', 'label' => $langs->trans("Label"), 'value' => $langs->trans('ConfirmDestockCancel', $object->ref), 'size'=>40));
|
||||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DestockAllProductCancel'), '', 'confirm_destockcancel', $formquestion, 'yes', 1);
|
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DestockAllProductCancel'), '', 'confirm_destockcancel', $formquestion, 'yes', 1);
|
||||||
}
|
} elseif ($action == 'addstock') { // Addstock confirmation
|
||||||
// Addstock confirmation
|
|
||||||
elseif ($action == 'addstock') {
|
|
||||||
// Create an array for form
|
// Create an array for form
|
||||||
$formquestion = array( 'text' => '',
|
$formquestion = array( 'text' => '',
|
||||||
array('type' => 'text', 'name' => 'label', 'label' => $langs->trans("Label").' :', 'value' => $langs->trans('ConfirmAddStock', $object->ref), 'size'=>40));
|
array('type' => 'text', 'name' => 'label', 'label' => $langs->trans("Label").' :', 'value' => $langs->trans('ConfirmAddStock', $object->ref), 'size'=>40));
|
||||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('AddStockAllProduct'), '', 'confirm_addstock', $formquestion, 'yes', 1);
|
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('AddStockAllProduct'), '', 'confirm_addstock', $formquestion, 'yes', 1);
|
||||||
}
|
} elseif ($action == 'addstockcancel') { // Addstock confirmation cancel
|
||||||
// Addstock confirmation cancel
|
|
||||||
elseif ($action == 'addstockcancel') {
|
|
||||||
// Create an array for form
|
// Create an array for form
|
||||||
$formquestion = array( 'text' => '',
|
$formquestion = array( 'text' => '',
|
||||||
array('type' => 'text', 'name' => 'label', 'label' => $langs->trans("Label").' :', 'value' => $langs->trans('ConfirmAddStockCancel', $object->ref), 'size'=>40));
|
array('type' => 'text', 'name' => 'label', 'label' => $langs->trans("Label").' :', 'value' => $langs->trans('ConfirmAddStockCancel', $object->ref), 'size'=>40));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user