Docushark Documentation

website·Indexed 30 days ago

https://jonathantorioni.github.io/docushark/

Technical documentation for various system routines and processes, including SIGAOFI workshop management, Central de Compras procurement, and Protheus to CRM Seller REST API integration. Covers customization data, functional specifications, and operational guides for modules such as SIGAESP (Distribution of Parts) and SIGAEST (Stock Costs).

Tokens
54.1K
Snippets
209
Records
446
Agent score
75%

What's inside Docushark

  1. Overview of Access Control and Password Sharing Restriction (MPSWCOMP)

    The MPSWCOMP.PRW program prevents password sharing in ERP TOTVS Protheus by validating the workstation's hostname during login. It ensures that only previously registered machines (marked as Principal or Secondary) can access the system. The system records all access events in an audit table and provides a mechanism for users to register their first machine upon login.
  2. Overview of Automatic Branch Replenishment Customization

    This customization automates the replenishment of merchandise for branches served by a Distribution Center (CD). It uses statistical sales analysis for each item to determine the specific quantity of merchandise to be sent to each branch.
  3. Overview of the Automatic Replenishment process

    The automatic replenishment routine automates the movement of goods from a Distribution Center (CD) to branches.

    Key Characteristics:

    • Automation: Operates without manual intervention based on prior configurations; there is no direct interaction interface.
    • Logic: Uses statistical analysis of sales and 'ABC coverage' rules to determine ideal quantities.
    • Constraint: Replenishment only occurs if there is sufficient stock available at the CD.
  4. Overview of skprdb2b.prw Product Integration

    The skprdb2b.prw file implements the integration between Protheus and the Fraga B2B platform. Its primary responsibilities include identifying products for processing, collecting data from both Protheus and the Fraga API, transforming this data into JSON payloads, and sending them via PUT/POST requests using batch logic and retry mechanisms. The system tracks integration status (success or failure) within the ZBP table.
  5. Overview of CCXFUN.PRW generic functions

    The source file CCXFUN.PRW provides generic functions used within the Central de Compras (Purchasing Center) module. This implementation does not require changes to database tables, indices, or system parameters.
  6. Overview of transporteBancosShark file transfer script

    The transporteBancosShark script is a Python-based utility designed to transport banking files between Protheus servers and IaaS servers. It was created to bypass ADVPL language limitations regarding SFTP connections, which is the only allowed external communication method for Protheus servers in TOTVS Cloud environments. The script runs continuously but only executes processing tasks every twenty minutes between 00:00 and 11:00.
  7. Overview of MX181.PRW Purchase Suggestion Data Model

    MX181.PRW is a customized data model for implementing purchase suggestions, specifically developed for a Central Purchasing project. It was created by copying and modifying the standard MATA181 source because the original routine lacked the necessary entry points to support essential project customizations. Because it is based on MATA181, it requires the use of mata181.ch includes.
  8. Overview of Automatic Billing (Faturamento automático) Customization

    The 'Faturamento automático' customization is designed to handle the billing and transmission of documents. It was developed as an improvement over the legacy automatic billing process previously handled by transdanfe.prw.
  9. Overview of the Consolidated Financial Flow Report customization

    The 'Relatório Consolidado Fluxo Financeiro' customization is designed to generate a consolidated report for the entire company over a specific period, aggregating data for Received (Recebidos), Paid (Pagos), Balance (Saldo), and Accumulated (Acumulado) values.
  10. Overview of Shark Generic Function Library

    The Shark library is a centralized support source for generic functions used in system customizations. It provides routines for generic views/browses, temporary DBF file manipulation, SX1 question handling, customer/supplier deduplication (CliForGet), email dispatch, SX3 field validations, inter-company routing, TSS/SEFAZ integration, and auditing of SEFAZ rejection 656 via the LEGBRANCA table.
  11. Overview of the Forecast auxiliary module

    This module provides tools for the Forecast program, including a visual interface for selecting days of the month for future purchases, functions to calculate future periods, and support functions to retrieve selected days for use in query filters.