-
- if (check_value('DaysOrFoll'))
- {
- $sql = "INSERT INTO ".TB_PREF."payment_terms (terms,
- days_before_due, day_in_following_month)
- VALUES (" .
- db_escape($_POST['terms']) . ", " . db_escape($_POST['DayNumber']) . ", 0)";
- }
- else
- {
- $sql = "INSERT INTO ".TB_PREF."payment_terms (terms,
- days_before_due, day_in_following_month)
- VALUES (" . db_escape($_POST['terms']) . ",
- 0, " . db_escape($_POST['DayNumber']) . ")";
- }