# users

username: admin
role: Admin
full_name: Admin Verify
email: admin327779@test.local
password:
  scrypt$c5e9f741663b5f4cde433f448237ea32$1965a169cbdd415527f6ccf1689e9b2a5d4a9b767488df777f60a220be17a5ff8a08b56ce9bd7c570d510c2e1c096348f3c15069de85f58438366940d0045356


username: sales01
role: Sales
full_name: Sales User
email: sales@test.local
password:
  scrypt$1992b92aef2077db73c8c3449ff4ffbe$49e8c16633a792c04b974e7ab12536d183ea4cc3fadcfad1c09ab71527d82de5be187f70f94930cecaddf12fffa80e0cb44e2056e1fd798730146bd745e20035


username: stock01
role: Stock
full_name: Stock User
email: stock@test.local
password:
  scrypt$8fb3cd2f1ed56e8da2d060c69d92a633$95f793672a66acac985587555256378a3c7fc90303b678ed12b9bb3d5f40bfb2f2b530b1f130ab07b02582fa8100c0166fe91df53316677906c8d84d8c5e55cd


username: acct01
role: Accountant
full_name: Account User
email: acct@test.local
password:
  scrypt$85737e509471e04269cc82cd62f7dcc0$971f0eaecf83525d8678060c3ad552c66af04e5f50b174f94805926f9752ed5d6e2ba0d13f671147db41ad451279ed76463aa057df98b20912fc04882d1c7c4d


# print_templates

