Ejemplo n.º 1
0
def fSetup_ChooseTAL():
#---------------------------------------------------#

    type("a",KeyModifier.ALT)           # choose accounting link 
    time.sleep(1)
    type("c")
    time.sleep(1)
    
    myTools.pressUP(3)                  # TAL 
    myTools.pressTAB(1)                 # OK
    type(Key.ENTER)                     
    time.sleep(1)
Ejemplo n.º 2
0
def fSort_SlipReportFields():
#---------------------------------------------------#

    logging.debug('- fSort_SlipReportFields')

    time.sleep(1)
    type("o",KeyModifier.CTRL)
    time.sleep(1)

    # switch to sort
    type(Key.F6)
    time.sleep(1)
    
    # select slip num
    myTools.pressTAB(1)
    time.sleep(1)
    type(Key.END)
    time.sleep(1)
    myTools.pressUP(4)
    time.sleep(1)    
    myTools.pressTAB(1)
    time.sleep(1)
    type(Key.SPACE)
Ejemplo n.º 3
0
def fSetup_Template():
#---------------------------------------------------#

    logging.debug('- set up client template')
    type("f",KeyModifier.ALT)
    type("n")
    time.sleep(1)
    
    type("c")
    type(Key.ENTER)
    time.sleep(1)
    type("c")
    type(Key.ENTER)

#choose source
    wait("put_data_into.png",FOREVER)
    time.sleep(1)
    type("g",KeyModifier.ALT)
    time.sleep(1)
    paste(Settings.cliFile)

#choose fields
    myTools.pressTAB(7)

# nn1
    myTools.pressDOWN(3)
    type(Key.ENTER)

# nn2
    myTools.pressDOWN(1)
    type(Key.ENTER)

  # fullname
    myTools.pressDOWN(1)
    type(Key.ENTER)

  # add1
    myTools.pressDOWN(1)
    type(Key.ENTER)

  # city
    type("c")
    time.sleep(1)    
    type(Key.ENTER)
  # state
    myTools.pressDOWN(1)
    type(Key.ENTER)
  # zip
    myTools.pressDOWN(1)
    type(Key.ENTER)

  # address 1
    type("aaaa")
    time.sleep(1)
    type(Key.ENTER)

    # phone 1
    type("p")
    time.sleep(1)
    type(Key.ENTER)

    # in reference to
    type("i")
    time.sleep(1)    
    type(Key.ENTER)

    # notes
    myTools.pressDOWN(1)
    type(Key.ENTER)

# rate 01 - 05
    type("rrr")
    type(Key.ENTER)
    time.sleep(1)        
    myTools.pressDOWN(1)
    type(Key.ENTER)
    myTools.pressDOWN(1)
    type(Key.ENTER)
    myTools.pressDOWN(1)
    type(Key.ENTER)
    myTools.pressDOWN(1)
    type(Key.ENTER)
    time.sleep(1)    

# rate 06 - 10
    myTools.pressDOWN(1)
    type(Key.ENTER)
    myTools.pressDOWN(1)
    type(Key.ENTER)
    myTools.pressDOWN(1)
    type(Key.ENTER)
    myTools.pressDOWN(1)
    type(Key.ENTER)
    myTools.pressDOWN(1)
    type(Key.ENTER)
    time.sleep(1)    

# rate 11 - 15
    myTools.pressDOWN(1)
    type(Key.ENTER)
    myTools.pressDOWN(1)
    type(Key.ENTER)
    myTools.pressDOWN(1)
    type(Key.ENTER)
    myTools.pressDOWN(1)
    type(Key.ENTER)
    myTools.pressDOWN(1)
    type(Key.ENTER)
    time.sleep(1)    

# rate 16 - 20
    myTools.pressDOWN(1)
    type(Key.ENTER)
    myTools.pressDOWN(1)
    type(Key.ENTER)
    myTools.pressDOWN(1)
    type(Key.ENTER)
    myTools.pressDOWN(1)
    type(Key.ENTER)
    myTools.pressDOWN(1)
    type(Key.ENTER)
    time.sleep(1)    

    # custom
    type("c")
    time.sleep(1)    
    type("c")
    time.sleep(1)        
    
    customFields = ['Date','Hours','CountyList','Money','PopNumber','Percent','GovText','Timekeeper']
    for customField in customFields:
        fAdd_CustomField(customField, customFields.index(customField))

# if ts2015 or later, address2 fields

    if int(Settings.tsVersion) > 2014:
        
        # Add1        
        type("o")
        type(Key.ENTER)

        # City2       
        myTools.pressDOWN(4)
        type(Key.ENTER)

        # State2
        myTools.pressDOWN(1)
        type(Key.ENTER)

        # ZIP2
        myTools.pressDOWN(1)
        type(Key.ENTER)

        # Country2
        myTools.pressUP(3)
        type(Key.ENTER)

# omit 1st record
    click("limit_records.png")
    type(Key.TAB)
    type("2")
    time.sleep(1)