Codeunit 130509 Library - Sales
src/Layers/W1/Tests/ApplicationTestLibrary/LibrarySales.Codeunit.al137 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
AssignSalesChargeToSalesShptLine line 29
- 36callsCreateItemChargeSalesLine
- 40callsCodeunit 130509 Library - Sales CreateItemChargeAssignment
- 44writesTable 5809 Item Charge Assignment (Sales) Insert
AssignSalesChargeToSalesLine line 54
- 61callsCreateItemChargeSalesLine
- 65callsCodeunit 130509 Library - Sales CreateItemChargeAssignment
- 69writesTable 5809 Item Charge Assignment (Sales) Insert
AssignSalesChargeToSalesReturnLine line 79
- 86callsCreateItemChargeSalesLine
- 90callsCodeunit 130509 Library - Sales CreateItemChargeAssignment
- 94writesTable 5809 Item Charge Assignment (Sales) Insert
CreateItemChargeSalesLine line 105
- 109callsCodeunit 132201 Library - Inventory CreateItemCharge
- 110callsCodeunit 130509 Library - Sales CreateSalesLine
- 111validatesTable 37 Sales Line Unit Price
- 112validatesTable 37 Sales Line Unit Cost
- 113writesTable 37 Sales Line Modify(true)
BatchPostSalesHeaders line 126
- 130callsReport 296 Batch Post Sales Orders UseRequestPage
- 131callsReport 296 Batch Post Sales Orders InitializeRequest
BlanketSalesOrderMakeOrder line 141
- 147runsCodeunit 87 Blanket Sales Order to Order
- 148callsCodeunit 87 Blanket Sales Order to Order GetSalesOrderHeader
CopySalesDocument line 160
- 164callsReport 292 Copy Sales Document SetSalesHeader
- 165callsReport 292 Copy Sales Document SetParameters
- 166callsReport 292 Copy Sales Document UseRequestPage
CopySalesHeaderShipToAddressFromCustomer line 175
- 177validatesTable 36 Sales Header Ship-to Name
- 178validatesTable 36 Sales Header Ship-to Address
- 179validatesTable 36 Sales Header Ship-to Address 2
- 180validatesTable 36 Sales Header Ship-to City
- 181validatesTable 36 Sales Header Ship-to Post Code
- 182validatesTable 36 Sales Header Ship-to Country/Region Code
- 183validatesTable 36 Sales Header Ship-to County
- 184writesTable 36 Sales Header Modify(true)
CreateCustomer line 191
- 198callsCodeunit 131300 Library - ERM FindPaymentMethod
- 199callsCodeunit 131300 Library - ERM SetSearchGenPostingTypeSales
- 200callsCodeunit 131300 Library - ERM FindGeneralPostingSetupInvtFull
- 201callsCodeunit 131300 Library - ERM FindVATPostingSetupInvt
- 202callsCodeunit 131000 Library - Utility UpdateSetupNoSeriesCode
- 206raisesOnCreateCustomerOnBeforeInsertCustomer
- 207writesTable 18 Customer Insert(true)
- 208validatesTable 18 Customer Name
- 209validatesTable 18 Customer Payment Method Code
- 210validatesTable 18 Customer Payment Terms Code
- 210callsCodeunit 131300 Library - ERM FindPaymentTermsCode
- 211validatesTable 18 Customer Gen. Bus. Posting Group
- 212validatesTable 18 Customer VAT Bus. Posting Group
- 213validatesTable 18 Customer Customer Posting Group
- 213callsFindCustomerPostingGroup
- 214writesTable 18 Customer Modify(true)
- 215callsCodeunit 5056 CustCont-Update OnModify
- 217raisesOnAfterCreateCustomer
CreateCustomer line 225
- 227callsCodeunit 131000 Library - Utility UpdateSetupNoSeriesCode
- 231validatesTable 18 Customer Contact Type
- 232writesTable 18 Customer Insert(true)
CreateCustomerWithCountryCodeAndVATRegNo line 239
- 241callsCreateCustomer
- 242validatesTable 18 Customer Country/Region Code
- 242callsCodeunit 131300 Library - ERM CreateCountryRegion
- 243callsCodeunit 131300 Library - ERM GenerateVATRegistrationNo
- 244writesTable 18 Customer Modify(true)
CreateCustomerWithAddress line 263
- 265callsCreateCustomer
- 266callsCreateCustomerAddress
CreateCustomerAddress line 273
- 278validatesTable 18 Customer Address
- 278callsCodeunit 131000 Library - Utility GenerateGUID
- 279validatesTable 18 Customer Address 2
- 279callsCodeunit 131000 Library - Utility GenerateGUID
- 281callsCodeunit 131300 Library - ERM CreatePostCode
- 282validatesTable 18 Customer Country/Region Code
- 283validatesTable 18 Customer City
- 284validatesTable 18 Customer County
- 285validatesTable 18 Customer Post Code
- 286writesTable 18 Customer Modify(true)
- 287callsCodeunit 5056 CustCont-Update OnModify
CreateCustomerWithAddressAndContactInfo line 294
CreateCustomerContactInfo line 304
- 308validatesTable 18 Customer Phone No.
- 308callsCodeunit 131000 Library - Utility GenerateRandomPhoneNo
- 309writesTable 18 Customer Modify(true)
- 310callsCodeunit 5056 CustCont-Update OnModify
CreateCustomerBankAccount line 330
- 333validatesTable 287 Customer Bank Account Customer No.
- 334validatesTable 287 Customer Bank Account Code
- 337callsCodeunit 131000 Library - Utility GenerateRandomCode
- 339callsCodeunit 131000 Library - Utility GetFieldLength
- 340writesTable 287 Customer Bank Account Insert(true)
CreateCustomerPostingGroup line 347
- 350validatesTable 92 Customer Posting Group Code
- 351callsCodeunit 131000 Library - Utility GenerateRandomCode
- 352validatesTable 92 Customer Posting Group Receivables Account
- 352callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 353validatesTable 92 Customer Posting Group Invoice Rounding Account
- 353callsCodeunit 131300 Library - ERM CreateGLAccountWithSalesSetup
- 354validatesTable 92 Customer Posting Group Debit Rounding Account
- 354callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 355validatesTable 92 Customer Posting Group Credit Rounding Account
- 355callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 356validatesTable 92 Customer Posting Group Payment Disc. Debit Acc.
- 356callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 357validatesTable 92 Customer Posting Group Payment Disc. Credit Acc.
- 357callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 358validatesTable 92 Customer Posting Group Payment Tolerance Debit Acc.
- 358callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 359validatesTable 92 Customer Posting Group Payment Tolerance Credit Acc.
- 359callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 360validatesTable 92 Customer Posting Group Debit Curr. Appln. Rndg. Acc.
- 360callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 361validatesTable 92 Customer Posting Group Credit Curr. Appln. Rndg. Acc.
- 361callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 362validatesTable 92 Customer Posting Group Interest Account
- 362callsCodeunit 131300 Library - ERM CreateGLAccountWithSalesSetup
- 363validatesTable 92 Customer Posting Group Additional Fee Account
- 363callsCodeunit 131300 Library - ERM CreateGLAccountWithSalesSetup
- 364validatesTable 92 Customer Posting Group Add. Fee per Line Account
- 364callsCodeunit 131300 Library - ERM CreateGLAccountWithSalesSetup
- 365writesTable 92 Customer Posting Group Insert(true)
CreateAltCustomerPostingGroup line 373
- 380writesTable 960 Alt. Customer Posting Group Insert
CreateCustomerPriceGroup line 387
- 390validatesTable 6 Customer Price Group Code
- 391callsCodeunit 131000 Library - Utility GenerateRandomCode
- 392validatesTable 6 Customer Price Group Description
- 394writesTable 6 Customer Price Group Insert(true)
CreateCustomerWithLocationCode line 403
- 405callsCreateCustomer
- 406validatesTable 18 Customer Location Code
- 407writesTable 18 Customer Modify(true)
CreateCustomerWithBusPostingGroups line 417
- 421callsCreateCustomer
- 422validatesTable 18 Customer Gen. Bus. Posting Group
- 423validatesTable 18 Customer VAT Bus. Posting Group
- 424writesTable 18 Customer Modify(true)
CreateCustomerWithVATBusPostingGroup line 433
- 437callsCreateCustomer
- 438validatesTable 18 Customer VAT Bus. Posting Group
- 439writesTable 18 Customer Modify(true)
CreateCustomerWithVATRegNo line 448
- 452callsCreateCustomer
- 453callsCodeunit 131300 Library - ERM CreateCountryRegion
- 454validatesTable 18 Customer Country/Region Code
- 455callsCodeunit 131300 Library - ERM GenerateVATRegistrationNo
- 456writesTable 18 Customer Modify(true)
CreateGeneralJournalBatch line 492, local
- 498callsCodeunit 131300 Library - ERM FindGenJournalTemplate
- 499callsCodeunit 131300 Library - ERM CreateGenJournalBatch
CreateItemChargeAssignment line 514
- 526callsCodeunit 131000 Library - Utility GetNewLineNo
- 533validatesTable 5809 Item Charge Assignment (Sales) Qty. to Assign
CreatePaymentAndApplytoInvoice line 543
- 548callsCreateGeneralJournalBatch
- 549callsCodeunit 131300 Library - ERM CreateGLAccount
- 550callsCodeunit 131300 Library - ERM CreateGeneralJnlLine
- 555validatesTable 81 Gen. Journal Line Document No.
- 556validatesTable 81 Gen. Journal Line Applies-to Doc. Type
- 557validatesTable 81 Gen. Journal Line Applies-to Doc. No.
- 558validatesTable 81 Gen. Journal Line Bal. Account No.
- 559writesTable 81 Gen. Journal Line Modify(true)
- 560callsCodeunit 131300 Library - ERM PostGeneralJnlLine
CreatePrepaymentVATSetup line 569
- 573callsCodeunit 131300 Library - ERM CreatePrepaymentVATSetup
CreateSalesDocument line 590
- 592callsCreateSalesHeader
- 593validatesTable 36 Sales Header Posting Date
- 594writesTable 36 Sales Header Modify(true)
- 595callsCreateSalesLine
- 598validatesTable 37 Sales Line Unit Price
- 599writesTable 37 Sales Line Modify(true)
CreateSalesOrder line 613
CreateSalesInvoice line 630
CreateSalesQuote line 647
CreateSalesBlanketOrder line 664
CreateSalesReturnOrder line 682
- 684callsCreateSalesDocument
- 686validatesTable 37 Sales Line Unit Cost (LCY)
- 687writesTable 37 Sales Line Modify
CreateSalesCreditMemo line 702
- 704callsCreateSalesDocument
- 706validatesTable 37 Sales Line Unit Cost (LCY)
- 707writesTable 37 Sales Line Modify
CreateSalesDocumentWithItem line 721
CreateFCYSalesDocumentWithItem line 738
- 740callsCreateSalesHeader
- 742validatesTable 36 Sales Header Location Code
- 743validatesTable 36 Sales Header Currency Code
- 744writesTable 36 Sales Header Modify(true)
- 746callsCodeunit 132201 Library - Inventory CreateItemNo
- 747callsCreateSalesLine
- 749validatesTable 37 Sales Line Location Code
- 751validatesTable 37 Sales Line Shipment Date
- 752validatesTable 37 Sales Line Unit Price
- 752callsCodeunit 130440 Library - Random RandDec
- 753writesTable 37 Sales Line Modify(true)
CreateSalesHeader line 762
- 764callsDisableWarningOnCloseUnreleasedDoc
- 765callsDisableWarningOnCloseUnpostedDoc
- 766callsDisableConfirmOnPostingDoc
- 768raisesOnBeforeCreateSalesHeader
- 769validatesTable 36 Sales Header Document Type
- 770writesTable 36 Sales Header Insert(true)
- 772callsCreateCustomerNo
- 773validatesTable 36 Sales Header Sell-to Customer No.
- 774validatesTable 36 Sales Header External Document No.
- 776callsCodeunit 131000 Library - Utility GenerateRandomCode
- 777writesTable 36 Sales Header Modify(true)
- 779raisesOnAfterCreateSalesHeader
CreateSalesLine line 790
CreateSalesLineWithShipmentDate line 804
- 806callsCreateSalesLineSimple
- 808validatesTable 37 Sales Line Type
- 812callsCodeunit 132201 Library - Inventory CreateItemNo
- 815callsCodeunit 130511 Library - Resource CreateResourceNo
- 818callsCodeunit 132201 Library - Inventory CreateItemChargeNo
- 821callsCodeunit 131300 Library - ERM CreateGLAccountWithSalesSetup
- 823validatesTable 37 Sales Line No.
- 824validatesTable 37 Sales Line Shipment Date
- 826validatesTable 37 Sales Line Quantity
- 827writesTable 37 Sales Line Modify(true)
- 829raisesOnAfterCreateSalesLineWithShipmentDate
CreateSalesLineSimple line 837
- 842validatesTable 37 Sales Line Document Type
- 843validatesTable 37 Sales Line Document No.
- 845validatesTable 37 Sales Line Line No.
- 845callsCodeunit 131000 Library - Utility GetNewLineNo
- 846writesTable 37 Sales Line Insert(true)
CreateSimpleItemSalesLine line 855
- 857callsCreateSalesLineSimple
- 858validatesTable 37 Sales Line Type
- 859writesTable 37 Sales Line Modify(true)
CreateSalesInvoice line 866
CreateSalesInvoiceForCustomerNo line 876
- 881callsCreateSalesHeader
- 882callsCodeunit 132201 Library - Inventory CreateItemWithUnitPriceAndUnitCost
- 883callsCodeunit 130440 Library - Random RandDecInRange
- 883callsCodeunit 130440 Library - Random RandDecInRange
- 884callsCreateSalesLine
- 884callsCodeunit 130440 Library - Random RandInt
CreateSalesOrder line 891
CreateSalesOrderForCustomerNo line 901
- 906callsCreateSalesHeader
- 907callsCodeunit 132201 Library - Inventory CreateItemWithUnitPriceAndUnitCost
- 908callsCodeunit 130440 Library - Random RandDecInRange
- 908callsCodeunit 130440 Library - Random RandDecInRange
- 909callsCreateSalesLine
- 909callsCodeunit 130440 Library - Random RandInt
CreateSalesCreditMemo line 916
CreateSalesCreditMemoForCustomerNo line 926
- 931callsCreateSalesHeader
- 932callsCodeunit 132201 Library - Inventory CreateItemWithUnitPriceAndUnitCost
- 933callsCodeunit 130440 Library - Random RandDecInRange
- 933callsCodeunit 130440 Library - Random RandDecInRange
- 934callsCreateSalesLine
- 934callsCodeunit 130440 Library - Random RandInt
CreateSalesQuoteForCustomerNo line 942
- 947callsCreateSalesHeader
- 948callsCodeunit 132201 Library - Inventory CreateItemWithUnitPriceAndUnitCost
- 949callsCodeunit 130440 Library - Random RandDecInRange
- 949callsCodeunit 130440 Library - Random RandDecInRange
- 950callsCreateSalesLine
- 950callsCodeunit 130440 Library - Random RandInt
CreateSalesOrderWithLocation line 959
- 961callsCreateSalesHeader
- 962validatesTable 36 Sales Header Location Code
- 963writesTable 36 Sales Header Modify
CreateSalesReturnOrderWithLocation line 972
- 974callsCreateSalesHeader
- 975validatesTable 36 Sales Header Location Code
- 976writesTable 36 Sales Header Modify
CreateSalesReturnOrder line 983
CreateSalesReturnOrderForCustomerNo line 993
- 998callsCreateSalesHeader
- 999callsCodeunit 132201 Library - Inventory CreateItemWithUnitPriceAndUnitCost
- 1000callsCodeunit 130440 Library - Random RandDecInRange
- 1000callsCodeunit 130440 Library - Random RandDecInRange
- 1001callsCreateSalesLine
- 1001callsCodeunit 130440 Library - Random RandInt
CreateSalesLineWithUnitPrice line 1012
- 1014callsCreateSalesLine
- 1015validatesTable 37 Sales Line Unit Price
- 1016writesTable 37 Sales Line Modify
CreateSalesperson line 1023
- 1026validatesTable 13 Salesperson/Purchaser Code
- 1027callsCodeunit 131000 Library - Utility GenerateRandomCode
- 1028validatesTable 13 Salesperson/Purchaser Name
- 1029writesTable 13 Salesperson/Purchaser Insert(true)
CreateSalesPrepaymentPct line 1040
- 1043validatesTable 459 Sales Prepayment % Item No.
- 1044validatesTable 459 Sales Prepayment % Sales Type
- 1045validatesTable 459 Sales Prepayment % Sales Code
- 1046validatesTable 459 Sales Prepayment % Starting Date
- 1047writesTable 459 Sales Prepayment % Insert(true)
CreateSalesCommentLine line 1057
- 1062validatesTable 44 Sales Comment Line Document Type
- 1063validatesTable 44 Sales Comment Line No.
- 1064validatesTable 44 Sales Comment Line Document Line No.
- 1066validatesTable 44 Sales Comment Line Line No.
- 1066callsCodeunit 131000 Library - Utility GetNewLineNo
- 1067writesTable 44 Sales Comment Line Insert(true)
- 1069validatesTable 44 Sales Comment Line Comment
- 1072writesTable 44 Sales Comment Line Modify(true)
CreateSalesPrice line 1088
- 1091validatesTable 7002 Sales Price Item No.
- 1092validatesTable 7002 Sales Price Sales Type
- 1093validatesTable 7002 Sales Price Sales Code
- 1094validatesTable 7002 Sales Price Starting Date
- 1095validatesTable 7002 Sales Price Currency Code
- 1096validatesTable 7002 Sales Price Variant Code
- 1097validatesTable 7002 Sales Price Unit of Measure Code
- 1098validatesTable 7002 Sales Price Minimum Quantity
- 1099writesTable 7002 Sales Price Insert(true)
- 1100validatesTable 7002 Sales Price Unit Price
- 1101writesTable 7002 Sales Price Modify(true)
- 1103raisesOnAfterCreateSalesPrice
CreateShipToAddress line 1111
- 1114validatesTable 222 Ship-to Address Customer No.
- 1115validatesTable 222 Ship-to Address Code
- 1118callsCodeunit 131000 Library - Utility GenerateRandomCode
- 1120callsCodeunit 131000 Library - Utility GetFieldLength
- 1121writesTable 222 Ship-to Address Insert(true)
CreateShipToAddressWithRandomCountryCode line 1129
- 1131callsCreateShipToAddress
- 1132validatesTable 222 Ship-to Address Country/Region Code
- 1132callsCodeunit 131300 Library - ERM CreateCountryRegion
- 1133writesTable 222 Ship-to Address Modify(true)
CreateShipToAddressWithCountryCode line 1142
- 1144callsCreateShipToAddress
- 1145validatesTable 222 Ship-to Address Country/Region Code
- 1146writesTable 222 Ship-to Address Modify(true)
CreateStandardSalesCode line 1153
- 1156validatesTable 170 Standard Sales Code Code
- 1159callsCodeunit 131000 Library - Utility GenerateRandomCode
- 1161callsCodeunit 131000 Library - Utility GetFieldLength
- 1163validatesTable 170 Standard Sales Code Description
- 1164writesTable 170 Standard Sales Code Insert(true)
CreateStandardSalesLine line 1172
- 1177validatesTable 171 Standard Sales Line Standard Sales Code
- 1179validatesTable 171 Standard Sales Line Line No.
- 1179callsCodeunit 131000 Library - Utility GetNewLineNo
- 1180writesTable 171 Standard Sales Line Insert(true)
CreateCustomerSalesCode line 1189
- 1192validatesTable 172 Standard Customer Sales Code Customer No.
- 1193validatesTable 172 Standard Customer Sales Code Code
- 1194writesTable 172 Standard Customer Sales Code Insert(true)
CreateCustomerMandate line 1205
- 1208validatesTable 1230 SEPA Direct Debit Mandate Customer No.
- 1209validatesTable 1230 SEPA Direct Debit Mandate Customer Bank Account Code
- 1210validatesTable 1230 SEPA Direct Debit Mandate Valid From
- 1211validatesTable 1230 SEPA Direct Debit Mandate Valid To
- 1212validatesTable 1230 SEPA Direct Debit Mandate Date of Signature
- 1213writesTable 1230 SEPA Direct Debit Mandate Insert(true)
CreateStandardText line 1221
- 1224callsCodeunit 131000 Library - Utility GenerateRandomCode
- 1225callsCodeunit 131000 Library - Utility GenerateGUID
- 1226writesTable 7 Standard Text Insert
CreateStandardTextWithExtendedText line 1236
- 1242callsCodeunit 131000 Library - Utility GenerateRandomCode
- 1243callsCodeunit 131000 Library - Utility GenerateGUID
- 1244writesTable 7 Standard Text Insert
- 1245callsCodeunit 132213 Library - Small Business CreateExtendedTextHeader
- 1247callsCodeunit 132213 Library - Small Business CreateExtendedTextLine
CreateCustomerDocumentLayout line 1260
- 1265validatesTable 9657 Custom Report Selection Source Type
- 1266validatesTable 9657 Custom Report Selection Source No.
- 1267validatesTable 9657 Custom Report Selection Usage
- 1268validatesTable 9657 Custom Report Selection Report ID
- 1269validatesTable 9657 Custom Report Selection Custom Report Layout Code
- 1270validatesTable 9657 Custom Report Selection Send To Email
- 1271writesTable 9657 Custom Report Selection Insert
CombineReturnReceipts line 1283
- 1289callsReport 6653 Combine Return Receipts InitializeRequest
- 1305callsReport 6653 Combine Return Receipts UseRequestPage
CombineShipments line 1320
- 1326callsReport 295 Combine Shipments InitializeRequest
- 1342callsReport 295 Combine Shipments UseRequestPage
DeleteInvoicedSalesOrders line 1350
- 1363callsReport 299 Delete Invoiced Sales Orders UseRequestPage
DeleteInvoicedSalesReturnOrders line 1371
- 1384callsReport 6651 Delete Invd Sales Ret. Orders UseRequestPage
ExplodeBOM line 1392
FindCustomerPostingGroup line 1404
GetReturnReceiptLines line 1459
GetShipmentLines line 1470
PostSalesOrder line 1490
PostSalesOrderPartially line 1509
- 1513callsCreateSalesOrder
- 1514validatesTable 37 Sales Line Qty. to Ship
- 1515validatesTable 37 Sales Line Qty. to Invoice
- 1516writesTable 37 Sales Line Modify
- 1517callsPostSalesDocument
PostSalesLine line 1526
PostSalesDocument line 1541
PostSalesDocumentAndEmail line 1553
DoPostSalesDocument line 1558, local
- 1568raisesOnBeforePostSalesDocument
- 1577validatesTable 36 Sales Header Ship
- 1578validatesTable 36 Sales Header Receive
- 1579validatesTable 36 Sales Header Invoice
- 1580callsCodeunit 80 Sales-Post SetPostingFlags
- 1586callsCodeunit 310 No. Series GetNextNo
- 1586callsCodeunit 131000 Library - Utility GetNextNoSeriesSalesDate
- 1593callsCodeunit 310 No. Series GetNextNo
- 1593callsCodeunit 131000 Library - Utility GetNextNoSeriesSalesDate
- 1598callsCodeunit 310 No. Series GetNextNo
- 1598callsCodeunit 131000 Library - Utility GetNextNoSeriesSalesDate
- 1606callsCodeunit 310 No. Series GetNextNo
- 1606callsCodeunit 131000 Library - Utility GetNextNoSeriesSalesDate
- 1611callsCodeunit 310 No. Series GetNextNo
- 1611callsCodeunit 131000 Library - Utility GetNextNoSeriesSalesDate
- 1616callsCodeunit 130000 Assert Fail
- 1620callsCodeunit 82 Sales-Post + Print PostAndEmail
- 1622runsCodeunit 80 Sales-Post
PostSalesPrepaymentCrMemo line 1633
- 1637callsCodeunit 442 Sales-Post Prepayments CreditMemo
PostSalesPrepaymentCreditMemo line 1645
- 1653callsCodeunit 310 No. Series PeekNextNo
- 1653callsCodeunit 131000 Library - Utility GetNextNoSeriesSalesDate
- 1656callsCodeunit 442 Sales-Post Prepayments CreditMemo
PostSalesPrepaymentInvoice line 1664
- 1672callsCodeunit 310 No. Series PeekNextNo
- 1672callsCodeunit 131000 Library - Utility GetNextNoSeriesSalesDate
- 1675callsCodeunit 442 Sales-Post Prepayments Invoice
QuoteMakeOrder line 1683
- 1689runsCodeunit 86 Sales-Quote to Order
- 1690callsCodeunit 86 Sales-Quote to Order GetSalesOrderHeader
ReleaseSalesDocument line 1698
- 1702callsCodeunit 414 Release Sales Document PerformManualRelease
ReopenSalesDocument line 1709
- 1713callsCodeunit 414 Release Sales Document PerformManualReopen
CalcSalesDiscount line 1720
SetAllowVATDifference line 1733
- 1736validatesTable 311 Sales & Receivables Setup Allow VAT Difference
- 1737writesTable 311 Sales & Receivables Setup Modify(true)
SetAllowDocumentDeletionBeforeDate line 1744
- 1747validatesTable 311 Sales & Receivables Setup Allow Document Deletion Before
- 1748writesTable 311 Sales & Receivables Setup Modify(true)
SetApplnBetweenCurrencies line 1755
- 1758validatesTable 311 Sales & Receivables Setup Appln. between Currencies
- 1759writesTable 311 Sales & Receivables Setup Modify(true)
SetCreateItemFromItemNo line 1764
- 1767validatesTable 311 Sales & Receivables Setup Create Item from Item No.
- 1768writesTable 311 Sales & Receivables Setup Modify(true)
SetCreateItemFromDescription line 1775
- 1778validatesTable 311 Sales & Receivables Setup Create Item from Description
- 1779writesTable 311 Sales & Receivables Setup Modify(true)
SetDiscountPosting line 1786
- 1789validatesTable 311 Sales & Receivables Setup Discount Posting
- 1790writesTable 311 Sales & Receivables Setup Modify(true)
SetDiscountPostingSilent line 1797
- 1801writesTable 311 Sales & Receivables Setup Modify
SetCalcInvDiscount line 1808
- 1811validatesTable 311 Sales & Receivables Setup Calc. Inv. Discount
- 1812writesTable 311 Sales & Receivables Setup Modify(true)
SetCreditWarnings line 1819
- 1822validatesTable 311 Sales & Receivables Setup Credit Warnings
- 1823writesTable 311 Sales & Receivables Setup Modify(true)
SetCreditWarningsToNoWarnings line 1829
- 1832validatesTable 311 Sales & Receivables Setup Credit Warnings
- 1833writesTable 311 Sales & Receivables Setup Modify(true)
SetExactCostReversingMandatory line 1840
- 1843validatesTable 311 Sales & Receivables Setup Exact Cost Reversing Mandatory
- 1844writesTable 311 Sales & Receivables Setup Modify(true)
SetGLFreightAccountNo line 1851
- 1854validatesTable 311 Sales & Receivables Setup Freight G/L Acc. No.
- 1855writesTable 311 Sales & Receivables Setup Modify(true)
SetInvoiceRounding line 1862
- 1865validatesTable 311 Sales & Receivables Setup Invoice Rounding
- 1866writesTable 311 Sales & Receivables Setup Modify(true)
SetStockoutWarning line 1873
- 1876validatesTable 311 Sales & Receivables Setup Stockout Warning
- 1877writesTable 311 Sales & Receivables Setup Modify(true)
SetPreventNegativeInventory line 1884
- 1889validatesTable 313 Inventory Setup Prevent Negative Inventory
- 1890writesTable 313 Inventory Setup Modify(true)
SetArchiveQuoteAlways line 1896
- 1899validatesTable 311 Sales & Receivables Setup Archive Quotes
- 1900writesTable 311 Sales & Receivables Setup Modify(true)
SetArchiveOrders line 1907
- 1910validatesTable 311 Sales & Receivables Setup Archive Orders
- 1911writesTable 311 Sales & Receivables Setup Modify(true)
SetArchiveBlanketOrders line 1918
- 1921validatesTable 311 Sales & Receivables Setup Archive Blanket Orders
- 1922writesTable 311 Sales & Receivables Setup Modify(true)
SetArchiveReturnOrders line 1929
- 1932validatesTable 311 Sales & Receivables Setup Archive Return Orders
- 1933writesTable 311 Sales & Receivables Setup Modify(true)
SetExtDocNo line 1940
- 1943validatesTable 311 Sales & Receivables Setup Ext. Doc. No. Mandatory
- 1944writesTable 311 Sales & Receivables Setup Modify(true)
SetPostWithJobQueue line 1951
- 1954validatesTable 311 Sales & Receivables Setup Post with Job Queue
- 1955writesTable 311 Sales & Receivables Setup Modify(true)
SetPostAndPrintWithJobQueue line 1962
- 1965validatesTable 311 Sales & Receivables Setup Post & Print with Job Queue
- 1966writesTable 311 Sales & Receivables Setup Modify(true)
SetOrderNoSeriesInSetup line 1972
- 1975validatesTable 311 Sales & Receivables Setup Order Nos.
- 1975callsCodeunit 131300 Library - ERM CreateNoSeriesCode
- 1976writesTable 311 Sales & Receivables Setup Modify
SetPostedNoSeriesInSetup line 1982
- 1985validatesTable 311 Sales & Receivables Setup Posted Invoice Nos.
- 1985callsCodeunit 131300 Library - ERM CreateNoSeriesCode
- 1986validatesTable 311 Sales & Receivables Setup Posted Shipment Nos.
- 1986callsCodeunit 131300 Library - ERM CreateNoSeriesCode
- 1987validatesTable 311 Sales & Receivables Setup Posted Credit Memo Nos.
- 1987callsCodeunit 131300 Library - ERM CreateNoSeriesCode
- 1988writesTable 311 Sales & Receivables Setup Modify
SetReturnOrderNoSeriesInSetup line 1994
- 1997validatesTable 311 Sales & Receivables Setup Return Order Nos.
- 1997callsCodeunit 131300 Library - ERM CreateNoSeriesCode
- 1998validatesTable 311 Sales & Receivables Setup Posted Return Receipt Nos.
- 1998callsCodeunit 131300 Library - ERM CreateNoSeriesCode
- 1999writesTable 311 Sales & Receivables Setup Modify
SetCopyCommentsOrderToInvoiceInSetup line 2006
- 2009validatesTable 311 Sales & Receivables Setup Copy Comments Order to Invoice
- 2010writesTable 311 Sales & Receivables Setup Modify(true)
ModifySalesInvoiceHeader line 2017
- 2023callsCodeunit 131300 Library - ERM CreatePaymentMethod
- 2024callsCodeunit 132201 Library - Inventory CreateShippingAgent
- 2025callsCodeunit 131300 Library - ERM CreateBankAccount
- 2027writesTable 270 Bank Account Modify
- 2030callsCodeunit 130440 Library - Random RandText
- 2032callsCodeunit 130440 Library - Random RandText
- 2034callsCodeunit 130440 Library - Random RandText
- 2035callsCodeunit 130440 Library - Random RandText
UpdateSalesInvoiceHeader line 2042
UndoSalesShipmentLine line 2051
UndoReturnReceiptLine line 2060
AutoReserveSalesLine line 2069
- 2071callsTable 37 Sales Line AutoReserve
SelectCashReceiptJnlBatch line 2078
- 2080callsCodeunit 131306 Library - Journals SelectGenJournalBatch
- 2080callsSelectCashReceiptJnlTemplate
SelectCashReceiptJnlTemplate line 2087
- 2091callsCodeunit 131306 Library - Journals SelectGenJournalTemplate
DisableConfirmOnPostingDoc line 2097
- 2101callsCodeunit 1330 Instruction Mgt. DisableMessageForCurrentUser
- 2101callsCodeunit 1330 Instruction Mgt. ShowPostedConfirmationMessageCode
EnableConfirmOnPostingDoc line 2107
- 2111callsCodeunit 1330 Instruction Mgt. EnableMessageForCurrentUser
- 2111callsCodeunit 1330 Instruction Mgt. ShowPostedConfirmationMessageCode
DisableWarningOnCloseUnreleasedDoc line 2117
- 2119callsCodeunit 131300 Library - ERM DisableClosingUnreleasedOrdersMsg
DisableWarningOnCloseUnpostedDoc line 2125
- 2129callsCodeunit 1330 Instruction Mgt. DisableMessageForCurrentUser
- 2129callsCodeunit 1330 Instruction Mgt. QueryPostOnCloseCode
EnableWarningOnCloseUnpostedDoc line 2135
- 2139callsCodeunit 1330 Instruction Mgt. DisableMessageForCurrentUser
- 2139callsCodeunit 1330 Instruction Mgt. QueryPostOnCloseCode
EnableSalesSetupIgnoreUpdatedAddresses line 2145
- 2151writesTable 311 Sales & Receivables Setup Modify
DisableSalesSetupIgnoreUpdatedAddresses line 2157
- 2163writesTable 311 Sales & Receivables Setup Modify
MockCustLedgerEntry line 2171
- 2174callsCodeunit 131000 Library - Utility GetNewRecNo
- 2177writesTable 21 Cust. Ledger Entry Insert
MockCustLedgerEntryWithAmount line 2185
MockCustLedgerEntryWithZeroBalance line 2196
MockDetailedCustLedgerEntryWithAmount line 2207
- 2210callsCodeunit 131000 Library - Utility GetNewRecNo
- 2216callsCodeunit 130440 Library - Random RandDec
- 2218writesTable 379 Detailed Cust. Ledg. Entry Insert
MockDetailedCustLedgEntry line 2225
MockDetailedCustLedgEntryZeroBalance line 2238
MockApplnDetailedCustLedgerEntry line 2253
- 2259callsCodeunit 131000 Library - Utility GetNewRecNo
- 2265writesTable 379 Detailed Cust. Ledg. Entry Insert
PreviewPostSalesDocument line 2272
- 2276callsCodeunit 81 Sales-Post (Yes/No) Preview