In general, a <object>TabBar menu is intended to give users access to overview related to the <object>. And a <object>SubTabBar menu is intended to give users to actions to be performed on the <object>, like status changes, adding new records, etc.
The menu-item for editing the invoice header (aptly translated as 'Header') is currently located in the InvoiceTabBar menu in AccountingMenus.xml.
Given that this menu-item is intended for users with UPDATE permissions and to give those users access to a screen to edit the data, this menu-item must move to the InvoiceSubTabBar menu
Modified: AccountingMenus.xml
- moved 'edit' menu-item for invoice from InvoiceTabBar menu to InvoiceSubTabBar menu. adjusted label.
Currently, a user with only 'VIEW' permissions, as demonstrated in trunk demo with userId = auditor, accessing the billing account screen, sees editable fields and/or triggers (to requests) reserved for users with 'CREATE' or 'UPDATE' permissions.
See (test with): https://demo-trunk.ofbiz.apache.org/accounting/control/EditBillingAccount?billingAccountId=9010
Modified:
BillingAccountScreens.xml
- screen EditBillingAccount: restructured to work with view permissions
- screen CommonBillingAccountDecorator: added label visible to all billing account screens
- additional cleanup
BillingAccountForms.xml
- added form BillingAccount for users with VIEW permission
- additional cleanup
With the implementation of the Accounting MainActionMenu, various menu-items and/or other triggers to create an object are now obsolete
modified:
AccountingMenus.xml
- removed 'create' menu-items for invoice and payment
GlScreens.xml
- removed trigger for a new gl transaction.
* Improved: List and Grid (OFBIZ-11345)
According to the definition in widget-form.xsd the use of a combination of a form with type="list" is deprecated in favour of a grid.
Refactor various list forms into grids.
Refactor various list form references in screens.
Modified:
InvoiceScreens.xml: from form ref to grid ref , additional cleanup
InvoiceForms.xml: from form definition with list ref to grid definition with list ref, additional clean-up
* Improved: List and Grid (OFBIZ-11345)
Modified:
InvoiceScreens.xml: missed ref to ListInvoicePaymentInfo in InvoiceScreens.xml
Why Create instead of New (and surely no Create New, which is, at least in
French, a pleonasm, and we have already replaced everywhere)?
Mostly because it's an action so a verb is appropriate.
Currently the create buttons for the main objects of the accounting application are located within find and profile widgets/templates of those objects.
In order to improve the usability of this application, OFBiz and thus the appeal of it for adopters and users, these create buttons/links/etc. should be in a main action menu visible at all times when a user (with the CREATE permission) is working within the application of the component.
Modified:
- AccountingMenus.xml: added MainActionMenu for users with CREATE permission
- AgreementScreens.xml: added ref to MainActionMenu in CommonAgreementDecorator
- BillingAccountScreens.xml: added ref to MainActionMenu in CommonBillingAccountDecorator
- BudgetScreens.xml: added ref to MainActionMenu in various appropriate screens
- CommonScreens.xml: added ref to MainActionMenu in various appropriate screens
- FinAccountScreens.xml: added ref to MainActionMenu in CommonFinAccountDecorator
- FixedAssetScreens.xml: added ref to MainActionMenu in various appropriate screens
- InvoiceScreens.xml: added ref to MainActionMenu in CommonInvoiceDecorator
- PaymentGatewayConfigScreens.xml: added ref to MainActionMenu in GenericPaymentGatewayConfigDecorator
- PaymentGroupScreens.xml: added ref to MainActionMenu in FindPaymentGroup
- PaymentScreens.xml: added ref to MainActionMenu in CommonPaymentDecorator
- TaxAuthorityScreens.xml: added ref to MainActionMenu in CommonTaxAuthorityDecorator
- TransactionScreens.xml: added ref to MainActionMenu in GenericTransactionDecorator
Though there is an entity PaymentAttribute this cannot be accessed by user with VIEW permissions when accessing a Payment.
See:
for entity data: https://demo-trunk.ofbiz.apache.org/webtools/control/entity/find/PaymentAttribute
test payment: https://demo-trunk.ofbiz.apache.org/accounting/control/paymentOverview?paymentId=8003
Modified:
AccountingMenus.xml
added menu-item for payment attributes to InvoiceTabBar menu
controller.xml
added request-map and view-map for request paymentAttributes
PaymentScreens.xml
added screen for payment attributes
PaymentForms.xml
added grid to display payment attributes
AccountingUiLabels.xml - added label PageTitlePaymentAttributes, used in screen PaymentAttributes
* Fixed: Weird behaviour with currency symbols (OFBIZ-12443)
In some screens the $ currency symbol is not showing well.
Modified:
FinAccountTrans.ftl - fixed a typo
FinAccountForms.xml: ensured that for the monetary amount fields (actualBalance and availableBalance) the correct currencyUomId value is taken
Currently, a user with only 'VIEW' permissions, as demonstrated in trunk demo with userId = auditor, accessing the Financial Account transactions screen sees editable fields and/or triggers (to requests) reserved for users with 'CREATE' or 'UPDATE' permissions.
See (test with):
https://demo-trunk.ofbiz.apache.org/accounting/control/EditFinAccount?finAccountId=ABN_CHECKINGhttps://demo-trunk.ofbiz.apache.org/accounting/control/FindFinAccountTrans
Modified:
FinAccountScreens.xml: restructured screen FindFinAccountTrans
FinAccountForms.xml: improved form FindFinAccountTrans
Added:
FinAccountTrans.ftl, for users with VIEW permissions, additional cleanup
FinAccountTransTotals.ftl, improve legibility of code of FinAccountTrans.ftl
Currently, a user with only 'VIEW' permissions, as demonstrated in trunk demo with userId = auditor, accessing the Financial Account Roles screen sees editable fields and/or triggers (to requests) reserved for users with 'CREATE' or 'UPDATE' permissions.
See (test with): [https://demo-trunk.ofbiz.apache.org/accounting/control/EditFinAccount?finAccountId=ABN_CHECKING]
Modified:
FinAccountScreens.xml - restructured EditFinAccount
FinAccountForms.xml - added FinAccountRoles form, restructured ListFinAccountRoles
Currently, a user with only 'VIEW' permissions, as demonstrated in trunk demo with userId = auditor, accessing the Financial Account overview screen, sees editable fields and/or triggers (to requests) reserved for users with 'CREATE' or 'UPDATE' permissions.
See (test with): https://demo-trunk.ofbiz.apache.org/accounting/control/EditFinAccount?finAccountId=ABN_CHECKING
Modified:
FinAccountScreens.xml - reworked EditFinAccount screen to work with permissions, additional clean up.
FinAccountForms.xml - added form to be used for VIEW permission users
Currently, a user with only 'VIEW' permissions, as demonstrated in trunk demo with userId = auditor, accessing the payments screen on an invoice sees fields editable and triggers to requests reserved for users with 'CREATE' or 'UPDATE' permissions.
To see (test): https://demo-trunk.ofbiz.apache.org/accounting/control/editInvoiceApplications?invoiceId=demo10001
Modifiied: InvoiceScreens.xml
restructured EditInvoiceApplications screen to work with user's permissions, additional clean-up
* Improved: VIEW permissions Commission Run (OFBIZ-12433)
Currently, when using a userId with only VIEW permission, the Commission Run trigger (menuItem) presents a screen to search and find invoices applicable for the underlying service of creating commission invoices.
On the result shown, the user has access to triggers (functionalities) reserved for users with CREATE/UPDATE permissions.
See (test with): https://demo-trunk.ofbiz.apache.org/accounting/control/CommissionRun and from date= 12/1/1999 12:00:00 AM
Modified:
InvoiceScreens.xml (in AP) - screen CommissionRun
- restructured the screen to show result based on permissions
- added reference to template for users with VIEW permissions
Added:
CommissionRunSearchResult.ftl template for users with VIEW permissions
* Improved: VIEW permissions Commission Run (OFBIZ-12433)
Currently, when using a userId with only VIEW permission, the Commission Run trigger (menuItem) presents a screen to search and find invoices applicable for the underlying service of creating commission invoices.
On the result shown, the user has access to triggers (functionalities) reserved for users with CREATE/UPDATE permissions.
See (test with): https://demo-trunk.ofbiz.apache.org/accounting/control/CommissionRun and from date= 12/1/1999 12:00:00 AM
Modified:
InvoiceScreens.xml (in AP) - screen CommissionRun
- restructured the screen to show result based on permissions
- added reference to template for users with VIEW permissions
Added:
CommissionRunSearchResult.ftl template for users with VIEW permissions
Currently, when using a userId with only VIEW permission, the section terms shows triggers to term line items in the invoice overview. This should not be, as those triggers on the line items are reserved for users with CREATE/UPDATE permissions.
See (test with): https://localhost:8443/accounting/control/invoiceOverview?invoiceId=demo10001
Modified:
invoiceScreens.xml.xml
- adjusted form ref to grid ref for invoice term records
Though there is an entity InvoiceNote, this cannot be accessed by user with VIEW permissions when accessing an invoice.
See:
for entity data:https://demo-trunk.ofbiz.apache.org/webtools/control/entity/find/InvoiceNote
test invoice: https://demo-trunk.ofbiz.apache.org/accounting/control/invoiceOverview?invoiceId=demo11001
Modified:
AccountingMenus.xml
- added menu-item for invoice notes to InvoiceTabBar menu, reordered menu-items alphabetically
controller.xml
- added request-map and view-map for request invoiceNotes
InvoiceScreens.xml
- added screen for invoice notes
InvoiceForms.xml
- added grid to display InvoiceNote records
AccountingUiLabels.xml
- added label for page title invoice notes.
* Improved: VIEW permissions - invoice contact mechs (OFBIZ-12428)
Though there is an entity InvoiceContactMech, this cannot be accessed by user with VIEW permissions when accessing an invoice.
See:
for entity data: https://demo-trunk.ofbiz.apache.org/webtools/control/entity/find/InvoiceContactMech
test invoice: https://demo-trunk.ofbiz.apache.org/accounting/control/invoiceOverview?invoiceId=demo11001
Modified:
AccountingMenus.xml
- added menu-item for contact mechs to InvoiceTabBar menu
controller.xml
- added request-map and view-map for request invoiceContactMech
InvoiceScreens.xml
- added screen for invoice contact mech(s)
InvoiceForms.xml
- added grid to display contact mech details
* Improved: VIEW permissions - invoice contact mechs (OFBIZ-12428)
Though there is an entity InvoiceContactMech, this cannot be accessed by user with VIEW permissions when accessing an invoice.
modified:
AccountingUiLabels.xml - added label PageTitleInvoiceContactMech, used in screen InvoiceContactMech
Though there is an entity InvoiceContent, this cannot be accessed by user with VIEW permissions when accessing an invoice.
Modified:
- AccountingUiLabels.xml - added page title translation for
Modified:
InvoiceScreens.xml
- added screen InvoiceContent to be available for users with VIEW permissions
InvoiceForms.xml
- added grid InvoiceContent to be used by screen InvoiceContent
AccountingMenus.xml
- added menu-item invoiceContent to InvoiceTabBar
controller.xml
- added request-map and view-map to access screen InvoiceContent
AccountingUiLabels.xml
- added label definition for PageTitleInvoiceContent
According to the definition in widget-form.xsd the use of a combination of a form with type="list" is deprecated in favour of a grid.
Modified:
ReportFinancialSummaryScreens.xml: from form ref to grid ref , additional cleanup
ReportFinancialSummaryForms.xml: from form definition with list ref to grid definition with list ref, additional clean-up
Application(s) is generic (also used within contexts elsewhere) in OFBiz.
Users have a better perception of context when looking at a menu-item Payments
in the screen of an invoice, than seeing Applications.
The additional benefit for developers is that with the implemented change the
tech come closer to the language of the user
jleroux: after a discussion with Pierre in the Jira, being more in favour of
using "Payments applications" (for instance the related screen is named
EditPaymentApplications), I had a look at
https://www.linguee.fr/francais-anglais/search?query=%22Payments%20applications%22
which was not much conclusive.
In a 1st attempt, using Google translate, I tried to translate few languages
based on a French translation:
<value xml:lang="ar">طلبات المدفوعات </value>
<value xml:lang="de">Zahlungsaufzeichnungen</value>
<value xml:lang="en">Payments application</value>
<value xml:lang="es">Registros de pago</value>
<value xml:lang="fr">Enregistrement des paiements</value>
<value xml:lang="hi-IN">अनुप्रयोग</value>
<value xml:lang="it">Registri di pagamento</value>
I finally think that Pierre's is right and we could simply use Payments there
rather than Applications and even "Payments applications" (could be debated...)
So I just changed the French and English labels and the labels names of
AccountingApplicationSuccess to AccountingPaymentApplicationSuccess
and AccountingApplications to AccountingPaymentsApplications
I let the users of other languages to decide what to put there or discuss if
they see an interest.
Thanks: Pierre for report and suggestion
According to the definition in widget-form.xsd the use of a combination of a form with type="list" is deprecated in favour of a grid.
Refactor various list forms into grids.
Refactor various list form references in screens.
modified:
GlobalGlAccountsScreens.xml: from form ref to grid ref , additional cleanup
GlobalGlAccountsForms.xml: from form definition with list ref to grid definition with list ref, additional clean-up
According to the definition in widget-form.xsd the use of a combination of a form with type="list" is deprecated in favour of a grid.
Refactor various list forms into grids.
Refactor various list form references in screens.
modified:
FixedAssetScreens.xml: from form ref to grid ref , additional cleanup
FixedAssetForms.xml: from form definition with list ref to grid definition with list ref, additional clean-up
According to the definition in widget-form.xsd the use of a combination of a form with type="list" is deprecated in favour of a grid.
Refactor various list forms into grids.
Refactor various list form references in screens.
modified:
GlScreens.xml: from form ref to grid ref , additional cleanup
GlForms.xml: from form definition with list ref to grid definition with list ref, additional clean-up
According to the definition in widget-form.xsd the use of a combination of a form with type="list" is deprecated in favour of a grid.
Refactor various list forms into grids.
Refactor various list form references in screens.
Associating lists in screens with grids in forms.
modified:
ApScreens.xml: from form ref to grid ref
ArScreens.xml: from form ref to grid ref
PaymentScreens.xml: from form ref to grid ref
PaymentForms.xml: from form definition with list ref to grid definition with list ref, additional clean-up
* Improved: VIEW permissions and invoice attributes (OFBIZ-12417)
Though there is an entity InvoiceAttribute, this cannot be accessed by user with VIEW permissions when accessing an invoice.
Modified:
InvoiceScreens.xml
- added screen InvoiceAttributes to be available for users with VIEW permissions
InvoiceForms.xml
- added grid InvoiceAttributes to be used by screen InvoiceAttributes
AccountingMenus.xml
- added menu-item invoiceAttributes to InvoiceTabBar
controller.xml
- added request-map and view-map to access screen InvoiceAttributes
* Improved: VIEW permissions and invoice attributes (OFBIZ-12417)
Though there is an entity InvoiceAttribute, this cannot be accessed by user with VIEW permissions when accessing an invoice.
I forgot to add the translation for the page title
modified: AccountingUiLabels.xml
added label definition for PageTitleInvoiceAttributes
Currently, a user with only 'VIEW' permissions, as demonstrated in trunk demo with userId = auditor, accessing the items screen on an invoice sees fields editable and triggers to requests reserved for users with 'CREATE' or 'UPDATE' permissions.
modified: InvoiceScreens.xml
restructured screen EditInvoiceTimeEntries, to show appropriate content based on the permissions of the user
Associating lists in screens with grids in forms.
modified:
TaxAuthorityScreens.xml.xml: from form ref to grid ref , additional cleanup
TaxAuthorityForms.xml: from form definition with list ref to grid definition with list ref, additional clean-up
Currently, a user with only 'VIEW' permissions, as demonstrated in trunk demo with userId = auditor, accessing the items screen on an invoice sees fields editable and triggers to requests reserved for users with 'CREATE' or 'UPDATE' permissions.
See https://demo-trunk.ofbiz.apache.org/accounting/control/listInvoiceItems?invoiceId=demo10001
modified: InvoiceScreens.xml
restructured screen EditInvoiceItems, to show appropriate content based on the permissions of the user
Currently, a user with only 'VIEW' permissions, as demonstrated in trunk demo with userId = auditor, accessing the terms screen on an invoice sees fields editable and triggers to requests reserved for users with 'CREATE' or 'UPDATE' permissions.
Modified: InvoiceForms.xml
added grid 'InvoiceTerms' for displaying records of the list invoiceTerms for users with 'VIEW" missions
Modified: InvoiceScreens.xml
restructured screen InvoiceTerms, to show appropriate content based on the permissions of the user
Currently, a user with only 'VIEW' permissions, as demonstrated in trunk demo with userId = auditor, accessing the InvoiceOverviews screen sees triggers (intended for users with 'CREATE' or 'UPDATE' permissions).
Such triggers are already available via menu-items associated the screen.
modified: InvoiceOverview screen in InvoiceScreens.xml
* Improved: Lists and grids (OFBIZ-11345)
changed:
BudgetForms.xml: changed forms with list attributed to grids, additional cleanup
BudgetScreens.xml: changed form reference for lists to grid reference
* Improved: Lists and grids (OFBIZ-11345) (#348)
changed: FinAccountForms.xml: changed forms with list attributed to grids, additional cleanup
FinAccountScreens.xml: changed form reference for lists to grid reference
changed:
BudgetForms.xml: changed forms with list attributed to grids, additional cleanup
BudgetScreens.xml: changed form reference for lists to grid reference
A user with only 'VIEW' permissions should not see menu-items intended for users with 'CREATE' or 'UPDATE' permissions
Modified:
AccountingMenus.xml: conditions of several menu-items under menu 'InvoiceSubTabBar'
- Since the method InvoiceWorker.getInvoiceTotal takes care of the conversion, it is redundant to convert it again on the screen, which results in mismatch of the currency and the amount.
Thanks: Suraj, Jacques, Rajadurai for the review and Andrei Stan for reporting.
asm select library is already replaced with select2 library, but the library files still exist in code base unused.
asm_asmListItemPercentOfForm varaible was used to set the width of the selected items which were displaced distictly from select fields. With select2, the selected items display inside the input field so it is no more needed
Thanks Jacques Le Roux for reporting it
1. Navigate to URL: accounting/control/IncomeStatement?organizationPartyId=Company
2. In income statement section click on export as csv button.
3. The exported csv has correct balance but with invalid currency symbol.
4. On screen USD $ symbol is shown and in csv some other currency symbol is shown.
Thanks: Lalit Dashora for report, Praveen Sharma for the fix
https://demo-trunk.ofbiz.apache.org/accounting/control/createGlReconciliation
When entering an amount and submitting the data an error is thrown.
jleroux:
EditFinAccountReconciliation form extends EditGlReconciliation. There
glReconciliationId and reconciledBalance fields are already present.
So adding them in EditFinAccountReconciliation is wrong. On the other hand the
display of reconciledBalance is better in EditFinAccountReconciliation.
So I moved it there.
Thanks: Pierre Smits for report and Mohammed Rehan Khan for initial patch
See accounting/control/EditFinAccountReconciliations?finAccountId=ABN_CHECKING
Removes the unwanted condition to include duplicate reconciledBalance filed
which was the cause of the issue.
Thanks: Pierre Smits for report, Mohammed Rehan Khan for the fix