Codeunit 30362 Shpfy Posted Invoice Export

Shopify Connector, Microsoft.Integration.Shopify

src/Apps/W1/Shopify/App/src/Invoicing/Codeunits/ShpfyPostedInvoiceExport.Codeunit.al14 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

OnRun line 27, trigger

  1. 29callsExportPostedSalesInvoiceToShopify

SetShop line 45, internal

  1. 48callsCodeunit 30159 Shpfy Draft Orders API SetShop
  2. 49callsCodeunit 30361 Shpfy Fulfillment API SetShop

ExportPostedSalesInvoiceToShopify line 60, internal

  1. 71callsIsInvoiceExportable
  2. 72callsSetSalesInvoiceShopifyOrderInformation
  3. 76callsMapPostedSalesInvoiceData
  4. 78callsCodeunit 30159 Shpfy Draft Orders API CreateDraftOrder
  5. 80callsSetSalesInvoiceShopifyOrderInformation
  6. 83callsCodeunit 30159 Shpfy Draft Orders API CompleteDraftOrder
  7. 85callsIsSuccess
  8. 86callsCodeunit 30157 Shpfy Json Helper GetValueAsBigInteger
  9. 87callsCodeunit 30157 Shpfy Json Helper GetValueAsText
  10. 89callsCodeunit 30361 Shpfy Fulfillment API GetFulfillmentOrderIds
  11. 90callsCreateFulfillmentsForShopifyOrder
  12. 91callsCreateShopifyInvoiceHeader
  13. 92callsSetSalesInvoiceShopifyOrderInformation
  14. 93callsAddDocumentLinkToBCDocument
  15. 95callsSetSalesInvoiceShopifyOrderInformation

CreateFulfillmentsForShopifyOrder line 98, local

  1. 103callsCodeunit 30361 Shpfy Fulfillment API CreateFulfillment

IsInvoiceExportable line 106, local

  1. 115callsCodeunit 30313 Shpfy Skipped Record LogSkippedRecord
  2. 120callsShopifyPaymentTermsExists
  3. 121callsCodeunit 30313 Shpfy Skipped Record LogSkippedRecord
  4. 126callsCodeunit 30313 Shpfy Skipped Record LogSkippedRecord
  5. 130callsCheckCustomerTemplates
  6. 131callsCodeunit 30313 Shpfy Skipped Record LogSkippedRecord
  7. 135callsCheckSalesInvoiceHeaderLines

CheckSalesInvoiceHeaderLines line 168, local

  1. 175callsCodeunit 30313 Shpfy Skipped Record LogSkippedRecord
  2. 185callsCodeunit 30313 Shpfy Skipped Record LogSkippedRecord
  3. 190callsCodeunit 30313 Shpfy Skipped Record LogSkippedRecord

SetSalesInvoiceShopifyOrderInformation line 198, local

  1. 200validatesTable 112 Sales Invoice Header Shpfy Order Id
  2. 201validatesTable 112 Sales Invoice Header Shpfy Order No.
  3. 202writesTable 112 Sales Invoice Header Modify(true)

MapPostedSalesInvoiceData line 205, internal

  1. 214callsMapSalesInvoiceHeader
  2. 220callsMapSalesInvoiceLine

MapSalesInvoiceHeader line 224, local

  1. 235callsMapCurrencyCode
  2. 242callsIsInvoiceUnpaid
  3. 244callsMapBillToInformation
  4. 245callsMapShipToInformation
  5. 247writesTable 30118 Shpfy Order Header Insert

MapSalesInvoiceLine line 306, local

  1. 324writesTable 30118 Shpfy Order Header Modify
  2. 326callsMapTaxLine
  3. 328writesTable 30119 Shpfy Order Line Insert

IsSuccess line 349, local

  1. 351callsCodeunit 30157 Shpfy Json Helper GetJsonArray

CreateShopifyInvoiceHeader line 354, local

  1. 359validatesTable 30161 Shpfy Invoice Header Shopify Order Id
  2. 360writesTable 30161 Shpfy Invoice Header Insert(true)

AddDocumentLinkToBCDocument line 363, local

  1. 371callsCodeunit 30259 Shpfy BC Document Type Convert Convert
  2. 373writesTable 30146 Shpfy Doc. Link To Doc. Insert(true)

ConfigurePaymentTermsMapping line 376, internal

  1. 383runsPage 30162 Shpfy Payment Terms Mapping