I need to realize the direct materials transfer between multiple companies’ warehouses in Stock Entry.
In normal case, we have some filters which don’t allow us to select warehouse from other company.
Basically I need that material transfer would allow me to select Default Source Warehouse and Default Target Warehouse from all warehouses of all companies which registered in my ERPNext.
I found the stock/utils.py file, which contains validate_warehouse_company(warehouse, company) function.
I want to comment this function and comment code that calls this function outside, from other classes.
What further steps I need to do for removing these filters?
Inter-company transactions are not possible right now. Commenting out the filters / validation will not work. Because, still stock ledger entry / accounting entries will be posted wrongly.
Replying to previous posts,
Can you tell me, which code is responsible for displaying items from dropdown menu?
I need to display all items from all warehouses.
I suppose that stock entry/stock entry.js is responsible for it?
Problem with this is that money doesn’t exchange hands in my use case. We maintain a single warehouse records across all companies and each company can request for materials directly from the warehouse.
So there is a centralized purchase system implemented. Since each company is an independent legal entity thus its better to transfer material using Sales and Purchase Invoice to record transaction correctly as per accounting standard.
Create Customer named as Company (e.g. Company A), check Is Internal Customer option and select appropriate company (e.g. Company A). Add company under Allowed To Transact With
Create Supplier named as Company (e.g. Company B), check Is Internal Customer option and select appropriate company (e.g. Company B). Add company under Allowed To Transact With
Create Sales Invoice using customer created as above (e.g. Company A) : System will automatically show Inter Company Invoice option under Create after submission.
When you click on Inter Company Invoice option system will go to Purchase Invoice with all required details. From here you can create Purchase Invoice and Submit it.
Both Sales and Purchase Invoice documents are having inter document reference which you can see in Inter Company Invoice Reference field.
Here is also one question.
How to syncronyze costs of items for sale invoice and purchase invoice.
I.e. purchase price must be equal to sale price
And maybe there is a more simplified method of inter-company materials transfers, cause in case of 6 companies, which are the children of one head company and having 7 virtual customers and 7 virtual suppliers are not very useful, cause they can move stocks everyone with others.
I could not figure this out. I have one main company that mainly distributes to its own set of customers, and a few retail stores of my own that i supply to. Since everything is within one company, i transfer the goods to each ‘shop’ as a material transfer, which turns into a stock entry. Since i am using POS Awesome, each shop has its own source warehouse, and each shop has its own price list. All prices for all stores are entered at HQ, in a separate price list. My valuation rate, however, remains my actual valuation rate and not my Warehouse selling rate, unless i add charges to the stock entry. This true cost of the product is visible to me only in the stock entry doc, and as far as the shop employees are concerned, they just receive a stock entry printout, that only shows quantity sent from the warehouse. No prices. This has worked out better for me, as soon as the shops receive goods, they check off the quantities and can put the goods on the shelves, already priced. Since its all one company, i don’t have to worry about tax, as it is as simple as me moving the goods from one of the warehouses to the next.
i am facing same problem three companies operating in the group Company A is customer of company B and C because we can not made a single company customer of two in group setting so i made company A customer of B and Company B is customer of company C1( because of constraint in system i think so ) now the new problem arise as company B selling to Company A product that produce by Company B and the also Company C products to company A .so company B has more work to deliver its own product and then Company C products (Although company C deliver directly to company A 's different branches) But in system company B need warehouse same with same addresses as company A branches location .then Company B make Po’s to Company C with different warehouse addressess at branches of Company A .how can we do it simply please help