Purchase Order Failure

purchase-order-failure@0.9.0 Contract ^0.20.0 2f18e6da048d1c0260a2831c2c22cec0caf2ad7cd2457e4af89607a0cf121b06

Issues credits for late purchase orders. Purchase orders sent via DocuSign must have the text recipient tabs with the following tab labels and validations: deliveryDate with Date validation, actualPrice with Numbers validation and currencyCode with no validation.

Download Archive Open in Template Studio

Purchase Order Failure

This clause emits a payment obligation for purchase orders that are received late. Purchase orders sent via DocuSign must have the "text" recipient tabs with the following tab labels and validations: deliveryDate with "Date" validation, actualPrice with "Numbers" validation and currencyCode with no validation.

Template Text

Grammar

In the event that a Purchase Order Failure causes any Product to be delivered more than {{lateOne}} after the delivery date for such Product specified in the applicable Purchase Order therefore, {{buyer}} shall be entitled to receive a {{lateOnePercent}}% discount on the Actual Price for such late delivered Product which would otherwise have been payable pursuant to {{article}}. In the event that a Purchase Order Failure causes any Product to be delivered more than {{lateTwo}} after the delivery date for such Product specified in the applicable Purchase Order therefore, {{buyer}} shall be entitled to receive a {{lateTwoPercent}}% discount on the Actual Price for such late delivered Product which would otherwise have been payable pursuant to {{article}}. In the event that a Purchase Order Failure causes any Product to be delivered more than {{lateThree}}, after the delivery date for such Product specified in the applicable Purchase Order therefore, {{buyer}} shall be entitled to receive a {{lateThreePercent}}% discount on the Actual Price for such late delivered Product which would otherwise have been payable pursuant to {{article}}. Any discount amount owing to {{buyer}} pursuant to this {{thisSection}} shall be paid by paying {{buyer}} such amount via electronic money transfer. In case of {{maxFailures}} or more Purchase Order Failures in the past {{failureRange}}, then {{buyer}} shall be entitled to an additional {{repeatedFailureCompensation}} compensation.

Sample

In the event that a Purchase Order Failure causes any Product to be delivered more than 1 days after the delivery date for such Product specified in the applicable Purchase Order therefore, "Buyer Corp" shall be entitled to receive a 5.0% discount on the Actual Price for such late delivered Product which would otherwise have been payable pursuant to "Article 5". In the event that a Purchase Order Failure causes any Product to be delivered more than 2 days after the delivery date for such Product specified in the applicable Purchase Order therefore, "Buyer Corp" shall be entitled to receive a 10% discount on the Actual Price for such late delivered Product which would otherwise have been payable pursuant to "Article 5". In the event that a Purchase Order Failure causes any Product to be delivered more than 10 days, after the delivery date for such Product specified in the applicable Purchase Order therefore, "Buyer Corp" shall be entitled to receive a 50% discount on the Actual Price for such late delivered Product which would otherwise have been payable pursuant to "Article 5". Any discount amount owing to "Buyer Corp" pursuant to this "Section 3.5(c)" shall be paid by paying "Buyer Corp" such amount via electronic money transfer. In case of 5 or more Purchase Order Failures in the past 60 days, then "Buyer Corp" shall be entitled to an additional 599.99 USD compensation.

Sample Data

{
    "$class": "com.docusign.clauses.PurchaseOrderFailure",
    "contractId": "0047c51a-4e36-46da-8b5d-312cfa136c13",
    "buyer": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Buyer Corp"
    },
    "lateOne": {
        "$class": "org.accordproject.time.Duration",
        "amount": 1,
        "unit": "days"
    },
    "lateTwo": {
        "$class": "org.accordproject.time.Duration",
        "amount": 2,
        "unit": "days"
    },
    "lateThree": {
        "$class": "org.accordproject.time.Duration",
        "amount": 10,
        "unit": "days"
    },
    "lateOnePercent": 5,
    "lateTwoPercent": 10,
    "lateThreePercent": 50,
    "article": "Article 5",
    "thisSection": "Section 3.5(c)",
    "maxFailures": 5,
    "failureRange": {
        "$class": "org.accordproject.time.Duration",
        "amount": 60,
        "unit": "days"
    },
    "repeatedFailureCompensation": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 599.99,
        "currencyCode": "USD"
    }
}

