Add trigger into expedition class
This commit is contained in:
parent
e677390347
commit
32a0f4c530
@ -1806,6 +1806,14 @@ class Expedition extends CommonObject
|
|||||||
{
|
{
|
||||||
// TODO: Add option/checkbox to set order billed if 100% of order is shipped
|
// TODO: Add option/checkbox to set order billed if 100% of order is shipped
|
||||||
$this->statut=2;
|
$this->statut=2;
|
||||||
|
|
||||||
|
// Call trigger
|
||||||
|
$result=$this->call_trigger('SHIPPING_CLOSED',$user);
|
||||||
|
if ($result < 0) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
// End call triggers
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1831,6 +1839,15 @@ class Expedition extends CommonObject
|
|||||||
{
|
{
|
||||||
$this->statut=2;
|
$this->statut=2;
|
||||||
$this->billed=1;
|
$this->billed=1;
|
||||||
|
|
||||||
|
// Call trigger
|
||||||
|
$result=$this->call_trigger('SHIPPING_BILLED',$user);
|
||||||
|
if ($result < 0) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
// End call triggers
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1856,6 +1873,13 @@ class Expedition extends CommonObject
|
|||||||
{
|
{
|
||||||
$this->statut=1;
|
$this->statut=1;
|
||||||
$this->billed=0;
|
$this->billed=0;
|
||||||
|
|
||||||
|
// Call trigger
|
||||||
|
$result=$this->call_trigger('SHIPPING_REOPENED',$user);
|
||||||
|
if ($result < 0) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user