Codeunit 130509 Library - Sales

Application Test Library

src/Layers/W1/Tests/ApplicationTestLibrary/LibrarySales.Codeunit.al137 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

AssignSalesChargeToSalesShptLine line 29

  1. 36callsCreateItemChargeSalesLine
  2. 40callsCodeunit 130509 Library - Sales CreateItemChargeAssignment
  3. 44writesTable 5809 Item Charge Assignment (Sales) Insert

AssignSalesChargeToSalesLine line 54

  1. 61callsCreateItemChargeSalesLine
  2. 65callsCodeunit 130509 Library - Sales CreateItemChargeAssignment
  3. 69writesTable 5809 Item Charge Assignment (Sales) Insert

AssignSalesChargeToSalesReturnLine line 79

  1. 86callsCreateItemChargeSalesLine
  2. 90callsCodeunit 130509 Library - Sales CreateItemChargeAssignment
  3. 94writesTable 5809 Item Charge Assignment (Sales) Insert

CreateItemChargeSalesLine line 105

  1. 109callsCodeunit 132201 Library - Inventory CreateItemCharge
  2. 110callsCodeunit 130509 Library - Sales CreateSalesLine
  3. 111validatesTable 37 Sales Line Unit Price
  4. 112validatesTable 37 Sales Line Unit Cost
  5. 113writesTable 37 Sales Line Modify(true)

BatchPostSalesHeaders line 126

  1. 130callsReport 296 Batch Post Sales Orders UseRequestPage
  2. 131callsReport 296 Batch Post Sales Orders InitializeRequest

BlanketSalesOrderMakeOrder line 141

  1. 147runsCodeunit 87 Blanket Sales Order to Order
  2. 148callsCodeunit 87 Blanket Sales Order to Order GetSalesOrderHeader

CopySalesDocument line 160

  1. 164callsReport 292 Copy Sales Document SetSalesHeader
  2. 165callsReport 292 Copy Sales Document SetParameters
  3. 166callsReport 292 Copy Sales Document UseRequestPage

CopySalesHeaderShipToAddressFromCustomer line 175

  1. 177validatesTable 36 Sales Header Ship-to Name
  2. 178validatesTable 36 Sales Header Ship-to Address
  3. 179validatesTable 36 Sales Header Ship-to Address 2
  4. 180validatesTable 36 Sales Header Ship-to City
  5. 181validatesTable 36 Sales Header Ship-to Post Code
  6. 182validatesTable 36 Sales Header Ship-to Country/Region Code
  7. 183validatesTable 36 Sales Header Ship-to County
  8. 184writesTable 36 Sales Header Modify(true)

CreateCustomer line 191

  1. 198callsCodeunit 131300 Library - ERM FindPaymentMethod
  2. 199callsCodeunit 131300 Library - ERM SetSearchGenPostingTypeSales
  3. 200callsCodeunit 131300 Library - ERM FindGeneralPostingSetupInvtFull
  4. 201callsCodeunit 131300 Library - ERM FindVATPostingSetupInvt
  5. 202callsCodeunit 131000 Library - Utility UpdateSetupNoSeriesCode
  6. 206raisesOnCreateCustomerOnBeforeInsertCustomer
  7. 207writesTable 18 Customer Insert(true)
  8. 208validatesTable 18 Customer Name
  9. 209validatesTable 18 Customer Payment Method Code
  10. 210validatesTable 18 Customer Payment Terms Code
  11. 210callsCodeunit 131300 Library - ERM FindPaymentTermsCode
  12. 211validatesTable 18 Customer Gen. Bus. Posting Group
  13. 212validatesTable 18 Customer VAT Bus. Posting Group
  14. 213validatesTable 18 Customer Customer Posting Group
  15. 213callsFindCustomerPostingGroup
  16. 214writesTable 18 Customer Modify(true)
  17. 215callsCodeunit 5056 CustCont-Update OnModify
  18. 217raisesOnAfterCreateCustomer

CreateCustomer line 225

  1. 227callsCodeunit 131000 Library - Utility UpdateSetupNoSeriesCode
  2. 231validatesTable 18 Customer Contact Type
  3. 232writesTable 18 Customer Insert(true)

CreateCustomerWithCountryCodeAndVATRegNo line 239

  1. 241callsCreateCustomer
  2. 242validatesTable 18 Customer Country/Region Code
  3. 242callsCodeunit 131300 Library - ERM CreateCountryRegion
  4. 243callsCodeunit 131300 Library - ERM GenerateVATRegistrationNo
  5. 244writesTable 18 Customer Modify(true)

CreateCustomerWithAddress line 263

  1. 265callsCreateCustomer
  2. 266callsCreateCustomerAddress

CreateCustomerAddress line 273

  1. 278validatesTable 18 Customer Address
  2. 278callsCodeunit 131000 Library - Utility GenerateGUID
  3. 279validatesTable 18 Customer Address 2
  4. 279callsCodeunit 131000 Library - Utility GenerateGUID
  5. 281callsCodeunit 131300 Library - ERM CreatePostCode
  6. 282validatesTable 18 Customer Country/Region Code
  7. 283validatesTable 18 Customer City
  8. 284validatesTable 18 Customer County
  9. 285validatesTable 18 Customer Post Code
  10. 286writesTable 18 Customer Modify(true)
  11. 287callsCodeunit 5056 CustCont-Update OnModify

CreateCustomerWithAddressAndContactInfo line 294

  1. 296callsCreateCustomerWithAddress
  2. 297callsCreateCustomerContactInfo

CreateCustomerContactInfo line 304

  1. 308validatesTable 18 Customer Phone No.
  2. 308callsCodeunit 131000 Library - Utility GenerateRandomPhoneNo
  3. 309writesTable 18 Customer Modify(true)
  4. 310callsCodeunit 5056 CustCont-Update OnModify

CreateCustomerNo line 317

  1. 321callsCreateCustomer

CreateCustomerBankAccount line 330

  1. 333validatesTable 287 Customer Bank Account Customer No.
  2. 334validatesTable 287 Customer Bank Account Code
  3. 337callsCodeunit 131000 Library - Utility GenerateRandomCode
  4. 339callsCodeunit 131000 Library - Utility GetFieldLength
  5. 340writesTable 287 Customer Bank Account Insert(true)

CreateCustomerPostingGroup line 347

  1. 350validatesTable 92 Customer Posting Group Code
  2. 351callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 352validatesTable 92 Customer Posting Group Receivables Account
  4. 352callsCodeunit 131300 Library - ERM CreateGLAccountNo
  5. 353validatesTable 92 Customer Posting Group Invoice Rounding Account
  6. 353callsCodeunit 131300 Library - ERM CreateGLAccountWithSalesSetup
  7. 354validatesTable 92 Customer Posting Group Debit Rounding Account
  8. 354callsCodeunit 131300 Library - ERM CreateGLAccountNo
  9. 355validatesTable 92 Customer Posting Group Credit Rounding Account
  10. 355callsCodeunit 131300 Library - ERM CreateGLAccountNo
  11. 356validatesTable 92 Customer Posting Group Payment Disc. Debit Acc.
  12. 356callsCodeunit 131300 Library - ERM CreateGLAccountNo
  13. 357validatesTable 92 Customer Posting Group Payment Disc. Credit Acc.
  14. 357callsCodeunit 131300 Library - ERM CreateGLAccountNo
  15. 358validatesTable 92 Customer Posting Group Payment Tolerance Debit Acc.
  16. 358callsCodeunit 131300 Library - ERM CreateGLAccountNo
  17. 359validatesTable 92 Customer Posting Group Payment Tolerance Credit Acc.
  18. 359callsCodeunit 131300 Library - ERM CreateGLAccountNo
  19. 360validatesTable 92 Customer Posting Group Debit Curr. Appln. Rndg. Acc.
  20. 360callsCodeunit 131300 Library - ERM CreateGLAccountNo
  21. 361validatesTable 92 Customer Posting Group Credit Curr. Appln. Rndg. Acc.
  22. 361callsCodeunit 131300 Library - ERM CreateGLAccountNo
  23. 362validatesTable 92 Customer Posting Group Interest Account
  24. 362callsCodeunit 131300 Library - ERM CreateGLAccountWithSalesSetup
  25. 363validatesTable 92 Customer Posting Group Additional Fee Account
  26. 363callsCodeunit 131300 Library - ERM CreateGLAccountWithSalesSetup
  27. 364validatesTable 92 Customer Posting Group Add. Fee per Line Account
  28. 364callsCodeunit 131300 Library - ERM CreateGLAccountWithSalesSetup
  29. 365writesTable 92 Customer Posting Group Insert(true)

CreateAltCustomerPostingGroup line 373

  1. 380writesTable 960 Alt. Customer Posting Group Insert

CreateCustomerPriceGroup line 387

  1. 390validatesTable 6 Customer Price Group Code
  2. 391callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 392validatesTable 6 Customer Price Group Description
  4. 394writesTable 6 Customer Price Group Insert(true)

CreateCustomerWithLocationCode line 403

  1. 405callsCreateCustomer
  2. 406validatesTable 18 Customer Location Code
  3. 407writesTable 18 Customer Modify(true)

CreateCustomerWithBusPostingGroups line 417

  1. 421callsCreateCustomer
  2. 422validatesTable 18 Customer Gen. Bus. Posting Group
  3. 423validatesTable 18 Customer VAT Bus. Posting Group
  4. 424writesTable 18 Customer Modify(true)

CreateCustomerWithVATBusPostingGroup line 433

  1. 437callsCreateCustomer
  2. 438validatesTable 18 Customer VAT Bus. Posting Group
  3. 439writesTable 18 Customer Modify(true)

CreateCustomerWithVATRegNo line 448

  1. 452callsCreateCustomer
  2. 453callsCodeunit 131300 Library - ERM CreateCountryRegion
  3. 454validatesTable 18 Customer Country/Region Code
  4. 455callsCodeunit 131300 Library - ERM GenerateVATRegistrationNo
  5. 456writesTable 18 Customer Modify(true)

