- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
function toTrash($id)
{
$data = array(
'order_id' => $id,
'order_archived' => 0,
'order_trashed' => 1,
'order_candelled' => 0
);
return $this->update_order($data);
}
function toArchive($id)
{
$data = array(
'order_id' => $id,
'order_archived' => 1,
'order_trashed' => 0,
'order_candelled' => 0
);
return $this->update_order($data);
}
function restore($id)
{
$data = array(
'order_id' => $id,
'order_archived' => 0,
'order_trashed' => 0
'order_candelled' => 0
);
return $this->update_order($data);
}
function cancelled($id)
{
$data = array(
'order_id' => $id,
'order_archived' => 0,
'order_trashed' => 0,
'order_candelled' => 1
);
return $this->update_order($data);
}