Hello
Is it possible to give a customer for example 10% line discount on all items ?
It will not Work giving the customer 10 % invoice discount - when using ressources or posting on a general ledger account, there must not be given discount.
You could use Item Discount Groups to do this. However this means you have to set the group on each item and create another record in T7004 - Sales Line Discount for each customer.
As you said, invoice discount won't work, got to find a way (ab)using Line discounts.
Answers
if customer.no= rec.no then
Amount := Amount*10/100;
As you said, invoice discount won't work, got to find a way (ab)using Line discounts.