template_key: vente_devis
type: vente
doc_type: devis
name: Devis client
updated_at: 2026-04-02 14:15:28
html:
  <div style="min-height:297mm; box-sizing:border-box; display:flex; flex-direction:column; padding:28px 24px 22px; color:#0f172a; font-family:Arial, sans-serif; background:#ffffff;">
    <div style="display:flex; justify-content:space-between; align-items:flex-start; gap:24px;">
      <div style="display:flex; align-items:flex-start; min-height:104px; min-width:180px;">
        {{company_logo_html}}
      </div>
      <div style="flex:1; text-align:right;">
        <div style="font-size:15px; font-weight:800; letter-spacing:0.8px; color:#0b4a88; text-transform:uppercase;">{{company_name}}</div>
        <div style="margin-top:6px; font-size:10px; color:#64748b; line-height:1.8; font-weight:700; text-transform:uppercase;">{{company_activity_line_1}}</div>
        <div style="font-size:10px; color:#64748b; line-height:1.8; font-weight:700; text-transform:uppercase;">{{company_activity_line_2}}</div>
      </div>
    </div>

    <div style="margin-top:14px;">
      <div style="height:4px; background:#0b4a88;"></div>
      <div style="width:88px; height:3px; background:#d4a017; margin-left:48px;"></div>
    </div>

    <div style="display:flex; justify-content:center; margin-top:20px;">
      <div style="padding:8px 30px; border:2px solid #0b4a88; border-radius:3px; color:#0b4a88; font-size:16px; font-weight:800; letter-spacing:4px; text-transform:uppercase;">Devis client</div>
    </div>

    <div style="display:grid; grid-template-columns:1fr 300px; gap:22px; margin-top:18px;">
      <div style="padding:14px 16px; border-left:4px solid #0b4a88; background:#f3f7fd; border-radius:4px;">
        <div style="font-size:10px; color:#0b4a88; font-weight:800; letter-spacing:2px; text-transform:uppercase; margin-bottom:10px;">Client</div>
        <div style="font-size:14px; font-weight:800; text-transform:uppercase; margin-bottom:8px;">{{party_name}}</div>
        <div style="font-size:11px; line-height:1.7; color:#334155;">Adresse</div>
        <div style="font-size:11px; line-height:1.7; color:#334155;">{{party_address}}</div>
        <div style="margin-top:6px; display:inline-block; padding:4px 8px; background:#e8f0fb; color:#0b4a88; font-size:11px; font-weight:700;">ICE : {{party_ice}}</div>
      </div>
      <div style="padding:12px 16px; border:1px solid #cbd5e1; background:#ffffff;">
        <div style="display:grid; grid-template-columns:170px 1fr; row-gap:12px; column-gap:10px; font-size:11px;">{{document_info_rows}}</div>
      </div>
    </div>

    <div style="margin-top:10px; text-align:center; font-size:12px; font-weight:700; color:#0b4a88;">Reference : {{document_reference}}</div>

    {{lines_table}}

    <div style="display:flex; justify-content:flex-end; margin-top:12px;">
      <div style="width:320px; border:1px solid #dbe4f0; background:#ffffff;">
        <div style="display:flex; justify-content:space-between; padding:10px 14px; font-size:12px; border-bottom:1px solid #e2e8f0;"><span>Total HT</span><strong>{{subtotal}}</strong></div>
        <div style="display:flex; justify-content:space-between; padding:10px 14px; font-size:12px; border-bottom:1px solid #e2e8f0;"><span>TVA</span><strong>{{tax_total}}</strong></div>
        <div style="display:flex; justify-content:space-between; padding:12px 14px; background:#0b4a88; color:#ffffff; font-size:16px; font-weight:800;"><span>Total TTC</span><strong>{{grand_total}}</strong></div>
      </div>
    </div>

    <div style="margin-top:16px; padding:10px 12px; border-left:3px solid #d4a017; background:#f8fafc;">
      <div style="font-size:11px; color:#334155;">{{amount_in_words_label}}</div>
      <div style="font-size:13px; font-weight:800; color:#0f172a;">{{amount_in_words}}</div>
    </div>

    <div style="margin-top:auto; padding-top:16px;">
      <div style="height:3px; background:#0b4a88;"></div>
      <div style="width:88px; height:2px; background:#d4a017; margin-left:48px;"></div>
      <div style="margin-top:10px; text-align:center; font-size:11px; line-height:1.7; color:#334155;">
        <div style="font-weight:700;">ICE : {{company_ice}} | IF : {{company_if}} | RC : {{company_rc}} | TAXE PROFESSIONNELLE : {{company_patente}}</div>
        <div><strong>ADRESSE :</strong> {{company_address}}</div>
        <div><strong>EMAIL :</strong> {{company_email}} <span style="display:inline-block; margin:0 10px;">|</span> <strong>SITE :</strong> {{company_website}}</div>
        <div><strong>RIB :</strong> {{company_rib}} <span style="display:inline-block; margin:0 10px;">|</span> <strong>CNSS :</strong> {{company_cnss}}</div>
      </div>
    </div>
  </div>


