# 620 · salescalculationelementsfrombc

> Technisches Mapping des Jobs `salescalculationelementsfrombc` (`BCSalesCalculationElements`).

---

LLMS index: [llms.txt](/llms.txt)

---

| Eigenschaft | Wert |
|---|---|
| Order | 620 |
| Job | `salescalculationelementsfrombc` |
| Mapping | `BCSalesCalculationElements` |
| Richtung | BC → CE |
| Quellverbindung | BC_Test |
| Zielverbindung | CRM_Test |
| Quelltabelle (API) | `acdsalescalculationelements` aus `singhammerITConsulting/dyce/v2.0` |
| Zieltabelle | `quotedetail` |
| Zeitplan | 0 */2 * * * * |
| Filter | `{{systemModifiedAt gt %watermark%}} and documentType eq 'Quote'` |
| Watermark | `systemModifiedAt` (Typ `datetime`) |
| Response-Job | — |
| Fachliche Doku | [Angebotspositionen aus BC](../angebot/bcsalescalculationelements/) |

## Feldzuordnung

| Quellfeld | Zielfeld | Operation | Details |
|---|---|---|---|
| — | `uomid` | DefaultValue | = `946e49c5-b59d-41c6-b47a-da4ecbfa95fc` |
| `description` | `description` | — | — |
| `documentNo` | `quoteid` | Lookup | → `quote` über `wysa_quotenumberkey` (`documentNo` → `quotenumber`) |
| `lineAmountInclVATLCY` | `wysa_bcamountvat` | — | — |
| `lineAmountLCY` | `wysa_bcamount` | — | — |
| `opportunityElementCode` | `productid` | Lookup | → `product` über `wysa_bccode` (`opportunityElementCode` → `wysa_bccode`) |
| `quantity` | `quantity` | — | — |
| `systemId` | `wysa_bcsystemid` | — · **Schlüssel** | — |

## Alternate Key

```json
{
  "keyType": "CustomKey",
  "keyName": "wysa_bcsystemidkey",
  "keyValues": [
    {
      "attributeName": "systemId",
      "keyName": "wysa_bcsystemid",
      "rank": 1
    }
  ],
  "ignoreEmptySourceKey": false,
  "keyRank": 0
}
```

## Weitere technische Details

### Transformationen im Detail

| Quellfeld | Zieltabelle | Schlüsselfeld | Alternate Key |
|---|---|---|---|
| `documentNo` | `quote` | `quotenumber` | `wysa_quotenumberkey` |
| `opportunityElementCode` | `product` | `wysa_bccode` | `wysa_bccode` |

**Angebot:**

```json
{
  "Operations": [{
    "Name": "Lookup",
    "Parameters": {
      "TargetTable": "quote",
      "TargetKey": {
        "KeyType": "CustomKey",
        "KeyName": "wysa_quotenumberkey",
        "KeyValues": [
          { "keyName": "quotenumber", "attributeName": "documentNo", "rank": 1 }
        ]
      }
    }
  }]
}
```

**Produkt** — hier steht in `KeyName` der Feldname `wysa_bccode` statt eines
Alternate-Key-Namens; dasselbe Muster wie in
[`BCOpportunityElements`](../verkaufschance/bcopportunityelements/).

**Einheit:**

```json
{
  "Operations": [{
    "Name": "DefaultValue",
    "Parameters": { "DefaultValue": "946e49c5-b59d-41c6-b47a-da4ecbfa95fc" }
  }]
}
```

Dieselbe GUID wie `defaultuomid` in `BCOpportunityElements`.

### Beobachtungen

Das Watermark-Feld heißt `systemModifiedAt` — wie beim Job 190, aber anders als in den
übrigen BC→CE-Jobs (`lastModifiedDateTime`).
