Log 2537

$expenseType = #סוג ההוצאה#;
$expenseCost = #עלות ההוצאה#;

if ($expenseType == ‘קבועה’) {
$currentMonth = date(‘m’);
$currentYear = date(‘Y’);

$totalExpenseCost = 0;

for ($i = 1; $i 12) {
$monthToAdd -= 12;
$currentYear++;
}

$formattedDate = ’01/’ . str_pad($monthToAdd, 2, ‘0’, STR_PAD_LEFT) . ‘/’ . $currentYear;

return “Expense on {$formattedDate}: {$expenseCost}n”;

// Add expense cost to total
$totalExpenseCost += (float)$expenseCost;
}

return “Total expense for the next three months: {$totalExpenseCost}n”;
} else {
return “”;
}

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
  • Attributes
  • Custom attributes
  • Custom fields
Click outside to hide the comparison bar
Compare