Template Model

Model Dependencies

Template Logic

Find the full logic for this template on on GitHub.

State Types

Type Sample JSON
com.docusign.clauses.PurchaseOrderFailureState
{
    "$class": "com.docusign.clauses.PurchaseOrderFailureState",
    "pastFailures": [
        "2019-11-04T15:08:47.062-05:00"
    ],
    "nbPastFailures": 55322,
    "stateId": "e8d1a760-ff3e-11e9-b361-efc0ae54bdd6"
}

Request Types

Type Sample JSON
com.docusign.connect.DocuSignEnvelopeInformation
{
    "$class": "com.docusign.connect.DocuSignEnvelopeInformation",
    "envelopeStatus": {
        "$class": "com.docusign.connect.EnvelopeStatus",
        "status": "Delivered",
        "envelopeId": "Excepteur nostrud do voluptate fugiat.",
        "created": "2019-11-04T15:08:47.060-05:00",
        "sent": "2019-11-04T15:08:47.060-05:00",
        "delivered": "2019-11-04T15:08:47.060-05:00",
        "signed": "2019-11-04T15:08:47.060-05:00",
        "completed": "2019-11-04T15:08:47.060-05:00",
        "declined": "2019-11-04T15:08:47.060-05:00",
        "email": "Eiusmod qui esse commodo sit."
    },
    "recipients": [
        {
            "$class": "com.docusign.connect.Recipient",
            "status": "Completed",
            "email": "Magna minim fugiat commodo.",
            "userName": "Labore aliqua ullamco deserunt dolore.",
            "sent": "2019-11-04T15:08:47.060-05:00",
            "delivered": "2019-11-04T15:08:47.060-05:00",
            "signed": "2019-11-04T15:08:47.060-05:00",
            "declined": "2019-11-04T15:08:47.060-05:00",
            "declineReason": "Amet voluptate.",
            "tabStatuses": [
                {
                    "$class": "com.docusign.connect.NumberTabStatus",
                    "tabName": "Cupidatat velit pariatur.",
                    "tabValue": 88.965,
                    "tabType": "Custom",
                    "status": "Tempor dolor ipsum.",
                    "tabLabel": "Eiusmod occaecat ad cupidatat sint.",
                    "originalValue": "Proident veniam aliquip commodo.",
                    "signed": "2019-11-04T15:08:47.060-05:00",
                    "customTabType": "Formula"
                }
            ]
        }
    ],
    "customFields": [
        {
            "$class": "com.docusign.connect.CustomField",
            "name": "Veniam quis elit.",
            "value": "Aliquip reprehenderit nostrud magna sit."
        }
    ],
    "transactionId": "e8d15940-ff3e-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:08:47.060-05:00"
}

Response Types

Type Sample JSON
com.docusign.clauses.PurchaseOrderFailureResponse
{
    "$class": "com.docusign.clauses.PurchaseOrderFailureResponse",
    "penalty": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 110.47,
        "currencyCode": "GNF"
    },
    "transactionId": "e8d18050-ff3e-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:08:47.061-05:00"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 206.886,
        "currencyCode": "XAF"
    },
    "description": "Labore eiusmod elit reprehenderit enim.",
    "contract": "resource:com.docusign.clauses.PurchaseOrderFailure#9032",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#9597",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#5051",
    "deadline": "2019-11-04T15:08:47.062-05:00",
    "eventId": "e8d1a761-ff3e-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:08:47.062-05:00"
}

Technical Integration

Please refer to the Cicero documentation for details and examples of how to integrate a call to a Cicero template into your application.

View the Latest code for this template on GitHub.