Log 3375
04/06/2024 2024-06-04 16:33$payment_terms = [
“שוטף + 5”,
“שוטף + 10”,
“שוטף + 15”,
“שוטף + 20”,
“שוטף + 25”,
“שוטף + 30”,
“שוטף + 35”,
“שוטף + 45”,
“שוטף + 60”
];
$days_to_add = end($payment_terms);
$days_to_add = substr($days_to_add, strpos($days_to_add, “+”) + strlen(“+”));
$open_date = #תאריך פתיחה#;
$new_date = date(‘d/m/Y’, strtotime($open_date . ‘ +’ . $days_to_add . ‘ days’));
return $new_date;