Up to 13 order forms-read business logic and management philosophy through code

Source: Internet
Author: User

Salesman under the order, to consider the following circumstances:

 if(Price >0 ){       if(Department = =Domestic trade) {          if(Product status = =rework)          {Under the Domestic repair order. Work (); }          Else  if(Product status = =trial Production)          {Next trial production order. Work (); }          Else  if(Product status = =economy)          {Lower economy order. Work (); }          Else  if(Product status = =Dull products)          {Under-glazed orders. Work (); }          Else  if(Product status = =OEM type)          {Next-generation order. Work (); }          Else  if(Product status = =available in stock)          {out-of-stock order. Work (); }          Else  if(Product status = =preparation)          {under preparation order. Work (); }      }    Else   //Foreign Trade     {          if(Product status = =rework)          {under Foreign repair orders. Work (); }          Else  if(Product status = =trial Production)          {Next trial production order. Work (); }          Else  if(Product status = =economy)          {Lower economy order. Work (); }           Else  if(Product status = =OEM type)          {Next-generation order. Work (); }            Else  if(Product status = =Dull products)          {Under-glazed orders. Work (); }           Else  if(Product status = =available in stock)          {out-of-stock order. Work (); }            Else  if(Product status = =preparation)          {under preparation order. Work (); }     }}  Else  //Giveaway or replacement or free rework{           if(gift) {Next giveaway order. Work (); }           Else if(for) {Exchange order. Work (); }             Else if(free rework) {if(Department = =Domestic trade)              {Under the Domestic repair order. Work (); }              Else //Department = = Foreign Trade{under Foreign repair orders. Work (); }           }}}
ERP Single Description
 
Order Form Single name Single meaning Special Instructions
2201 Foreign orders Orders for foreign customers, normal unit price, mass production Warehouse must be included in the LRP calculation, such as the finished product 2 warehouse
2202 Domestic Orders Orders for domestic customers, normal unit price, mass production
2203 Prepare inventory Order For stocking, need to produce orders, follow-up can be borrowed, out of stock, giving  
2204 Preparation List Regular monthly orders for stock preparation Warehouse must be included in the LRP calculation, such as the finished product 2 warehouse
2205 Inventory receipts Orders without production, with stock available for direct shipment, including trial product inventory Warehouse, no restrictions.
2206 Exchange Orders Unit Price is 0, free replacement of special orders, there is stock notes directly shipped, otherwise the default needs to produce Warehouse must be included in the LRP calculation, such as the finished product 2 warehouse
2207 Overseas rework Order Orders for foreign customers and special unit prices
2208 Domestic rework Order Domestic customers, Special Unit price, 0 unit price need to rework the product orders, such as 40 pieces of rework fee, or free repair
2209 Demurrage Order (Director Audit) Sluggish goods, inventory shipments of orders, not divided into domestic and foreign Warehouse, no restrictions.
2210 Trial order Products that are still in trial production, orders that need to be produced, are not divided into domestic and foreign Warehouse must be included in the LRP calculation, such as the finished product 2 warehouse
2212 Economic line Order Orders for economical products, not domestic or foreign
2211 OEM Orders To the customer OEM production orders, not divided into domestic and foreign
2213 Premium Order (Director Audit) Unit Price is 0, free replacement of special orders, there is stock notes directly shipped, otherwise the default needs to produce  

ERP operation for more than 4 years, we have successively increased to 13 kinds of order form. Salesman's work has become a programmer to do the job-spit groove.

Behind every single, there is a special management significance. Now, of course, a lot of poorly thought-out, belong to no need to add a single. If the top management of the company learns object-oriented, it may be possible to avoid-hindsight.

Management philosophy (document audit, statistical analysis, quality management, Process Control):

2201 Foreign orders and 2202 domestic orders are based on geographical division, the purpose is to audit convenience and facilitate the subsequent statistical sales data. At that time, the marketing department did not divide the domestic trade and foreign trading classes, general is a large department.

2203 for the preparation of inventory, need to produce finished goods warehousing, because no unit price, at that time belong to the company behavior, so no distinction between domestic and foreign. But now, the inventory of finished goods and material slack is mostly related to the responsibility unclear, so follow-up should be under the order of the clerk, cancel the planned economy, take the market economy.

2204 The stock list is used only for the purchase of materials and is not produced, so there is a distinct difference from 2203. But according to clerk preparation is the middle of last year only began. Beware of sluggish materials.

2205 inventory shipment, is on the basis of 2203 prepared inventory, direct shipping. The dispute lies in how the resources of the hot products are distributed.

2206 Exchange orders and 2213 gift order is originally 1 single, but the company a statistic found that many shipments are not free to customers, is the product quality problems caused by free replacement \ Production, so should be calculated after-sales service fees, should not be combined with gifts.

2207 Foreign repair orders and 2208 domestic rework orders, customers return back, only need to repair, do not need to produce, the price may be a symbolic collection, so single to separate.

2209 Sluggish product sales, because the price and normal products are very different, so in order to avoid affecting the normal product profits, so that the profit margin of the sales report is more moving, so independent out is necessary drip.

2210 pilot orders, production processes and quality control processes are different, and therefore must be independent.

2212 Economic line orders, prices and normal products are different.

2211-generation orders, flies are also meat, price.

2213 Gift orders, free of charge, the director for approval, according to the year, the month XX statistics.

After analyzing the purpose and significance of management, we then think from the object-oriented thinking, if we do it ourselves, we must satisfy the management philosophy, but also the low coupling high cohesion, then how should these single should be established?

The first step, building classes and attributes

Personnel: Zhang San, John Doe

Customer: A, B, \ C

Department: Domestic and Foreign trade

Unit Price: Normal, giveaway, sluggish goods, economic type, foundry type

Currency: $, USD

Types of shipments: normal production, return repair, preparation, stocking

Step Two:

The above objects are no longer divisible, how can do to meet the management requirements, salesman can also be the fewest single to complete the next single job.

Salesman how can do not move the brain can complete the next single work.

Step Three:

My thinking is 1 single + 2 Field object combinations.

On order single plus 1 "Sales category" fields, the properties are {normal, giveaway, sluggish, economical, foundry}.

In the order single plus 1 "Shipping type" field, the properties are {normal production, return rework, preparation, stocking}. "Trial run" is placed in the product name.

The dimensions of all sales reports are added to the "Sales category" and "Quality status", which are selected according to the dimensions in the sale of goods (note: The current ERP used is to use sales list for data screening, sales profit, net amount, net amount of gold acid).

Salesman orders by the following steps to complete:

Open Program
1, only 1 single, so automatically brought into
2, enter the customer automatically into the clerk, currency
3, according to the salesman automatically brought into the department
4, enter the product number, with the name and specifications, if the name of the trial production 2 times, it is a pilot product
5, choose the type of sales {normal, gifts, sluggish goods, economic type, foundry}.
6, select the type of shipment {Normal production, return rework, preparation, stocking}
7. Input Unit Price
8. Save
Exit

Object-oriented is really great, the salesman finally did not have to work overtime to order.

Salesman is now rescued, that process control in fact or failure.

at this point the ERP and OA integration, the use of OA for electronic signature, through the attribute field to determine the flow, clerk mm no longer worry about where to send a single.

Up to 13 order forms-read business logic and management philosophy through code

Related Article

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.