// stock : bug fix on supplier orders states change
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10019 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -151,10 +151,10 @@ class SupplierOrderStateCore extends ObjectModel
|
||||
|
||||
//check first if the order is editable
|
||||
if ($is_editable)
|
||||
$query->where('s.editable = 1 OR s.delivery_note = 1');
|
||||
$query->where('s.editable = 1 OR s.delivery_note = 1 OR s.enclosed = 1');
|
||||
//check if the delivery note is available or if the state correspond to a pending receipt state
|
||||
else if ($is_delivery_note || $is_pending_receipt)
|
||||
$query->where('s.delivery_note = 0 AND s.editable = 0');
|
||||
$query->where('(s.delivery_note = 0 AND s.editable = 0) OR s.enclosed = 1');
|
||||
//check if the state correspond to a receipt state
|
||||
else if ($is_receipt_state)
|
||||
$query->where('s.receipt_state = 1 OR s.enclosed = 1');
|
||||
|
||||
Reference in New Issue
Block a user