ProdyPanda Factures Knowledge & Architecture Wiki

🌐 Language: English | Français | العربية

Level 3 — Intermediate / Agency & ERP Workflows#

At Level 3, ProdyPanda Factures transforms from a standalone invoicing app into a complete agency & SME ERP: rebilling client expenses with optional markup, automating monthly retainers and bimonthly utility bills, managing Tunisian suppliers and Purchase Orders, issuing Deposit & Balance invoices, collecting client e-signatures on a Public Portal, and billing international clients in EUR/USD and English.


1. Client-Linked Purchases & 1-Click Rebilling (Achats pour Client & Débours)#

Digital agencies, studios, and service firms constantly buy things on a client's behalf — domain names, OVHcloud servers, stock footage, printing runs, or freelance subcontractors. Tracking those costs accurately ensures zero unbilled leaks and shows your true project profit margin.

MERMAID DIAGRAM
flowchart LR
    A["1. Buy for Client<br/>(OVH, Print, Freelancer)"] --> B["2. Log Expense<br/>Preset: 🛒 Achat Client<br/>Refacturable = ON"]
    B --> C{"Status:<br/>À refacturer"}
    C -->|"Option A: From Expenses Table"| D["Click Refacturer →<br/>Add to Existing or New Doc"]
    C -->|"Option B: Inside Studio Facture"| E["Click + Importer achats<br/>à refacturer"]
    D --> F["Status flips to<br/>Refacturé ✓ (Linked Invoice)"]
    E --> F
    F --> G["Auto-updates Client &<br/>Invoice Profit Margin!"]

Step-by-Step: Recording a Billable Client Purchase#

  1. Go to Dépenses & Achats and click + Nouvelle Dépense / Achat.
  2. Click the 🛒 Achat Client quick preset pill. This automatically:
    • Sets Category to Achat Client (Refacturable) and Scope to Achat pour Client (Projet / Refact.)
    • Checks Refacturable (billable = ON)
    • Highlights the Client Link Box
  3. Select the Client (and optionally link an existing Quote or Invoice for that project).
  4. Choose your rebilling strategy:
    • Pure Passthrough (Débours, Markup = 0%): You rebill the exact pre-tax TND cost (rebillPriceHT = TND H.T.).
    • Agency Markup (e.g., +20% or +25%): Enter the percentage in Marge / Majoration (%) — ProdyPanda immediately computes the exact Prix de refacturation H.T. (TND H.T. × (1 + markup / 100)).
    • Example: You buy 1 200.000 DT H.T. of third-party production for Pulire Tunisie with a 20% markup → Rebill price automatically becomes 1 440.000 DT H.T.
  5. Save with Enregistrer la dépense. The row displays an amber À refacturer badge, and the counter on the Achats Clients à Refacturer sub-tab (and in the Alert Center) increments immediately!

Two Ways to Rebill in 1 Click#

Method A — From Dépenses & Achats#

  1. Click the Achats Clients à Refacturer sub-tab to isolate every unbilled client cost.
  2. Click Refacturer → on the row.
  3. In Refacturer cet Achat au Client:
    • Pick an existing unlocked Quote/Invoice for that client, OR select "Nouveau document" and choose Facture / Devis / Facture Proforma.
    • Customize the line item title if desired and choose whether to include your markup.
    • Click Refacturer au client.
  4. The expense status immediately switches to a clickable green Refacturé ✓ link pointing to the invoice!

Method B — Directly Inside Studio Facture (A4)#

Whenever you open or create an invoice in Studio Facture (A4) for a client that has unbilled expenses, look at the Profitability Strip directly below the client selector:

  • You will see total linked purchases, live gross margin (DT & %), and an amber pill + Importer achats à refacturer showing the unbilled count.
  • Click it to import those unbilled purchases directly into your current invoice without ever switching screens!

2. Recurring Retainers (Abonnements) & Fixed Utility Bills Schedule (Échéancier Charges Fixes)#

ProdyPanda automates both sides of recurring cash flow: recurring income from clients AND recurring bills from utilities/landlords.

A. Recurring Client Retainers (Abonnements)#

