Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Add in fiscal year fetch handler #421

Merged
merged 7 commits into from
Jan 28, 2020

Conversation

npavlov
Copy link
Contributor

@npavlov npavlov commented Jun 9, 2019

No description provided.

Fixed InFiscalYear condition expression implementation
@BetimBeja
Copy link
Contributor

@npavlov, I see green now.
All that is left now is for @jordimontana82 to mege 😃

@npavlov
Copy link
Contributor Author

npavlov commented Jul 21, 2019

@npavlov, I see green now.
All that is left now is for @jordimontana82 to mege 😃

Yeah, great, thank you for the fix. 😀

@jordimontana82
Copy link
Owner

Hi lads,

Thanks a mill for this, since this is the first "fiscal" date time operator we're introducing, it would be good to have them work the exact same way and possibly looking at a set of properties that define how do you handle the fiscal year (I saw in the PR it's hardcoded to start from april to april, but this really varies between countries and even for the same country is up to each business decide what is going to be their fiscal year (which is normally the calendar year here in Spain for instance).

So I think if we introduce a FiscalYearSettings class where we essentialy we could setup the fiscal year settings (Start Date and Period) at the very least, then all these operators could use it and be consistent and configurable for each customer.

Thoughts?

More info here

imagen

@jordimontana82
Copy link
Owner

I would maybe add a public property to the XrmFakedContext class of the same name (FiscalYearSettings) and make these operators consume that.

Added XrmFakedContext.FiscalYearSettings
Copy link
Owner

@jordimontana82 jordimontana82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice! Just a comment on the EntityLogicalName and AttributeLogicalName attributes....


namespace FakeXrmEasy
{
[EntityLogicalName("organization")]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a mill for this @npavlov ! Curious to know where this EntityLogicalName was generated from... crmsvcutil or XrmToolkit or similar?

@jordimontana82 jordimontana82 merged commit 7a04fb5 into jordimontana82:master Jan 28, 2020
@jordimontana82
Copy link
Owner

That's approved now @npavlov . If you could please reply to the review comment would be nice.

Thanks!

@jordimontana82
Copy link
Owner

@npavlov also, there are other fiscal year operators. Now that that we have the implementation for InFiscalYear operator we could reuse that for the remaining fiscal year operators. I'm going to add it as a separate enhancement issue.

@jordimontana82
Copy link
Owner

Raised #476 for the remaining ones @npavlov @BetimBeja

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants