cancel
Showing results for 
Search instead for 
Did you mean: 

A/R Invoice BOM

Former Member
0 Kudos

Hi Experts,

I'm using DI API for AR Invoice and I'm posting Item with BOM. I want to populate the Distribution Rule and Cogs of the BOM on A/R Invoice my problem is I can only populate the Father Item but not the child item on AR Invoice. Is there a way where I can populate the BOM Cogs and Distribution Rule on AR Invoice. Can u provide me a sample code.

Regards,

Phoenix Langaman

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

What I'm doing is like this:

SetCurrentLine - LineNum Specifies the row number. The count starts from 0.

                                            .Lines.SetCurrentLine(LineNumber of the Child BOM)

                                            If oCostingCode <> "" Then

                                                .Lines.CostingCode = oCostingCode

                                            End If

                                            If oCostingCode2 <> "" Then

                                                .Lines.CostingCode2 = oCostingCode2

                                            End If

                                            .Lines.CostingCode3 = txt_Unit.Value

Regards,

Answers (0)