From 3a1b9f2d902ab85c1b30944447a6ccd718062e9d Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Wed, 20 May 2026 09:52:27 +0200 Subject: [PATCH] Invoice template --- modules/account_invoice/invoice_melya.fodt | 26 +++++++++---------- modules/purchase_trade/docs/business-rules.md | 7 +++++ notes/business_rules.md | 3 +++ 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/modules/account_invoice/invoice_melya.fodt b/modules/account_invoice/invoice_melya.fodt index 0b6d5bb..c702ccd 100644 --- a/modules/account_invoice/invoice_melya.fodt +++ b/modules/account_invoice/invoice_melya.fodt @@ -1,10 +1,10 @@ - LibreOffice/7.6.0.3$Windows_X86_64 LibreOffice_project/69edd8b8ebc41d00b4de3915dc82f8f0fc3b6265Aksel Kamhi2026-03-11T17:00:00Z2026-05-10T16:12:00.6320000002025-12-11T15:32:00Z21PT1H9M5S0x010100C9130B1D3286474FB2D468C22F52A7B0 + LibreOffice/7.6.0.3$Windows_X86_64 LibreOffice_project/69edd8b8ebc41d00b4de3915dc82f8f0fc3b6265Aksel Kamhi2026-03-11T17:00:00Z2026-05-20T09:52:10.3890000002025-12-11T15:32:00Z23PT1H10M0x010100C9130B1D3286474FB2D468C22F52A7B0 - 31434 + 31295 0 24236 11721 @@ -13,12 +13,12 @@ view2 - 13460 - 35973 + 4281 + 37405 0 - 31434 + 31295 24234 - 43154 + 43014 0 0 false @@ -91,7 +91,7 @@ false false false - 2589159 + 2635503 1803951 false false @@ -159,7 +159,7 @@ - + @@ -545,10 +545,7 @@ - - - - + @@ -649,7 +646,7 @@ - + iVBORw0KGgoAAAANSUhEUgAAAXYAAACACAYAAAAf4kLVAAAACXBIWXMAABcSAAAXEwF+hOMT AAAgAElEQVR4nOy9d5xV1bn//167njYVpAlYsCGWoCKgsbdrLLkavT+MksRrEkuMsQYUJUTR iBqNEmu+N+aaXGNupIii2FBQFEQUUUBBUDoCMkw7Zbf1+2PttecMDMpYEHPneb3Oa2bOnLP3 @@ -1535,7 +1532,8 @@ COMMERCIAL INVOICE - Invoice: <invoice.number or ''>Date: <format_date(invoice.invoice_date, invoice.party.lang) if invoice.invoice_date else ''> + Invoice: <invoice.number or ''> + Date: <format_date(invoice.invoice_date, invoice.party.lang) if invoice.invoice_date else ''> Reference: <invoice.report_contract_number or ''> diff --git a/modules/purchase_trade/docs/business-rules.md b/modules/purchase_trade/docs/business-rules.md index 9ea948d..74d0d91 100644 --- a/modules/purchase_trade/docs/business-rules.md +++ b/modules/purchase_trade/docs/business-rules.md @@ -597,6 +597,11 @@ Owner technique: `a completer` - Resultat attendu: - purchase et sale appliquent la meme formule: `amount = unit_price * quantity * (price / 100) * fin_int_delta / 360` + - le montant affiche sur `fee.fee` doit rester non signe: un + `fin_int_delta` negatif ne doit pas afficher un fee negatif + - le PnL applique seul le signe metier: + - `PAY` => montant negatif + - `REC` => montant positif - si aucune Estimated Date `bldate` n'est renseignee, aucun montant `% rate` n'est calcule - Priorite: @@ -856,6 +861,8 @@ Pour cette regle, couvrir au minimum: `amount = unit_price * quantity * (price / 100) * fin_int_delta / 360`. - La ligne `Estimated date` avec `trigger = bldate` sert a porter `fin_int_delta`; la date estimee n'entre pas dans le calcul du montant. +- Le montant fee affiche reste toujours non signe, meme si `fin_int_delta` est + negatif; le signe est applique uniquement en PnL via `PAY` / `REC`. ### Session 2026-05-09 - Lots Management et Apply matching diff --git a/notes/business_rules.md b/notes/business_rules.md index 93bad5e..2c8264e 100644 --- a/notes/business_rules.md +++ b/notes/business_rules.md @@ -165,6 +165,9 @@ elle existe, par exemple: - La ligne `Estimated date` avec `trigger = bldate` reste le support metier pour porter `fin_int_delta`; la date estimee elle-meme ne sert pas au calcul du montant `% rate`. +- Le montant affiche sur `fee.fee` reste non signe, meme si `fin_int_delta` + est negatif. Le PnL applique seul le signe metier: + `PAY` negatif, `REC` positif. ## Session 2026-05-01 - Solde ouvert apres lots physiques