[ 
https://issues.apache.org/jira/browse/OFBIZ-13350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18054880#comment-18054880
 ] 

Gaudin Pierre commented on OFBIZ-13350:
---------------------------------------

Here is a new patch that completes the deletion of an invoice line by deleting 
the child lines.

> 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.05
>            Reporter: Gaudin Pierre
>            Priority: Major
>             Fix For: 24.09.06
>
>         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)

Reply via email to