Ideal for monthly website maintenance, SEO retainers, hosting renewals, or quarterly support contracts:

  1. First create and save a normal Facture (or Devis) in Studio Facture to serve as your template.
  2. Open Abonnements in the left sidebar and click + Nouvel Abonnement Récurrent.
  3. Configure your Profil d'Abonnement Récurrent:
    • Label (e.g., Maintenance & Hébergement — Pulire Tunisie)
    • Template Document (the invoice you created)
    • Frequency: MONTHLY, BIMONTHLY, QUARTERLY, SEMIANNUAL, YEARLY, or WEEKLY
    • Next Run Date (Prochaine échéance): ProdyPanda uses safe month-end clamping (e.g., 2026-01-31 + Monthly → 2026-02-28, never overflowing into March!)
    • Auto-Send Email (Envoi e-mail automatique): optionally emails the newly generated PDF invoice automatically via SMTP!
  4. Click Enregistrer l'abonnement. The background scheduler runs automatically when the server is active, or you can trigger all due profiles manually anytime with Exécuter les échéances maintenant.

Bonus in Abonnements: Scroll down to Factures Échues & Relances Automatisées to monitor overdue client invoices grouped by aging bucket and send 1-click payment reminder emails.

B. Recurring Utility & Fixed Bills Schedule (Échéancier Charges Fixes)#

Never get caught off-guard by a STEG cutoff notice or late CNSS penalty!

  1. Open Dépenses & Achats and click the Échéancier Charges Fixes sub-tab.
  2. Click + Nouvelle Charge Récurrente and fill in Charge Fixe / Utilitaire Récurrent:
    • Label & Supplier (e.g., STEG Bureau Ben Arous, SONEDE Eau, Loyer Bureau, Topnet Fibre, CNSS Trimestrielle)
    • Contract / Police Number (e.g., STEG police N°)
    • Frequency:
      • Mensuel (chaque mois) — Rent, Internet, Salaries
      • Bimestriel (tous les 2 mois — STEG/SONEDE) — Electricity/Gas & Water
      • Trimestriel (tous les 3 mois — CNSS) — Social Security
      • Annuel (chaque année) — Insurance, Domain renewals
    • Estimated H.T., TVA %, Timbre, Currency, Payment Method & Treasury Account
    • Next Due Date & Reminder Lead Days (e.g., 10 or 15 days ahead)
  3. Click Enregistrer la charge fixe.

The 15-Day Upcoming Bills Strip#

Whenever a scheduled fixed bill is due within the next 15 days (or overdue), a highlighted strip appears automatically at the top of Dépenses & Achats (and inside the global Alert Center):

  • Click "Enregistrer la facture" on any upcoming pill.
  • The Expense modal opens 100% pre-filled with supplier, category, contract number, and estimated values — just adjust the exact amount from your new bill, attach the PDF, and click Enregistrer la dépense.
  • ProdyPanda automatically logs the expense AND advances the schedule's nextDueDate to the next cycle (2026-11-22 → 2027-01-22 for bimonthly STEG)!

3. Suppliers Directory & Purchase Orders (Fournisseurs & BC)#

Open Fournisseurs & BC in the left sidebar. It contains three structured tabs:

TabPurpose
Répertoire FournisseursPermanent supplier database with Tax ID (MF), contract/police N°, RIB, default TVA/RS rates, and live total spend / unpaid balance / RS totals.
Bons de Commande FournisseursFormal Purchase Orders (BC-YYYY-NNNN) sent to vendors before delivery, with PDF, SMTP Email, and 1-click Convert to Expense.
Retenues à la Source FournisseursFull Tunisian supplier withholding tax ledger, Recette des Finances CSV export, and A4 RS Certificates (detailed in Level 4).

1-Click Tunisian Supplier Starter Pack#

On Répertoire Fournisseurs, click Charger modèles Tunisie (STEG, SONEDE...) once to instantly populate 6 essential Tunisian providers (skipping any that already exist):

SupplierCategoryPre-Filled MF / Tax IDDefault TVADefault RS
STEGSTEG (Électricité & Gaz)0000105D/A/M/00019%0%
SONEDESONEDE (Eau)0000110K/A/M/0007%0%
TopnetInternet & Télécom0757761P/A/M/00019%1%
Orange TunisieInternet & Télécom1104431X/A/M/00019%1%
OVHcloudHébergement & Cloud(Foreign — France)0%15%
CNSSCNSS & Charges Sociales(Social Security)0%0%

Click + Nouveau Fournisseur to add your printer, hardware vendor, landlord, or subcontractors. Whenever you select a saved supplier while creating an Expense or Purchase Order, their Code TVA, N° Contrat, default TVA %, and default RS % fill in automatically!

Supplier Purchase Orders (Bons de Commande Fournisseurs) Workflow#

