Overview
The Orden Compra queries allow you to retrieve purchase order information from the system. These queries provide access to order details, beneficiary relationships, and financial data.Available Queries
GetOCByCodigoBeneficiario
Retrieve all purchase orders associated with a specific beneficiary code.Query Definition
Parameters
The unique identifier of the beneficiary whose purchase orders you want to retrieve.
Response Fields
Unique identifier for the purchase order.
The purchase order code or reference number.
The total value of the purchase order in the system’s base currency.
Information about the beneficiary associated with this purchase order.
Example Request
Example Response
Use Cases
Beneficiary Order History
Retrieve all purchase orders for a specific supplier or beneficiary to:- Track order history and patterns
- Calculate total purchase volume
- Audit supplier relationships
- Monitor outstanding orders
Financial Reporting
Query purchase orders to generate:- Spending reports by beneficiary
- Budget tracking and allocation
- Purchase order summaries
- Financial audits
Integration Points
This query is commonly used in conjunction with:- Anticipos: To verify purchase orders when processing advance payments
- Supply Management: To check order status before creating new requisitions
- Reembolsos: To validate orders during reimbursement processing
Data Source
The query retrieves data from:- Table:
ind_ant_orden_compra - Repository:
IndAntOrdenCompraRepository(Services/IndAntOrdenCompra/IndAntOrdenCompraRepository.cs:20) - Includes: Beneficiary relationship data via Entity Framework navigation properties
Notes
The query includes related beneficiary information through an Entity Framework
Include statement, providing a complete view of the purchase order relationship.