template_key: vente_commande
type: vente
doc_type: commande
name: Bon de commande client
updated_at: 2026-04-02 14:15:28
html:
  <div style="min-height:297mm; box-sizing:border-box; display:flex; flex-direction:column; padding:28px 24px 22px; color:#0f172a; font-family:Arial, sans-serif; background:#ffffff;">
    <div style="display:flex; justify-content:space-between; align-items:flex-start; gap:24px;">
      <div style="display:flex; align-items:flex-start; min-height:104px; min-width:180px;">
        {{company_logo_html}}
      </div>
      <div style="flex:1; text-align:right;">
        <div style="font-size:15px; font-weight:800; letter-spacing:0.8px; color:#0b4a88; text-transform:uppercase;">{{company_name}}</div>
        <div style="margin-top:6px; font-size:10px; color:#64748b; line-height:1.8; font-weight:700; text-transform:uppercase;">{{company_activity_line_1}}</div>
        <div style="font-size:10px; color:#64748b; line-height:1.8; font-weight:700; text-transform:uppercase;">{{company_activity_line_2}}</div>
      </div>
    </div>

    <div style="margin-top:14px;">
      <div style="height:4px; background:#0b4a88;"></div>
      <div style="width:88px; height:3px; background:#d4a017; margin-left:48px;"></div>
    </div>

    <div style="display:flex; justify-content:center; margin-top:20px;">
      <div style="padding:8px 30px; border:2px solid #0b4a88; border-radius:3px; color:#0b4a88; font-size:16px; font-weight:800; letter-spacing:4px; text-transform:uppercase;">Bon de commande client</div>
    </div>

    <div style="display:grid; grid-template-columns:1fr 300px; gap:22px; margin-top:18px;">
      <div style="padding:14px 16px; border-left:4px solid #0b4a88; background:#f3f7fd; border-radius:4px;">
        <div style="font-size:10px; color:#0b4a88; font-weight:800; letter-spacing:2px; text-transform:uppercase; margin-bottom:10px;">Client</div>
        <div style="font-size:14px; font-weight:800; text-transform:uppercase; margin-bottom:8px;">{{party_name}}</div>
        <div style="font-size:11px; line-height:1.7; color:#334155;">Adresse</div>
        <div style="font-size:11px; line-height:1.7; color:#334155;">{{party_address}}</div>
        <div style="margin-top:6px; display:inline-block; padding:4px 8px; background:#e8f0fb; color:#0b4a88; font-size:11px; font-weight:700;">ICE : {{party_ice}}</div>
      </div>
      <div style="padding:12px 16px; border:1px solid #cbd5e1; background:#ffffff;">
        <div style="display:grid; grid-template-columns:170px 1fr; row-gap:12px; column-gap:10px; font-size:11px;">{{document_info_rows}}</div>
      </div>
    </div>

    <div style="margin-top:10px; text-align:center; font-size:12px; font-weight:700; color:#0b4a88;">Reference : {{document_reference}}</div>

    {{lines_table}}

    <div style="display:flex; justify-content:flex-end; margin-top:12px;">
      <div style="width:320px; border:1px solid #dbe4f0; background:#ffffff;">
        <div style="display:flex; justify-content:space-between; padding:10px 14px; font-size:12px; border-bottom:1px solid #e2e8f0;"><span>Total HT</span><strong>{{subtotal}}</strong></div>
        <div style="display:flex; justify-content:space-between; padding:10px 14px; font-size:12px; border-bottom:1px solid #e2e8f0;"><span>TVA</span><strong>{{tax_total}}</strong></div>
        <div style="display:flex; justify-content:space-between; padding:12px 14px; background:#0b4a88; color:#ffffff; font-size:16px; font-weight:800;"><span>Total TTC</span><strong>{{grand_total}}</strong></div>
      </div>
    </div>

    <div style="margin-top:16px; padding:10px 12px; border-left:3px solid #d4a017; background:#f8fafc;">
      <div style="font-size:11px; color:#334155;">{{amount_in_words_label}}</div>
      <div style="font-size:13px; font-weight:800; color:#0f172a;">{{amount_in_words}}</div>
    </div>

    <div style="margin-top:auto; padding-top:16px;">
      <div style="height:3px; background:#0b4a88;"></div>
      <div style="width:88px; height:2px; background:#d4a017; margin-left:48px;"></div>
      <div style="margin-top:10px; text-align:center; font-size:11px; line-height:1.7; color:#334155;">
        <div style="font-weight:700;">ICE : {{company_ice}} | IF : {{company_if}} | RC : {{company_rc}} | TAXE PROFESSIONNELLE : {{company_patente}}</div>
        <div><strong>ADRESSE :</strong> {{company_address}}</div>
        <div><strong>EMAIL :</strong> {{company_email}} <span style="display:inline-block; margin:0 10px;">|</span> <strong>SITE :</strong> {{company_website}}</div>
        <div><strong>RIB :</strong> {{company_rib}} <span style="display:inline-block; margin:0 10px;">|</span> <strong>CNSS :</strong> {{company_cnss}}</div>
      </div>
    </div>
  </div>


