This is the error I get when I pasted the following code in the Client
Side Javascript:
cur_frm.add_fetch(âcustomerâ, âhss_discountâ, âhss_discountâ);
cur_frm.add_fetch(âcustomerâ, âcarbide_discountâ, âcarbide_discountâ);
Error I get if the fields are filled, if the fields are empty then
there is no error and code goes well,
Handler Exception:{âmessageâ: âOkâ, âexecâ:", âfetch_valuesâ:
[Decimal(â35.000000â),Decimal(â40.000000â)]}
What my analysis of the error message shows that it is fetching the
values ok from the customer but there seems to be some problem with
the pasting of the data.
Please note that both the fields HSS Discount and Carbide Discount
have same names in both the forms as hss_discount and carbide_discount
respectively.
On Oct 14, 7:18 pm, Rushabh Mehta rm...@gmail.com wrote:
Aditya,
At the moment, the way you can add them is as follows.
- Open the DocType of Quotation,
- In the Client Script add the following line if your customer field
is called âcustomerâ, the field in the customer master is
âtin_numberâ and the field in quotation is also âtin_numberâ
cur_frm.add_fetch(âcustomerâ, âtin_numberâ, âtin_numberâ)
the format is:
cur_frm.add_fetch(fieldname, source_fieldname in the master,
target_fieldname)
If you want to do things more complicated, you can open a service
request by mailing to su...@iwebnotes.com and we can customize it
for you. We will charge Rs 500 / $10 per half hour of customization!
On Oct 14, 2010, at 7:08 PM, Aditya Duggal wrote:
Thanks a lot for the quick replies, but there are some things which
still remain unanswered like:
- If I create a custom field in the customers then is there a way to
show that field in the quotes etc that query is still unanswered as to
how we could fetch it in those fields by changing the doc type.
It would be greatly appreciated if you could let us know how to do
that
On Oct 14, 5:14 pm, Nabin Hait na...@iwebnotes.com wrote:
Hi,
Credit Days and Credit Limit fields are in account master of
customer.
Regards,
Nabin Hait
Web Notes Technologies
On Thu, Oct 14, 2010 at 5:27 PM, Nabin Hait na...@iwebnotes.com
wrote:
Hi,
Please see my comments below in red.
You do not require any of the fields. Those facilities are
already there in
the system.
On Thu, Oct 14, 2010 at 4:58 PM, Aditya Duggal ad...@rigpl.com
wrote:
Hi,
I have added certain custom fields to the Customers like:
- TIN Number (Data field) - TIN Number field is not required.
You can
put TIN No in the âCustomer Detailsâ field. We will fetch
âCustomer Detailsâ
field in all sales document.
- Discount (Float) (Basically we are tracking discounts by
customer
so this would help in knowing what is the discount being offered to
the customer and then we could add the discount manually in the
item
selection) - It can be customized for you.
- Credit Days (Int) (This would be shown in Invoices and would be
added to the bill date to compute the payment due date for that
particular invoice. - The facility is already there. You can
enter Credit
Days in Customer master (Customerwise) or Company master
(Global). Due date
will be automatically calculated based on credit days.
- Credit Limit (Currency) (This field would actually freeze
making of
additional invoices if the Credit Limit is exceeded. - You can
enter
Credit Limit in Customer master (Customerwise) or Company master
(Global).
It will block if outstanding amount exceeds credit limit in
Sales Invoice.
I would like to show this field on Quotation, Sales Order etc
when a
particular customer is selected.
Is it possible to include some of these fields to the print
formats as
well. - You can show any fields in the print format.
Regards,
Nabin Hait
Web Notes Technologies
erpnext
Worldâs most affordable ERP - Rs 299/user/month
https://www.erpnext.com