How ERP solves business logic problems

Source: Internet
Author: User
I have encountered a business logic problem in ERP. I am working on an erp system and have encountered a problem.
For example, table A has fields.
Id1 cname necklace number 3 iseku 0

What we need to do is to warehouse each quantity of each order to a different serial number to track the trend of each cargo,
Then this field will loop out three rows in the same way on the page and assign them a warehouse picking serial number respectively. when I click the warehouse picking button in the first row, iseku will be updated to 1 to indicate warehouse picking. Then the following two statuses are changed to warehouse picking. then, the two rows below won't be able to get out of the warehouse, and the warehouse picking will reduce the number of other inventory tables, the number 3 here will not be reduced.


To put it bluntly, it is how to mark each number of records in a row separately !! Urgent


Reply to discussion (solution)

Iseku can be counted as 0, 1, 2, 3, 4 ....
Positions of items in circulation

Table A id cname number iseku status time
1 mobile phone 5 warehouse receiving 0 xx
1 mobile phone 2 warehouse picking 1 xx
1 mobile phone 1 warehouse picking 1 xx
1 mobile phone 1 transfer 2 xx


Status = 0 indicates warehouse receiving status. status = 1 indicates warehouse picking.
If there is a transfer, you only need to add a status label to the status

Iseku can be counted as 0, 1, 2, 3, 4 ....
Positions of items in circulation


I think you may not understand my business needs.



Obviously, you still need a table organized by order, and the logistics status is recorded in it.
Your inventory table (table A) only records the inventory quantity.

Okay, the boss has changed the business logic. thank you.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.