template_key: vente_livraison
type: vente
doc_type: livraison
name: Bon de livraison
updated_at: 2026-04-02 14:15:28
html:
  <div style="min-height:297mm; box-sizing:border-box; display:flex; flex-direction:column; padding:28px 24px 22px; color:#0f172a; font-family:Arial, sans-serif; background:#ffffff;">
    <div style="display:flex; justify-content:space-between; align-items:flex-start; gap:24px;">
      <div style="display:flex; align-items:flex-start; min-height:104px; min-width:180px;">
        {{company_logo_html}}
      </div>
      <div style="flex:1; text-align:right;">
        <div style="font-size:15px; font-weight:800; letter-spacing:0.8px; color:#0b4a88; text-transform:uppercase;">{{company_name}}</div>
        <div style="margin-top:6px; font-size:10px; color:#64748b; line-height:1.8; font-weight:700; text-transform:uppercase;">{{company_activity_line_1}}</div>
        <div style="font-size:10px; color:#64748b; line-height:1.8; font-weight:700; text-transform:uppercase;">{{company_activity_line_2}}</div>
      </div>
    </div>

    <div style="margin-top:14px;">
      <div style="height:4px; background:#0b4a88;"></div>
      <div style="width:88px; height:3px; background:#d4a017; margin-left:48px;"></div>
    </div>

    <div style="display:flex; justify-content:center; margin-top:20px;">
      <div style="padding:8px 30px; border:2px solid #0b4a88; border-radius:3px; color:#0b4a88; font-size:16px; font-weight:800; letter-spacing:4px; text-transform:uppercase;">Bon de livraison</div>
    </div>

    <div style="display:grid; grid-template-columns:1fr 300px; gap:22px; margin-top:18px;">
      <div style="padding:14px 16px; border-left:4px solid #0b4a88; background:#f3f7fd; border-radius:4px;">
        <div style="font-size:10px; color:#0b4a88; font-weight:800; letter-spacing:2px; text-transform:uppercase; margin-bottom:10px;">Client</div>
        <div style="font-size:14px; font-weight:800; text-transform:uppercase; margin-bottom:8px;">{{party_name}}</div>
        <div style="font-size:11px; line-height:1.7; color:#334155;">Adresse</div>
        <div style="font-size:11px; line-height:1.7; color:#334155;">{{party_address}}</div>
        <div style="margin-top:6px; display:inline-block; padding:4px 8px; background:#e8f0fb; color:#0b4a88; font-size:11px; font-weight:700;">ICE : {{party_ice}}</div>
      </div>
      <div style="padding:12px 16px; border:1px solid #cbd5e1; background:#ffffff;">
        <div style="display:grid; grid-template-columns:170px 1fr; row-gap:12px; column-gap:10px; font-size:11px;">{{document_info_rows}}</div>
      </div>
    </div>

    <div style="margin-top:10px; text-align:center; font-size:12px; font-weight:700; color:#0b4a88;">Reference : {{document_reference}}</div>

    {{lines_table}}

    <div style="margin-top:auto; padding-top:16px;">
      <div style="height:3px; background:#0b4a88;"></div>
      <div style="width:88px; height:2px; background:#d4a017; margin-left:48px;"></div>
      <div style="margin-top:10px; text-align:center; font-size:11px; line-height:1.7; color:#334155;">
        <div style="font-weight:700;">ICE : {{company_ice}} | IF : {{company_if}} | RC : {{company_rc}} | TAXE PROFESSIONNELLE : {{company_patente}}</div>
        <div><strong>ADRESSE :</strong> {{company_address}}</div>
        <div><strong>EMAIL :</strong> {{company_email}} <span style="display:inline-block; margin:0 10px;">|</span> <strong>SITE :</strong> {{company_website}}</div>
        <div><strong>RIB :</strong> {{company_rib}} <span style="display:inline-block; margin:0 10px;">|</span> <strong>CNSS :</strong> {{company_cnss}}</div>
      </div>
    </div>
  </div>


