Hi,
we would like to allow users to change customer posting group when entering orders. It has to do with spcial type of invoices. It is no problem to put the field on the order form, but when the order is invoiced the system takes the customer posting group from the customer record and not from the Order head. Is there an easy way to change that so that the invoice taks the right code (one from Sales Header).
Regards
Draggan
0
Comments
And you will need to rewrite standart Navision reports - posting group is usually used for filtering purposes. But in some reports you can not just open "Customer Legder Entry" and filter by group.
Users don't care about posting group when they receive payment from customer, but with this modification they will need to think about it
Everything is not so bad, but it's not piece of cake.
Maybe your country-version has changed this?
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
The only purpose this code should have is to read which accounts to use when posting an invoice. There is no reason for any report to follow customer posting group because it is better to use acctua account.
I have also checked Sales line table and there is no field for Customer Posting Group. Maybe I've missed it.
I hope you can help me out.
Regards
Draggan
Actually, I'd be quite surprised if you said the posted CPG/GL Account was still the one taken from the customer card. Did you confirm that your users did change the CPG on the Sales Order Header? Coz, I think NAV would surely post into the correct G/L account (according to the CPG stated on the Order Header/transaction).
Regards,
Rodriguez
You can/should use Dimensions to identify/report the balance under diffrent groups.
http://ssdynamics.co.in
we have Customer Posting Group STD with Acc. Rec. 1510 and Customer Posting Group SPEC with Acc. Rec. 1615
- edited form 42 sales order end put Customer Posting Group on it.
- edited table 36 Sales Header and made the field Customer Posting Group editable.
- entered an order for a customer with CPG STD on the customer card.
- changed CPG to SPEC on the order header.
- posted the invoice.
- the posted invoice still has SPEC as CPG when we look at it with ctrl+F8 but on the journal it is posted to account 1510, i. e. account from CPG STD.
Try to repeat the procedure and please let me know if you do not come up with the same result or with a suggestion to how to solve this.
Regards
Draggan
You'll need to change this in the posting routine in codeunit 80. Specifically, you'll need to fill in the "Posting Group" field in the general journal table with whatever's on the sales header. It's a simple tweak.
Good luck!
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Think when the payment of the invoice comes, the possible scenarios :
1. You apply the payment to the invoice : The CPG will be picked from the Customer card, but you can modify by writing code that it picks/uses the CPG of the posted invoice. Everything fine but what if the invoice and payment application entry is reversed.
2. You do not apply payment to the invoice it will be posted in the G/L account using CPG on Customer card, and later on you wanna apply it to invoice having different CPG than the customer card. You will have tpo write a routine to pass the adjustment entry in the G/L.
I think this customization will throw a lot of bugs.
beware of them
http://ssdynamics.co.in
CPG on Customer Card : STD : G/l Account 1510
Modified CPG on Invoice : SPEC : G/l Account 1615
Invoice Of $100 posted with CPG - "SPEC" resulting in the following transactions in G/L Entry (Table 17) :
Receivable Account 1615 Debit $100
Sales Account xyz Credit $100
On payment of the invoice the default transaction will be :
Bank Account abc Debit $100
Receivable Account 1510 Credit $100 (Because it will pick the CPG on the Customer Card).
Though the Customer Ledger balance will have zero balance the G.L reconciliation account will have debit and credit balance of $100 inn 2 accounts and this will not be approved by any auditor or finance department.
To solve the scenario/problem you will then have to modify the CPG on the payment journal line as the same is mentioned on the applied invoice.
But think if no invoice is applied or application entry is reversed etc.....
http://ssdynamics.co.in
http://ssdynamics.co.in
Yep, you're absolutely right!
This problem will also compound if you have one check that pays multiple invoices with different customer posting groups.
If this is an absolute requirement, one way to resolve this is to actually change the posting routine so the payments will use the customer posting group on the source document instead of on the customer. Nonetheless, pain in the butt. #-o
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book