Steps to create Diesel Sale in ERPNext:

Sugar Mill > Diesel Sale

Step 1: Go to Diesel Sale

Sugar Mill Workspace

Step 2: Click on "Add Diesel Sale".

Diesel Sales

Step 3: Fill up all details

Diesel Sales Entry

  1. Season: This refers to the sugarcane season. Update this with the current season.

  2. Date: Please select date.

  3. Plant: From Branch doctype.

  4. Contract Id: From H and T contract gets transporter list if we check Transporter and Harvester list if we check Harvester.

  5. Customer Id: From H and T contract Doctype which matches the above contract.

  6. Total Diesel Sold (In Liter): From Child table-Diesel Calculation from H and T Contract.

  7. 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.

  8. 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.

  9. Total Diesel Sale Remaining (In Liter): From Diesel Calculation table from H and T contract.


    Child Table - Diesel Sale Item

    1. Item Code - From Branch Doctype

    2. Item Name - From above Item Code

    3. Quantity - From above Total Diesel Sale Remaining

    4. Rate - last document from Item price Doctype

    5. Amount - Quantity * Rate