---
sourceDocument: Xanadu Finance and Supply Chain
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/source-to-pay-operations

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Finance and Supply Chain

ft:clusterId :

    - stpop

bundleId :

    - stpop

workflow :

    - Creator


---

# Ledger assignment rules

# Ledger assignment rules {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

When a purchase line is created for a purchase requisition on the Shopping Hub portal, the details of capex account, expense account, and pre-paid account are auto-populated based on applicable ledger assignment rules.

The legal entity from a purchase requisition or a sourcing request determines its ERP source.
This ERP source determines the appropriate ledger assignment rule for a product category, product
model, supplier product, and a cost center.  
For a purchase line, if rules are found for the supplier product, the related product model, and its product category, then the priority of in which those rules are triggered is in this order:

1. Supplier product with cost center
2. Product model with cost center
3. Product category with cost center
4. Supplier product
5. Product model
6. Product category
{#ledger-assignment-rules__ol_lfy_ncg_blb}  
Note:  
If you have multiple ERP sources, you can create multiple rules but each rule can correspond to only one ERP source.
* **[Create ledger assignment rules](https://servicenow-prod.fluidtopics.net/bGkPFV~Lq_AHI34Tepa2LA)**   
  Automate ledger account assignment for a purchase line by relating ledger accounts to a product category, product model, supplier product, and cost center.

