DocBits- IDP for Infor ERP
HomeAppStatusAPI
馃嚨馃嚤 Polski
馃嚨馃嚤 Polski
  • Om贸wienie i podstawy
    • DocBits
      • Kluczowe funkcje DocBits
    • Architektura
      • DocBits Infor na miejscu Klienta
      • Certyfikaty
    • Infor Infrastruktura
  • Informacje o wersji
  • Sekcja u偶ytkownik贸w ko艅cowych i partner贸w
    • Sekcja u偶ytkownika ko艅cowego
      • Pulpit
        • Pulpit Narz臋dzia
        • Scalanie Dokument贸w
        • Status Dokumentu
        • Filtrowanie Dokument贸w
        • Przegl膮d Przes艂anych Dokument贸w
        • Licznik Zada艅
        • Zweryfikowane Wyodr臋bnione Pola
        • Przep艂yw Dokument贸w
        • Rozwi膮zywanie problem贸w
        • Skr贸ty Klawiaturowe
      • Zadania
      • Panel Kontroli Wysy艂ek Zaawansowanych
      • Pulpit nawigacyjny zam贸wienia zakupu
      • Dashboard Faktur
      • Panel Zam贸wie艅 Wysy艂kowych
      • Opcje Konfiguracji U偶ytkownika
      • Tabela AI
        • Tagowanie tabeli AI
      • Ekran Walidacji
        • Rozmyte Dane
        • Kody QR
        • Skr贸ty Klawiaturowe
      • Cel i Zastosowanie
      • Dopasowywanie Zam贸wie艅 Zakupu
        • Automatyczne Dopasowywanie Danych Zam贸wie艅 Zakupu
        • Mapa Numer贸w Przedmiot贸w Dostawcy
        • Skr贸ty Klawiaturowe
      • Ksi臋gowanie faktur kosztowych i sprzeda偶y po艣redniej
      • Jak importowa膰 dokumenty
        • FTP
        • R臋czny Import
        • Webhook
        • Email
          • IMAP
          • OAuth Office365
      • Wsparcie techniczne w DocBits
        • Utw贸rz zg艂oszenie
        • Ikony Pomocy
      • Kurs
        • Wprowadzenie
        • Pulpit
        • AI Table
        • Master PO Matching with DocBits
      • Nasz System Priorytet贸w Dokument贸w
      • Portal Dostawcy
        • Rejestracja Dostawcy
        • Status Dostawcy
      • Zasoby i wsparcie
        • Wsparcie U偶ytkownika
    • Sekcja Partner贸w
      • Automatyzacja Test贸w Faktur z DocBits
  • Administracja i konfiguracja
    • Ustawienia
      • Global Settings
        • Informacje o firmie
          • Definiowanie koloru aplikacji w ustawieniach firmy
        • Custom Filters
        • Document Expiry
        • Document Types
          • Layout Manager
            • Nawigacja w Mened偶erze Uk艂ad贸w
          • Document Sub Types
          • Table Columns
          • Fields
            • Dodawanie i Edytowanie P贸l
          • Model Training
          • Regex
          • Script
          • EDI
          • More Settings
            • Cel i zastosowanie
            • Najlepsze praktyki
            • Rozwi膮zywanie problem贸w
            • Obs艂uga Duplikat贸w Dokument贸w
            • Stempel Zatwierdzenia
            • Mapa Numer贸w Przedmiot贸w Dostawcy - Dokumentacja Administracyjna
            • Ustawienia tolerancji zam贸wienia zakupu / Dodatkowa tolerancja zam贸wienia zakupu
            • Statusy wy艂膮czenia zam贸wienia zakupu
            • Tabela PO w Kreatorze Uk艂ad贸w
            • Automatyczne sprawdzanie aktualizacji PO
            • Oblicz cen臋 jednostkow膮 PO
            • Eksport niepasuj膮cych linii PO
          • e-docs
            • eSLOG 1.6 i 2.0
        • Powiadomienie e-mail
          • Konfigurowanie powiadomie艅
          • Zarz膮dzanie powiadomieniami
          • Najlepsze praktyki
          • Rozwi膮zywanie problem贸w
        • Custom Filters
        • Groups, Users and Permissions
          • U偶ytkownicy
            • Modyfikowanie szczeg贸艂贸w u偶ytkownika
            • Uprawnienia administratora
          • Podorganizacje
            • Jak utworzy膰 Podorganizacj臋
          • Grupy i Uprawnienia
            • Cel i zastosowanie
            • Dodawanie/Edytowanie Grup
            • Aktywacja uprawnie艅
            • Kontrola Dost臋pu
            • Rozwi膮zywanie problem贸w
        • Integracja
          • API Calls and Examples
        • Pulpit
      • Document Processing
        • Documents Expiry
        • Import
        • Mened偶er Regu艂
        • Ocr Settings
        • Classification And Extraction
          • Ekstrakcja tabeli dla elementu kosztowego
          • Automatyczne wyodr臋bnianie kodu podatkowego
        • Master Data Lookup
        • List Of Values
        • Export
        • Module
          • Tryb adnotacji
          • Approval Before Export
          • Doc Scan
          • Doc Script
          • IDM ACL Updater
          • Swiss QR Code
        • Drzewa Decyzyjne
      • Log Settings
        • Zarz膮dzanie Zadaniami
        • Synchronizacja Danych
      • Licencje API
      • Ustawienia Dostawcy
        • Ustawienia og贸lne dostawcy
        • Edytowanie szablon贸w e-maili
        • Konfiguracja eksportu dla Supplier Portal dla M3
      • Zarz膮dzanie pami臋ci膮 podr臋czn膮
    • Workflow
      • When
        • Card description
        • Document Operator for Sub-Organizations
        • Document Type Operation
      • And
        • Assigned User Condition
        • Checkbox Field Condition
        • Checkbox
        • Combined Price of Quantity Difference
        • Compare two fields
        • Compare with Purchase Order
        • Confirmed Delivery Date
        • Docfield is
        • Document Field Comparison
        • Document Field
        • Document Status Condition List
        • Document Type Operation one of
        • In Order Confirmation Purchase Order
        • Single Assigned User Condition
        • Single Document Status Condition
        • Supplier on Invoice
        • Text in field
        • Unit Price Combined with Fields
      • Then
      • Workflow Description: Conditional Export Trigger
      • Workflow Documentation
      • Standard Workflow
        • Above Max Amount
        • Cost Invoice - Export
        • Less than Max Amount
        • Purchase Invoice - 2nd Approval Quantity Export
        • Purchase Invoice - 2nd Approval Quantity
        • Purchase Invoice - 2nd Approval Unit Price Export
        • Purchase Invoice - 2nd Approval Unit Price
      • Material Ordering and Processing Workflow
    • Setup
      • Document Types
        • EDI Data Transformation Process
        • Layout Builder
        • Origin Layouts
        • Regex Manager
      • Document Training
        • Training Header Fields
        • Training Line Fields/Table Training
          • Adding New Columns
          • Advanced Settings
          • Defining Tables and Columns
          • Grouping Function
          • Manual Row Selection
          • Mapping Columns
          • Save and Delete Rules
      • SSO Configuration
      • Testing
        • PO Matching
        • Auto Accounting
          • LN
          • M3
      • Portal Dostawcy
      • Instalacja WatchDog
  • Integracja i konfiguracja Infor
    • Importing Master Data
      • Field Mappings
      • LN
        • Auto Accounting
        • Suppliers and Purchase Orders
        • Tax Codes
      • M3
        • Auto Accounting
        • Suppliers and Purchase Orders
        • Ekstrakcja tabeli dla elementu kosztowego
    • Exporting in DocBits
      • Export Module
    • Exporting to INFOR
      • Creating a BOD Mapping File
      • Tworzenie pliku mapowania IDM
      • Creating an ION API Endpoint
      • Creating an ION API File
      • Export to M3 Mapping (API)
      • Exporting to IDM
      • M3
        • M3 Configuration
      • LN
        • Eksportuj Kody Podatkowe do LN
        • LN Configuration
  • Zaawansowane funkcje i narz臋dzia
    • Skrypty w DocBits
      • Calculating Total Charges Script for Docbits
      • Calculating Total Charges Script for Docbits
      • Delete lines with empty quantity and amount
      • Formatting Export Certificate Reference Numbers Script for Docbits
      • Funkcje
      • Generating Extended Invoice Numbers Script for Docbits
      • Generating Extended Invoice Numbers Script for Docbits
    • Postman for DocBits
    • Importowanie danych dostawcy i zam贸wie艅 zakupu do DocBits z plik贸w CSV
