-
Notifications
You must be signed in to change notification settings - Fork 810
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
Setting Party Type
and Party
on the Accounting Entries
on the Journal
#1395
Comments
Employee wise accounting entries is already available |
That's right... Still it is missing that the script takes care of the rest of the entries of the |
I'm trying to figure it out a way to implement the journal modifications for our use case described above without changing the current One way I have experimented is to use a Edit: I was able to solve it using that However, to me it does not seem the right way to solve it as it relies on matching records, instead of providing the right content from the start. I think all of us can benefit if the I don't feel confident enough to provide a proposal over the code, but if someone else is interested on this, I'm eager to learn and help. |
A recent validation enforcement for |
Is your feature request related to a problem? Please describe.
The
journal
created byPayroll Entry
fromSalary Slip
does not set any information about theParty Type
andParty
on theAccounting Entries
.Please see:
That information is necessary in the
Accounting
side for most cases. ie:ERPNext
uses them inTrial Balance for Party
. Many other already implemented reports can benefit from that info onAccounting
module.Let me further justify it with an example: Lets say that one of the
Salary Components
is a deduction to pay aHealth Insurance
. In our country, we should track the amount collected for every one of thoseHealth Insurance providers
(Indeed, that applies for any of theSalary Components
), and most of the times, everyEmployee
can select the provider of those.Having the generated
Journal
contain that information on itsAccounting Entries
that would be easy to report for any purposes.One way to achieve that tracking with the current version of
HRMS
is to set extraAccounts
for everyParty
involved. But that would be cumbersome to implement as there are many combinations ofAccounts
to set on every possibleSalary Component
and subsequentSalary Structure
. Not to mention the need to re-assign that resultingSalary Structure
to match theEmployee
preference of parties involved in case of a change request.Moreover, an additional benefit to address this use: the current version of
HRMS
requires that theAccount Type
is not set for theAccounts
(BTW it seems it is not documented). Otherwise the process in some cases fails silently when generating theJournal
(I have experienced this with the current15.10
version). See: https://discuss.frappe.io/t/salary-isnt-posted-in-general-ledger/90677/9, #177, #280. Also, others have expresed this requirement #859.Describe the solution you'd like
My proposal in detail:
A new
DocType
called something likeEmployeeProviderType
is just a collection of the available types of services that anEmployee
can select. ie:Health Insurance
,Employee Fund
,Risks Insurance
,Retirement Mandatory Fund
, etc... That can be set by everyERPNext
implementator according to the local requirements.The
Employee
can now have a table where it can be assigned rows with the aboveEmployeeProviderType
and aSupplier
. Let's calle this table:EmployeeProviders
. That election of Supplier can be changed at any time.On the
Salary Component
, on itsAccounts
section, along theAccount
, theEmployeeProviderType
can be optionally be set by the implementor. Note: Ifnone
is set I would argue that the accounting entry should use theEmployee
for theParty Type
and itsEmployee
for theParty
.Then, when the
journal
is being created byPayroll Entry
, the script only has to check if theEmployeeProviderType
is defined on theAccounts
section of theSalary Component
and set theParty Type
asSupplier
and set theParty
to the one fromEmployeeProviders
that matches theEmployeeProviderType
.How does it sounds?
To me:
EmployeeProviderType
is optional.Accounting Entries
used by the reports that may require them.HRMS
that requiresAccounts
with notype
set.Describe the alternatives you've considered
All this could be implemented using
Frappe
customization capabilities, except for the server script that generates theJournal
entry. If there would be any way to configure that script to accept custom fields forParty Type
andParty
on everySalary Components
, that would suffice. But it would require extra steps for the implementor to deal with the sourcing of the fields when - to me - it is always about theParties
involved in a registry.Additional context
Here is a manually generated
Journal
with the expectedParty Type
andParty
that would allow to useERPNext
reports with that info:The text was updated successfully, but these errors were encountered: