Table of Contents
回复讨论(解决方案)
Home Backend Development PHP Tutorial ERP遇到业务逻辑问题,求思路

ERP遇到业务逻辑问题,求思路

Jun 23, 2016 pm 01:55 PM
erp business Ideas logic

我现在在做一个erp系统,遇到一个问题。
如:表A有字段
id1 cname 项链 number 3 iseku 0

我们要做的是每个订单的每个数量都要出库给不同的序列号以便追踪每个货物的走向,
那这个字段我在页面上就会循环出3行一样的,分别给他们指派一个出库序列号,当我点第一行出库按钮,iseku就更新为1表示出库。那下面2个的状态也就变成出库了,那我下面2行就出不了库了,出库会减另外一张商品库存表的数量,这里的数量3是不会减的。


直白的说 ,就是如何对一行记录的每个数量进行分别标记!!急


回复讨论(解决方案)

iseku 可记为 0,1,2,3,4....
分别表示物品在流通中的位置

A表 id cname number  iseku    status   time
        1   手机     5              入库       0           xx
        1   手机     2              出库       1           xx
        1   手机     1              出库       1           xx
        1   手机     1              调拨       2           xx


可以满足 status = 0 表示 入库状态 status = 1 表示出库  
如果出现调拨,只需要给status加个status标示

iseku 可记为 0,1,2,3,4....
分别表示物品在流通中的位置


我觉得你可能没理解我的业务需求。



显然你还需要一个按订单组织的表,物流状态是记录在他里面的
而你的库存表(表A)只是记录库存数量

好吧,老板把业务逻辑换了 ,谢谢大家。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

MySQL vs. TiDB: Which is better for your business? MySQL vs. TiDB: Which is better for your business? Jul 13, 2023 pm 03:09 PM

MySQL vs. TiDB: Which is better for your business? With the rapid development of the Internet and big data, data storage and management have become an important part of enterprise business. When choosing a suitable database solution, many enterprises come across the two choices of MySQL and TiDB. This article will compare the features and advantages of MySQL and TiDB to help you determine which one is more suitable for your business. MySQL is an open source relational database management system that was born as early as 1995

Oh my god, is ChatGPT really going to work for us? Oh my god, is ChatGPT really going to work for us? Apr 13, 2023 am 08:19 AM

​Preface: ChatGPT​ is really very popular recently, and AI services related to ChatGPT are also being researched in full swing. Today we take a look at the application of ChatGPT in coding. Recently we found an IntelliJ IDEA plug-in called "AI Coding Assistant", which integrates ChatGPT technology. Let's see how smart it is and whether it will really work in the future. It is possible that it will replace the work of our programmers. Plugin Installation In order to start using the plugin, you must have an OpenAI token. If you don't know where to find it, you can find it at https://platform.openai.c

what does erp mean what does erp mean Jul 28, 2023 pm 02:49 PM

ERP means enterprise resource planning. It is a software system that integrates and manages all aspects of information and business processes of an enterprise. It helps enterprises achieve efficient management and optimization of resources by integrating data from various departments, thereby improving the operational efficiency and efficiency of enterprises. Competitiveness. When enterprises implement ERP systems, they need to comprehensively plan and prepare, focusing on process management and organizational changes to ensure the effective use of the system and the ultimate value realization.

What are ERP system software? What are ERP system software? Jun 21, 2023 pm 01:53 PM

ERP system software: 1. SAP, with nearly 50 years of experience in ERP software practice and innovation; 2. Oracle, focusing on management software products; 3. Microsoft, the largest independent software company in the world; 4. Infor, a world-renowned Enterprise-level application software and service provider; 5. UFIDA, is a well-known management software in the Asia-Pacific region; 6. Kingdee, focuses on cloud services; 7. Inspur, is China's leading cloud computing and big data service provider; 8. Intuit , focusing on financial software; 9. Salesforce; 10. Neusoft, etc.

Using an artifact command can quickly make your GPT smart! Using an artifact command can quickly make your GPT smart! May 09, 2023 am 08:13 AM

Today I would like to share with you two tips. The first one can increase the output logic and make the framework logic clearer. Let’s first take a look at the output of GPT under normal circumstances, taking the user growth analysis system as an example: Next, I will add a simple command, and let’s compare and see the effect: Is the effect better? And the logic is very clear. Of course, the above output is actually more than that, it is just for example. Let's just let GPT act as a senior Python engineer and help me write a study plan! When asking a question, just add the following sentence after it! let'sthinkstepbystep Let's take a look at the second practical command, which can take your article to a higher level. For example, let's ask GPT to write a work report, here

PHP realizes the development and design of ERP system PHP realizes the development and design of ERP system Jun 18, 2023 am 08:21 AM

With the continuous expansion of enterprise scale and the gradual improvement of informatization level, ERP system has become an essential tool for enterprise management informatization. In the development and design of ERP systems, PHP, as an efficient, flexible, easy-to-learn and develop programming language, is adopted by more and more developers. This article will introduce the application of PHP in ERP system development and design. 1. Basic concepts and functions of ERP system. ERP stands for Enterprise Resource Planning (Enterprise Resource Planning).

Prevent logic vulnerabilities in Java Prevent logic vulnerabilities in Java Aug 07, 2023 pm 01:13 PM

Prevent logic vulnerabilities in Java In software development, logic vulnerabilities are a common security problem. When there are errors or design flaws in the program logic, attackers can use these vulnerabilities to bypass the program's security mechanism and perform malicious operations. As a widely used programming language, Java also needs to pay attention to preventing logical loopholes. This article will introduce some common Java logic vulnerabilities and give corresponding preventive measures. 1. Prevent race conditions. Race conditions mean that when the program is in a certain state, another thread modifies this state.

Binary representation of next larger number with same number of 1's and 0's in C program? Binary representation of next larger number with same number of 1's and 0's in C program? Aug 26, 2023 pm 03:21 PM

Suppose we have a binary number which represents a number n. We need to find a binary number that is larger than n but smallest, and that also has the same number of 0s and 1s. So if the number is 1011 (11 in decimal), then the output will be 1101 (13 in decimal). This problem can be solved using the next permutation calculation. Let's look at the algorithm to get this idea. Algorithm nextBin(bin)−Begin len:=lengthofthebin foriinrangelen-2,downto1,do&am

See all articles