Field help (TPYDACFRMT) 

The discount type (local menu 655) can be specified for the notes payable/receivable.

Warning: In automatic payment proposal, the default discount type is Collection. It is possible to modify this in payment entry.