Fix Issue #3 - Invoice lines are created in Banqup in reverse or random order than in Openbravo
This commit is contained in:
parent
02122df016
commit
5db1b613d7
|
@ -46,7 +46,7 @@ def extract_invoice(document):
|
||||||
debtor_id = debtor_list[2]['results'][0]['id']
|
debtor_id = debtor_list[2]['results'][0]['id']
|
||||||
preferred_channel = debtor_list[2]['results'][0]['preferred_channel']
|
preferred_channel = debtor_list[2]['results'][0]['preferred_channel']
|
||||||
|
|
||||||
url = ob_api_url+"InvoiceLine?_where=invoice='"+invoice['response']['data'][0]['id']+"'&_noActiveFilter=false"
|
url = ob_api_url+"InvoiceLine?_where=invoice='"+invoice['response']['data'][0]['id']+"'&_noActiveFilter=false&_sortBy=lineNo"
|
||||||
|
|
||||||
response = requests.request("GET", url, headers=headers, data=payload) #extracts invoice lines
|
response = requests.request("GET", url, headers=headers, data=payload) #extracts invoice lines
|
||||||
#print(response.text)
|
#print(response.text)
|
||||||
|
|
Loading…
Reference in a new issue