Create card.php
This commit is contained in:
parent
4e1d4ea1ca
commit
0bc33ef3b3
@ -1216,9 +1216,11 @@ if (empty($reshook)) {
|
|||||||
$classname = ucfirst($subelement);
|
$classname = ucfirst($subelement);
|
||||||
if ($origin == 'propal' || $origin == 'proposal') {
|
if ($origin == 'propal' || $origin == 'proposal') {
|
||||||
$element = 'comm/propal'; $subelement = 'propal';
|
$element = 'comm/propal'; $subelement = 'propal';
|
||||||
|
$classname = 'Propal';
|
||||||
}
|
}
|
||||||
if ($origin == 'order' || $origin == 'commande') {
|
if ($origin == 'order' || $origin == 'commande') {
|
||||||
$element = $subelement = 'commande';
|
$element = $subelement = 'commande';
|
||||||
|
$classname = 'Commande';
|
||||||
}
|
}
|
||||||
if ($origin == 'supplier_proposal') {
|
if ($origin == 'supplier_proposal') {
|
||||||
$classname = 'SupplierProposal';
|
$classname = 'SupplierProposal';
|
||||||
@ -1541,15 +1543,19 @@ if ($action == 'create') {
|
|||||||
if ($origin == 'propal' || $origin == 'proposal') {
|
if ($origin == 'propal' || $origin == 'proposal') {
|
||||||
$classname = 'Propal';
|
$classname = 'Propal';
|
||||||
$element = 'comm/propal'; $subelement = 'propal';
|
$element = 'comm/propal'; $subelement = 'propal';
|
||||||
} elseif ($origin == 'order' || $origin == 'commande') {
|
}
|
||||||
|
if ($origin == 'order' || $origin == 'commande') {
|
||||||
$classname = 'Commande';
|
$classname = 'Commande';
|
||||||
$element = $subelement = 'commande';
|
$element = $subelement = 'commande';
|
||||||
} else {
|
}
|
||||||
|
if ($origin == 'supplier_proposal') {
|
||||||
$classname = 'SupplierProposal';
|
$classname = 'SupplierProposal';
|
||||||
$element = 'supplier_proposal';
|
$element = 'supplier_proposal';
|
||||||
$subelement = 'supplier_proposal';
|
$subelement = 'supplier_proposal';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dol_include_once('/'.$element.'/class/'.$subelement.'.class.php');
|
dol_include_once('/'.$element.'/class/'.$subelement.'.class.php');
|
||||||
|
|
||||||
$objectsrc = new $classname($db);
|
$objectsrc = new $classname($db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user