MERMAID DIAGRAM
flowchart LR
    PO["1. Create PO<br/>(+ Bon de Commande)<br/>BC-2026-0001"] --> PDF["2. Download A4 PDF<br/>or Send via SMTP Email<br/>(DRAFT → SENT)"]
    PDF --> DEL["3. Goods / Services<br/>Delivered + Bill Arrives"]
    DEL --> CONV["4. Click Convertir en Dépense<br/>(PO → CONVERTED,<br/>Expense Created Automatically)"]
  1. Switch to Bons de Commande Fournisseurs and click + Bon de Commande.
  2. Notice the auto-generated PO number (e.g., BC-2026-0001). Pick a Supplier, optionally link a Client (if buying for a client project), set Issue / Expected Dates, Currency, and TVA %.
  3. Add line items using + Ajouter une ligne — live totals (H.T., TVA, T.T.C.) update instantly.
  4. Click Enregistrer le Bon de Commande.
  5. From the PO table row, use the 1-click actions:
    • PDF — downloads a branded A4 Purchase Order (BC-2026-0001.pdf)
    • Email — sends a branded ProdyPanda email with BC_BC-2026-0001.pdf attached via SMTP and updates the PO status from DRAFT to SENT
    • Convertir en Dépense — when the vendor invoices you, click once to turn the PO into a real record in Dépenses & Achats (preserving supplier, client link, amounts, and currency) and mark the PO as CONVERTED!

4. Deposit (Acompte) & Balance (Solde) Invoices#

For larger web, branding, or video production projects, Tunisian agencies typically collect a 30% to 50% deposit before starting work and invoice the remaining balance on delivery.

