Hi,
I have dilemma with customer requested modification to BC.
In BC, GL Entries with same dimension set are combined into one gl entry. Now I'm requested to do a mod to BC with a purpose of not to combine gl entries.
Rough Example -->
Sales GL Account is 3000
Sales Invoice with two lines and with identical dimensions is posted.
Now with gl entries what BC does is that is combines those two sales lines into one gl entry to that sales account 3000
But what I'm requested to do is that those two invoice lines shouldn't be combined into one gl entry, instead we should have two gl entries.
I have looked into CU's 80 and 12 but really sure about the correct place to do the modification
All help appreciated
0
Answers
So you need to add field for example "Document Line No." and change Primary Key in table "Invoice Post. Buffer". After it modify code in 80 CU where filled this table buffer, see InvPostingBuffer[1].PrepareSales method
I know that one problem could be that MS does not for some reason allow modify or add primary keys with BC but as said I will look into Invoice Posting Buffer table and that fucntion da_neal mentioned
Looking at table 49 Invoice Post. Buffer and its primary key, there's a field included called "additional grouping identifier". Now I believe I can use that field to separate lines. I just need to insert "sales line"."line no" into that field. And of course find the right EventSubscriber where to do that.