Sei sulla pagina 1di 9

integer del_pass_flag,timer_flag,gi_F1srt, gi_limit_run_times

long v_main_grp1,v_main_grp2, gl_not_included_sales_tax = 1

integer w_deliverfromsupp_imd_pay_f = 0

integer w_issuefromstore_imd_pay_f = 0

integer w_issue_wso_gom_imd_pay_f = 0

integer w_issue_wso_gom_remote_imd_pay_f = 0

integer w_issue_wso_kat_imd_pay_f = 0

integer w_issue_wso_private_imd_pay_f = 0

integer w_returnfromcustomer_imd_pay_f = 0

integer w_return_to_supp_imd_pay_f = 0

string gs_sqlstmt, gs_selected_code, gs_selected_desc, gs_shift_type, gs_cb_detail_updt_flg


= 'F'

date gd_selected_date, ins_offer_dt, pr_from_date, pr_to_date, gd_shift_day,


gdt_syn_bk_look_dt, gdt_issue_date

string gs_selected_code_str, ins_offer_no, selected_set_cd, note_flag, gs_inv_no

string sal_pricing_type = 'G', sal_pricing_zone = 'OFFER', pur_pricing_zone = 'ALL'

string sal_pricing_method = 'L', pur_pricing_method = 'N'

long pr_cust_cd_1, pr_cust_cd_2, pr_supp_cd_1, pr_supp_cd_2, g_def_print_copy = 1

integer cust_check_eff1 = 1, cust_check_eff2 = 1, g_arg_val = 1

integer supp_check_eff1 = 1, supp_check_eff2 = 1

integer cust_bank_check_eff1 = 1, cust_bank_check_eff2 = 1

integer supp_bank_check_eff1 = 1, supp_bank_check_eff2 = 1

double idle_time = 1800, g_user_cd, gs_selected_code_num, il_r1 = 1, gdb_customers_code

string gs_user_cd, gs_user_roll_cd, g_user_admin, gs_po_items_def_str = 'N',


gs_basket_status, gs_disappear_price_auto_seller_print

datetime sys_date

double g_ot_del_ser_fee, g_sal_tax_tot_val, gf_est_sales_cost_per_1000,


gd_current_bal_on_date, gd_current_bal_on_date_pack
string g_del_ser_fee_printing, g_sal_tax_printing, GS_SYNCH_TRANSFER_TRANS_OPTIONAL
= 'Z', gs_store_group_cd

string g_without_del_ser, g_without_del_fee, g_print_size, gs_sales_fast_pattern = 'F',


gs_est_sales_cost_per_1000 = 'F'

//Ver Variables

string comp_name, comp_name_eng, owner_name, tel, comp_add, comp_email,


comp_website, comp_facebook, comp_tax_file, comp_reg_no, comp_tax_no,
gs_login_passwd

string def_sales_point, def_sales_point_ot, prtct_trn_dt, bsk_secured, gs_safe_stk_rsn_cd,


GS_BKP_FOLDER, g_money_date_protect

string ver_no, comp_logo_path, sal_tax_cd, sal_tax_added_cd, sal_tax_cd3,


mnf_com_prof_cd, mnf_com_prof_cd1, g_def_trn_type, g_def_amend_reason,
g_amd_rsn_cd_auto, g_amd_rsn_cd_phy_stk

long g_sal_online_cust, credit_cust, credit_supp, no_of_pcs, n_months_bk_pur_trn_vld_dt,


n_months_bk_sal_trn_vld_dt, g_def_amend_str, g_def_amend_type

date issue_st_sr, po_st_sr, deliver_st_sr, re_transout_st_sr, re_transin_st_sr,


ofr_frm_supp_st_sr, ofr_to_cust_st_sr, ord_from_cust_st_sr

string g_amd_rsn_cd_packing, g_amd_rsn_cd_scrapping, g_amd_rsn_cd_loss,


g_amd_rsn_cd_gain

datetime gt_payroll_process_dt

date moneyin_st_sr, moneyout_st_sr, transfer_st_sr, open_bal_st_sr, re_moneyout_st_sr,


gs_transin_dt_print

double def_dly_wrk_hr, dly_wrk_ratio_limit, item_safe_stock_qty, dir_sal_point_val,


gd_cashier_start_amedm_val, gd_cashier_start_amedm_val_C, gd_idle_seconds

string item_sets_desc, g_cashier_no_entry, g_ot_str_dpt, g_ot_bsk_no_lot,


gs_item_exp_imp // F False, E Export, I Import

long dft_trn_str, g_def_ot_print_copy, g_def_issue_print_copy,


g_def_issue_ret_print_copy, ret_fr_cust_days_bk, ret_to_supp_days_bk

string ServerName, ServerName_def, ServerName_1, ServerName_2, ServerName_3,


ServerName_4, ServerName_5

string ServerName_def_desc, ServerName_1_desc, ServerName_2_desc,


ServerName_3_desc, ServerName_4_desc, ServerName_5_desc

string db_def, db_1, db_2, db_3, db_4, db_5, gs_show_pur_price,


