if ($input_error != 1)
{
+ write_recurrent_invoice($selected_id, $_POST['description'], $_POST['order_no'], input_num('debtor_no'),
+ input_num('group_no'), input_num('days', 0), input_num('monthly', 0), $_POST['begin'], $_POST['end'],
+ get_post('last_sent',null));
+
if ($selected_id != -1)
- {
- update_recurrent_invoice($selected_id, $_POST['description'], $_POST['order_no'], input_num('debtor_no'),
- input_num('group_no'), input_num('days', 0), input_num('monthly', 0), $_POST['begin'], $_POST['end']);
- if (isset($_POST['last_sent']))
- update_last_sent_recurrent_invoice($selected_id, $_POST['last_sent']);
$note = _('Selected recurrent invoice has been updated');
- }
else
- {
- add_recurrent_invoice($_POST['description'], $_POST['order_no'], input_num('debtor_no'), input_num('group_no'),
- input_num('days', 0), input_num('monthly', 0), $_POST['begin'], $_POST['end']);
$note = _('New recurrent invoice has been added');
- }
-
+
display_notification($note);
$Mode = 'RESET';
}
}
+
if ($Mode == 'Delete')
{
alt_table_row_color($k);
label_cell($myrow["description"]);
- label_cell(get_customer_trans_view_str(ST_SALESORDER, $myrow["order_no"]));
+ label_cell(get_customer_trans_view_str(ST_SALESORDER, $myrow["order_no"]), "nowrap align='right'");
if ($myrow["debtor_no"] == 0)
{
label_cell("");