Fix customer acceptance flow

This commit is contained in:
Almira Krdzic
2018-11-05 10:53:54 +01:00
parent 0d62e7da4b
commit b02f0881d3
2 changed files with 14 additions and 17 deletions

View File

@@ -201,11 +201,6 @@ class Wiaas_Delivery_Process {
$action_entry = $action_entries[0];
Wiaas_Delivery_Process_Action::update_customer_acceptance_status($action_entry['id'], $status, $reason);
if ($status === 'accept') {
Wiaas_Delivery_Process_Action::complete_action_step($action_entry['id']);
}
}
}
@@ -232,8 +227,6 @@ class Wiaas_Delivery_Process {
public static function upload_customer_questionnaire($order_id, $action_entry_id) {
Wiaas_Delivery_Process_Action::upload_customer_questionnaire($action_entry_id);
Wiaas_Delivery_Process_Action::complete_action_step($action_entry_id);
}
public static function upload_customer_acceptance_document($order_id) {
@@ -252,11 +245,6 @@ class Wiaas_Delivery_Process {
$success = Wiaas_Delivery_Process_Action::upload_customer_acceptance_document($action_entry['id']);
if ($success) {
Wiaas_Delivery_Process_Action::complete_action_step($action_entry['id']);
}
return $success;
}