gs_Auto_RePricing_when_AutoSellerIssue
string ServerName_selected, moneyin_fawry, moneyout_fawry, g_booking_in_issue,
gs_protect_cheek_status,gs_store_trans_auto_sr_no

string kilo_to_uom_flag, g_expenses_cd, g_incomes_cd, g_barcode_facility,


gs_light_remote, gs_auto_stock_date

string g_backup_mod, g_cust_item_dim, g_price_protect, g_price_protect_pass,


g_auto_seller_issue_date_pass

string purr, purr_ext, wb, str, sall, fmnf, maintenance, gacc, cacc, hrd, att, pay, pln, adm,
proj, cars, fixed_assets, gs_issue_all_ord_items_or_cncl_issue

string sal_inv_grp, g_att_log_name, g_att_log_pass, g_cust_ret_aff_rem,


G_OT_Direct_Issue, G_OT_Direct_Money_In

string g_sal_pricing_type, g_sal_pricing_zone, g_sal_pricing_method,


g_pur_pricing_zone,g_pur_pricing_method, gs_issue_without_bal = 'N', gs_data_scope_cd

string g_amd_rsn_cd_mfc, g_receipt_printer_name, g_receipt_printer_name2,


g_show_sal_point, gs_cust_no, g_direct_sale_log_name, g_direct_sale_log_pass,
gs_sales_reg_show_dtl_price = 'Y', gs_transin_no_print

string g_estimated_profits_log_name, g_estimated_profits_log_pass, gs_license_name,


gs_business_loc_id, gs_db_id, g_chg_gate_logon_pass, gs_db_ver,
gs_BASKET_PROFIT_security = 'N'

string gs_gain_loss_short_cd, gs_transout_no_def_store,


gs_id_elem_cd_separate_print_rcpt, gs_process_month_tb, gs_prev_process_month_tb,
gs_force_trial_bal_acc_cd = 'N', gs_pricing_or_eval'%' =

double gd_main_sub_sub_sub_acc_cd_val_op_cr,
gd_main_sub_sub_sub_acc_cd_val_op_dr, gd_main_sub_sub_sub_acc_cd_val_cr,
gd_main_sub_sub_sub_acc_cd_val_dr, gd_main_sub_sub_sub_acc_cd_val_clg_cr,
gd_main_sub_sub_sub_acc_cd_val_clg_dr, gd_main_sub_sub_sub_acc_cd_val_net

string gs_tb_start_month, gs_last_AUTOCALC_successed = 'NOTCOMPLETED',


gs_add_item_to_bskt_if_no_bal = 'Y', gs_hide_pur_price_in_store = 'N',
gs_hide_company_header = 'N', gs_print_on_blank_paper = 'Y
.47 //El-Sraya

-----------------//Global variables//-----------------

gs_db_ver = '8i'

gs_login_passwd = 'shalaby2008'

gs_cust_no = '47'

gs_license_name = 'TBMS-Local'

gs_business_loc_id'' =

gs_db_id'' =

gd_idle_seconds = 900

gi_limit_run_times = 0

idle(gd_idle_seconds)

gs_issue_without_bal = 'N'

gs_store_trans_auto_sr_no = 'N'

//ver_no = '402.30012012' ; gi_F1srt = 1

ver_no = '409.15032012' ; gi_F1srt = 1

GS_BKP_FOLDER = 'D:\BAK'

//Database Connections//

ServerName_def = "ISPDB"/*10.10.10.1, ORCC*/; db_def = 'T';


ServerName_def_desc'‫= 'قاعد البيانات الحالية‬

ServerName_1 = "ISPDB1"/*10.10.10.1, ORC21*/; db_1 = 'F'; ServerName_1_desc =


'‫'غير متاحة‬

ServerName_2 = "ISPDB2"/*10.10.10.1, ORC22*/; db_2 = 'F'; ServerName_2_desc =


'‫'غير متاحة‬
ServerName_3 = "ISPDB3"/*10.10.10.1, ORC23*/; db_3 = 'F'; ServerName_3_desc =
'‫'غير متاحة‬

ServerName_4 = "ISPDB4"/*10.10.10.1, ORC24*/; db_4 = 'F'; ServerName_4_desc =


'‫'غير متاحة‬

ServerName_5 = "ISPDB5"/*10.10.10.1, ORC25*/; db_5 = 'F'; ServerName_5_desc =


'‫'غير متاحة‬

//End of Database Connections//

comp_name'‫= 'السرايا للتحف والنجف‬

owner_name'‫وائل أمين‬/‫= 'أ‬

comp_name_eng = 'El-Sraya'

comp_logo_path'' =

tel'' =

comp_add'‫= 'ميدان الساعة‬

comp_email'' =

comp_website'' =

comp_facebook'' =

comp_tax_file'' =

comp_reg_no'' =

comp_tax_no'' =

credit_cust = 1 ‫ العميل النقدى‬//Takeaway

credit_supp = 1 ‫ المورد النقدى‬//

moneyin_fawry = 'A' // A/ N/ F: All/ Nakdy only/ False

moneyout_fawry = 'A' // A/ N/ F: All/ Nakdy only/ False

def_sales_point = 'S0001' ‫ إدارة التسويق‬/ ‫ مبدئية‬//

