if ($date == null)
$date = Today();
- if ($factor == null)
+ if ($factor === null)
{
$myrow = get_sales_type(get_post('sales_type_id'));
$factor = $myrow['factor'];
{
$doc_type = get_parent_type($doc_type);
- //echo "update line: $line_id, $doc_type, $qty_dispatch";
+// echo "update line: $line_id, $doc_type, $qty_dispatched";
if ($doc_type==0)
return false;
else {