<h4>$msg $form->{$ordnumber}</h4>
<p>
+<input type="hidden" name="yes_nextsub" value="delete_order_quotation">
<input name=action class=submit type=submit value="|
. $locale->text('Yes') . qq|">
+<input name=action class=submit type=submit onclick="history.back()" value="|
+ . $locale->text('No') . qq|">
</form>
</body>
$lxdebug->leave_sub();
}
-sub yes {
+sub delete_order_quotation {
$lxdebug->enter_sub();
if ($form->{type} =~ /_order$/) {
$err = $locale->text('Cannot delete quotation!');
}
if (OE->delete(\%myconfig, \%$form, $spool)){
- $form->redirect($msg);
# saving the history
if(!exists $form->{addition}) {
$form->{snumbers} = qq|ordnumber_| . $form->{ordnumber};
$form->save_history($form->dbconnect(\%myconfig));
}
# /saving the history
+ $form->info($msg);
+ exit();
}
$form->error($err);
'create_backorder' => 'create_backorder',
'customer_details' => 'customer_details',
'delete' => 'delete',
+ 'delete_order_quotation' => 'delete_order_quotation',
'delivery_customer_selection' => 'delivery_customer_selection',
'display_form' => 'display_form',
'display_row' => 'display_row',