[
https://issues.apache.org/jira/browse/OFBIZ-13350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gaudin Pierre updated OFBIZ-13350:
----------------------------------
Description:
The addTaxOnInvoice method, which adds taxes to an invoice, creates tax lines.
However, these are only linked by the parentInvoiceItemSeqId. The
parentInvoiceId value is no longer filled in as it was in later versions.
This means that the relationship between the two lines is no longer used. It is
therefore possible to delete the parent line without deleting the child line.
This results in data that is no longer consistent, as there remains a child
line that references a parent line that no longer exists.
The proposal is therefore to restore the value of the parent line
(parentInvoiceId) on the child line.
was:
The addTaxOnInvoice method, which adds taxes to an invoice, creates tax lines.
However, these are only linked by the parentInvoiceItemSeqId. The
parentInvoiceId value is no longer filled in as it was in later versions.
This means that the relationship between the two lines is no longer used. It is
therefore possible to delete the parent line without deleting the child line.
This results in data that is no longer consistent, as there remains a child
line that references a parent line that no longer exists.
The proposal is therefore to restore the value of the parent line
(parentInvoiceId) on the child line.
Translated with DeepL.com (free version)
> When adding invoice lines to an invoice, the parent line reference is not
> filled in.
> ------------------------------------------------------------------------------------
>
> Key: OFBIZ-13350
> URL: https://issues.apache.org/jira/browse/OFBIZ-13350
> Project: OFBiz
> Issue Type: Bug
> Components: accounting/invoice
> Affects Versions: 24.09
> Reporter: Gaudin Pierre
> Priority: Major
> Fix For: 24.09
>
> Attachments: patch_OFBIZ-13350.patch
>
>
> The addTaxOnInvoice method, which adds taxes to an invoice, creates tax
> lines. However, these are only linked by the parentInvoiceItemSeqId. The
> parentInvoiceId value is no longer filled in as it was in later versions.
> This means that the relationship between the two lines is no longer used. It
> is therefore possible to delete the parent line without deleting the child
> line. This results in data that is no longer consistent, as there remains a
> child line that references a parent line that no longer exists.
> The proposal is therefore to restore the value of the parent line
> (parentInvoiceId) on the child line.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)