import base64 CACHE = {} # Openbravo API parameters ob_api_url = "http://[your-openbravo-domain]/openbravo/org.openbravo.service.json.jsonrest/" # Keep only one of the 2 sections below and comment out the other: # 1) you may enter the Openbravo user and password ob_user = 'your-ob-user' ob_pass = 'your-ob-password' userpass_b64 = base64.b64encode((ob_user+':'+ob_pass).encode('ascii')).decode('ascii') # 2) you may enter the user:password base64 encoded #userpass_b64 = "your-ob-user:your-ob-password-base64-encoded" # You may use a special product as a 'comment flag' in order to print the invoice line description instead of the product description. # To take advantage of this feature, first create a product for this purpose in the Master Data of Openbravo, and then update # the line below to match the 'Search Key' of that specific product: # comment_product = 'search-key-of-your-comment-product' comment_product = 'Comment/Note' gst_rate = "9" indentation = " " xml_header = '' xmlns_header = 'xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' CustomizationID = 'urn:peppol:pint:billing-1@sg-1' ProfileID = 'urn:peppol:pint:billing-1@sg-1' InvoiceTypeCode = '380' PeppolID = 'SGUEN200212345Z' CountryID = 'SG'