Can I create patch for recurring sales order? Any suggestion?

80 views
Skip to first unread message

Sambhaji Kolate

unread,
Sep 9, 2014, 2:07:33 AM9/9/14
to erpnext-dev...@googlegroups.com
Hi guys,

 I am creating recurring sales order and recurring sales invoice. Can I create patch for this and apply this into other system?

Thanks,
Sambhaji

Sambhaji Kolate

unread,
Sep 9, 2014, 2:12:51 AM9/9/14
to erpnext-dev...@googlegroups.com
sorry, 
Can I create patch for recurring purchase order? Any suggestion?

--
Note:
 
If you are posting an issue,
 
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
You received this message because you are subscribed to a topic in the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/erpnext-developer-forum/0z1VknZc2Dc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/a67d7cd6-db14-482f-b384-d13d7d738dee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nabin Hait

unread,
Sep 9, 2014, 2:30:05 AM9/9/14
to erpnext-dev...@googlegroups.com
Can you give a brief about the purpose / use-case of recurring Purchase Order? We can add the option in the product too.

You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CADH2dyh8u7ouVT6sf5nOTA09jnpdYZd18rBm6etvmjxYq_7vYA%40mail.gmail.com.

Sambhaji Kolate

unread,
Sep 9, 2014, 2:43:04 AM9/9/14
to erpnext-dev...@googlegroups.com
Hi Nabin,

Recurring Purchase Orders/Invoices would be typically used to set-up recurring bills for vendors (like Utilities - Water, Electricity, Warehouse Rent, Location Rent etc) which need to be paid monthly/quarterly/yearly etc.

Please correct me if I'm wrong but this feature is currently not available in ERPNext but a Recurring Sales Order/Invoice is available.

Would be really great if we could add this to the application.

Regards
Sambhaji 

Nabin Hait

unread,
Sep 9, 2014, 2:45:37 AM9/9/14
to erpnext-dev...@googlegroups.com
Thanks. Please add this in github issue list.

Rushabh Mehta

unread,
Sep 9, 2014, 2:48:35 AM9/9/14
to erpnext-dev...@googlegroups.com
Check this:


You will have to add the relevant fields to Purchase Order and update the recurring generator to include Purchase Orders


Sambhaji Kolate

unread,
Sep 9, 2014, 3:13:54 AM9/9/14
to erpnext-dev...@googlegroups.com
Thanks for giving link, I will start working and send pull request. 


Sambhaji Kolate

unread,
Sep 9, 2014, 10:02:09 AM9/9/14
to erpnext-dev...@googlegroups.com
Hi all,

I have made couple of code changes for recurring PO/PI referring the pull request below.

I want to send a new pull request for review but had a query - how should I include my UI/Form changes in this pull request? My changes are present in my local box but I could not see any UI specific files getting changed (*.json) which I can commit back to my fork.

Regards
Sambhaji

Rushabh Mehta

unread,
Sep 9, 2014, 10:28:12 AM9/9/14
to erpnext-dev...@googlegroups.com
You should see changes in your json files. Did you set developer_mode=1 in your site_config.json

@rushabh_mehta
via mobile

Sambhaji Kolate

unread,
Sep 9, 2014, 11:53:25 AM9/9/14
to erpnext-dev...@googlegroups.com
I set developer_mode=1 in your site_config.json. I can also customize form but I didn't see any changes in json files

Rushabh Mehta

unread,
Sep 10, 2014, 1:17:01 AM9/10/14
to erpnext-dev...@googlegroups.com
On 09-Sep-2014, at 9:23 pm, Sambhaji Kolate <kolate....@gmail.com> wrote:

I set developer_mode=1 in your site_config.json. I can also customize form but I didn't see any changes in json files

Change in DocType - don't use Customize Form - Customize Form is for local customization - not product.

best,
Rushabh

Sambhaji Kolate

unread,
Sep 10, 2014, 3:56:18 AM9/10/14
to erpnext-dev...@googlegroups.com
Hi Rushabh,

Thanks for the response. I was able to make these changes locally and test.

I've sent a pull request - https://github.com/frappe/erpnext/pull/2171. Could you please review?

Also, I've not created a GitHub issue for this, will that be required?

Regards
Sambhaji

Rushabh Mehta

unread,
Sep 10, 2014, 4:55:45 AM9/10/14
to erpnext-dev...@googlegroups.com
Sambhaji,

Thanks! Your tests are failing - do fix them. @anand will review your changes. You will also have to write test cases for PO / PI to test if recurring works fine.


best,
Rushabh



@rushabh_mehta

Sambhaji Kolate

unread,
Sep 15, 2014, 5:13:09 AM9/15/14
to erpnext-dev...@googlegroups.com
I have fixed the changes for recurring PO/PI along with test cases. Please review changes.
If there is any improvement or changes then let me know.

https://github.com/frappe/erpnext/pull/2186/files


Thanks in advance

Sambhaji
Systematrix Solutions




JorgeH

unread,
Sep 15, 2014, 10:53:52 AM9/15/14
to erpnext-dev...@googlegroups.com
Hello Everyone


I am looking at the code for the first time..

I have  a question, please correct me if I am wrong.

It seems to me that you are using javascript for business logic as well as for the presentation logic.


Wouldn't it be better (or at least neater) to use js strictly for user interface related logic and python for business logic?


Thanks

Rushabh Mehta

unread,
Sep 16, 2014, 1:30:54 AM9/16/14
to erpnext-dev...@googlegroups.com
On 15-Sep-2014, at 8:23 pm, JorgeH <jorg...@gmail.com> wrote:

Hello Everyone


I am looking at the code for the first time..

I have  a question, please correct me if I am wrong.

It seems to me that you are using javascript for business logic as well as for the presentation logic.


Wouldn't it be better (or at least neater) to use js strictly for user interface related logic and python for business logic?


In most cases, the business login is on both server-side and client side. JS is to ensure instant feedback for the user.




Thanks




On Monday, September 15, 2014 4:13:09 AM UTC-5, Sambhaji Kolate wrote:
I have fixed the changes for recurring PO/PI along with test cases. Please review changes.
If there is any improvement or changes then let me know.

https://github.com/frappe/erpnext/pull/2186/files


Thanks in advance

Sambhaji
Systematrix Solutions





--
Note:
 
If you are posting an issue,
 
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages