@esolve/ng-esolve-connect 0.26.2 → 0.26.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/account/esolve-account.service.mjs +2 -2
- package/esm2020/lib/account/user-account/esolve-user-client-account-record.interface.mjs +1 -1
- package/esm2020/lib/account/user-account/esolve-user-client-account.model.mjs +3 -2
- package/esm2020/lib/category-tree/esolve-category-tree.service.mjs +7 -3
- package/fesm2015/esolve-ng-esolve-connect.mjs +9 -4
- package/fesm2015/esolve-ng-esolve-connect.mjs.map +1 -1
- package/fesm2020/esolve-ng-esolve-connect.mjs +9 -4
- package/fesm2020/esolve-ng-esolve-connect.mjs.map +1 -1
- package/lib/account/user-account/esolve-user-client-account-record.interface.d.ts +1 -0
- package/lib/account/user-account/esolve-user-client-account.model.d.ts +2 -1
- package/lib/category-tree/esolve-category-tree.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -916,9 +916,13 @@ class EsolveCategoryTreeService {
|
|
|
916
916
|
/**
|
|
917
917
|
* Retrieves the category tree from eSolve instance and coverts it to the correct format.
|
|
918
918
|
*/
|
|
919
|
-
getCategoryTree() {
|
|
919
|
+
getCategoryTree(identifier) {
|
|
920
|
+
let params = new HttpParams();
|
|
921
|
+
if (identifier) {
|
|
922
|
+
params = params.set('identifier', identifier);
|
|
923
|
+
}
|
|
920
924
|
return this.http
|
|
921
|
-
.get(`${this.config.api_url}/get-tree.php
|
|
925
|
+
.get(`${this.config.api_url}/get-tree.php`, { params })
|
|
922
926
|
.pipe(map((response) => {
|
|
923
927
|
if (response.records === undefined) {
|
|
924
928
|
throw response;
|
|
@@ -1877,7 +1881,7 @@ class EsolveUserAccountContact {
|
|
|
1877
1881
|
}
|
|
1878
1882
|
|
|
1879
1883
|
class EsolveUserClientAccount {
|
|
1880
|
-
constructor(account, branch_code, account_group, pricing_group, price_list, loyalty_classification_id, company_name, client_contact_person, client_firstname, client_surname, client_email, client_contact_number, client_fax_number, client_cellphone_number, client_id_number, address_description, street, suburb, city, province, country, postal_code, postal_address, delivery_address, latitude, longitude, vat_number, credit_limit, pending_invoice_balance, external_account_balance, ageing, balance_last_updated, default_sellprice, client_classification, override_stock_listing_identifiers, requires_transaction_approval, is_active) {
|
|
1884
|
+
constructor(account, branch_code, account_group, pricing_group, price_list, loyalty_classification_id, company_name, client_contact_person, client_firstname, client_surname, client_email, client_contact_number, client_fax_number, client_cellphone_number, client_id_number, address_description, street, suburb, city, province, country, postal_code, postal_address, delivery_address, latitude, longitude, vat_number, credit_limit, pending_invoice_balance, external_account_balance, ageing, balance_last_updated, default_sellprice, client_classification, override_stock_listing_identifiers, requires_transaction_approval, is_active, external_statement) {
|
|
1881
1885
|
this.account = account;
|
|
1882
1886
|
this.branch_code = branch_code;
|
|
1883
1887
|
this.account_group = account_group;
|
|
@@ -1915,6 +1919,7 @@ class EsolveUserClientAccount {
|
|
|
1915
1919
|
this.override_stock_listing_identifiers = override_stock_listing_identifiers;
|
|
1916
1920
|
this.requires_transaction_approval = requires_transaction_approval;
|
|
1917
1921
|
this.is_active = is_active;
|
|
1922
|
+
this.external_statement = external_statement;
|
|
1918
1923
|
}
|
|
1919
1924
|
}
|
|
1920
1925
|
|
|
@@ -2963,7 +2968,7 @@ class EsolveAccountService {
|
|
|
2963
2968
|
user_account.business_details = new EsolveUserAccountBusiness(record.busname, record.vatnum, record.busdescript, record.business_type);
|
|
2964
2969
|
if (record.client_details != undefined) {
|
|
2965
2970
|
if (record.client_details?.account !== '') {
|
|
2966
|
-
user_account.client_details = new EsolveUserClientAccount(record.client_details.account, record.client_details.branch_code, record.client_details.account_group, record.client_details.pricing_group, +record.client_details.price_list, +record.client_details.loyalty_classification_id, record.client_details.company_name, record.client_details.client_contact_person, record.client_details.client_firstname, record.client_details.client_surname, record.client_details.client_email, record.client_details.client_contact_number, record.client_details.client_fax_number, record.client_details.client_cellphone_number, record.client_details.client_id_number, record.client_details.address_description, record.client_details.street, record.client_details.suburb, record.client_details.city, record.client_details.province, record.client_details.country, record.client_details.postal_code, record.client_details.postal_address, record.client_details.delivery_address, +record.client_details.latitude, +record.client_details.longitude, record.client_details.vat_number, +record.client_details.credit_limit, +record.client_details.pending_invoice_balance, +record.client_details.external_account_balance, record.client_details.ageing, record.client_details.balance_last_updated, +record.client_details.default_sellprice, record.client_details.client_classification, record.client_details.override_stock_listing_identifiers, record.client_details.requires_transaction_approval, record.client_details.is_active);
|
|
2971
|
+
user_account.client_details = new EsolveUserClientAccount(record.client_details.account, record.client_details.branch_code, record.client_details.account_group, record.client_details.pricing_group, +record.client_details.price_list, +record.client_details.loyalty_classification_id, record.client_details.company_name, record.client_details.client_contact_person, record.client_details.client_firstname, record.client_details.client_surname, record.client_details.client_email, record.client_details.client_contact_number, record.client_details.client_fax_number, record.client_details.client_cellphone_number, record.client_details.client_id_number, record.client_details.address_description, record.client_details.street, record.client_details.suburb, record.client_details.city, record.client_details.province, record.client_details.country, record.client_details.postal_code, record.client_details.postal_address, record.client_details.delivery_address, +record.client_details.latitude, +record.client_details.longitude, record.client_details.vat_number, +record.client_details.credit_limit, +record.client_details.pending_invoice_balance, +record.client_details.external_account_balance, record.client_details.ageing, record.client_details.balance_last_updated, +record.client_details.default_sellprice, record.client_details.client_classification, record.client_details.override_stock_listing_identifiers, record.client_details.requires_transaction_approval, record.client_details.is_active, record.client_details.external_statement);
|
|
2967
2972
|
}
|
|
2968
2973
|
}
|
|
2969
2974
|
return user_account;
|