CreateGeneralJournalBatch line 492, local

  1. 498callsCodeunit 131300 Library - ERM FindGenJournalTemplate
  2. 499callsCodeunit 131300 Library - ERM CreateGenJournalBatch

CreateItemChargeAssignment line 514

  1. 526callsCodeunit 131000 Library - Utility GetNewLineNo
  2. 533validatesTable 5809 Item Charge Assignment (Sales) Qty. to Assign

CreatePaymentAndApplytoInvoice line 543

  1. 548callsCreateGeneralJournalBatch
  2. 549callsCodeunit 131300 Library - ERM CreateGLAccount
  3. 550callsCodeunit 131300 Library - ERM CreateGeneralJnlLine
  4. 555validatesTable 81 Gen. Journal Line Document No.
  5. 556validatesTable 81 Gen. Journal Line Applies-to Doc. Type
  6. 557validatesTable 81 Gen. Journal Line Applies-to Doc. No.
  7. 558validatesTable 81 Gen. Journal Line Bal. Account No.
  8. 559writesTable 81 Gen. Journal Line Modify(true)
  9. 560callsCodeunit 131300 Library - ERM PostGeneralJnlLine

CreatePrepaymentVATSetup line 569

  1. 573callsCodeunit 131300 Library - ERM CreatePrepaymentVATSetup

CreateSalesDocument line 590

  1. 592callsCreateSalesHeader
  2. 593validatesTable 36 Sales Header Posting Date
  3. 594writesTable 36 Sales Header Modify(true)
  4. 595callsCreateSalesLine
  5. 598validatesTable 37 Sales Line Unit Price
  6. 599writesTable 37 Sales Line Modify(true)

CreateSalesOrder line 613

  1. 615callsCreateSalesDocument

CreateSalesInvoice line 630

  1. 632callsCreateSalesDocument

CreateSalesQuote line 647

  1. 649callsCreateSalesDocument

CreateSalesBlanketOrder line 664

  1. 666callsCreateSalesDocument

CreateSalesReturnOrder line 682

  1. 684callsCreateSalesDocument
  2. 686validatesTable 37 Sales Line Unit Cost (LCY)
  3. 687writesTable 37 Sales Line Modify

CreateSalesCreditMemo line 702

  1. 704callsCreateSalesDocument
  2. 706validatesTable 37 Sales Line Unit Cost (LCY)
  3. 707writesTable 37 Sales Line Modify

CreateSalesDocumentWithItem line 721

  1. 723callsCreateFCYSalesDocumentWithItem

CreateFCYSalesDocumentWithItem line 738

  1. 740callsCreateSalesHeader
  2. 742validatesTable 36 Sales Header Location Code
  3. 743validatesTable 36 Sales Header Currency Code
  4. 744writesTable 36 Sales Header Modify(true)
  5. 746callsCodeunit 132201 Library - Inventory CreateItemNo
  6. 747callsCreateSalesLine
  7. 749validatesTable 37 Sales Line Location Code
  8. 751validatesTable 37 Sales Line Shipment Date
  9. 752validatesTable 37 Sales Line Unit Price
  10. 752callsCodeunit 130440 Library - Random RandDec
  11. 753writesTable 37 Sales Line Modify(true)

CreateSalesHeader line 762

  1. 764callsDisableWarningOnCloseUnreleasedDoc
  2. 765callsDisableWarningOnCloseUnpostedDoc
  3. 766callsDisableConfirmOnPostingDoc
  4. 768raisesOnBeforeCreateSalesHeader
  5. 769validatesTable 36 Sales Header Document Type
  6. 770writesTable 36 Sales Header Insert(true)
  7. 772callsCreateCustomerNo
  8. 773validatesTable 36 Sales Header Sell-to Customer No.
  9. 774validatesTable 36 Sales Header External Document No.
  10. 776callsCodeunit 131000 Library - Utility GenerateRandomCode
  11. 777writesTable 36 Sales Header Modify(true)
  12. 779raisesOnAfterCreateSalesHeader

CreateSalesLine line 790

  1. 792callsCreateSalesLineWithShipmentDate

CreateSalesLineWithShipmentDate line 804

  1. 806callsCreateSalesLineSimple
  2. 808validatesTable 37 Sales Line Type
  3. 812callsCodeunit 132201 Library - Inventory CreateItemNo
  4. 815callsCodeunit 130511 Library - Resource CreateResourceNo
  5. 818callsCodeunit 132201 Library - Inventory CreateItemChargeNo
  6. 821callsCodeunit 131300 Library - ERM CreateGLAccountWithSalesSetup
  7. 823validatesTable 37 Sales Line No.
  8. 824validatesTable 37 Sales Line Shipment Date
  9. 826validatesTable 37 Sales Line Quantity
  10. 827writesTable 37 Sales Line Modify(true)
  11. 829raisesOnAfterCreateSalesLineWithShipmentDate

