My Products
Help
SitterIT
CONTRIBUTOR ***

Attributes missing CustomerInvoice

by SitterIT

The lineType attribute is missing when using GET on CustomerInvoice/{invoiceNo}

 

SitterIT_0-1699528735800.png

 

I also want to have this on POST so this can be used to set individual linerferences or other references from external system. Or an alternativ is to extend the invoiceLine model and add a new field for that kind of usage. 

2 REPLIES 2
SitterIT
CONTRIBUTOR ***

by SitterIT

That makes no sence. We're creating the invoices through API, så it should be populatet regardles of what module is used. There's to many if and buts where and where not attriutes are populatet. Make it easy for us to use the data, and this is one more example of not makeing it easy. 

 

Please make the changes and populate the data so it makes it usable for us.

by Magnus Johnsen

Hi,

These fields will only be populated when the invoices have been created via the sales module, or from a salesOrder.

The customer invoices are split up in two modules:

1. Customer ledger

2. Sales

Via the Get all CustomerInvoice you'll get a collected pool from both sources, some fields are specific to the sales module, like "lineType".

Posting customerInvoice, only allows you to create an invoice in the Customer Ledger module.