template_key: vente_facture
type: vente
doc_type: facture
name: Facture client
updated_at: 2026-04-02 14:15:28
html:
  <div style="min-height:297mm; box-sizing:border-box; display:flex; flex-direction:column; padding:28px 24px 22px; color:#0f172a; font-family:Arial, sans-serif; background:#ffffff;">
    <div style="display:flex; justify-content:space-between; align-items:flex-start; gap:24px;">
      <div style="display:flex; align-items:flex-start; min-height:104px; min-width:180px;">
        {{company_logo_html}}
      </div>
      <div style="flex:1; text-align:right;">
        <div style="font-size:15px; font-weight:800; letter-spacing:0.8px; color:#0b4a88; text-transform:uppercase;">{{company_name}}</div>
        <div style="margin-top:6px; font-size:10px; color:#64748b; line-height:1.8; font-weight:700; text-transform:uppercase;">{{company_activity_line_1}}</div>
        <div style="font-size:10px; color:#64748b; line-height:1.8; font-weight:700; text-transform:uppercase;">{{company_activity_line_2}}</div>
      </div>
    </div>

    <div style="margin-top:14px;">
      <div style="height:4px; background:#0b4a88;"></div>
      <div style="width:88px; height:3px; background:#d4a017; margin-left:48px;"></div>
    </div>

    <div style="display:flex; justify-content:center; margin-top:20px;">
      <div style="padding:8px 30px; border:2px solid #0b4a88; border-radius:3px; color:#0b4a88; font-size:16px; font-weight:800; letter-spacing:4px; text-transform:uppercase;">Facture client</div>
    </div>

    <div style="display:grid; grid-template-columns:1fr 300px; gap:22px; margin-top:18px;">
      <div style="padding:14px 16px; border-left:4px solid #0b4a88; background:#f3f7fd; border-radius:4px;">
        <div style="font-size:10px; color:#0b4a88; font-weight:800; letter-spacing:2px; text-transform:uppercase; margin-bottom:10px;">Client</div>
        <div style="font-size:14px; font-weight:800; text-transform:uppercase; margin-bottom:8px;">{{party_name}}</div>
        <div style="font-size:11px; line-height:1.7; color:#334155;">Adresse</div>
        <div style="font-size:11px; line-height:1.7; color:#334155;">{{party_address}}</div>
        <div style="margin-top:6px; display:inline-block; padding:4px 8px; background:#e8f0fb; color:#0b4a88; font-size:11px; font-weight:700;">ICE : {{party_ice}}</div>
      </div>
      <div style="padding:12px 16px; border:1px solid #cbd5e1; background:#ffffff;">
        <div style="display:grid; grid-template-columns:170px 1fr; row-gap:12px; column-gap:10px; font-size:11px;">{{document_info_rows}}</div>
      </div>
    </div>

    <div style="margin-top:10px; text-align:center; font-size:12px; font-weight:700; color:#0b4a88;">Reference : {{document_reference}}</div>

    {{lines_table}}

    <div style="display:flex; justify-content:flex-end; margin-top:12px;">
      <div style="width:320px; border:1px solid #dbe4f0; background:#ffffff;">
        <div style="display:flex; justify-content:space-between; padding:10px 14px; font-size:12px; border-bottom:1px solid #e2e8f0;"><span>Total HT</span><strong>{{subtotal}}</strong></div>
        <div style="display:flex; justify-content:space-between; padding:10px 14px; font-size:12px; border-bottom:1px solid #e2e8f0;"><span>TVA</span><strong>{{tax_total}}</strong></div>
        <div style="display:flex; justify-content:space-between; padding:12px 14px; background:#0b4a88; color:#ffffff; font-size:16px; font-weight:800;"><span>Total TTC</span><strong>{{grand_total}}</strong></div>
      </div>
    </div>

    <div style="margin-top:16px; padding:10px 12px; border-left:3px solid #d4a017; background:#f8fafc;">
      <div style="font-size:11px; color:#334155;">{{amount_in_words_label}}</div>
      <div style="font-size:13px; font-weight:800; color:#0f172a;">{{amount_in_words}}</div>
    </div>

    <div style="margin-top:auto; padding-top:16px;">
      <div style="height:3px; background:#0b4a88;"></div>
      <div style="width:88px; height:2px; background:#d4a017; margin-left:48px;"></div>
      <div style="margin-top:10px; text-align:center; font-size:11px; line-height:1.7; color:#334155;">
        <div style="font-weight:700;">ICE : {{company_ice}} | IF : {{company_if}} | RC : {{company_rc}} | TAXE PROFESSIONNELLE : {{company_patente}}</div>
        <div><strong>ADRESSE :</strong> {{company_address}}</div>
        <div><strong>EMAIL :</strong> {{company_email}} <span style="display:inline-block; margin:0 10px;">|</span> <strong>SITE :</strong> {{company_website}}</div>
        <div><strong>RIB :</strong> {{company_rib}} <span style="display:inline-block; margin:0 10px;">|</span> <strong>CNSS :</strong> {{company_cnss}}</div>
      </div>
    </div>
  </div>


