Beispiel #1
0
def pdf_email_distribution_report(date,
                                  supplier,
                                  to="*****@*****.**",
                                  title=''):
    delay = .5

    navigation.to_distribution_report(date, supplier, "pdf")
    send = SendData()
    send.send('I')
    send.send('{F10}')
    send.send(to)
    send.send('{ENTER}')
    send.send(' ')
    send.send('{DEL}')
    send.send('y ')
    send.send('{F10}')
    send.send('{F12}')
    send.send('{DOWN}')
    if not title:
        title = supplier + " " + date
    send.send(title)
    time.sleep(delay)
    send.send('{ENTER}')
    time.sleep(delay)
    send.send('{F11}')
    time.sleep(delay)
    send.send('{ENTER}')
    time.sleep(delay)
    send.send('{F11}')
    time.sleep(delay)
    send.send('y')
    time.sleep(delay)
    send.send('{ENTER}')
def run_distribution_report(date,supplier):
    window.get_window()
    navigation.to_distribution_report(date,supplier, "screen")    
def print_distribution_report(date,supplier):
    window.get_window()
    navigation.to_distribution_report(date,supplier, "laserprinter")
Beispiel #4
0
def run_distribution_report(date, supplier):
    navigation.to_distribution_report(date, supplier, "screen")
Beispiel #5
0
def print_distribution_report(date, supplier):
    navigation.to_distribution_report(date, supplier, "laserprinter")