Sales order confirm DP

protected SalesConfirmHeaderTmp initializeSalesOrderConfirmationHeader()

{

 #ISOCountryRegionCodes

SalesConfirmHeaderTmp salesConfirmHeaderTmpLoc = next initializeSalesOrderConfirmationHeader();


SalesTable salesTable                          = this.parmCustConfirmJour().salesTable();

DirPartyPostalAddressView           dirPartyPostalAddress;

DirPartyLocationRolesView           dirPartyLocationRoles;

LogisticsLocationRole               logisticsLocRole;


select firstOnly   * from dirPartyPostalAddress order by RecId desc

exists join dirPartyLocationRoles

    where dirPartyLocationRoles.Location   == dirPartyPostalAddress.Location

        && dirPartyLocationRoles.Party     ==     CustTable::find(salesTable.CustAccount).Party//_dirpartyRecid

    && dirPartyPostalAddress.IsPrimary == NoYes::Yes

        exists join logisticsLocRole

    where logisticsLocRole.Name     == enum2Str(LogisticsLocationRoleType::Business) //like Delivery,Invoice,Business

        && logisticsLocRole.RecId   == dirPartyLocationRoles.LocationRole

        && logisticsLocRole.IsPostalAddress;

}


 protected SalesConfirmDetailsTmp initializeSalesOrderConfirmationLine(SalesConfirmHeaderTmp _salesConfirmHeaderTmp,

     SalesConfirmDPConfirmationLineQuerySelection    _confirmationLineSelection)

 {

}


[ExtensionOf(classStr(SalesConfirmJournalCreate))]

internal final class SolvSalesConfirmJournalCreate_Extension

{

    #ISOCountryRegionCodes

    protected void insertJournalLine(Common _custConfirmTrans) 

    {

        

        next insertJournalLine(custConfirmTrans);

    }


    protected void endCreate()

    {

        custConfirmJour custConfirmJourCheckEmilSent, custConfirmJourCheckEmilSentLoc;

        next endCreate();

}

[ExtensionOf(classStr(PurchInvoiceJournalCreate))]

public final class SolvPurchInvoiceJournalCreate_Extension

{  

    protected void endCreate()

    {

        next endCreate();

Comments

Popular posts from this blog

Create ledger journals in D365FO using X++ + LedgerDimensionACType

Excel Import into D365 using x++ code

Sales invoice report