CreateSalesLineSimple line 837

  1. 842validatesTable 37 Sales Line Document Type
  2. 843validatesTable 37 Sales Line Document No.
  3. 845validatesTable 37 Sales Line Line No.
  4. 845callsCodeunit 131000 Library - Utility GetNewLineNo
  5. 846writesTable 37 Sales Line Insert(true)

CreateSimpleItemSalesLine line 855

  1. 857callsCreateSalesLineSimple
  2. 858validatesTable 37 Sales Line Type
  3. 859writesTable 37 Sales Line Modify(true)

CreateSalesInvoice line 866

  1. 868callsCreateSalesInvoiceForCustomerNo
  2. 868callsCreateCustomerNo

CreateSalesInvoiceForCustomerNo line 876

  1. 881callsCreateSalesHeader
  2. 882callsCodeunit 132201 Library - Inventory CreateItemWithUnitPriceAndUnitCost
  3. 883callsCodeunit 130440 Library - Random RandDecInRange
  4. 883callsCodeunit 130440 Library - Random RandDecInRange
  5. 884callsCreateSalesLine
  6. 884callsCodeunit 130440 Library - Random RandInt

CreateSalesOrder line 891

  1. 893callsCreateSalesOrderForCustomerNo
  2. 893callsCreateCustomerNo

CreateSalesOrderForCustomerNo line 901

  1. 906callsCreateSalesHeader
  2. 907callsCodeunit 132201 Library - Inventory CreateItemWithUnitPriceAndUnitCost
  3. 908callsCodeunit 130440 Library - Random RandDecInRange
  4. 908callsCodeunit 130440 Library - Random RandDecInRange
  5. 909callsCreateSalesLine
  6. 909callsCodeunit 130440 Library - Random RandInt

CreateSalesCreditMemo line 916

  1. 918callsCreateSalesCreditMemoForCustomerNo
  2. 918callsCreateCustomerNo

CreateSalesCreditMemoForCustomerNo line 926

  1. 931callsCreateSalesHeader
  2. 932callsCodeunit 132201 Library - Inventory CreateItemWithUnitPriceAndUnitCost
  3. 933callsCodeunit 130440 Library - Random RandDecInRange
  4. 933callsCodeunit 130440 Library - Random RandDecInRange
  5. 934callsCreateSalesLine
  6. 934callsCodeunit 130440 Library - Random RandInt

CreateSalesQuoteForCustomerNo line 942

  1. 947callsCreateSalesHeader
  2. 948callsCodeunit 132201 Library - Inventory CreateItemWithUnitPriceAndUnitCost
  3. 949callsCodeunit 130440 Library - Random RandDecInRange
  4. 949callsCodeunit 130440 Library - Random RandDecInRange
  5. 950callsCreateSalesLine
  6. 950callsCodeunit 130440 Library - Random RandInt

CreateSalesOrderWithLocation line 959

  1. 961callsCreateSalesHeader
  2. 962validatesTable 36 Sales Header Location Code
  3. 963writesTable 36 Sales Header Modify

CreateSalesReturnOrderWithLocation line 972

  1. 974callsCreateSalesHeader
  2. 975validatesTable 36 Sales Header Location Code
  3. 976writesTable 36 Sales Header Modify

CreateSalesReturnOrder line 983

  1. 985callsCreateSalesReturnOrderForCustomerNo
  2. 985callsCreateCustomerNo

CreateSalesReturnOrderForCustomerNo line 993

  1. 998callsCreateSalesHeader
  2. 999callsCodeunit 132201 Library - Inventory CreateItemWithUnitPriceAndUnitCost
  3. 1000callsCodeunit 130440 Library - Random RandDecInRange
  4. 1000callsCodeunit 130440 Library - Random RandDecInRange
  5. 1001callsCreateSalesLine
  6. 1001callsCodeunit 130440 Library - Random RandInt

CreateSalesLineWithUnitPrice line 1012

  1. 1014callsCreateSalesLine
  2. 1015validatesTable 37 Sales Line Unit Price
  3. 1016writesTable 37 Sales Line Modify

CreateSalesperson line 1023

  1. 1026validatesTable 13 Salesperson/Purchaser Code
  2. 1027callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 1028validatesTable 13 Salesperson/Purchaser Name
  4. 1029writesTable 13 Salesperson/Purchaser Insert(true)

CreateSalesPrepaymentPct line 1040

  1. 1043validatesTable 459 Sales Prepayment % Item No.
  2. 1044validatesTable 459 Sales Prepayment % Sales Type
  3. 1045validatesTable 459 Sales Prepayment % Sales Code
  4. 1046validatesTable 459 Sales Prepayment % Starting Date
  5. 1047writesTable 459 Sales Prepayment % Insert(true)

