Fix Issue #3 - Invoice lines are created in Banqup in reverse or random order than in Openbravo

This commit is contained in:
Enrique Barcelli 2023-07-29 02:37:39 +08:00
parent 02122df016
commit 5db1b613d7
Signed by: kikobar
GPG key ID: 006C13A68E25D3B7

View file

@ -46,7 +46,7 @@ def extract_invoice(document):
debtor_id = debtor_list[2]['results'][0]['id']
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
#print(response.text)