X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Ftypes.inc;h=9003ecebbdaf0e49fa008ee6cf0ff1588a52cc12;hb=f894cd3d6fd2f6875382e5cd33020fb14245aa90;hp=73efbfe1107bfefd8665c95f6985c34cedce5aad;hpb=1f0c585ef87e9138499a71ae2954b1a177a6ef97;p=fa-stable.git diff --git a/includes/types.inc b/includes/types.inc index 73efbfe1..9003eceb 100644 --- a/includes/types.inc +++ b/includes/types.inc @@ -110,11 +110,11 @@ class systypes //---------------------------------------------------------------------------------- $bank_account_types_array = array ( - 0=> array ('id' => 0, 'name' => _("Savings Account")), - 1=> array ('id' => 1, 'name' => _("Chequing Account")), - 2=> array ('id' => 2, 'name' => _("Credit Account")), - 3=> array ('id' => 3, 'name' => _("Cash Account")) - ); + 0=> array ('id' => 0, 'name' => _("Savings Account"), 'ptype' => _("Transfer")), + 1=> array ('id' => 1, 'name' => _("Chequing Account"),'ptype' => _("Cheque")), + 2=> array ('id' => 2, 'name' => _("Credit Account"), 'ptype' => _("Credit")), + 3=> array ('id' => 3, 'name' => _("Cash Account"), 'ptype' => _("Cash")) + ); class bank_account_types { @@ -130,8 +130,13 @@ class bank_account_types global $bank_account_types_array; return $bank_account_types_array[$index]['name']; } + + function transfer_type($index) + { + global $bank_account_types_array; + return $bank_account_types_array[$index]['ptype']; + } } - //---------------------------------------------------------------------------------- include_once($path_to_root . "/manufacturing/includes/manufacturing_db.inc");