se agrega fallback OWTR y calculo de fecha de vencimiento por condicion de pago

- hana_manager.get_delivery ahora busca en ODLN y, si no encuentra, en OWTR
- sapb1_manager resuelve StockTransfers -> Orders (via U_IDC_NUMOV) para
  validar precios de flete cuando la guia es un traslado de inventario
- se corrige el orden de parametros tipo/serie/numero (sin cruces) en
  get_delivery, get_delivery_notes y _get_delivery_entries
- se agrega sapb1_manager.obtener_condicion_pago (BusinessPartners +
  PaymentTermsTypes) y pipeline._calcular_fecha_vencimiento para que
  DocDueDate del draft sea fecha de contabilizacion + dias de la condicion
  de pago del proveedor
- se agrega variante de regex para "VALOR REFER" truncado en sunat_schema.py
- se actualiza documentacion (docs/) reflejando estos cambios

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
georgeandClaude Sonnet 5 committed 2026-09-10 13:21:04 -05:00
1 parent 6b0ed6f519
commit 15e3b5079c
231 files changed
+21421 -475

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
@url= https://192.168.9.3:50000/b1s/v1
###
# @noRejectUnauthorized
POST {{url}}/Login
Content-Type: application/json
{
"UserName": "manager",
"Password": "s1st3m4s",
"CompanyDB": "SBO_ABERIO_PRODUCCION"
}
###
# @noRejectUnauthorized
GET {{url}}/BusinessPartners('PL20555929006')
###
# @noRejectUnauthorized
GET {{url}}/PaymentTermsTypes
-15
View File
@@ -1,15 +0,0 @@
info:
name: BusinessPartners
type: http
seq: 1
http:
method: GET
url: https://192.168.9.3:50000/b1s/v1/BusinessPartners('PL10040532043')
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
-14
View File
@@ -1,14 +0,0 @@
info:
name: EmployeesInfo
type: http
http:
method: GET
url: https://192.168.9.3:50000/b1s/v1/EmployeesInfo
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
-23
View File
@@ -1,23 +0,0 @@
info:
name: Login
type: http
seq: 1
http:
method: POST
url: https://192.168.9.3:50000/b1s/v1/Login
body:
type: json
data: |-
{
"CompanyDB" :"PRUEBA_20260609",
"UserName": "manager",
"Password":"s1st3m4s"
}
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
-19
View File
@@ -1,19 +0,0 @@
info:
name: PurchaseInvoices
type: http
seq: 1
http:
method: GET
url: https://192.168.9.3:50000/b1s/v1/PurchaseInvoices?$filter=DocDate eq '2026-06-10'
params:
- name: $filter
value: DocDate eq '2026-06-10'
type: query
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
-10
View File
@@ -1,10 +0,0 @@
opencollection: 1.0.0
info:
name: aberio
bundled: false
extensions:
bruno:
ignore:
- node_modules
- .git