Payment Against Document Reference
1. Field Validation & UI
- The system must allow the user to select the Document Prefix and auto-generate the Voucher Number.
- The Voucher Date should default to the current date but remain editable.
- The user must select the Party Type (e.g., Company) and the specific Party Name.
2. Dependent Dropdown Logic (Voucher For)
- The Voucher For dropdown must include options for: CREDIT NOTE, Purchase Invoice, and Purchase Order.
- Once a "Voucher For" type is selected, the Transaction No dropdown should dynamically populate with the relevant pending documents filtered by the selected Other Party Name.
3. Financial Calculations
- Upon selecting a Transaction Number, the system should auto-fetch and display:
- Tax Amount
- Chargeable Amount
- Already Paid Amount
- The Net Payable Amount should be calculated automatically to prevent manual entry errors.
4. Payment Execution
- The user must select a Transaction Method (Payment Mode) to proceed.
- The system should allow for an optional File/Image Upload (e.g., a scan of the check or bank receipt).
- A Narration/Remarks field must be available to add specific notes about the payment.
5. Submission
- The Save button should commit the record to the database.
- The Save and Print button should save the record and immediately generate a payment voucher receipt for the user.