From d0db0abdd4c41a784dafcdc32bf3662c2823b962 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Fri, 30 Jan 2026 07:47:15 +0100 Subject: [PATCH] 30.01.26 --- modules/account_invoice/invoice.py | 3 ++- modules/purchase_trade/fee.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/account_invoice/invoice.py b/modules/account_invoice/invoice.py index 07c491f..f79d867 100755 --- a/modules/account_invoice/invoice.py +++ b/modules/account_invoice/invoice.py @@ -2032,7 +2032,8 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin, InvoiceReportMixin): logger.info("LOT_TO_PROCESS:%s",lot) logger.info("FEE_TO_PROCESS:%s",gl[0].fee) if (gl[0].fee and not gl[0].product.landed_cost): - account_move = gl[0].fee._get_account_move_fee(lot,'in',gl[0].fee.get_non_cog(lot)) + diff = gl[0].fee - gl[0].fee.get_non_cog(lot) + account_move = gl[0].fee._get_account_move_fee(lot,'in',diff) Move.save([account_move]) if (lot and not gl[0].fee) or (gl[0].fee and gl[0].product.landed_cost): adjust_move_lines = [] diff --git a/modules/purchase_trade/fee.py b/modules/purchase_trade/fee.py index 5235b7b..4d09e81 100755 --- a/modules/purchase_trade/fee.py +++ b/modules/purchase_trade/fee.py @@ -133,7 +133,7 @@ class Fee(ModelSQL,ModelView): ('account', '=', self.product.account_stock_in_used.id), ]) - logger.info("GET_COG_FEE:%s",ml) + logger.info("GET_NON_COG_FEE:%s",ml) if ml: return round(Decimal(sum([e.credit-e.debit for e in ml])),2)