Codeunit 30246 Shpfy Create Sales Doc. Refund

Shopify Connector, Microsoft.Integration.Shopify

src/Apps/W1/Shopify/App/src/Order Return Refund Processing/Codeunits/ShpfyCreateSalesDocRefund.Codeunit.al11 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

OnRun line 21, trigger

  1. 23callsCreateSalesDocument

CreateSalesDocument line 41, local

  1. 48callsDoCreateSalesHeader
  2. 49callsCreateSalesLines
  3. 51runsCodeunit 414 Release Sales Document
  4. 52callsCodeunit 30247 Shpfy Refund Process Events OnAfterProcessSalesDocument

DoCreateSalesHeader line 57, local

  1. 76callsCodeunit 30247 Shpfy Refund Process Events OnBeforeCreateSalesHeader
  2. 79callsTable 36 Sales Header SetHideValidationDialog
  3. 80validatesTable 36 Sales Header Document Type
  4. 81writesTable 36 Sales Header Insert(true)
  5. 83validatesTable 36 Sales Header Sell-to Customer No.
  6. 89callsCodeunit 30166 Shpfy Process Order GetCountryCode
  7. 94validatesTable 36 Sales Header Sell-to Contact No.
  8. 95validatesTable 36 Sales Header Bill-to Customer No.
  9. 101callsCodeunit 30166 Shpfy Process Order GetCountryCode
  10. 104validatesTable 36 Sales Header Bill-to Contact No.
  11. 105validatesTable 36 Sales Header Ship-to Code
  12. 111callsCodeunit 30166 Shpfy Process Order GetCountryCode
  13. 118validatesTable 36 Sales Header Currency Code
  14. 120validatesTable 36 Sales Header Currency Code
  15. 122validatesTable 36 Sales Header Document Date
  16. 124validatesTable 36 Sales Header Tax Area Code
  17. 125validatesTable 36 Sales Header Tax Liable
  18. 127callsCodeunit 30164 Shpfy Order Mgt. FindTaxArea
  19. 128validatesTable 36 Sales Header Tax Area Code
  20. 130validatesTable 36 Sales Header Tax Liable
  21. 132callsMapPaymentMethodCode
  22. 135callsRefundHasExchangeItemLines
  23. 139writesTable 36 Sales Header Modify(true)
  24. 141callsCodeunit 30259 Shpfy BC Document Type Convert Convert
  25. 145writesTable 30146 Shpfy Doc. Link To Doc. Insert
  26. 146callsCodeunit 30247 Shpfy Refund Process Events OnAfterCreateSalesHeader

CreateSalesLines line 165, local

  1. 174callsGetLastLineNo
  2. 177callsTable 37 Sales Line SetHideValidationDialog
  3. 178validatesTable 37 Sales Line Document Type
  4. 179validatesTable 37 Sales Line Document No.
  5. 180validatesTable 37 Sales Line Line No.
  6. 181validatesTable 37 Sales Line Type
  7. 183validatesTable 37 Sales Line Description
  8. 184writesTable 37 Sales Line Insert(true)
  9. 190callsCreateSalesLinesFromRefundLines
  10. 197callsCreateSalesLinesFromReturnLines
  11. 200callsCreateSalesLinesFromRefundShippingLines
  12. 201callsCreateSalesLinesFromRemainingAmount

CreateSalesLinesFromRefundLines line 204, local

  1. 224callsGetLastLineNo
  2. 226callsCodeunit 30247 Shpfy Refund Process Events OnBeforeCreateItemSalesLine
  3. 229callsTable 37 Sales Line SetHideValidationDialog
  4. 230validatesTable 37 Sales Line Document Type
  5. 231validatesTable 37 Sales Line Document No.
  6. 232validatesTable 37 Sales Line Line No.
  7. 233writesTable 37 Sales Line Insert(true)
  8. 236validatesTable 37 Sales Line Type
  9. 238validatesTable 37 Sales Line No.
  10. 241validatesTable 37 Sales Line Type
  11. 243validatesTable 37 Sales Line No.
  12. 246validatesTable 37 Sales Line Type
  13. 247validatesTable 37 Sales Line No.
  14. 249validatesTable 37 Sales Line Unit of Measure Code
  15. 252validatesTable 37 Sales Line Variant Code
  16. 264validatesTable 37 Sales Line Location Code
  17. 267validatesTable 37 Sales Line Location Code
  18. 270validatesTable 37 Sales Line Quantity
  19. 271validatesTable 37 Sales Line Unit Price
  20. 275validatesTable 37 Sales Line Unit Price
  21. 276validatesTable 37 Sales Line Line Discount Amount
  22. 280validatesTable 37 Sales Line Unit Price
  23. 281validatesTable 37 Sales Line Line Discount Amount
  24. 291writesTable 37 Sales Line Modify
  25. 295callsTable 37 Sales Line GetLineAmountInclVAT
  26. 306writesTable 30110 Shpfy Gift Card Modify
  27. 309callsCodeunit 30247 Shpfy Refund Process Events OnAfterCreateItemSalesLine
  28. 313callsGetLastLineNo
  29. 315callsTable 37 Sales Line SetHideValidationDialog
  30. 316validatesTable 37 Sales Line Document Type
  31. 317validatesTable 37 Sales Line Document No.
  32. 318validatesTable 37 Sales Line Line No.
  33. 319writesTable 37 Sales Line Insert(true)
  34. 321validatesTable 37 Sales Line Type
  35. 323validatesTable 37 Sales Line No.
  36. 324validatesTable 37 Sales Line Quantity
  37. 327validatesTable 37 Sales Line Unit Price
  38. 329validatesTable 37 Sales Line Unit Price
  39. 333writesTable 37 Sales Line Modify