def_sales_point_ot = 'S0001' //

open_bal_st_sr = date('01/05/2011)'

issue_st_sr = date('01/05/2011)'

po_st_sr = date('01/05/2011)'

deliver_st_sr = date('01/05/2011)'
re_transout_st_sr = date('01/05/2011)'

re_transin_st_sr = date('01/05/2011)'

ofr_frm_supp_st_sr = date('01/05/2011)'

ofr_to_cust_st_sr = date('01/05/2011)'

ord_from_cust_st_sr = date('01/05/2011)'

moneyin_st_sr = date('01/05/2011)'

moneyout_st_sr = date('01/05/2011)'

transfer_st_sr = date('01/05/2011)'

re_moneyout_st_sr = date('01/11/2011)'

def_dly_wrk_hr = 8

no_of_pcs = 4

n_months_bk_pur_trn_vld_dt = 36

n_months_bk_sal_trn_vld_dt = 36

item_sets_desc'‫= 'األطقم‬

g_cashier_no_entry = 'S' // A: Automatic (user, time), S: SELECT

g_ot_str_dpt'‫= 'مخزن‬

item_safe_stock_qty = 0

g_def_ot_print_copy = 1

g_def_issue_print_copy = 1

dly_wrk_ratio_limit = 0.90

dft_trn_str = 0

g_ot_bsk_no_lot = 'L'

ret_fr_cust_days_bk = 30

ret_to_supp_days_bk = 30

kilo_to_uom_flag = 'N'

cust_check_eff2 = 1 1( //no effect, 2 effect)

supp_check_eff2 = 1 1( //no effect, 2 effect)


cust_bank_check_eff2 = 1 1( //no effect, 2 effect)

supp_bank_check_eff2 = 1 1( //no effect, 2 effect)

g_expenses_cd = '02001'

g_incomes_cd = '02002'

g_backup_mod = 'T'

g_cust_item_dim = 'F'

sal_inv_grp = '0'

g_att_log_name = 'att'

g_att_log_pass = 'att'

sal_tax_cd = 'A02'

sal_tax_added_cd = 'A999'

sal_tax_cd3 = 'AAA'

mnf_com_prof_cd = 'D09'

mnf_com_prof_cd1 = 'D09'

setnull(g_sal_online_cust)

prtct_trn_dt = 'N'

bsk_secured = 'N'

gs_safe_stk_rsn_cd = '000'

g_cust_ret_aff_rem = 'N'

g_price_protect_pass'' =

g_price_protect = 'N'

g_def_amend_str = 1 ; g_def_amend_type = 1 ; g_def_trn_type = 'TI' ;


g_def_amend_reason'‫= 'تسوية جرد‬

g_sal_pricing_type='G';g_sal_pricing_zone='OFFER';g_sal_pricing_method='L'

g_pur_pricing_zone='ALL';g_pur_pricing_method='L'

purr_ext='N';purr='Y';wb='N';str='Y';sall='Y';maintenance='N';fmnf='N';gacc='Y';cacc=
'Y' ;hrd='Y';att='Y';pay='Y';pln='Y';adm='Y';proj='N';cars='N';fixed_assets='Y'

dir_sal_point_val = 2
g_show_sal_point = 'N'

G_OT_Direct_Issue = 'T'

G_OT_Direct_Money_In = 'T'

g_barcode_facility = 'T'

g_amd_rsn_cd_mfc = '' // Production

g_amd_rsn_cd_packing = '005' // Packing

g_amd_rsn_cd_scrapping = '006' // Scrap

g_amd_rsn_cd_loss = '007' // Loss

g_amd_rsn_cd_gain = '008' // Gain

g_amd_rsn_cd_auto = '007' // PACKING STORE

g_amd_rsn_cd_auto = '001'

g_amd_rsn_cd_phy_stk = '001'

g_receipt_printer_name = 'TBMS Printer'

g_receipt_printer_name2'' =

gd_cashier_start_amedm_val = 0

gd_cashier_start_amedm_val_C = 0

g_auto_seller_issue_date_pass = 'password'

g_direct_sale_log_name'' =

g_direct_sale_log_pass'' =

gs_issue_all_ord_items_or_cncl_issue = 'Y'

g_def_issue_ret_print_copy = 2

gs_item_exp_imp = 'F'

g_booking_in_issue = 'N'

gs_Auto_RePricing_when_AutoSellerIssue = 'N'

gs_light_remote = 'N'

gs_protect_cheek_status = 'Y'

g_money_date_protect = 'N'
g_estimated_profits_log_name'' =

g_estimated_profits_log_pass'' =

g_chg_gate_logon_pass = 'O' //O: Optional - F: Force chg att pass when


chg sys login pass

gs_auto_stock_date = 'SYSTEM_DATE'

gs_gain_loss_short_cd = '01004%'

gs_tb_start_month = '201201'

//---------------------------------------------------//

gs_add_item_to_bskt_if_no_bal = 'Y'

gs_hide_pur_price_in_store = 'N'

gs_hide_company_header = 'N'

gs_print_on_blank_paper = 'Y'

gs_force_trial_bal_acc_cd = 'N''