This commit is contained in:
Frédéric FRANCE 2019-09-11 18:17:12 +02:00
parent d37dd4ed3c
commit 638362f373
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,4 @@
/*jshint esversion: 6 */
const testAuth = (z , bundle) => {
const url = bundle.authData.url+'/api/index.php/login';
// Normally you want to make a request to an endpoint that is either specifically designed to test auth, or one that

View File

@ -8,9 +8,15 @@ const createThirdparty = async (z, bundle) => {
body: JSON.stringify({
name: bundle.inputData.name,
name_alias: bundle.inputData.name_alias,
ref_ext: bundle.inputData.ref_ext,
ref_int: bundle.inputData.ref_int,
address: bundle.inputData.address,
zip: bundle.inputData.zip,
town: bundle.inputData.town,
country_code: bundle.inputData.country_code,
country_id: bundle.inputData.country_id,
country: bundle.inputData.country,
phone: bundle.inputData.phone,
email: bundle.inputData.email,
client: bundle.inputData.client,
fournisseur: bundle.inputData.fournisseur,
@ -80,4 +86,4 @@ module.exports = {
{key: 'code_fournisseur', label: 'Supplier code'}
]
}
};
};