Skip to content

List valid SAP B1 OriginalJournal names and item fields - #1646

Merged
helpcodeai merged 2 commits into
mainfrom
fix/sap-b1-transtype-enum
Nov 13, 2026
Merged

helpcodeai merged 2 commits into
mainfrom
fix/sap-b1-transtype-enum

Conversation

@helpcodeai

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #1476. Production use of the SAP Business One adapter (B1 10.0 FP2511, Service Layer v2) still shows two kinds of 400 errors from guessed names:

  • JournalEntries filters on OriginalJournal with names that do not exist in TransTypesEnum, e.g. ttDeliveryNote (real name ttDelivery) and ttAPCreditMemo (real name ttAPCreditNote). SAP answers with error -1013. The A/R credit memo is spelled ttARCredItnote in SAP, which the model cannot guess. The instructions and the journal entry filter description now list the valid names.
  • Items: LastPurchasePrice and ProductTreeType do not exist ("Property 'X' of 'Item' is invalid"). The instructions and the items select description now point to ItemPrices.

Changes are text only (instructions and parameter descriptions). No tool names, paths or parameters change. Behaviour is the same in Cloud and self-hosted.

Test plan

  • Live check against a B1 10.0 FP2511 Service Layer: OriginalJournal eq 'ttARCredItnote', 'ttAPCreditNote', 'ttDelivery', 'ttDeposit' and $select=ItemCode,ItemPrices all return rows.
  • node scripts/validate-adapters.mjs --warn (root): 0 failed; de/sap-business-one.json only has the existing tool-prefix warnings.
  • node scripts/regenerate-catalog.mjs (root): no diff in catalog.ts.
  • npx jest src/adapters/de/sap-business-one.live.spec.ts --maxWorkers=2 (packages/backend): 6 passed, 1 skipped (live calls gated).

@helpcodeai
helpcodeai requested a review from D3nisty as a code owner November 12, 2026 09:56
@helpcodeai
helpcodeai enabled auto-merge (squash) November 13, 2026 08:02
@helpcodeai
helpcodeai merged commit 19d00c0 into main Nov 13, 2026
16 checks passed
@helpcodeai
helpcodeai deleted the fix/sap-b1-transtype-enum branch November 13, 2026 08:17
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant