Strict Next Sales invoice
fahd
Member Posts: 226
Dear Experts,
We are also dealing with whole sale business and we are generating invoices to customers from Sales & Marketing Module of Navision.
I have a scenario like
If the customer has not paid the payment for the last invoice we should not be able to generate new invoice.
can we strict it that way while generating invoice.
for example we generated an invoice to the customer ABC worth of 400 Dirhams with invoice number PSI-0001.
Now the user is going to generate a new invoice which would be invoice number PSI-0002. or any other number.
If the customer has not payed for PSI-0001, system should stop and give message that "LAST INVOICE HAS NOT YET PAYED FOR THIS CUSTOMER"
Kindly advice if that is possible, IF possible then where and how can i restrict this.
I know by default the system gives warning of the overdue balance, but in this case system should not let us make a new invoice unless the payment for last invoice is payed.
Thanks!
We are also dealing with whole sale business and we are generating invoices to customers from Sales & Marketing Module of Navision.
I have a scenario like
If the customer has not paid the payment for the last invoice we should not be able to generate new invoice.
can we strict it that way while generating invoice.
for example we generated an invoice to the customer ABC worth of 400 Dirhams with invoice number PSI-0001.
Now the user is going to generate a new invoice which would be invoice number PSI-0002. or any other number.
If the customer has not payed for PSI-0001, system should stop and give message that "LAST INVOICE HAS NOT YET PAYED FOR THIS CUSTOMER"
Kindly advice if that is possible, IF possible then where and how can i restrict this.
I know by default the system gives warning of the overdue balance, but in this case system should not let us make a new invoice unless the payment for last invoice is payed.
Thanks!
0
Comments
-
Check that the customer should not have any open invoice while creating every new invoice. Put this code when you release invoice.
Make sure that you have been applying each payment to corresponding invoice while doing payment entry.CustLedgerEntry.SETCURRENTKEY("Customer No.",Open); CustLedgerEntry.SETRANGE("Customer No.","Customer No."); CustLedgerEntry.SETRANGE(Open,TRUE); CustLedgerEntry.SETRANGE("Document Type",CustLedgerEntry."Document Type"::INVOICE); IF CustLedgerEntry.FINDFIRST THEN ERROR('LAST INVOICE HAS NOT YET PAYED FOR THIS CUSTOMER');0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions