Skip to content
Snippets Groups Projects
Commit 68b06462 authored by Daniele Nicolodi's avatar Daniele Nicolodi
Browse files

orders: Scrape order date from SAP order view

This allows to assign a date to orders that do not go through a
requisition, for example some framework agreement orders.
parent 91441a9c
Branches
No related tags found
No related merge requests found
......@@ -289,6 +289,9 @@ def scrape_order_ME23N(session, meta, num):
session.findById('wnd[1]').sendVKey(0)
content = session.findById('wnd[0]/usr')
date = parse_date(content.findByName('MEPO_TOPLINE-BEDAT', 'GuiCTextField').Text)
old = meta.setdefault('order-date', date)
assert old == date
# Expand Header
session.findById('wnd[0]').sendVKey(26) # Ctrl+F2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment