# Removed obsolete field in sys_types
$ /sql/en_US-demo.sql
/sql/en_US-new.sql
+# date_diff function name changed to date_diff2 for php5.3 compatibility
+$ /dimensions/inquiry/search_dimensions.php
+ /includes/date_functions.inc
+ /manufacturing/search_work_orders.php
+ /manufacturing/work_order_add_finished.php
+ /manufacturing/work_order_costs.php
+ /sales/sales_order_entry.php
+ /sales/includes/cart_class.inc
+ /sales/includes/ui/sales_order_ui.inc
08-Sep-2009 Joe Hunt
+ Added Sales Quotations, inquiry and report
function is_overdue($row)
{
- return date_diff(Today(), sql2date($row["due_date"]), "d") > 0;
+ return date_diff2(Today(), sql2date($row["due_date"]), "d") > 0;
}
function edit_link($row)
}
-function date_diff ($date1, $date2, $period)
+function date_diff2 ($date1, $date2, $period)
{
/* expects dates in the format specified in $DefaultDateFormat - period can be one of 'd','w','y','m'
function check_overdue($row)
{
return (!$row["closed"]
- && date_diff(Today(), sql2date($row["required_by"]), "d") > 0);
+ && date_diff2(Today(), sql2date($row["required_by"]), "d") > 0);
}
function view_link($dummy, $order_no)
set_focus('date_');
return false;
}
- if (date_diff(sql2date($wo_details["released_date"]), $_POST['date_'], "d") > 0)
+ if (date_diff2(sql2date($wo_details["released_date"]), $_POST['date_'], "d") > 0)
{
display_error(_("The production date cannot be before the release date of the work order."));
set_focus('date_');
set_focus('date_');
return false;
}
- if (date_diff(sql2date($wo_details["released_date"]), $_POST['date_'], "d") > 0)
+ if (date_diff2(sql2date($wo_details["released_date"]), $_POST['date_'], "d") > 0)
{
display_error(_("The additional cost date cannot be before the release date of the work order."));
set_focus('date_');
if (!$pos['cash_sale'] || !$pos['credit_sale'])
$this->pos = -1; // mark not editable payment type
else
- $this->cash = date_diff($this->due_date, Today(), 'd')<2;
+ $this->cash = date_diff2($this->due_date, Today(), 'd')<2;
if ($this->cash) {
$this->Location = $pos['pos_location'];
$this->location_name = $pos['location_name'];
if ($order->trans_type == 10) {
$order->due_date = get_invoice_duedate($customer_id, $order->document_date);
if ($order->pos != -1)
- $order->cash = date_diff($order->due_date, Today(), 'd')<2;
+ $order->cash = date_diff2($order->due_date, Today(), 'd')<2;
}
if($order->cash ) {
if($order->pos != -1) {
if (!$pos['cash_sale'] || !$pos['credit_sale'])
$doc->pos = -1; // mark not editable payment type
else
- $doc->cash = date_diff($doc->due_date, Today(), 'd')<2;
+ $doc->cash = date_diff2($doc->due_date, Today(), 'd')<2;
} else
$doc->due_date = $doc->document_date;
$doc->reference = references::get_next($doc->trans_type);