Step 1: Issue a Deposit Invoice (Facture d'Acompte)#

  1. Open an approved Quote (Devis) in Studio Facture (A4).
  2. Click → Acompte in the top toolbar.
  3. In Générer une Facture d'Acompte, pick a quick percentage button (20%, 30%, 40%, 50%, or type any custom %) and click Créer la Facture d'Acompte.
  4. ProdyPanda creates a properly numbered official Facture referencing the parent Quote, with 1.000 DT Timbre fiscal and the exact deposit percentage! (You can even create multiple milestone deposits — e.g., 30% kickoff + 30% beta delivery.)

Step 2: Issue the Final Balance Invoice (Facture de Solde)#

  1. When the project is finished, reopen the original parent Quote (Devis).
  2. Click → Solde in the top toolbar.
  3. ProdyPanda automatically builds the Facture de Solde containing all full project line items minus every already-billed deposit invoice (clearly itemized by deposit invoice number and date), so the client sees the complete project total and pays only the exact remaining balance!

5. Public Client Portal & E-Signature (Bon pour Accord)#

Let your clients review quotes, download official PDFs, and legally sign Bon pour Accord right from their phone or laptop browser — without needing a ProdyPanda login!

  1. Open any saved Quote (Devis) or Invoice (Facture) in Studio Facture (A4).
  2. Click Portail Client in the top toolbar.
  3. ProdyPanda enables a unique, unguessable cryptographic link (/portal/<token>). Click Copier and send the link to your client via email or WhatsApp.
    > Tip for LAN / Public Domain hosting: Set your public base URL (e.g., https://billing.prodypanda.com or your local office IP http://192.168.1.50:3000) inside Paramètres & Taxes → Profils Sociétés, Style de Modèle A4 & Portail Client so copied links use the right address!
  4. What your client experiences:
    • Views the clean official document and can download its exact A4 PDF (/portal/:token/pdf).
    • On a Quote (Devis), sees an interactive Bon pour Accord signature box: they enter their full name/title, draw their signature with mouse or finger on the HTML5 canvas, and submit.
  5. What happens automatically in ProdyPanda:
    • The client's signature image, signer name, and timestamp (acceptedAt, acceptedBy) are permanently stored and rendered directly onto the official Quote PDF!
    • An audit log entry is recorded.
    • A notification appears in your Alert Center under Devis signés so you can click straight into the signed Quote and hit → Facture or → Acompte!

Privacy Guarantee: Public portal routes sanitize settings via getPublicSafeSettings(), ensuring your SMTP credentials, passwordPin, and geminiApiKey are never exposed externally.


6. Multi-Currency (DT/EUR/USD) & FR/EN Invoice Language#

Working with European or North American clients, or paying foreign SaaS/cloud bills (OVHcloud, AWS, Adobe, OpenAI)? ProdyPanda handles multi-currency seamlessly while keeping your Tunisian Dinar books 100% accurate.

A. Issuing Foreign-Currency & English Client Invoices#

  1. In Studio Facture (A4), locate the Currency (Devise), Exchange Rate (Taux de change TND), and Document Language (Langue) controls:
    • Choose EUR or USD — ProdyPanda automatically loads your configured rate from Settings (defaults: EUR = 3.380 DT, USD = 3.120 DT), sets 2 decimal places (cents), and updates currency names (Euros/US Dollars).
    • For Tunisian exports (Export / Hors Taxe), click the Export / Hors Taxe (0% sans Timbre) tax preset (0% TVA, 0 Timbre).
    • Switch Language to EN — watch the live A4 preview translate every label (INVOICE, Quote, Qty, Unit Price, Total Excl. Tax, VAT, Net Payable) AND generate a grammatically accurate English legal sentence:
      > This invoice is settled at the total amount of Two Thousand Four Hundred Euros and Fifty cents.
    • Notice the automatic TND Accounting Equivalent line (Accounting equivalent (TND): ... DT @ 3.380) printed cleanly for Tunisian Central Bank & accounting compliance across all three templates (classic, modern, compact)!

B. Recording Foreign-Currency Supplier Expenses#

When logging an OVHcloud bill in EUR or an OpenAI receipt in USD inside Dépenses & Achats:

  • Select EUR or USD, verify the exchange rate, and type the original foreign amount (e.g., 100.00 EUR).
  • ProdyPanda displays the live Équivalent TND preview (e.g., 338.000 DT), saves the original foreign amount for clean future editing (originalAmountHT / originalTotalTTC), and posts the TND equivalent into your Fiscal P&L, Budgets, and Treasury so every Dinar balances!

7. Document Locking, Audit Trail & Custom Lists#

Document Locking (Verrouiller) & Audit Trail (Historique)#

Once a Facture has been sent to a customer and declared to your accountant, you should never silently alter it.

  • Click Verrouiller in Studio Facture (or use batch Verrouiller in the Documents table).
  • A locked invoice becomes read-only and cannot be accidentally edited or deleted. A top lock bar gives two clean options:
    • Créer un Avoir — issue a legal Credit Note to cancel or adjust it properly.
    • Déverrouiller — unlock (restricted to administrators when multi-user RBAC is enabled).
  • Click Historique on any document to inspect Piste d'Audit & Historique du Document: a chronological timeline of every creation, edit, lock/unlock, conversion, payment, email delivery, and portal acceptance with the exact user/actor and timestamp.

Customizing Your Agency's Lists in Settings#

Go to Paramètres & Taxes and scroll to Catégories, Étiquettes, Devises & OCR IA:

  • Exchange Rates: Update your default EUR → TND and USD → TND rates anytime.
  • Custom Expense Categories: Add agency-specific categories beyond the 19 built-in Tunisian defaults (+ Ajouter).
  • Custom Invoice Badges: Add or customize top-right invoice ribbons (built-in: Facture Web, Facture Design, Facture Vidéo, Facture Consulting, Facture IA, Devis).
  • Custom Payment Methods: Manage payment options (built-in: Virement Bancaire, Chèque, Espèces, Traite, Carte Bancaire, Prélèvement Automatique, D17 / Flouci).
  • Expense Tags: Add custom tags (built-in: Urgent, Déductible TVA, Refacturable, Fixe, Import / Devise) to filter expenses effortlessly.
  • Always click Enregistrer toute la configuration at the top-right to save!

✅ Level 3 Agency ERP Checklist#

  • Logged a client purchase with 🛒 Achat Client and rebilled it in 1 click (À refacturer → Refacturé ✓)
  • Seeded Tunisian suppliers via Charger modèles Tunisie (STEG, SONEDE...)
  • Created at least one Échéancier Charges Fixes schedule (e.g., Bimonthly STEG or Monthly Rent)
  • Issued a Supplier Purchase Order (BC), exported its PDF, and tested Convertir en Dépense
  • Generated a Facture d'Acompte (30%) and Facture de Solde from a Quote
  • Tested the Portail Client link and canvas Bon pour Accord e-signature
  • Previewed an EUR + EN export invoice with its TND accounting equivalent line

Print Studio, production and the new agency workflows: Agency operations guide.

← Level 2 — Beginner | English Index | Level 4 — Advanced (Tax, Treasury & P&L) →

ProdyPanda Factures — Complete English Documentation Curriculum