Powered by GitBook
On this page
  • Overview
  • Objective
  • Script Implementation

Was this helpful?

Edit on GitHub
Export as PDF
  1. Zaawansowane funkcje i narz臋dzia
  2. Skrypty w DocBits

Generating Extended Invoice Numbers Script for Docbits

Overview

This guide focuses on automating the creation of extended invoice numbers in Docbits, a crucial feature for improving invoice management and tracking. The "Generating Extended Invoice Numbers" script concatenates various document identifiers, such as invoice ID and purchase order number, to create a comprehensive and unique identifier for each invoice.

Objective

The primary goal of this script is to automate the generation of extended invoice numbers, facilitating easier tracking and management of invoices by combining multiple identifiers into a single, unique number.

Script Implementation

Code Snippet

# Retrieve the values of invoice ID and purchase order number from the document
invoice_id = get_field_value(fields_dict, 'invoice_id')
purchase_order = get_field_value(fields_dict, 'purchase_order')

# Concatenate the invoice ID and purchase order number with a hyphen if both exist
extended_number = '-'.join(filter(None, [invoice_id, purchase_order]))

# Check and update the 'invoice_extended_number' field with the concatenated value
if extended_number:
    if 'invoice_extended_number' not in fields_dict:
        new_field = create_new_field('invoice_extended_number', extended_number)
        fields_dict['invoice_extended_number'] = new_field
        document_json['fields'].append(new_field)
    else:
        set_field_value(fields_dict, 'invoice_extended_number', extended_number)
PreviousGenerating Extended Invoice Numbers Script for DocbitsNextPostman for DocBits

Last updated 1 year ago

Was this helpful?