Please report issues and contribute improvements on GitHub!

Template purchase-order-failure@0.7.1

Contract ^0.12.0 2267b3ad6b225642de6a5490416a1a01f29faee9af4c2b2eb80fad323882f8f9

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.

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": "4e4e3427-d818-43db-a96e-dee0adda47cf",
    "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-04-17T00:55:58.574+00:00"
    ],
    "nbPastFailures": 39776,
    "stateId": "902838e0-60ab-11e9-ba69-a3cec1fc66e2"
}

Request Types

Type Sample JSON
com.docusign.connect.DocuSignEnvelopeInformation
{
    "$class": "com.docusign.connect.DocuSignEnvelopeInformation",
    "envelopeStatus": {
        "$class": "com.docusign.connect.EnvelopeStatus",
        "status": "Voided",
        "envelopeId": "Consectetur non nostrud.",
        "created": "2019-04-17T00:55:58.571+00:00",
        "sent": "2019-04-17T00:55:58.571+00:00",
        "delivered": "2019-04-17T00:55:58.571+00:00",
        "signed": "2019-04-17T00:55:58.571+00:00",
        "completed": "2019-04-17T00:55:58.571+00:00",
        "declined": "2019-04-17T00:55:58.571+00:00",
        "email": "Est laborum pariatur velit commodo."
    },
    "recipients": [
        {
            "$class": "com.docusign.connect.Recipient",
            "status": "Delivered",
            "email": "Cillum eu.",
            "userName": "Fugiat.",
            "sent": "2019-04-17T00:55:58.571+00:00",
            "delivered": "2019-04-17T00:55:58.571+00:00",
            "signed": "2019-04-17T00:55:58.571+00:00",
            "declined": "2019-04-17T00:55:58.571+00:00",
            "declineReason": "Ullamco exercitation minim nulla.",
            "tabStatuses": [
                {
                    "$class": "com.docusign.connect.NumberTabStatus",
                    "tabName": "Anim sit officia.",
                    "tabValue": 164.113,
                    "tabType": "Title",
                    "status": "Velit minim id laborum.",
                    "tabLabel": "Ut mollit aliqua anim.",
                    "originalValue": "Enim elit cupidatat aute do.",
                    "signed": "2019-04-17T00:55:58.571+00:00",
                    "customTabType": "SSN"
                }
            ]
        }
    ],
    "customFields": [
        {
            "$class": "com.docusign.connect.CustomField",
            "name": "Voluptate id consectetur cillum.",
            "value": "Enim eu adipisicing deserunt ut."
        }
    ],
    "transactionId": "9027c3b0-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:55:58.571+00:00"
}

Response Types

Type Sample JSON
com.docusign.clauses.PurchaseOrderFailureResponse
{
    "$class": "com.docusign.clauses.PurchaseOrderFailureResponse",
    "penalty": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 221.845,
        "currencyCode": "XAG"
    },
    "transactionId": "902811d0-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:55:58.573+00:00"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 194.909,
        "currencyCode": "AED"
    },
    "description": "Sint laboris exercitation adipisicing.",
    "contract": "resource:com.docusign.clauses.PurchaseOrderFailure#9538",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#9559",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#9076",
    "deadline": "2019-04-17T00:55:58.574+00:00",
    "eventId": "902838e1-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:55:58.574+00:00"
}