CreateSalesCommentLine line 1057

  1. 1062validatesTable 44 Sales Comment Line Document Type
  2. 1063validatesTable 44 Sales Comment Line No.
  3. 1064validatesTable 44 Sales Comment Line Document Line No.
  4. 1066validatesTable 44 Sales Comment Line Line No.
  5. 1066callsCodeunit 131000 Library - Utility GetNewLineNo
  6. 1067writesTable 44 Sales Comment Line Insert(true)
  7. 1069validatesTable 44 Sales Comment Line Comment
  8. 1072writesTable 44 Sales Comment Line Modify(true)

CreateSalesPrice line 1088

  1. 1091validatesTable 7002 Sales Price Item No.
  2. 1092validatesTable 7002 Sales Price Sales Type
  3. 1093validatesTable 7002 Sales Price Sales Code
  4. 1094validatesTable 7002 Sales Price Starting Date
  5. 1095validatesTable 7002 Sales Price Currency Code
  6. 1096validatesTable 7002 Sales Price Variant Code
  7. 1097validatesTable 7002 Sales Price Unit of Measure Code
  8. 1098validatesTable 7002 Sales Price Minimum Quantity
  9. 1099writesTable 7002 Sales Price Insert(true)
  10. 1100validatesTable 7002 Sales Price Unit Price
  11. 1101writesTable 7002 Sales Price Modify(true)
  12. 1103raisesOnAfterCreateSalesPrice

CreateShipToAddress line 1111

  1. 1114validatesTable 222 Ship-to Address Customer No.
  2. 1115validatesTable 222 Ship-to Address Code
  3. 1118callsCodeunit 131000 Library - Utility GenerateRandomCode
  4. 1120callsCodeunit 131000 Library - Utility GetFieldLength
  5. 1121writesTable 222 Ship-to Address Insert(true)

CreateShipToAddressWithRandomCountryCode line 1129

  1. 1131callsCreateShipToAddress
  2. 1132validatesTable 222 Ship-to Address Country/Region Code
  3. 1132callsCodeunit 131300 Library - ERM CreateCountryRegion
  4. 1133writesTable 222 Ship-to Address Modify(true)

CreateShipToAddressWithCountryCode line 1142

  1. 1144callsCreateShipToAddress
  2. 1145validatesTable 222 Ship-to Address Country/Region Code
  3. 1146writesTable 222 Ship-to Address Modify(true)

CreateStandardSalesCode line 1153

  1. 1156validatesTable 170 Standard Sales Code Code
  2. 1159callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 1161callsCodeunit 131000 Library - Utility GetFieldLength
  4. 1163validatesTable 170 Standard Sales Code Description
  5. 1164writesTable 170 Standard Sales Code Insert(true)

CreateStandardSalesLine line 1172

  1. 1177validatesTable 171 Standard Sales Line Standard Sales Code
  2. 1179validatesTable 171 Standard Sales Line Line No.
  3. 1179callsCodeunit 131000 Library - Utility GetNewLineNo
  4. 1180writesTable 171 Standard Sales Line Insert(true)

CreateCustomerSalesCode line 1189

  1. 1192validatesTable 172 Standard Customer Sales Code Customer No.
  2. 1193validatesTable 172 Standard Customer Sales Code Code
  3. 1194writesTable 172 Standard Customer Sales Code Insert(true)

CreateCustomerMandate line 1205

  1. 1208validatesTable 1230 SEPA Direct Debit Mandate Customer No.
  2. 1209validatesTable 1230 SEPA Direct Debit Mandate Customer Bank Account Code
  3. 1210validatesTable 1230 SEPA Direct Debit Mandate Valid From
  4. 1211validatesTable 1230 SEPA Direct Debit Mandate Valid To
  5. 1212validatesTable 1230 SEPA Direct Debit Mandate Date of Signature
  6. 1213writesTable 1230 SEPA Direct Debit Mandate Insert(true)

CreateStandardText line 1221

  1. 1224callsCodeunit 131000 Library - Utility GenerateRandomCode
  2. 1225callsCodeunit 131000 Library - Utility GenerateGUID
  3. 1226writesTable 7 Standard Text Insert

CreateStandardTextWithExtendedText line 1236

  1. 1242callsCodeunit 131000 Library - Utility GenerateRandomCode
  2. 1243callsCodeunit 131000 Library - Utility GenerateGUID
  3. 1244writesTable 7 Standard Text Insert
  4. 1245callsCodeunit 132213 Library - Small Business CreateExtendedTextHeader
  5. 1247callsCodeunit 132213 Library - Small Business CreateExtendedTextLine

CreateCustomerDocumentLayout line 1260

  1. 1265validatesTable 9657 Custom Report Selection Source Type
  2. 1266validatesTable 9657 Custom Report Selection Source No.
  3. 1267validatesTable 9657 Custom Report Selection Usage
  4. 1268validatesTable 9657 Custom Report Selection Report ID
  5. 1269validatesTable 9657 Custom Report Selection Custom Report Layout Code
  6. 1270validatesTable 9657 Custom Report Selection Send To Email
  7. 1271writesTable 9657 Custom Report Selection Insert

CombineReturnReceipts line 1283

  1. 1289callsReport 6653 Combine Return Receipts InitializeRequest
  2. 1305callsReport 6653 Combine Return Receipts UseRequestPage