template_key: achat_devis
type: achat
doc_type: devis
name: Demande de prix
updated_at: 2026-04-02 14:15:28
html:
  <div style="min-height:297mm; box-sizing:border-box; display:flex; flex-direction:column; padding:28px 24px 22px; color:#0f172a; font-family:Arial, sans-serif; background:#ffffff;">
    <div style="display:flex; justify-content:space-between; align-items:flex-start; gap:24px;">
      <div style="display:flex; align-items:flex-start; min-height:104px; min-width:180px;">
        {{company_logo_html}}
      </div>
      <div style="flex:1; text-align:right;">
        <div style="font-size:15px; font-weight:800; letter-spacing:0.8px; color:#0b4a88; text-transform:uppercase;">{{company_name}}</div>
        <div style="margin-top:6px; font-size:10px; color:#64748b; line-height:1.8; font-weight:700; text-transform:uppercase;">{{company_activity_line_1}}</div>
        <div style="font-size:10px; color:#64748b; line-height:1.8; font-weight:700; text-transform:uppercase;">{{company_activity_line_2}}</div>
      </div>
    </div>

    <div style="margin-top:14px;">
      <div style="height:4px; background:#0b4a88;"></div>
      <div style="width:88px; height:3px; background:#d4a017; margin-left:48px;"></div>
    </div>

    <div style="display:flex; justify-content:center; margin-top:20px;">
      <div style="padding:8px 30px; border:2px solid #0b4a88; border-radius:3px; color:#0b4a88; font-size:16px; font-weight:800; letter-spacing:4px; text-transform:uppercase;">Demande de prix</div>
    </div>

    <div style="display:grid; grid-template-columns:1fr 300px; gap:22px; margin-top:18px;">
      <div style="padding:14px 16px; border-left:4px solid #0b4a88; background:#f3f7fd; border-radius:4px;">
        <div style="font-size:10px; color:#0b4a88; font-weight:800; letter-spacing:2px; text-transform:uppercase; margin-bottom:10px;">Fournisseur</div>
        <div style="font-size:14px; font-weight:800; text-transform:uppercase; margin-bottom:8px;">{{party_name}}</div>
        <div style="font-size:11px; line-height:1.7; color:#334155;">Adresse</div>
        <div style="font-size:11px; line-height:1.7; color:#334155;">{{party_address}}</div>
        <div style="margin-top:6px; display:inline-block; padding:4px 8px; background:#e8f0fb; color:#0b4a88; font-size:11px; font-weight:700;">ICE : {{party_ice}}</div>
      </div>
      <div style="padding:12px 16px; border:1px solid #cbd5e1; background:#ffffff;">
        <div style="display:grid; grid-template-columns:170px 1fr; row-gap:12px; column-gap:10px; font-size:11px;">{{document_info_rows}}</div>
      </div>
    </div>

    <div style="margin-top:10px; text-align:center; font-size:12px; font-weight:700; color:#0b4a88;">Reference : {{document_reference}}</div>

    {{lines_table}}

    <div style="display:flex; justify-content:flex-end; margin-top:12px;">
      <div style="width:320px; border:1px solid #dbe4f0; background:#ffffff;">
        <div style="display:flex; justify-content:space-between; padding:10px 14px; font-size:12px; border-bottom:1px solid #e2e8f0;"><span>Total HT</span><strong>{{subtotal}}</strong></div>
        <div style="display:flex; justify-content:space-between; padding:10px 14px; font-size:12px; border-bottom:1px solid #e2e8f0;"><span>TVA</span><strong>{{tax_total}}</strong></div>
        <div style="display:flex; justify-content:space-between; padding:12px 14px; background:#0b4a88; color:#ffffff; font-size:16px; font-weight:800;"><span>Total TTC</span><strong>{{grand_total}}</strong></div>
      </div>
    </div>

    <div style="margin-top:16px; padding:10px 12px; border-left:3px solid #d4a017; background:#f8fafc;">
      <div style="font-size:11px; color:#334155;">{{amount_in_words_label}}</div>
      <div style="font-size:13px; font-weight:800; color:#0f172a;">{{amount_in_words}}</div>
    </div>

    <div style="margin-top:auto; padding-top:16px;">
      <div style="height:3px; background:#0b4a88;"></div>
      <div style="width:88px; height:2px; background:#d4a017; margin-left:48px;"></div>
      <div style="margin-top:10px; text-align:center; font-size:11px; line-height:1.7; color:#334155;">
        <div style="font-weight:700;">ICE : {{company_ice}} | IF : {{company_if}} | RC : {{company_rc}} | TAXE PROFESSIONNELLE : {{company_patente}}</div>
        <div><strong>ADRESSE :</strong> {{company_address}}</div>
        <div><strong>EMAIL :</strong> {{company_email}} <span style="display:inline-block; margin:0 10px;">|</span> <strong>SITE :</strong> {{company_website}}</div>
        <div><strong>RIB :</strong> {{company_rib}} <span style="display:inline-block; margin:0 10px;">|</span> <strong>CNSS :</strong> {{company_cnss}}</div>
      </div>
    </div>
  </div>


