In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use Laravel+Dcat admin to develop erp projects, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
Commonly used initialization
Implementation of documents commonly used in ERP
Over the past few months, I have turned the documents commonly used in erp into an abstract class, as long as I inherit OrderController and implement several abstract methods. You can get a document created by the editor. It will automatically include documents commonly used to review, delete, batch increase and so on.
Abstract method (as long as our business logic shows the data, as for the batch addition of audit deletion, we encapsulate it for unified management, such as checking whether the number of businesses in the details is 0 and whether the documents contain details)
Page effect
Add
Editing
Carding of business logic
In inventory and erp software, such as in and out of inventory, batch inventory, product inventory, and insert a record of inventory transactions will be deducted. Some older programmers may use database triggers, stored procedures, and so on. Here I can introduce how to split these businesses in laravel.
Picture shows inventory transactions
Analysis: when we enter the warehouse, we will first add or subtract the batch inventory, and then the product inventory will also be added or subtracted, and an inventory current account will be inserted if it involves addition or subtraction. The inventory current account table contains the fields needed for batch inventory and product inventory changes. We can monitor the changes in the review status of incoming and outgoing orders, such as approval, and then insert the inventory current account. And then by monitoring inventory transactions. Add or decrease batch inventory. Monitor the addition or subtraction of batch inventory to increase or decrease product inventory.
Purchase order Monitoring (PurchaseInOrderObserver) inserts an inventory account as soon as the order is approved
Inventory current account monitoring (StockHistoryObserver) batch inventory deduction based on document type
Batch inventory Monitoring (SkuStockBatchObserver) deducts product inventory when batch inventory is deducted
Benefits
When we have other businesses to reduce inventory, such as customer sales orders. We just need to monitor the review of customer sales orders. There is no need to write a business logic of inventory deduction. Improve the robustness of our business.
Customer sales order
Audit icon implementation
Code
Use
$form- > reviewicon ('field', 'audit status')
Thank you for reading this article carefully. I hope the article "how to use Laravel+Dcat admin to develop erp projects" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.