CombineShipments line 1320

  1. 1326callsReport 295 Combine Shipments InitializeRequest
  2. 1342callsReport 295 Combine Shipments UseRequestPage

DeleteInvoicedSalesOrders line 1350

  1. 1363callsReport 299 Delete Invoiced Sales Orders UseRequestPage

DeleteInvoicedSalesReturnOrders line 1371

  1. 1384callsReport 6651 Delete Invd Sales Ret. Orders UseRequestPage

ExplodeBOM line 1392

  1. 1397runsCodeunit 63 Sales-Explode BOM

FindCustomerPostingGroup line 1404

  1. 1409callsCreateCustomerPostingGroup

GetReturnReceiptLines line 1459

  1. 1463runsCodeunit 6638 Sales-Get Return Receipts

GetShipmentLines line 1470

  1. 1475runsCodeunit 64 Sales-Get Shipment

PostSalesOrder line 1490

  1. 1492callsPostSalesOrderPartially

PostSalesOrderPartially line 1509

  1. 1513callsCreateSalesOrder
  2. 1514validatesTable 37 Sales Line Qty. to Ship
  3. 1515validatesTable 37 Sales Line Qty. to Invoice
  4. 1516writesTable 37 Sales Line Modify
  5. 1517callsPostSalesDocument

PostSalesLine line 1526

  1. 1531callsPostSalesDocument

PostSalesDocument line 1541

  1. 1543callsDoPostSalesDocument

PostSalesDocumentAndEmail line 1553

  1. 1555callsDoPostSalesDocument

DoPostSalesDocument line 1558, local

  1. 1568raisesOnBeforePostSalesDocument
  2. 1577validatesTable 36 Sales Header Ship
  3. 1578validatesTable 36 Sales Header Receive
  4. 1579validatesTable 36 Sales Header Invoice
  5. 1580callsCodeunit 80 Sales-Post SetPostingFlags
  6. 1586callsCodeunit 310 No. Series GetNextNo
  7. 1586callsCodeunit 131000 Library - Utility GetNextNoSeriesSalesDate
  8. 1593callsCodeunit 310 No. Series GetNextNo
  9. 1593callsCodeunit 131000 Library - Utility GetNextNoSeriesSalesDate
  10. 1598callsCodeunit 310 No. Series GetNextNo
  11. 1598callsCodeunit 131000 Library - Utility GetNextNoSeriesSalesDate
  12. 1606callsCodeunit 310 No. Series GetNextNo
  13. 1606callsCodeunit 131000 Library - Utility GetNextNoSeriesSalesDate
  14. 1611callsCodeunit 310 No. Series GetNextNo
  15. 1611callsCodeunit 131000 Library - Utility GetNextNoSeriesSalesDate
  16. 1616callsCodeunit 130000 Assert Fail
  17. 1620callsCodeunit 82 Sales-Post + Print PostAndEmail
  18. 1622runsCodeunit 80 Sales-Post

PostSalesPrepaymentCrMemo line 1633

  1. 1637callsCodeunit 442 Sales-Post Prepayments CreditMemo

PostSalesPrepaymentCreditMemo line 1645

  1. 1653callsCodeunit 310 No. Series PeekNextNo
  2. 1653callsCodeunit 131000 Library - Utility GetNextNoSeriesSalesDate
  3. 1656callsCodeunit 442 Sales-Post Prepayments CreditMemo

PostSalesPrepaymentInvoice line 1664

  1. 1672callsCodeunit 310 No. Series PeekNextNo
  2. 1672callsCodeunit 131000 Library - Utility GetNextNoSeriesSalesDate
  3. 1675callsCodeunit 442 Sales-Post Prepayments Invoice

QuoteMakeOrder line 1683

  1. 1689runsCodeunit 86 Sales-Quote to Order
  2. 1690callsCodeunit 86 Sales-Quote to Order GetSalesOrderHeader

ReleaseSalesDocument line 1698

  1. 1702callsCodeunit 414 Release Sales Document PerformManualRelease

ReopenSalesDocument line 1709

  1. 1713callsCodeunit 414 Release Sales Document PerformManualReopen

CalcSalesDiscount line 1720

  1. 1726runsCodeunit 60 Sales-Calc. Discount

SetAllowVATDifference line 1733

  1. 1736validatesTable 311 Sales & Receivables Setup Allow VAT Difference
  2. 1737writesTable 311 Sales & Receivables Setup Modify(true)

SetAllowDocumentDeletionBeforeDate line 1744

  1. 1747validatesTable 311 Sales & Receivables Setup Allow Document Deletion Before
  2. 1748writesTable 311 Sales & Receivables Setup Modify(true)

SetApplnBetweenCurrencies line 1755

  1. 1758validatesTable 311 Sales & Receivables Setup Appln. between Currencies
  2. 1759writesTable 311 Sales & Receivables Setup Modify(true)

SetCreateItemFromItemNo line 1764

  1. 1767validatesTable 311 Sales & Receivables Setup Create Item from Item No.
  2. 1768writesTable 311 Sales & Receivables Setup Modify(true)

