dynamic contract templates and companyId on bookings

This commit is contained in:
marshal
2026-06-04 16:53:14 +03:00
parent 324935a334
commit 8fea963ddb
26 changed files with 724 additions and 181 deletions

View File

@@ -1,68 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Import Container Transport — {{reference}}</title>
{{> styles}}
</head>
<body>
<div class="cover">
<h1>Contract Agreement</h1>
<h1>Import Container Transport Service by Railway</h1>
<p class="meta"><strong>Contract Ref No:</strong> {{reference}}</p>
<p class="meta"><strong>Year:</strong> {{contractYear}}</p>
</div>
<p>This Contract Agreement is made on <strong>{{contractDate}}</strong>.</p>
<p><strong>Between</strong> Ethio-Djibouti Standard Gauge Railway Share Company (EDR), Addis Ababa (“Service Provider”), and <strong>{{client.companyName}}</strong> at {{client.companyAddress}}, {{client.companyLocation}} (“Client”). Phone {{client.phone}} / {{client.email}}. TIN {{client.tinNumber}}.</p>
<h2>Whereas</h2>
<p>{{template.whereas}}</p>
<p>Now therefore, the parties agree as follows:</p>
<div class="article">
<h2>Article 1: Objective and Scope of Services</h2>
<p><strong>Objective:</strong> To provide railway transportation for 40ft and/or 20ft full containers from SGTD to Dire Dawa, Modjo dry port and/or Galaan Multipurpose port (GMP), and empty container return from those terminals to SGTD.</p>
<p><strong>Scope:</strong> (1) Railway transport service; (2) Cargo handling at Galaan Multipurpose port (GMP) where applicable.</p>
</div>
<div class="article">
<h2>Article 2: Obligations of the Client (summary)</h2>
<ol>
<li>Provide shipment instructions to EDR for container movements on the agreed corridor.</li>
<li>Meet minimum container supply per terminal (Modjo, Dire Dawa, GMP) as per EDR operational rules.</li>
<li>Submit required documents to Djibouti Nagad station at least 24 hours before loading.</li>
<li>Pay 100% transportation fees in advance per train set in {{paymentArticle}}.</li>
<li>Notify EDR 48 hours in advance for hazardous or valuable cargo.</li>
</ol>
</div>
<div class="article">
<h2>Article 3: Obligations of the Service Provider (summary)</h2>
<ol>
<li>Assign voyage per operational schedule and notify train schedule 48 hours in advance.</li>
<li>Provide safe transportation and deliver within agreed timelines when documents are complete.</li>
<li>Return empty containers from Dire Dawa, Modjo and GMP to SGTD within seven (7) calendar days of receipt.</li>
<li>Maintain cargo liability insurance per wagon.</li>
</ol>
</div>
{{> article5_pricing}}
<div class="article">
<h2>Article 4: Force Majeure</h2>
<p>Neither party is liable for delays due to force majeure interpreted under the Ethiopian Civil Code.</p>
</div>
<div class="article">
<h2>Article 6: Contract Documents</h2>
<ol>
<li>Amendments (if any)</li>
<li>This Contract Agreement</li>
<li>Final Minutes of Negotiation (if any)</li>
</ol>
</div>
{{> signatures_block}}
</body>
</html>

View File

@@ -0,0 +1,12 @@
<div class="article">
<h2>Article 1: Objective and Scope of Services</h2>
<p><strong>Objective:</strong> {{template.article1.objective}}</p>
{{#if template.article1.scope.length}}
<p><strong>Scope:</strong></p>
<ol>
{{#each template.article1.scope}}
<li>{{this}}</li>
{{/each}}
</ol>
{{/if}}
</div>

View File

@@ -0,0 +1,17 @@
<div class="article">
<h2>Article 2: Obligations of the Client (summary)</h2>
<ol>
{{#each template.clientObligations}}
<li>{{this}}</li>
{{/each}}
</ol>
</div>
<div class="article">
<h2>Article 3: Obligations of the Service Provider (summary)</h2>
<ol>
{{#each template.providerObligations}}
<li>{{this}}</li>
{{/each}}
</ol>
</div>

View File

@@ -0,0 +1,8 @@
<div class="article">
<h2>Article 6: Contract Documents</h2>
<ol>
{{#each template.contractDocuments}}
<li>{{this}}</li>
{{/each}}
</ol>
</div>

View File

@@ -0,0 +1,4 @@
<div class="article">
<h2>Article 4: Force Majeure</h2>
<p>Neither party is liable for delays due to force majeure interpreted under the Ethiopian Civil Code.</p>
</div>

View File

@@ -14,29 +14,17 @@
</div>
<p>This Contract Agreement is made on <strong>{{contractDate}}</strong>.</p>
<p><strong>Between</strong> Ethio-Djibouti Standard Gauge Railway Share Company (EDR) (“Service Provider”) and <strong>{{client.companyName}}</strong> (“Client”) at {{client.companyAddress}}, {{client.companyLocation}}. Phone: {{client.phone}}. Email: {{client.email}}. TIN: {{client.tinNumber}}.</p>
<p><strong>Between</strong> Ethio-Djibouti Standard Gauge Railway Share Company (EDR), Addis Ababa (“Service Provider”), and <strong>{{client.companyName}}</strong> at {{client.companyAddress}}, {{client.companyLocation}} (“Client”). Phone {{client.phone}} / {{client.email}}. TIN {{client.tinNumber}}.</p>
<h2>Whereas</h2>
<p>{{template.whereas}}</p>
<p>Now therefore, the parties agree as follows:</p>
<div class="article">
<h2>Article 1: Objective and Scope</h2>
<p>{{template.article1Objective}}</p>
</div>
{{> article1}}
{{> articles_obligations}}
{{> article5_pricing}}
<div class="article">
<h2>Article 4: Force Majeure</h2>
<p>Neither party shall be liable for delays caused by force majeure beyond reasonable control, interpreted per the Ethiopian Civil Code.</p>
</div>
<div class="article">
<h2>Article 6: Contract Documents</h2>
<p>This agreement, amendments (if any), and negotiated minutes constitute the contract.</p>
</div>
{{> force_majeure}}
{{> contract_documents}}
{{> signatures_block}}
</body>
</html>