Hello,
I have detected an unexpected behavior when issuing invoices with the chorus module.
When I have a discount on one of my items and I have several items in the invoice, the module will consider that all the items have a discount, but as these are at 0%, the mandatory associated line (ActualAmount) will not appear for these items without a discount. This generates the following error:
Facture n°FAC/2024/0021:L'element (AppliedTradeAllowanceCharge.ActualAmount.value) est obligatoire si l'element (SupplyChainTradeTransaction.IncludedSupplyChainTradeLineItem.SpecifiedLineTradeAgreement.GrossPriceProductTradePrice) est renseigne.
Example of an item line with a discount:
Other items have the line AppliedTradeAllowanceCharge but no line ActualAmount.
I'm willing to correct this problem with a PR.
Can you help me find out where the file is generated and if I can control the editing of lines according to items?
Hello, I have detected an unexpected behavior when issuing invoices with the chorus module. When I have a discount on one of my items and I have several items in the invoice, the module will consider that all the items have a discount, but as these are at 0%, the mandatory associated line (ActualAmount) will not appear for these items without a discount. This generates the following error:
Facture n°FAC/2024/0021:L'element (AppliedTradeAllowanceCharge.ActualAmount.value) est obligatoire si l'element (SupplyChainTradeTransaction.IncludedSupplyChainTradeLineItem.SpecifiedLineTradeAgreement.GrossPriceProductTradePrice) est renseigne.
Example of an item line with a discount:![Image](https://github.com/OCA/l10n-france/assets/83568840/0d3b34d8-eaed-4468-84f3-7976c41f5a62)
Other items have the line AppliedTradeAllowanceCharge but no line ActualAmount.
I'm willing to correct this problem with a PR. Can you help me find out where the file is generated and if I can control the editing of lines according to items?