Skip to main content
Roberty Studio
RPANF-e

For each product

For each product

Loops over every product of a Nota Fiscal Eletrônica already opened in the flow, running a block of actions for each item found in the invoice.


Options​

Select a NF-e​

Select the Nota Fiscal Eletrônica that was opened earlier by the Open NF-e action.

Returns​

Javascript code​

js
actions["action-id"].currentRow // Current position (Number)
actions["action-id"].cProd // Product Code (Any)
actions["action-id"].cEAN // Product Barcode (EAN) (Any)
actions["action-id"].xProd // Product Description (Text)
actions["action-id"].NCM // Mercosur Common Nomenclature (Any)
actions["action-id"].CEST // Tax Substitution Specific Code (Any)
actions["action-id"].indEscala // Scale Production Indicator (Text)
actions["action-id"].CFOP // Fiscal Code for Operations and Services (Number)
actions["action-id"].uCom // Commercial Unit (Text)
actions["action-id"].qCom // Commercial Quantity (Number)
actions["action-id"].vUnCom // Unit Commercial Value (Number)
actions["action-id"].vProd // Total Gross Value of Products or Services (Number)
actions["action-id"].cEANTrib // Taxable Barcode (EAN) (Any)
actions["action-id"].uTrib // Taxable Unit (Text)
actions["action-id"].qTrib // Taxable Quantity (Number)
actions["action-id"].vUnTrib // Taxation Unit Value (Number)
actions["action-id"].indTot // NF-e Total Value Indicator (Number)
actions["action-id"].xPed // Purchase Order Number (Any)
actions["action-id"].cBarra // Product Barcode (Text)
actions["action-id"].ICMS // Tax on Circulation of Goods and Services (ICMS) (Any)
actions["action-id"].IPI // Tax on Industrialized Products (IPI) (Any)
actions["action-id"].PIS // Social Integration Program (PIS) (Any)
actions["action-id"].COFINS // Contribution for Social Security Financing (COFINS) (Any)

Field selection​

  • currentRow — Current position (Number)
  • cProd — Product Code (Any)
  • cEAN — Product Barcode (EAN) (Any)
  • xProd — Product Description (Text)
  • NCM — Mercosur Common Nomenclature (Any)
  • CEST — Tax Substitution Specific Code (Any)
  • indEscala — Scale Production Indicator (Text)
  • CFOP — Fiscal Code for Operations and Services (Number)
  • uCom — Commercial Unit (Text)
  • qCom — Commercial Quantity (Number)
  • vUnCom — Unit Commercial Value (Number)
  • vProd — Total Gross Value of Products or Services (Number)
  • cEANTrib — Taxable Barcode (EAN) (Any)
  • uTrib — Taxable Unit (Text)
  • qTrib — Taxable Quantity (Number)
  • vUnTrib — Taxation Unit Value (Number)
  • indTot — NF-e Total Value Indicator (Number)
  • xPed — Purchase Order Number (Any)
  • cBarra — Product Barcode (Text)
  • ICMS — Tax on Circulation of Goods and Services (ICMS) (Any)
  • IPI — Tax on Industrialized Products (IPI) (Any)
  • PIS — Social Integration Program (PIS) (Any)
  • COFINS — Contribution for Social Security Financing (COFINS) (Any)

Rules and Conditions​

  • The Select a NF-e field is required.
  • The NF-e must have been opened beforehand by the Open NF-e action.
  • The actions inside the iteration block are executed once for each product of the invoice.
  • Use the currentRow return to identify the index of the product in the loop.