Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input VAT Books #31

Closed
boych83 opened this issue Sep 4, 2018 · 5 comments
Closed

Input VAT Books #31

boych83 opened this issue Sep 4, 2018 · 5 comments
Assignees
Labels
help wanted Extra attention is needed
Milestone

Comments

@boych83
Copy link

boych83 commented Sep 4, 2018

Hi,
I would like to setup calculation on a same column which include group of different "VAT Identificators" by Type:Sales and another group of "VAT Identificators" by Type::Purchase with "ReverseSign" grouped by "Document No.".

Current function for calculations only takes datefilter:
(codeunit 13062591) - VATBookCalc.EvaluateExpression(VATBookGroup, 0, '', DateFilter);

In case of "Input VAT Book" calculations we will need additional parameter to set "VAT Entry" with right filters. I would add whole "VAT Entry" as parameter.

@GRM1989
Copy link

GRM1989 commented Sep 4, 2018 via email

@boych83
Copy link
Author

boych83 commented Sep 4, 2018

I know that these filters exist and they can be set up.
Last time we sad that for calculations we will use:
procedure EvaluateExpression(VATBookGroup: Record "VAT Book Group-Adl"; ColumnNo: Integer; DateFilter: Text) Result: Decimal;

Let say that I need to calculate values grouped by "Document No.". This can not be done through page condition filters. I need to pass Document No. as filter of Value Entry

What would be the difference if I use below function for calculations?
procedure CalculateValue(IsFirstValue: Boolean; var TempAmount: Decimal; VATBookViewFormula: Record "VAT Book View Formula-Adl"; VatEntry: Record "VAT Entry");

BR,
Bojan

@GRM1989
Copy link

GRM1989 commented Sep 5, 2018 via email

@boych83
Copy link
Author

boych83 commented Sep 5, 2018

Hi,

tnx for answer.
Working that way only values are calculated without condition filters?

BR,
Bojan

@GRM1989
Copy link

GRM1989 commented Sep 5, 2018 via email

@maveca maveca added the help wanted Extra attention is needed label Sep 7, 2018
@maveca maveca added this to the v 0.1 milestone Sep 7, 2018
@boych83 boych83 closed this as completed Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants