Prepayment screen:
Source code of a method, which is breakdown in two images:
Image 1.1:
Source Code Explanation:
- Get purchase order.
- Initialize purchprepaytable buffer.
- Set values.
- For this example I have used prepayment type "Percent".
Image 1.2:
Source Code Explanation:
- Get purchase order total amount through PurchTotals class.
- Run calculation of Purchase order total amount through calc() method.
- Done calculation for Limit and available prepayment fields.
- Set prepay category Id.
- Insert record.
Job runs successfully.
Result:
No comments:
Post a Comment