Answer the question
In order to leave comments, you need to log in
How to start a warehouse accounting system?
The task was set: to manage the warehouse inventory of the store on its own platform.
Now the warehouse looks like a table, each column of which subtracts the value for the write-off of the goods and adds the value of the article for replenishment.
The darkness is utter, no good.
I minimize work to atomic units:
For a start created a DB.
First, the warehouse table (a collection in my case) with the main fields:
[ {article of goods, number of goods in stock} ].
Below is a table with orders containing goods to be written off:
[ {item of goods, number of goods to be written off} ].
There are still deliveries and returns - these are the reverse actions for an order, but the essence is the same:
[ {item of goods, number of goods to be replenished} ].
Everything else under these conditions does not play a role.
Connoisseurs, attention, question:
Please indicate how to properly organize the calculation of the current number of commodity items in the warehouse, if:
Answer the question
In order to leave comments, you need to log in
In my practice (and I work with accounting systems), I can recommend the following structure from the normal ones:
1) Income Income table (header, where the date of arrival is indicated, the department where it came from, etc.) + IncomeGoods - (header body, where the goods are indicated, quantity and price)
2) Outgo Expense Table (header, where the date of consumption is indicated, the department from where it left) + OutgoGoods - (header body, where the goods, quantity and price are indicated)
3) relationship table - RelationIO (identifiers of the goods incoming item from IncomeGoods and OutgoGoods )-> income and expense relationship table.
What is the essence of the table: you have an income, let's say 20 pieces. You need to pick up 10 pieces from it. You record in RelationIO the amount that you took from the parish and what took it.
You just need to write a procedure for posting an invoice - by posting I mean a set of free balances for consumption.
Now for the individual items.
For carrying out this is the only correct solution. Otherwise, get ready for a big F... in income and expenses when your whole system grows.
by squares:
1. only transactions
2. nothing needs to be calculated: batch processing with a batch length of N-operations between states
3. this is a couple of properties (if you need it in detail, then a subset) of the product offer
4. see item 1
I advise you to design statechart in UML, so you can visually analyze the movement of data between final states.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question