Questions tagged [business-logic]

Business logic is the abstract thought process behind decision making in human transactions. Translation of business logic into code is one of the major tasks in producing business software.

626 questions
0
votes
1 answer

jQuery end(), where exactly it is useful

I have looked in to the jquery documentation of function end(), definition : End the most recent filtering operation in the current chain and return the set of matched elements to its previous state. i have understood the functionality, but i could…
RONE
  • 5,415
  • 9
  • 42
  • 71
0
votes
0 answers

PHP difficult logic with calculating staff working hours

I've been asked to write a web page that can work out staff paid hours, but the logic of calculating deductions and overtime is driving me mad. Staff are paid monthly, but any absences are deducted from that weeks overtime before being deducted from…
MikeK
  • 373
  • 1
  • 2
  • 16
0
votes
3 answers

Warning: Division by zero PHP check

I am using symfony 1.1 to read an API and store the values in DB if(($xmlArray->{'MDD'} == 0) || ($xmlArray->{'MDD'} == '0') ){ $autoStraObj->setRisk(' - '); }else{ $autoStraObj->setRisk(round(($xmlArray->{'Pips'} /…
RONE
  • 5,415
  • 9
  • 42
  • 71
0
votes
2 answers

Where shall I put my business logic without mapping to a database in Symfony2?

I created a bundle in Symfony2 that contains my webapp. In there I have some Entities that are mapped to my MySQL-Database. They are located in Acme\MyBundle\Entities. Now I have created some helper classes that I will not just use in MyBundle, so I…
Gottlieb Notschnabel
  • 9,408
  • 18
  • 74
  • 116
0
votes
1 answer

What are the limit of Drupal or any CMS in general?

Drupal is a CMS, not a web framework. Does this mean it should only be used for publishing posts, blogs, graphs or what ever content you can think of or can it be used for more sophisticated applications with 'true' business logic behind the scenes…
0
votes
1 answer

Event for when user switches browser tabs ONLY ONCE

I was looking at a functionality like this shown Reference . But needed a slight change. Onfucus the function inside should run only once var flag=true; $(window).focus(function(e) { // Do Focus Actions Here if(flag){ func(); } …
RONE
  • 5,415
  • 9
  • 42
  • 71
0
votes
1 answer

Logical flow required for a real time online seats booking system in PHP?

I am workinng on a development of online web application in PHP. The system is regarding seats booking system for a travel company. I have a booking form containing a select box which have list of tour code. Whenever a user selects the tour code an…
Param-Ganak
  • 5,787
  • 17
  • 50
  • 62
0
votes
2 answers

At what level should I check for the correctness of a form field?

I am writing a web application using JSP, with a mysql database that keeps track of all the users. In a web page I use a form to allow users to register. In my database, for example the username of an user has a maximum of 20 characters, so I…
Ramy Al Zuhouri
  • 21,580
  • 26
  • 105
  • 187
0
votes
3 answers

How does business logic class calls methods inside a managed bean?

I have some business logic code that renders some facesMessages on the facelet based on its output, so i made a method in the facelet managed bean like this method: public void renderFacesMessages(String summary, String detail) { FacesMessage…
Eslam Hamdy
  • 7,126
  • 27
  • 105
  • 165
0
votes
2 answers

Configurable code logic in C#

I have a xml data where nodes are present like this US Supplier The scenario is my business entity is strongly bound with this XML. Now we have to rearchitect the system to make it more…
Thanigainathan
  • 1,505
  • 14
  • 25
0
votes
2 answers

How do I prevent the repetition of business logic?

OK. So here's my simplified scenario. We have a system which handles orders for a number of clients. We want staff users to be able to view all orders and we want client user to only be able to view orders which relate to them. When attempting to…
jammus
  • 2,540
  • 23
  • 28
0
votes
2 answers

how to find out price/extra$1000 deposited

The formula that I want to convert in java is Over limit Cash Deposit Fee = [(Input $ cash deposit) – ($ Cash deposits included in plan)] / 1000 * (price/each extra $1000 deposited) The code that I am writing is int inputCash = 50; int…
supersaiyan
  • 1,670
  • 5
  • 16
  • 36
0
votes
1 answer

How the Application layer will be able to dynamicly query the DB in the DAL layer?

C#, LINQ to SQL Some advice me to open new topic insteed that topic becouse there is no solution for my problem. Now I will need your help to re-design my layers. Linq To Sql - Making a dynamic search for the Application layer without exposing DAL…
Stav Alfi
  • 13,139
  • 23
  • 99
  • 171
0
votes
1 answer

Application Services referred as containing Business Logic

I have a question that twisted me over the last months. Some of the writers and persons (I would not say all of them) are associating the Business Logic with Application Services. According to what I know a business Logic contain the classes that…
0
votes
2 answers

What is the recommendation of the creators of the asp.net with mvc to put business logic in applications?

When I search the internet, I found that some people say that the logic should go in the ViewModel and some people say it should be go in Controller in asp.net with mvc applications. So I cannot come to a conclusion. What is the official (the…
Haritha
  • 1,498
  • 1
  • 13
  • 35