Diesel Sale
Steps to create Diesel Sale in ERPNext:
Sugar Mill > Diesel Sale
Step 1: Go to Diesel Sale
Step 2: Click on "Add Diesel Sale".
Step 3: Fill up all details
Season: This refers to the sugarcane season. Update this with the current season.
Date: Please select date.
Plant: From Branch doctype.
Contract Id: From H and T contract gets transporter list if we check Transporter and Harvester list if we check Harvester.
Customer Id: From H and T contract Doctype which matches the above contract.
Total Diesel Sold (In Liter): From Child table-Diesel Calculation from H and T Contract.
Total Distance (In Km):
Total distance = Remaining / Diesel sale allocation per km
Remaining - from diesel calculation from h and t Contract doctype
diesel sale allocation per km - from Branch doctype.
Total Diesel Allocated (In Liter):
Total Diesel Allocated = Total Distance * Diesel sale allocation per km
Total Distance - from calculated above,
Diesel sale allocation per km - from branch doctype.
Total Diesel Sale Remaining (In Liter): From Diesel Calculation table from H and T contract.
Child Table - Diesel Sale Item
Item Code - From Branch Doctype
Item Name - From above Item Code
Quantity - From above Total Diesel Sale Remaining
Rate - last document from Item price Doctype
Amount - Quantity * Rate