template_key: achat_commande
type: achat
doc_type: commande
name: Bon de commande achat
updated_at: 2026-04-02 14:15:28
html:
  <div style="min-height:297mm; box-sizing:border-box; display:flex; flex-direction:column; padding:28px 24px 22px; color:#0f172a; font-family:Arial, sans-serif; background:#ffffff;">
    <div style="display:flex; justify-content:space-between; align-items:flex-start; gap:24px;">
      <div style="display:flex; align-items:flex-start; min-height:104px; min-width:180px;">
        {{company_logo_html}}
      </div>
      <div style="flex:1; text-align:right;">
        <div style="font-size:15px; font-weight:800; letter-spacing:0.8px; color:#0b4a88; text-transform:uppercase;">{{company_name}}</div>
        <div style="margin-top:6px; font-size:10px; color:#64748b; line-height:1.8; font-weight:700; text-transform:uppercase;">{{company_activity_line_1}}</div>
        <div style="font-size:10px; color:#64748b; line-height:1.8; font-weight:700; text-transform:uppercase;">{{company_activity_line_2}}</div>
      </div>
    </div>

    <div style="margin-top:14px;">
      <div style="height:4px; background:#0b4a88;"></div>
      <div style="width:88px; height:3px; background:#d4a017; margin-left:48px;"></div>
    </div>

    <div style="display:flex; justify-content:center; margin-top:20px;">
      <div style="padding:8px 30px; border:2px solid #0b4a88; border-radius:3px; color:#0b4a88; font-size:16px; font-weight:800; letter-spacing:4px; text-transform:uppercase;">Bon de commande achat</div>
    </div>

    <div style="display:grid; grid-template-columns:1fr 300px; gap:22px; margin-top:18px;">
      <div style="padding:14px 16px; border-left:4px solid #0b4a88; background:#f3f7fd; border-radius:4px;">
        <div style="font-size:10px; color:#0b4a88; font-weight:800; letter-spacing:2px; text-transform:uppercase; margin-bottom:10px;">Fournisseur</div>
        <div style="font-size:14px; font-weight:800; text-transform:uppercase; margin-bottom:8px;">{{party_name}}</div>
        <div style="font-size:11px; line-height:1.7; color:#334155;">Adresse</div>
        <div style="font-size:11px; line-height:1.7; color:#334155;">{{party_address}}</div>
        <div style="margin-top:6px; display:inline-block; padding:4px 8px; background:#e8f0fb; color:#0b4a88; font-size:11px; font-weight:700;">ICE : {{party_ice}}</div>
      </div>
      <div style="padding:12px 16px; border:1px solid #cbd5e1; background:#ffffff;">
        <div style="display:grid; grid-template-columns:170px 1fr; row-gap:12px; column-gap:10px; font-size:11px;">{{document_info_rows}}</div>
      </div>
    </div>

    <div style="margin-top:10px; text-align:center; font-size:12px; font-weight:700; color:#0b4a88;">Reference : {{document_reference}}</div>

    {{lines_table}}

    <div style="display:flex; justify-content:flex-end; margin-top:12px;">
      <div style="width:320px; border:1px solid #dbe4f0; background:#ffffff;">
        <div style="display:flex; justify-content:space-between; padding:10px 14px; font-size:12px; border-bottom:1px solid #e2e8f0;"><span>Total HT</span><strong>{{subtotal}}</strong></div>
        <div style="display:flex; justify-content:space-between; padding:10px 14px; font-size:12px; border-bottom:1px solid #e2e8f0;"><span>TVA</span><strong>{{tax_total}}</strong></div>
        <div style="display:flex; justify-content:space-between; padding:12px 14px; background:#0b4a88; color:#ffffff; font-size:16px; font-weight:800;"><span>Total TTC</span><strong>{{grand_total}}</strong></div>
      </div>
    </div>

    <div style="margin-top:16px; padding:10px 12px; border-left:3px solid #d4a017; background:#f8fafc;">
      <div style="font-size:11px; color:#334155;">{{amount_in_words_label}}</div>
      <div style="font-size:13px; font-weight:800; color:#0f172a;">{{amount_in_words}}</div>
    </div>

    <div style="margin-top:auto; padding-top:16px;">
      <div style="height:3px; background:#0b4a88;"></div>
      <div style="width:88px; height:2px; background:#d4a017; margin-left:48px;"></div>
      <div style="margin-top:10px; text-align:center; font-size:11px; line-height:1.7; color:#334155;">
        <div style="font-weight:700;">ICE : {{company_ice}} | IF : {{company_if}} | RC : {{company_rc}} | TAXE PROFESSIONNELLE : {{company_patente}}</div>
        <div><strong>ADRESSE :</strong> {{company_address}}</div>
        <div><strong>EMAIL :</strong> {{company_email}} <span style="display:inline-block; margin:0 10px;">|</span> <strong>SITE :</strong> {{company_website}}</div>
        <div><strong>RIB :</strong> {{company_rib}} <span style="display:inline-block; margin:0 10px;">|</span> <strong>CNSS :</strong> {{company_cnss}}</div>
      </div>
    </div>
  </div>


