R28440 SalesOrder - Check If Payment Plan Meets Deferred Payment Options

    Code R28440
    Entity Crm.Sales.SalesOrders Entity
    Name CheckIfPaymentPlanMeetsDeferredPaymentOptions
    Attribute -
    Layer Back-End
    Events Releasing +
    Modify NO
    Action Validate that:

    If (SalesOrder.DocumentType.DocumentTypePaymentOptions[EnterpriseCompany == SalesOrder.EnterpriseCompany].DeferredPaymentMinimalAmmount != null

    && 

    SalesOrder.DocumentType.DocumentTypePaymentOptions[EnterpriseCompany == SalesOrder.EnterpriseCompany].DeferredPaymentMinimalAmmount > SalesOrder.AmountToPay* //converted SalesOrder currency)

    SalesOrderPaymentPlans[SalesOrder == currentSalesOrder].Count() == 0

    * For more information about the calculation of AmountToPay, see Amount to pay.
    Description As described in Deferred payments options, if there is a minimal deferred amount set for a SalesOrder and the Amount to pay of a SalesOrder is less than the specified minimal amount, there must be no payment plans set for the particular SalesOrder. This is a SalesOrder tool which EnterpriseOne clients use to apply certain sales policies.
    Message Document {DocumentText} has a payment plan. This defines deferred payment which is not allowed because the Sales Order amount is less than the deferred payment minimum amount - {SalesOrder.DocumentType.DocumentTypePaymentOption.DeferredPaymentMinimalAmount} {SalesOrder.DocumentType.DocumentTypePaymentOption.DeferredPaymentMinimalAmmountCurrency}.

    Please delete the payment plan.
    Introduced In Version 2018.2
    Revocable YES

    * For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.

    • Improve this Doc
    Back to top Generated by DocFX