def demo_eor(self): """ This demo shows how you should report your invoice to the FURS. """ # First we'll need to initialize FURSInvoice APi - so that it loads all the certs api = FURSInvoiceAPI(p12_path=P12_CERT_PATH, p12_password=P12_CERT_PASS, production=False, request_timeout=1.0) date_issued = datetime.now(tz=pytz.UTC) print("Sales book invoice") # get EOR code from FURS eor = api.get_sales_book_invoice_eor(tax_number=10039856, issued_date=date_issued, invoice_number='612', business_premise_id='BP105', set_number='03', serial_number='5001-0001018', invoice_amount=66.71, low_tax_rate_base=35.14, low_tax_rate_amount=3.34, high_tax_rate_base=23.14, high_tax_rate_amount=5.09, operator_tax_number=12345678) print("EOR: " + eor)
def demo_eor(self): """ This demo shows how you should report your invoice to the FURS. """ # First we'll need to initialize FURSInvoice APi - so that it loads all the certs api = FURSInvoiceAPI(p12_path=P12_CERT_PATH, p12_password=P12_CERT_PASS, production=False, request_timeout=1.0) date_issued = datetime.now(tz=pytz.UTC) print("Sales book invoice") # get EOR code from FURS eor = api.get_sales_book_invoice_eor( tax_number=10039856, issued_date=date_issued, invoice_number="612", business_premise_id="BP105", set_number="03", serial_number="5001-0001018", invoice_amount=66.71, low_tax_rate_base=35.14, low_tax_rate_amount=3.34, high_tax_rate_base=23.14, high_tax_rate_amount=5.09, operator_tax_number=12345678, ) print("EOR: " + eor)
def demo_eor(self): """ This demo shows how you should report your invoice to the FURS. """ # First we'll need to initialize FURSInvoice APi - so that it loads all the certs api = FURSInvoiceAPI(p12_path=P12_CERT_PATH, p12_password=P12_CERT_PASS, production=False, request_timeout=1.0) date_issued = datetime.now(tz=pytz.UTC) print("Sales book invoice") # Construct TaxesPerSeller object - for each seller. # In most cases there will be just one seller - the one that issues the invoice # For some cases - you may need to include more sellers. In that case # do not forget to set seller_tax_number for the other sellers. # you don't need to set it for your company - but you do for others. seller_one = TaxesPerSeller(other_taxes_amount=None, exempt_vat_taxable_amount=None, reverse_vat_taxable_amount=None, non_taxable_amount=None, special_tax_rules_amount=None, seller_tax_number=None) seller_one.add_vat_amount(tax_rate=22, tax_base=23.14, tax_amount=5.09) seller_one.add_vat_amount(tax_rate=9.5, tax_base=35.14, tax_amount=3.34) # 5% vat - for books etc... seller_one.add_vat_amount(tax_rate=5, tax_base=10, tax_amount=0.5) # get EOR code from FURS eor = api.get_sales_book_invoice_eor(tax_number=10039856, issued_date=date_issued, invoice_number='612', business_premise_id='BP105', set_number='03', serial_number='5001-0001018', invoice_amount=66.71, taxes_per_seller=[seller_one], operator_tax_number=12345678) print("EOR: " + eor)