SetCreateItemFromDescription line 1775

  1. 1778validatesTable 311 Sales & Receivables Setup Create Item from Description
  2. 1779writesTable 311 Sales & Receivables Setup Modify(true)

SetDiscountPosting line 1786

  1. 1789validatesTable 311 Sales & Receivables Setup Discount Posting
  2. 1790writesTable 311 Sales & Receivables Setup Modify(true)

SetDiscountPostingSilent line 1797

  1. 1801writesTable 311 Sales & Receivables Setup Modify

SetCalcInvDiscount line 1808

  1. 1811validatesTable 311 Sales & Receivables Setup Calc. Inv. Discount
  2. 1812writesTable 311 Sales & Receivables Setup Modify(true)

SetCreditWarnings line 1819

  1. 1822validatesTable 311 Sales & Receivables Setup Credit Warnings
  2. 1823writesTable 311 Sales & Receivables Setup Modify(true)

SetCreditWarningsToNoWarnings line 1829

  1. 1832validatesTable 311 Sales & Receivables Setup Credit Warnings
  2. 1833writesTable 311 Sales & Receivables Setup Modify(true)

SetExactCostReversingMandatory line 1840

  1. 1843validatesTable 311 Sales & Receivables Setup Exact Cost Reversing Mandatory
  2. 1844writesTable 311 Sales & Receivables Setup Modify(true)

SetGLFreightAccountNo line 1851

  1. 1854validatesTable 311 Sales & Receivables Setup Freight G/L Acc. No.
  2. 1855writesTable 311 Sales & Receivables Setup Modify(true)

SetInvoiceRounding line 1862

  1. 1865validatesTable 311 Sales & Receivables Setup Invoice Rounding
  2. 1866writesTable 311 Sales & Receivables Setup Modify(true)

SetStockoutWarning line 1873

  1. 1876validatesTable 311 Sales & Receivables Setup Stockout Warning
  2. 1877writesTable 311 Sales & Receivables Setup Modify(true)

SetPreventNegativeInventory line 1884

  1. 1889validatesTable 313 Inventory Setup Prevent Negative Inventory
  2. 1890writesTable 313 Inventory Setup Modify(true)

SetArchiveQuoteAlways line 1896

  1. 1899validatesTable 311 Sales & Receivables Setup Archive Quotes
  2. 1900writesTable 311 Sales & Receivables Setup Modify(true)

SetArchiveOrders line 1907

  1. 1910validatesTable 311 Sales & Receivables Setup Archive Orders
  2. 1911writesTable 311 Sales & Receivables Setup Modify(true)

SetArchiveBlanketOrders line 1918

  1. 1921validatesTable 311 Sales & Receivables Setup Archive Blanket Orders
  2. 1922writesTable 311 Sales & Receivables Setup Modify(true)

SetArchiveReturnOrders line 1929

  1. 1932validatesTable 311 Sales & Receivables Setup Archive Return Orders
  2. 1933writesTable 311 Sales & Receivables Setup Modify(true)

SetExtDocNo line 1940

  1. 1943validatesTable 311 Sales & Receivables Setup Ext. Doc. No. Mandatory
  2. 1944writesTable 311 Sales & Receivables Setup Modify(true)

SetPostWithJobQueue line 1951

  1. 1954validatesTable 311 Sales & Receivables Setup Post with Job Queue
  2. 1955writesTable 311 Sales & Receivables Setup Modify(true)

SetPostAndPrintWithJobQueue line 1962

  1. 1965validatesTable 311 Sales & Receivables Setup Post & Print with Job Queue
  2. 1966writesTable 311 Sales & Receivables Setup Modify(true)

SetOrderNoSeriesInSetup line 1972

  1. 1975validatesTable 311 Sales & Receivables Setup Order Nos.
  2. 1975callsCodeunit 131300 Library - ERM CreateNoSeriesCode
  3. 1976writesTable 311 Sales & Receivables Setup Modify

SetPostedNoSeriesInSetup line 1982

  1. 1985validatesTable 311 Sales & Receivables Setup Posted Invoice Nos.
  2. 1985callsCodeunit 131300 Library - ERM CreateNoSeriesCode
  3. 1986validatesTable 311 Sales & Receivables Setup Posted Shipment Nos.
  4. 1986callsCodeunit 131300 Library - ERM CreateNoSeriesCode
  5. 1987validatesTable 311 Sales & Receivables Setup Posted Credit Memo Nos.
  6. 1987callsCodeunit 131300 Library - ERM CreateNoSeriesCode
  7. 1988writesTable 311 Sales & Receivables Setup Modify

SetReturnOrderNoSeriesInSetup line 1994

  1. 1997validatesTable 311 Sales & Receivables Setup Return Order Nos.
  2. 1997callsCodeunit 131300 Library - ERM CreateNoSeriesCode
  3. 1998validatesTable 311 Sales & Receivables Setup Posted Return Receipt Nos.
  4. 1998callsCodeunit 131300 Library - ERM CreateNoSeriesCode
  5. 1999writesTable 311 Sales & Receivables Setup Modify

