Purchase Order Failure

purchase-order-failure@0.8.1 Contract ^0.13.0 905374d1d9ba224533402678685211ea1a8ea36f163a124e156f71257acb6d26

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 Open in VSCode Web

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.

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.
          

Model Dependencies

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 on GitHub.

Sample Instance

{
    "$class": "com.docusign.clauses.PurchaseOrderFailure",
    "contractId": "44e797c1-157b-42b4-9088-e8b042f3b8ec",
    "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"
    }
}

State Types

Type Sample JSON
com.docusign.clauses.PurchaseOrderFailureState
{
    "$class": "com.docusign.clauses.PurchaseOrderFailureState",
    "pastFailures": [
        "2019-07-31T09:43:18.958-04:00"
    ],
    "nbPastFailures": 64967,
    "stateId": "27bce5d1-b399-11e9-a415-2f2abeed0243"
}

Request Types

Type Sample JSON
com.docusign.connect.DocuSignEnvelopeInformation
{
    "$class": "com.docusign.connect.DocuSignEnvelopeInformation",
    "envelopeStatus": {
        "$class": "com.docusign.connect.EnvelopeStatus",
        "status": "Any",
        "envelopeId": "Cupidatat mollit incididunt sint.",
        "created": "2019-07-31T09:43:18.956-04:00",
        "sent": "2019-07-31T09:43:18.956-04:00",
        "delivered": "2019-07-31T09:43:18.956-04:00",
        "signed": "2019-07-31T09:43:18.956-04:00",
        "completed": "2019-07-31T09:43:18.956-04:00",
        "declined": "2019-07-31T09:43:18.956-04:00",
        "email": "Id velit incididunt."
    },
    "recipients": [
        {
            "$class": "com.docusign.connect.Recipient",
            "status": "FaxPending",
            "email": "Adipisicing in proident.",
            "userName": "Aute.",
            "sent": "2019-07-31T09:43:18.956-04:00",
            "delivered": "2019-07-31T09:43:18.956-04:00",
            "signed": "2019-07-31T09:43:18.956-04:00",
            "declined": "2019-07-31T09:43:18.956-04:00",
            "declineReason": "Qui sunt.",
            "tabStatuses": [
                {
                    "$class": "com.docusign.connect.NumberTabStatus",
                    "tabName": "Magna.",
                    "tabValue": 140.024,
                    "tabType": "EnvelopeID",
                    "status": "Culpa aute.",
                    "tabLabel": "Do eu et mollit.",
                    "originalValue": "Pariatur sit aliqua Lorem.",
                    "signed": "2019-07-31T09:43:18.956-04:00",
                    "customTabType": "SSN"
                }
            ]
        }
    ],
    "customFields": [
        {
            "$class": "com.docusign.connect.CustomField",
            "name": "Ad ad.",
            "value": "Ut reprehenderit eu duis."
        }
    ],
    "transactionId": "27bcbec0-b399-11e9-a415-2f2abeed0243",
    "timestamp": "2019-07-31T09:43:18.956-04:00"
}

Response Types

Type Sample JSON
com.docusign.clauses.PurchaseOrderFailureResponse
{
    "$class": "com.docusign.clauses.PurchaseOrderFailureResponse",
    "penalty": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 195.684,
        "currencyCode": "CHE"
    },
    "transactionId": "27bce5d0-b399-11e9-a415-2f2abeed0243",
    "timestamp": "2019-07-31T09:43:18.957-04:00"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 23.721,
        "currencyCode": "MKD"
    },
    "description": "Tempor velit enim pariatur deserunt.",
    "contract": "resource:com.docusign.clauses.PurchaseOrderFailure#7371",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#6827",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#8982",
    "deadline": "2019-07-31T09:43:18.958-04:00",
    "eventId": "27bd0ce0-b399-11e9-a415-2f2abeed0243",
    "timestamp": "2019-07-31T09:43:18.958-04:00"
}