CreateSalesLinesFromReturnLines line 339, local

  1. 346callsGetLastLineNo
  2. 347callsCodeunit 30247 Shpfy Refund Process Events OnBeforeCreateItemSalesLineFromReturnLine
  3. 350callsTable 37 Sales Line SetHideValidationDialog
  4. 351validatesTable 37 Sales Line Document Type
  5. 352validatesTable 37 Sales Line Document No.
  6. 353validatesTable 37 Sales Line Line No.
  7. 354writesTable 37 Sales Line Insert(true)
  8. 356validatesTable 37 Sales Line Type
  9. 357validatesTable 37 Sales Line No.
  10. 359validatesTable 37 Sales Line Unit of Measure Code
  11. 362validatesTable 37 Sales Line Variant Code
  12. 365validatesTable 37 Sales Line Location Code
  13. 368validatesTable 37 Sales Line Location Code
  14. 370validatesTable 37 Sales Line Quantity
  15. 374validatesTable 37 Sales Line Unit Price
  16. 376validatesTable 37 Sales Line Unit Price
  17. 380writesTable 37 Sales Line Modify
  18. 381callsCodeunit 30247 Shpfy Refund Process Events OnAfterCreateItemSalesLineFromReturnLine

CreateSalesLinesFromRefundShippingLines line 385, local

  1. 394callsGetLastLineNo
  2. 396callsTable 37 Sales Line SetHideValidationDialog
  3. 397validatesTable 37 Sales Line Document Type
  4. 398validatesTable 37 Sales Line Document No.
  5. 399validatesTable 37 Sales Line Line No.
  6. 400writesTable 37 Sales Line Insert(true)
  7. 402validatesTable 37 Sales Line Type
  8. 404validatesTable 37 Sales Line No.
  9. 405validatesTable 37 Sales Line Description
  10. 406validatesTable 37 Sales Line Quantity
  11. 411validatesTable 37 Sales Line Unit Price
  12. 413validatesTable 37 Sales Line Unit Price
  13. 416validatesTable 37 Sales Line Unit Price
  14. 418validatesTable 37 Sales Line Unit Price
  15. 422writesTable 37 Sales Line Modify

FillRemainingAmountLineFields line 426, local

  1. 429callsGetLastLineNo
  2. 431callsTable 37 Sales Line SetHideValidationDialog
  3. 432validatesTable 37 Sales Line Document Type
  4. 433validatesTable 37 Sales Line Document No.
  5. 434validatesTable 37 Sales Line Line No.
  6. 435writesTable 37 Sales Line Insert(true)
  7. 436validatesTable 37 Sales Line Type
  8. 437validatesTable 37 Sales Line No.
  9. 438validatesTable 37 Sales Line Quantity

CreateSalesLinesFromRemainingAmount line 442, local

  1. 451callsTable 4 Currency Initialize
  2. 452callsCreateRoundingLine
  3. 454callsCodeunit 30247 Shpfy Refund Process Events OnBeforeCreateSalesLinesFromRemainingAmount
  4. 463callsRefundHasExchangeItemLines
  5. 471callsFillRemainingAmountLineFields
  6. 473validatesTable 37 Sales Line Unit Price
  7. 475validatesTable 37 Sales Line Unit Price
  8. 480callsTable 4 Currency VATRoundingDirection
  9. 482writesTable 37 Sales Line Modify
  10. 486callsFillRemainingAmountLineFields
  11. 488validatesTable 37 Sales Line Unit Price
  12. 490validatesTable 37 Sales Line Unit Price
  13. 495callsTable 4 Currency VATRoundingDirection
  14. 497writesTable 37 Sales Line Modify

CreateRoundingLine line 524, local

  1. 530callsGetLastLineNo
  2. 532callsTable 37 Sales Line SetHideValidationDialog
  3. 533validatesTable 37 Sales Line Document Type
  4. 534validatesTable 37 Sales Line Document No.
  5. 535validatesTable 37 Sales Line Line No.
  6. 536writesTable 37 Sales Line Insert(true)
  7. 538validatesTable 37 Sales Line Type
  8. 540validatesTable 37 Sales Line No.
  9. 541validatesTable 37 Sales Line Quantity
  10. 542validatesTable 37 Sales Line Unit Price
  11. 542callsGetRoundingAmountFromTransactions
  12. 543validatesTable 37 Sales Line Description
  13. 544writesTable 37 Sales Line Modify

MapPaymentMethodCode line 549, local

  1. 566validatesTable 36 Sales Header Payment Method Code