Hello everyone,
First of all, good job on frappe/erpnext, we've only started to use it recently and already love it!
We do a lot of importation and we are trying to use the Landed Cost Voucher to keep track of additional costs like customs fee, shipping etc...
I tried to edit the landed cost document and to add a link field to Purchases taxes and charges Master using the Purchase Order DocType as a reference.
From what I saw on Purchase Order, after selecting the tax master in the list, two API calls are made:
- the first one is made with { 'options': 'Purchase+Taxes+and+Charges+Master' ; cmd:'frappe.widgets.form.utils.validate_link' } and returns 'OK'
- the second one is made with { ... ; cmd:'erpnext.controllers.accounts_controller.get_taxes_and_charges'; ...} and returns a json containing all taxes and parameters.
And I'm guessing that some callback in js fills in the forms (if someone could tell me where does that happens, it would save me some time :) )
Unfortunately, after adding the link field to the Landed Cost Voucher DocType and selecting a tax master, the last API call with details about the various taxes never happens.
Could someone help me with this?
Or in a more general way, could someone explain how to
- add a document selector in another
- get a json with relevant properties upon selection
- edit the callback function to handle display/processing of the returned data
And a bonus question:
is there a way to force frappe/erpnext to use non-minified javascript files?
Cheers,
BENNANI Driss