Need some ideas to get rid of more hardcoding. Currently when we post to the ledger from sales all the accounts and what amounts to use are hardcoded in the program. As I am trying to get rid of as much hardcoding as I can I am look for an idea or if someone has already solved this via some kind of file layout or ?? Some of the amount are added, some are subtracted.
Here is one example.
MOVE SPACES TO LEDGER-REC REPORT-LINE.
MOVE 1020 TO GL06-ACCOUNT.
MOVE "DM" TO GL06-COMPANY.
IF PASS-COMPANY = "DM"
COMPUTE GL06-AMOUNT = SA05-MTH-LIST-PRICE
SA05-MTH-FRT-PORTION
SA05-MTH-ACCRUAL-USAGE
SA05-MTH-BBR
SA05-MTH-DEMO
SA05-MTH-REBATE
SA05-MTH-BROKER-COMM
- SA05-MTH-QTY-DISCOUNT
- SA05-MTH-ALLOWANCE
SA05-MTH-PREMIUM
SA05-MTH-MISCELLANEOUS.