SetCopyCommentsOrderToInvoiceInSetup line 2006

  1. 2009validatesTable 311 Sales & Receivables Setup Copy Comments Order to Invoice
  2. 2010writesTable 311 Sales & Receivables Setup Modify(true)

ModifySalesInvoiceHeader line 2017

  1. 2023callsCodeunit 131300 Library - ERM CreatePaymentMethod
  2. 2024callsCodeunit 132201 Library - Inventory CreateShippingAgent
  3. 2025callsCodeunit 131300 Library - ERM CreateBankAccount
  4. 2027writesTable 270 Bank Account Modify
  5. 2030callsCodeunit 130440 Library - Random RandText
  6. 2032callsCodeunit 130440 Library - Random RandText
  7. 2034callsCodeunit 130440 Library - Random RandText
  8. 2035callsCodeunit 130440 Library - Random RandText

UpdateSalesInvoiceHeader line 2042

  1. 2044runsCodeunit 1409 Sales Inv. Header - Edit

UndoSalesShipmentLine line 2051

  1. 2053runsCodeunit 5815 Undo Sales Shipment Line

UndoReturnReceiptLine line 2060

  1. 2062runsCodeunit 5816 Undo Return Receipt Line

AutoReserveSalesLine line 2069

  1. 2071callsTable 37 Sales Line AutoReserve

SelectCashReceiptJnlBatch line 2078

  1. 2080callsCodeunit 131306 Library - Journals SelectGenJournalBatch
  2. 2080callsSelectCashReceiptJnlTemplate

SelectCashReceiptJnlTemplate line 2087

  1. 2091callsCodeunit 131306 Library - Journals SelectGenJournalTemplate

DisableConfirmOnPostingDoc line 2097

  1. 2101callsCodeunit 1330 Instruction Mgt. DisableMessageForCurrentUser
  2. 2101callsCodeunit 1330 Instruction Mgt. ShowPostedConfirmationMessageCode

EnableConfirmOnPostingDoc line 2107

  1. 2111callsCodeunit 1330 Instruction Mgt. EnableMessageForCurrentUser
  2. 2111callsCodeunit 1330 Instruction Mgt. ShowPostedConfirmationMessageCode

DisableWarningOnCloseUnreleasedDoc line 2117

  1. 2119callsCodeunit 131300 Library - ERM DisableClosingUnreleasedOrdersMsg

DisableWarningOnCloseUnpostedDoc line 2125

  1. 2129callsCodeunit 1330 Instruction Mgt. DisableMessageForCurrentUser
  2. 2129callsCodeunit 1330 Instruction Mgt. QueryPostOnCloseCode

EnableWarningOnCloseUnpostedDoc line 2135

  1. 2139callsCodeunit 1330 Instruction Mgt. DisableMessageForCurrentUser
  2. 2139callsCodeunit 1330 Instruction Mgt. QueryPostOnCloseCode

EnableSalesSetupIgnoreUpdatedAddresses line 2145

  1. 2151writesTable 311 Sales & Receivables Setup Modify

DisableSalesSetupIgnoreUpdatedAddresses line 2157

  1. 2163writesTable 311 Sales & Receivables Setup Modify

MockCustLedgerEntry line 2171

  1. 2174callsCodeunit 131000 Library - Utility GetNewRecNo
  2. 2177writesTable 21 Cust. Ledger Entry Insert

MockCustLedgerEntryWithAmount line 2185

  1. 2187callsMockCustLedgerEntry
  2. 2188callsMockDetailedCustLedgEntry

MockCustLedgerEntryWithZeroBalance line 2196

  1. 2198callsMockCustLedgerEntry
  2. 2199callsMockDetailedCustLedgEntryZeroBalance

MockDetailedCustLedgerEntryWithAmount line 2207

  1. 2210callsCodeunit 131000 Library - Utility GetNewRecNo
  2. 2216callsCodeunit 130440 Library - Random RandDec
  3. 2218writesTable 379 Detailed Cust. Ledg. Entry Insert

MockDetailedCustLedgEntry line 2225

  1. 2229callsMockDetailedCustLedgerEntryWithAmount
  2. 2230callsMockApplnDetailedCustLedgerEntry
  3. 2231callsMockApplnDetailedCustLedgerEntry

MockDetailedCustLedgEntryZeroBalance line 2238

  1. 2242callsMockDetailedCustLedgerEntryWithAmount
  2. 2243callsMockApplnDetailedCustLedgerEntry
  3. 2244callsMockApplnDetailedCustLedgerEntry

MockApplnDetailedCustLedgerEntry line 2253

  1. 2259callsCodeunit 131000 Library - Utility GetNewRecNo
  2. 2265writesTable 379 Detailed Cust. Ledg. Entry Insert

PreviewPostSalesDocument line 2272

  1. 2276callsCodeunit 81 Sales-Post (Yes/No) Preview