I have duplicated a default doctype, but the code did not carry over. It does not calculate the totals or autofill any information. I would like to have a custom doctype with the same functionality as a default doctype. Is this possible and if so how would I go about doing this?
I know you can add custom scripts, but that requires a large amount of coding to get the same functionality as the default doctype.
Hi Thanks for your reply.
Basically my need is proforma invoice as there is no doctype called proforma invoice i am duplicating quotation. When i look for proforma in the frappe forum i saw that achieve this using copying the quotation doctype.
For this you do not need to copy. Basically, Quotation doctype can be used as a Proforma Invoice, Just Change the Print Title from Quotation to Proforma Invoice in Print Format.
This still can be achieved. Just Add one Custom Field in Quotation Doctype as follows:
Field Name: Type
Field Type: Select
Options: Quotation
Proforma Invoice
With this you can generate reports based on type.
You can give the first Quotation and later while converting to Proforma Invoice, you can duplicate Quotation and change type field to Proforma Invoice and save and send to the Customer.