We are having problems when adding ap/invoice created from grpo,
Basetype,baseref fields of line table is being filled, when there is only one line we are sending baseline=null to di api, then with updating baseline to "0" we can add the draft document, when there is more than 1 line we cannot send all lines'baseline field null, when we set baseline = 0 for first line and baseline=1 for second line, but this time api gives internal error-1003
Is there any other else having this kind of problem when adding documents related to another type?