Skip to main content

No project description provided

Project description

SAP Business One - Python Service Layer Purchasing wrapper

This is entirely untested

This package provides a base wrapper for accessing the SAP service layer in Python for purchasing objects.

Installation

$ python -m pip install sbo-service-purchasing

Supported document types

Implemented

'purchase orders': 'PurchaseOrders',
'receipt of goods': 'PurchaseDeliveryNotes',
'purchase returns': 'PurchaseReturns',
'payable invoices': 'PurchaseInvoices',
'purchase credits': 'PurchaseCreditNotes',

Pending

'payable down payment': 'PurchaseDownPayments',
'purchase quotes': 'PurchaseQuotations',
'purchase requests': 'PurchaseRequests',
'payable tax invoices': 'PurchaseTaxInvoices',

Helpful Examples

def read_sales_order_by_po_and_shipto(sbo: service, po, shipto):
    filter = f"(NumAtCard eq '{po}') and (ShipToCode eq '{shipto}')"

    return read_sales_order_with_filter(sbo, filter)


def so_exists_by_cust_po(sbo: service, customer, po_number):
    filter = f'(CardCode eq \'{customer}\') and (NumAtCard eq \'{po_number}\')'

    response = read_sales_order_with_filter(sbo, filter)

    return response['success']

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sbo_service_purchasing-0.0.6.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

sbo_service_purchasing-0.0.6-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page