// Note: in 2.4.9 sparse 'ref' argument was removed (generated transactions use
// next references from default refline).
//
-function add_exchange_variation_all($date=null, $memo)
+function add_exchange_variation_all($date, $memo)
{
begin_transaction();
$exchanged = false;
}
//-----------------------------------------------------------------------------
-function get_extern_rate($curr_b, $provider = 'ECB', $date)
+function get_extern_rate($curr_b, $provider, $date)
{
global $path_to_root;
// 2008-06-15. Added extra parameter $stock_id and reference for $dec
//--------------------------------------------------------------------
-function qty_format($number, $stock_id=null, &$dec) {
+function qty_format($number, $stock_id, &$dec) {
$dec = get_qty_dec($stock_id);
return number_format2($number, $dec);
}
* @key - record key (u/d)
* @data - data to be validated (i/u)
**/
- function _validate($key=null, $data)
+ function _validate($key, $data)
{
$mode = isset($data) ? (isset($key) ? 'u' : 'i') : 'd';
}
-function quick_entries_list_cells($label, $name, $selected_id=null, $type, $submit_on_change=false)
+function quick_entries_list_cells($label, $name, $selected_id, $type, $submit_on_change=false)
{
if ($label != null)
echo "<td>$label</td>\n";
echo "</td>";
}
-function quick_entries_list_row($label, $name, $selected_id=null, $type, $submit_on_change=false)
+function quick_entries_list_row($label, $name, $selected_id, $type, $submit_on_change=false)
{
echo "<tr><td class='label'>$label</td>";
quick_entries_list_cells(null, $name, $selected_id, $type, $submit_on_change);
// When there is no exrate for today,
// gets it form ECB and stores in local database.
//
-function exchange_rate_display($from_currency=null, $to_currency=null, $date_, $force_edit=false)
+function exchange_rate_display($from_currency, $to_currency, $date_, $force_edit=false)
{
global $Ajax, $SysPrefs;
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
function update_item($stock_id, $description, $long_description, $category_id,
- $tax_type_id, $units='', $mb_flag='', $sales_account, $inventory_account,
+ $tax_type_id, $units, $mb_flag, $sales_account, $inventory_account,
$cogs_account, $adjustment_account, $wip_account, $dimension_id,
$dimension2_id, $no_sale, $editable, $no_purchase,
$depreciation_method = 'D', $depreciation_rate=100, $depreciation_factor=1,
}
//-------------------------------------------------------------------------------------------------------------
-function get_allocatable_from_supp_sql($supplier_id=null, $settled)
+function get_allocatable_from_supp_sql($supplier_id, $settled)
{
$sql = "SELECT
trans.type,
}
//-------------------------------------------------------------------------------------------------------------
-function get_allocatable_from_cust_sql($customer_id=null, $settled)
+function get_allocatable_from_cust_sql($customer_id, $settled)
{
$sql = "SELECT
trans.type,