Comments (3)
I took a quick look at this. It appears that client/src/modules/multiple_payroll_indice/modals/config.modal.html uses bh-input-text
for these indexes. There does not seem to be an easy way to prevent negative entries in a text field. So I suggest creating a new controller: bh-input-index
or 'bh-input-number' and set it up so that it can prevent negative numbers (based on an argument to the controller). Note that the monetary values on the right are configured not to allow negative numbers.
Also, it was not clear to me why bh-input-text
has any code in the controller for dealing with currency data.
from bhima.
I would suggest move away from bhInputText
entirely in this case and just use an <input type="number" min="0" ng-model="">
unless there is a really good reason to keep bhInputText
. Given the name, it sounds like it is built for text input, not numeric. Most of what we would build into the bhInputIndex
seems like it is already native to HTML's <input>
box anyway.
from bhima.
I would suggest move away from
bhInputText
entirely in this case and just use an<input type="number" min="0" ng-model="">
unless there is a really good reason to keepbhInputText
. Given the name, it sounds like it is built for text input, not numeric. Most of what we would build into thebhInputIndex
seems like it is already native to HTML's<input>
box anyway.
I used bhInputText by setting the type parameter to number and adding the min property and it works fine
from bhima.
Related Issues (20)
- Fix unit price input field to allow zero
- Problem of deductions from salaries above the net salary (bonus) HOT 1
- Adding lines to a transaction in the transaction edit modal breaks the transaction
- Merge "Γtat", "CMM", "SS", "MIN", and "MAX" columns into a single `<meter>` column in stock inventories registry
- Importing Payroll Configurations from an Excel File HOT 2
- Final settlement management
- Add account reconciliation feature
- Allow CSV imports to handle comma or tab separators
- Menu option to clear index payroll data
- Split out employees in Annual Clients Report HOT 1
- Refactor Offdays/Holidays/etc interface to include a shared calendar
- Add a "Merge Debtor Groups" feature
- Fix for the payroll settings page
- Categorize Debtor Group: Distinguishing Insolvent and Solvent Entities HOT 2
- Add Feature: Group Accounts into Categories for a Synthetic Cash Flow Report HOT 1
- Add New Columns to Budget Report Analysis and Adjust Presentation
- Enhance Payroll Module with Index: Add Feature to Multiply Pay Indices by Frequency for Employee Categorization
- Bug: Report renderer uses fixed substring for logopath, breaking custom logo paths. HOT 3
- Update UI Design for Debtor Group Management and Creditor Group Management Modules HOT 1
- Budget Report
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bhima.