# users

username: manager
role: Manager
full_name: Manager
email: manager@example.com
password:
  scrypt$304c31366ebca49d05c77f1806882618$bfd96d35f0993a85e1741b3408160bb03afad278f6ea0552f9f2d5c729e2bf8a8f1416f6fd1f32cef1dd7c6d6430f4e6a52afc58f631b6dcbb4d5155d0401cb7


username: vendeur
role: Sales
full_name: Commercial
email: sales@example.com
password:
  scrypt$d1dc465f0e1a1737ee5814e6d7ec687b$f3f7008ad8fa7177d7f0f70925037b90e26c02ca32041ddda32db551c0db3fc088b5a1d01865eb704cc1c2f0a7b9cc01b996fe69db24d98d78882fa7e53cfcb1


username: stock
role: Stock
full_name: Magasinier
email: stock@example.com
password:
  scrypt$2d517a0042a20729771c48e3beac8fb8$a6333003b8e0d78d2c11a24ca59270746a6e033563142073e095da3dfaaf403efa78f8b655f92721f4fdaeed8379612fdea5e7563ebc5f60aec4695b7ea2a6c5


username: comptable
role: Accountant
full_name: Comptable
email: accountant@example.com
password:
  scrypt$174f8dd122f93dafa4e191e73bb9c464$b2508a7fd2968ce9a40ef9de6dcceae7151bc070cd52c235c9b3afd97fa481a86467c11211ccfe7de7e113b69e8b2c58c6f409dc6d18e9e550d48f48961c5295


username: admin
role: Admin
full_name: Administrateur Verify Final Fixes
password:
  scrypt$20a05f415dd859f65e7e75760517425d$1ebb8f37f1e8181470ec43b1f9b8ef60b7b6717a4c26a42d6488dc8ff66d475137dabf27c8c8244889484a018295fcfc9be2efaa96f3485d1516f8b3aaf447ac


username: sales01
role: Sales
full_name: Sales User
email: sales@test.local
password:
  scrypt$dabb7c35445b9a5c0331047d05dbc7bd$a76c55be0ca8094f3c071ecf19d9f549df4d9d530daaef838b3ddc9dfab0dd3ca672af4f21233e768fef47ff562fa3768e1c1f048cdbd2cd0b964fc367953461


username: acct01
role: Accountant
full_name: Account User
email: acct@test.local
password:
  scrypt$22e26788ef31eceb102c1107967bb87c$de954ec7e875ff650de71fdfa9833b13e93e05891d4e8dce7e998cf1126e797dca7ecaffae9f7ea899759dace582cdaabc9f3b732dfdbcc17254422f30e5b9ce


# print_templates

template_key: vente_devis
type: vente
doc_type: devis
name: Devis client
updated_at: 2026-04-02 14:37:39
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:37:39
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:37:39
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 Custom
updated_at: 2026-04-02 14:37:39
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>
  <!-- custom-safe-marker -->


template_key: achat_devis
type: achat
doc_type: devis
name: Demande de prix
updated_at: 2026-04-02 14:37:39
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:37:39
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>


# audit_log

entity_type: session
entity_id: 751079d709b86f9604679186d846be4b34a934bbf0138a5f
action: login
actor: sales01
actor_role: Sales
created_at: 2026-04-02 14:37:39
payload:
  {"email":"sales@test.local","company_slug":"verify-final-fixes","company_name":"Verify Final Fixes"}


