web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Preventing Vendor/Customer Payments Without Invoice Selection

(3) ShareShare
ReportReport
Posted on by 200
Dear team,
 
Is there a way to prevent vendor/customer payments from being processed without the invoice selection in the payment lines??
 
Thank you :)
Shivam Pandey
I have the same question (0)
  • Sohaib Cheema Profile Picture
    47,268 User Group Leader on at
    Preventing Vendor/Customer Payments Without Invoice Selection
     
    I have done some testing and found the behaviour that you have mentioned. While it can work with Invoice Id mentioned, it does not when one or multiple invoices are settled using checkbox, on the new pop-up form that is opened from the Settle Transaction Button.
     
    This would need customization by adding a new method in the class named as LedgerJournalWFApprovalDocument
    The newly added method would be on the same pattern as an existing method in the class (parmMaxVoucherCreditAmount)
     
     
    Once a new method is added using extension, that would make a new selection possible in the workflow conditions.
     
    If you have a technical consultant, tell them following.
    1) initially when a transaction is marked it remains in a table named SpecTrans (until payment journal is not posted). The table maintains the record using three key fields RefCompany, RefRecId, RefTableId
    2) Once payment journal is posted the records go to the table VendSettlement and get deleted from SpecTrans
    3) therefore your custom method must check both tables, for marked transactions.
    In technical language it is called adding Calculated Fields in the workflow document class, that enables a new selection on the conditions of workflow
     
    You will get a new choice on the following form:
     
     
  • Shivam.bst Profile Picture
    200 on at
    Preventing Vendor/Customer Payments Without Invoice Selection

    Hi Everyone,

     

    Thank you for your responses.

     

    Hi @Sohaib Cheema,

     

    Thanks for your suggestion,

     

    I tried the workflow option—it correctly returns when there is no invoice in the journal line. However, it’s still not working in cases where the invoice is marked for settlement.

    Could you please provide more insight into the workflow conditions?

    pls see the workflow condition which I have added - 

     

    Thanks again!

  • Suggested answer
    Yng Lih Profile Picture
    844 on at
    Preventing Vendor/Customer Payments Without Invoice Selection
    Hi Shivam,
     
    There is no standard feature to control the mandatory of invoice selection for payment. You will need customization to achieve this.
     
    Beforehand, you may want to check if there are any business scenarios where payment will be made first without invoice.
    e.g. Advanced payment/ Deposit from customer
     
    Thanks.
     
     
    If this information was helpful, kindly mark it as 'Verified'. Thank you. :)
     
     
  • Suggested answer
    Syed Haris Shah Profile Picture
    170 on at
    Preventing Vendor/Customer Payments Without Invoice Selection
    Hi Shivam,
     
    There is no out-of-the-box feature to restrict customer/vendor payments without invoice selection. However, the solution suggested by Shoaib makes sense if you prefer to avoid customization.
     
    If you find this answer helpful, please consider verifying the answer. 👍
     
    Regards,
    Syed Haris Shah
     
  • Suggested answer
    Sohaib Cheema Profile Picture
    47,268 User Group Leader on at
    Preventing Vendor/Customer Payments Without Invoice Selection
    Do you have a workflow on the payments? The standard workflow comes without any customization for the both side of payment?
    You can set the conditions, (If InvoiceNumber is Empty) , reject the payment workflow.
     
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    296,942 Super User 2025 Season 2 on at
    Preventing Vendor/Customer Payments Without Invoice Selection
    Hi Shivam,

    Out of the box, there is no setting to control a mandatory settlement during payment posting. You can consider a customization for this requirement.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Alireza Eshaghzadeh Profile Picture

Alireza Eshaghzadeh 799 Super User 2025 Season 2

#2
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 757 Super User 2025 Season 2

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 751 Super User 2025 Season 2

Product updates

Dynamics 365 release plans