X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fdb%2Fcompany_db.inc;h=5108f3aa4049905ae02531af1d676e983b9f4965;hb=5bdc773f0bb3f962a0a37ecc4647dc4e0d2e64e8;hp=9ce6cee070330d153f97ee743a23a0de2c341cf3;hpb=f00216978947d0fd076550f1969430265a270ce7;p=fa-stable.git diff --git a/admin/db/company_db.inc b/admin/db/company_db.inc index 9ce6cee0..5108f3aa 100644 --- a/admin/db/company_db.inc +++ b/admin/db/company_db.inc @@ -52,7 +52,7 @@ function update_company_gl_setup($debtors_act, $pyt_discount_act, $creditors_act function update_company_setup($coy_name, $coy_no, $gst_no, $tax_prd, $tax_last, $postal_address, $phone, $fax, $email, $coy_logo, $domicile, $Dimension, $custom1_name, $custom2_name, $custom3_name, $custom1_value, $custom2_value, $custom3_value, $curr_default, $f_year, $no_item_list, $no_customer_list, - $no_supplier_list) + $no_supplier_list, $base_sales) { if ($f_year == null) $f_year = 0; @@ -77,7 +77,8 @@ function update_company_setup($coy_name, $coy_no, $gst_no, $tax_prd, $tax_last, custom2_value=".db_escape($custom2_value).", custom3_value=".db_escape($custom3_value).", curr_default=".db_escape($curr_default).", - f_year=$f_year + f_year=$f_year, + base_sales=$base_sales WHERE coy_code=1"; db_query($sql, "The company setup could not be updated "); @@ -163,5 +164,14 @@ function delete_fiscalyear($from_date) commit_transaction(); } +function get_base_sales_type() +{ + $sql = "SELECT base_sales FROM ".TB_PREF."company WHERE coy_code=1"; + + $result = db_query($sql, "could not get base sales type"); + $myrow = db_fetch($result); + return $myrow[0]; +} + ?> \ No newline at end of file