@globisnv/cypress-core 0.0.1
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/README.md +255 -0
- package/bin/create-customer-repo.mjs +89 -0
- package/biome.json +49 -0
- package/dist/apiMethods/IGS_request.d.ts +98 -0
- package/dist/apiMethods/IGS_request.js +161 -0
- package/dist/apiMethods/IGS_response.d.ts +47 -0
- package/dist/apiMethods/IGS_response.js +1 -0
- package/dist/blueprints/GLO_addressPopup.d.ts +45 -0
- package/dist/blueprints/GLO_addressPopup.js +96 -0
- package/dist/blueprints/GLO_article.d.ts +45 -0
- package/dist/blueprints/GLO_article.js +110 -0
- package/dist/blueprints/GLO_articleLot.d.ts +12 -0
- package/dist/blueprints/GLO_articleLot.js +23 -0
- package/dist/blueprints/GLO_articleVersion.d.ts +4 -0
- package/dist/blueprints/GLO_articleVersion.js +4 -0
- package/dist/blueprints/GLO_attachmentPopup.d.ts +9 -0
- package/dist/blueprints/GLO_attachmentPopup.js +10 -0
- package/dist/blueprints/GLO_bankAccount.d.ts +7 -0
- package/dist/blueprints/GLO_bankAccount.js +7 -0
- package/dist/blueprints/GLO_billingProcess.d.ts +4 -0
- package/dist/blueprints/GLO_billingProcess.js +4 -0
- package/dist/blueprints/GLO_billingProposal.d.ts +9 -0
- package/dist/blueprints/GLO_billingProposal.js +9 -0
- package/dist/blueprints/GLO_cancel.d.ts +7 -0
- package/dist/blueprints/GLO_cancel.js +7 -0
- package/dist/blueprints/GLO_commandlist.d.ts +10 -0
- package/dist/blueprints/GLO_commandlist.js +10 -0
- package/dist/blueprints/GLO_complaint.d.ts +27 -0
- package/dist/blueprints/GLO_complaint.js +51 -0
- package/dist/blueprints/GLO_composition.d.ts +14 -0
- package/dist/blueprints/GLO_composition.js +20 -0
- package/dist/blueprints/GLO_consignment.d.ts +61 -0
- package/dist/blueprints/GLO_consignment.js +104 -0
- package/dist/blueprints/GLO_consignmentContainerGroup.d.ts +6 -0
- package/dist/blueprints/GLO_consignmentContainerGroup.js +6 -0
- package/dist/blueprints/GLO_consignmentGoods.d.ts +40 -0
- package/dist/blueprints/GLO_consignmentGoods.js +62 -0
- package/dist/blueprints/GLO_consignmentHandling.d.ts +4 -0
- package/dist/blueprints/GLO_consignmentHandling.js +4 -0
- package/dist/blueprints/GLO_consignmentOrder.d.ts +31 -0
- package/dist/blueprints/GLO_consignmentOrder.js +37 -0
- package/dist/blueprints/GLO_consignmentPart.d.ts +13 -0
- package/dist/blueprints/GLO_consignmentPart.js +13 -0
- package/dist/blueprints/GLO_consignmentParts.d.ts +5 -0
- package/dist/blueprints/GLO_consignmentParts.js +12 -0
- package/dist/blueprints/GLO_consignmentPrice.d.ts +11 -0
- package/dist/blueprints/GLO_consignmentPrice.js +19 -0
- package/dist/blueprints/GLO_consignmentSupplier.d.ts +6 -0
- package/dist/blueprints/GLO_consignmentSupplier.js +11 -0
- package/dist/blueprints/GLO_contacts.d.ts +10 -0
- package/dist/blueprints/GLO_contacts.js +14 -0
- package/dist/blueprints/GLO_container.d.ts +6 -0
- package/dist/blueprints/GLO_container.js +4 -0
- package/dist/blueprints/GLO_contract.d.ts +22 -0
- package/dist/blueprints/GLO_contract.js +30 -0
- package/dist/blueprints/GLO_contractArticle.d.ts +17 -0
- package/dist/blueprints/GLO_contractArticle.js +35 -0
- package/dist/blueprints/GLO_contractArticleCost.d.ts +5 -0
- package/dist/blueprints/GLO_contractArticleCost.js +8 -0
- package/dist/blueprints/GLO_countryVatZone.d.ts +8 -0
- package/dist/blueprints/GLO_countryVatZone.js +9 -0
- package/dist/blueprints/GLO_currencyDeviation.d.ts +14 -0
- package/dist/blueprints/GLO_currencyDeviation.js +15 -0
- package/dist/blueprints/GLO_customerArticle.d.ts +12 -0
- package/dist/blueprints/GLO_customerArticle.js +15 -0
- package/dist/blueprints/GLO_customsFlow.d.ts +8 -0
- package/dist/blueprints/GLO_customsFlow.js +19 -0
- package/dist/blueprints/GLO_customsFlowDefinition.d.ts +15 -0
- package/dist/blueprints/GLO_customsFlowDefinition.js +14 -0
- package/dist/blueprints/GLO_customsUnion.d.ts +4 -0
- package/dist/blueprints/GLO_customsUnion.js +4 -0
- package/dist/blueprints/GLO_deliveryReceipt.d.ts +10 -0
- package/dist/blueprints/GLO_deliveryReceipt.js +22 -0
- package/dist/blueprints/GLO_departureSchedule.d.ts +27 -0
- package/dist/blueprints/GLO_departureSchedule.js +57 -0
- package/dist/blueprints/GLO_departureScheduleTimes.d.ts +49 -0
- package/dist/blueprints/GLO_departureScheduleTimes.js +61 -0
- package/dist/blueprints/GLO_document.d.ts +7 -0
- package/dist/blueprints/GLO_document.js +7 -0
- package/dist/blueprints/GLO_documentAttachment.d.ts +4 -0
- package/dist/blueprints/GLO_documentAttachment.js +4 -0
- package/dist/blueprints/GLO_documentDefinitionEntity.d.ts +5 -0
- package/dist/blueprints/GLO_documentDefinitionEntity.js +5 -0
- package/dist/blueprints/GLO_documentGroup.d.ts +4 -0
- package/dist/blueprints/GLO_documentGroup.js +4 -0
- package/dist/blueprints/GLO_documentType.d.ts +12 -0
- package/dist/blueprints/GLO_documentType.js +11 -0
- package/dist/blueprints/GLO_enterCountry.d.ts +21 -0
- package/dist/blueprints/GLO_enterCountry.js +47 -0
- package/dist/blueprints/GLO_enterDiscount.d.ts +8 -0
- package/dist/blueprints/GLO_enterDiscount.js +9 -0
- package/dist/blueprints/GLO_equipment.d.ts +34 -0
- package/dist/blueprints/GLO_equipment.js +55 -0
- package/dist/blueprints/GLO_equipmentCategory.d.ts +15 -0
- package/dist/blueprints/GLO_equipmentCategory.js +14 -0
- package/dist/blueprints/GLO_equipmentEntity.d.ts +5 -0
- package/dist/blueprints/GLO_equipmentEntity.js +5 -0
- package/dist/blueprints/GLO_equipmentServiceCategory.d.ts +13 -0
- package/dist/blueprints/GLO_equipmentServiceCategory.js +13 -0
- package/dist/blueprints/GLO_equipmentType.d.ts +21 -0
- package/dist/blueprints/GLO_equipmentType.js +20 -0
- package/dist/blueprints/GLO_equipmentTypeServiceCategory.d.ts +13 -0
- package/dist/blueprints/GLO_equipmentTypeServiceCategory.js +12 -0
- package/dist/blueprints/GLO_fieldInputValidation.d.ts +46 -0
- package/dist/blueprints/GLO_fieldInputValidation.js +73 -0
- package/dist/blueprints/GLO_formula.d.ts +9 -0
- package/dist/blueprints/GLO_formula.js +9 -0
- package/dist/blueprints/GLO_gang.d.ts +12 -0
- package/dist/blueprints/GLO_gang.js +12 -0
- package/dist/blueprints/GLO_holiday.d.ts +7 -0
- package/dist/blueprints/GLO_holiday.js +8 -0
- package/dist/blueprints/GLO_journey.d.ts +18 -0
- package/dist/blueprints/GLO_journey.js +24 -0
- package/dist/blueprints/GLO_journeyStop.d.ts +32 -0
- package/dist/blueprints/GLO_journeyStop.js +44 -0
- package/dist/blueprints/GLO_layout.d.ts +6 -0
- package/dist/blueprints/GLO_layout.js +6 -0
- package/dist/blueprints/GLO_logging.d.ts +9 -0
- package/dist/blueprints/GLO_logging.js +12 -0
- package/dist/blueprints/GLO_logisticConnection.d.ts +10 -0
- package/dist/blueprints/GLO_logisticConnection.js +11 -0
- package/dist/blueprints/GLO_logisticConnectionType.d.ts +5 -0
- package/dist/blueprints/GLO_logisticConnectionType.js +5 -0
- package/dist/blueprints/GLO_logisticContract.d.ts +28 -0
- package/dist/blueprints/GLO_logisticContract.js +80 -0
- package/dist/blueprints/GLO_logisticContractDetail.d.ts +42 -0
- package/dist/blueprints/GLO_logisticContractDetail.js +122 -0
- package/dist/blueprints/GLO_logisticContractDetailHandling.d.ts +11 -0
- package/dist/blueprints/GLO_logisticContractDetailHandling.js +14 -0
- package/dist/blueprints/GLO_logisticContractDetailItem.d.ts +5 -0
- package/dist/blueprints/GLO_logisticContractDetailItem.js +8 -0
- package/dist/blueprints/GLO_logisticContractItem.d.ts +14 -0
- package/dist/blueprints/GLO_logisticContractItem.js +40 -0
- package/dist/blueprints/GLO_logisticContractItemActivity.d.ts +4 -0
- package/dist/blueprints/GLO_logisticContractItemActivity.js +4 -0
- package/dist/blueprints/GLO_logisticContractItemSurcharge.d.ts +7 -0
- package/dist/blueprints/GLO_logisticContractItemSurcharge.js +7 -0
- package/dist/blueprints/GLO_logisticContractItemSurchargeItem.d.ts +4 -0
- package/dist/blueprints/GLO_logisticContractItemSurchargeItem.js +4 -0
- package/dist/blueprints/GLO_logisticContractReference.d.ts +4 -0
- package/dist/blueprints/GLO_logisticContractReference.js +4 -0
- package/dist/blueprints/GLO_logisticContractVolumeConstraint.d.ts +9 -0
- package/dist/blueprints/GLO_logisticContractVolumeConstraint.js +8 -0
- package/dist/blueprints/GLO_logisticLocation.d.ts +7 -0
- package/dist/blueprints/GLO_logisticLocation.js +7 -0
- package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.d.ts +19 -0
- package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.js +30 -0
- package/dist/blueprints/GLO_logisticPurchaseOrder.d.ts +4 -0
- package/dist/blueprints/GLO_logisticPurchaseOrder.js +4 -0
- package/dist/blueprints/GLO_logistic_waiting_hours.d.ts +6 -0
- package/dist/blueprints/GLO_logistic_waiting_hours.js +6 -0
- package/dist/blueprints/GLO_operationalDefault.d.ts +23 -0
- package/dist/blueprints/GLO_operationalDefault.js +25 -0
- package/dist/blueprints/GLO_outputDetailMail.d.ts +14 -0
- package/dist/blueprints/GLO_outputDetailMail.js +13 -0
- package/dist/blueprints/GLO_postalcode.d.ts +6 -0
- package/dist/blueprints/GLO_postalcode.js +6 -0
- package/dist/blueprints/GLO_priceDependency.d.ts +5 -0
- package/dist/blueprints/GLO_priceDependency.js +4 -0
- package/dist/blueprints/GLO_priceEntry.d.ts +17 -0
- package/dist/blueprints/GLO_priceEntry.js +17 -0
- package/dist/blueprints/GLO_priceRequest.d.ts +8 -0
- package/dist/blueprints/GLO_priceRequest.js +20 -0
- package/dist/blueprints/GLO_priceRequestLine.d.ts +12 -0
- package/dist/blueprints/GLO_priceRequestLine.js +17 -0
- package/dist/blueprints/GLO_principal.d.ts +9 -0
- package/dist/blueprints/GLO_principal.js +13 -0
- package/dist/blueprints/GLO_printPopup.d.ts +10 -0
- package/dist/blueprints/GLO_printPopup.js +62 -0
- package/dist/blueprints/GLO_production.d.ts +9 -0
- package/dist/blueprints/GLO_production.js +9 -0
- package/dist/blueprints/GLO_productionLineMaterial.d.ts +8 -0
- package/dist/blueprints/GLO_productionLineMaterial.js +13 -0
- package/dist/blueprints/GLO_productionMaterial.d.ts +5 -0
- package/dist/blueprints/GLO_productionMaterial.js +5 -0
- package/dist/blueprints/GLO_purchaseCosts.d.ts +6 -0
- package/dist/blueprints/GLO_purchaseCosts.js +9 -0
- package/dist/blueprints/GLO_purchaseInvoice.d.ts +12 -0
- package/dist/blueprints/GLO_purchaseInvoice.js +25 -0
- package/dist/blueprints/GLO_purchaseInvoiceLine.d.ts +8 -0
- package/dist/blueprints/GLO_purchaseInvoiceLine.js +13 -0
- package/dist/blueprints/GLO_purchaseOrder.d.ts +14 -0
- package/dist/blueprints/GLO_purchaseOrder.js +25 -0
- package/dist/blueprints/GLO_purchaseOrderLine.d.ts +10 -0
- package/dist/blueprints/GLO_purchaseOrderLine.js +24 -0
- package/dist/blueprints/GLO_purchasePrices.d.ts +10 -0
- package/dist/blueprints/GLO_purchasePrices.js +10 -0
- package/dist/blueprints/GLO_quotation.d.ts +12 -0
- package/dist/blueprints/GLO_quotation.js +32 -0
- package/dist/blueprints/GLO_quotationLine.d.ts +12 -0
- package/dist/blueprints/GLO_quotationLine.js +28 -0
- package/dist/blueprints/GLO_receipt.d.ts +13 -0
- package/dist/blueprints/GLO_receipt.js +17 -0
- package/dist/blueprints/GLO_receiptFromTempReceipt.d.ts +8 -0
- package/dist/blueprints/GLO_receiptFromTempReceipt.js +8 -0
- package/dist/blueprints/GLO_receiptLine.d.ts +22 -0
- package/dist/blueprints/GLO_receiptLine.js +28 -0
- package/dist/blueprints/GLO_relationAddress.d.ts +26 -0
- package/dist/blueprints/GLO_relationAddress.js +58 -0
- package/dist/blueprints/GLO_relationBankAccount.d.ts +9 -0
- package/dist/blueprints/GLO_relationBankAccount.js +9 -0
- package/dist/blueprints/GLO_relationContact.d.ts +23 -0
- package/dist/blueprints/GLO_relationContact.js +45 -0
- package/dist/blueprints/GLO_relationGroupType.d.ts +7 -0
- package/dist/blueprints/GLO_relationGroupType.js +6 -0
- package/dist/blueprints/GLO_relations.d.ts +67 -0
- package/dist/blueprints/GLO_relations.js +186 -0
- package/dist/blueprints/GLO_relationtype.d.ts +15 -0
- package/dist/blueprints/GLO_relationtype.js +31 -0
- package/dist/blueprints/GLO_remarkType.d.ts +10 -0
- package/dist/blueprints/GLO_remarkType.js +9 -0
- package/dist/blueprints/GLO_remarkTypeDefaultValue.d.ts +4 -0
- package/dist/blueprints/GLO_remarkTypeDefaultValue.js +14 -0
- package/dist/blueprints/GLO_remarkTypeEntityType.d.ts +10 -0
- package/dist/blueprints/GLO_remarkTypeEntityType.js +9 -0
- package/dist/blueprints/GLO_representative.d.ts +7 -0
- package/dist/blueprints/GLO_representative.js +6 -0
- package/dist/blueprints/GLO_salesInvoice.d.ts +9 -0
- package/dist/blueprints/GLO_salesInvoice.js +15 -0
- package/dist/blueprints/GLO_salesInvoiceLine.d.ts +9 -0
- package/dist/blueprints/GLO_salesInvoiceLine.js +13 -0
- package/dist/blueprints/GLO_salesOrder.d.ts +13 -0
- package/dist/blueprints/GLO_salesOrder.js +25 -0
- package/dist/blueprints/GLO_salesOrderLine.d.ts +13 -0
- package/dist/blueprints/GLO_salesOrderLine.js +34 -0
- package/dist/blueprints/GLO_stockCorrection.d.ts +14 -0
- package/dist/blueprints/GLO_stockCorrection.js +24 -0
- package/dist/blueprints/GLO_stopSchedule.d.ts +4 -0
- package/dist/blueprints/GLO_stopSchedule.js +4 -0
- package/dist/blueprints/GLO_supplierArticle.d.ts +8 -0
- package/dist/blueprints/GLO_supplierArticle.js +8 -0
- package/dist/blueprints/GLO_tclSetting.d.ts +6 -0
- package/dist/blueprints/GLO_tclSetting.js +6 -0
- package/dist/blueprints/GLO_todo.d.ts +10 -0
- package/dist/blueprints/GLO_todo.js +21 -0
- package/dist/blueprints/GLO_todoSchedule.d.ts +23 -0
- package/dist/blueprints/GLO_todoSchedule.js +79 -0
- package/dist/blueprints/GLO_tractionDistance.d.ts +6 -0
- package/dist/blueprints/GLO_tractionDistance.js +6 -0
- package/dist/blueprints/GLO_transportOrder.d.ts +4 -0
- package/dist/blueprints/GLO_transportOrder.js +4 -0
- package/dist/blueprints/GLO_transportPrice.d.ts +18 -0
- package/dist/blueprints/GLO_transportPrice.js +34 -0
- package/dist/blueprints/GLO_transportRequirement.d.ts +18 -0
- package/dist/blueprints/GLO_transportRequirement.js +32 -0
- package/dist/blueprints/GLO_transportRequirementContainer.d.ts +8 -0
- package/dist/blueprints/GLO_transportRequirementContainer.js +8 -0
- package/dist/blueprints/GLO_transportRequirementGoods.d.ts +33 -0
- package/dist/blueprints/GLO_transportRequirementGoods.js +51 -0
- package/dist/blueprints/GLO_transportScenarioExecutionLeg.d.ts +6 -0
- package/dist/blueprints/GLO_transportScenarioExecutionLeg.js +6 -0
- package/dist/blueprints/GLO_transportStock.d.ts +4 -0
- package/dist/blueprints/GLO_transportStock.js +4 -0
- package/dist/blueprints/GLO_visit.d.ts +9 -0
- package/dist/blueprints/GLO_visit.js +10 -0
- package/dist/blueprints/GLO_warehouseMove.d.ts +9 -0
- package/dist/blueprints/GLO_warehouseMove.js +9 -0
- package/dist/blueprints/GLO_warehouseOrderSubline.d.ts +6 -0
- package/dist/blueprints/GLO_warehouseOrderSubline.js +11 -0
- package/dist/blueprints/GLO_workflowLoggingTable.d.ts +20 -0
- package/dist/blueprints/GLO_workflowLoggingTable.js +20 -0
- package/dist/blueprints/GLO_workflowVerification.d.ts +10 -0
- package/dist/blueprints/GLO_workflowVerification.js +19 -0
- package/dist/blueprints/GLO_zone.d.ts +9 -0
- package/dist/blueprints/GLO_zone.js +9 -0
- package/dist/blueprints/GLO_zone_postalcode.d.ts +12 -0
- package/dist/blueprints/GLO_zone_postalcode.js +10 -0
- package/dist/blueprints/GLO_zone_type.d.ts +8 -0
- package/dist/blueprints/GLO_zone_type.js +7 -0
- package/dist/blueprints/GLT_goods.d.ts +2 -0
- package/dist/blueprints/GLT_goods.js +12 -0
- package/dist/commands/FOB_commands.d.ts +124 -0
- package/dist/commands/FOB_commands.js +211 -0
- package/dist/commands/GLJ_commands.d.ts +28 -0
- package/dist/commands/GLJ_commands.js +40 -0
- package/dist/commands/GLO_commands.d.ts +685 -0
- package/dist/commands/GLO_commands.js +2315 -0
- package/dist/commands/GLS_commands.d.ts +63 -0
- package/dist/commands/GLS_commands.js +103 -0
- package/dist/commands/GLT_commands.d.ts +78 -0
- package/dist/commands/GLT_commands.js +148 -0
- package/dist/commands/POR_commands.d.ts +85 -0
- package/dist/commands/POR_commands.js +122 -0
- package/dist/config.d.ts +9 -0
- package/dist/config.js +115 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +15 -0
- package/dist/plugins/prometheusWriter.d.ts +15 -0
- package/dist/plugins/prometheusWriter.js +111 -0
- package/dist/register.d.ts +8 -0
- package/dist/register.js +23 -0
- package/dist/tsHelper.d.ts +161 -0
- package/dist/tsHelper.js +294 -0
- package/dist/types.d.ts +363 -0
- package/dist/types.js +4 -0
- package/dist/websocketDetector.d.ts +71 -0
- package/dist/websocketDetector.js +1593 -0
- package/package.json +58 -0
- package/scripts/check-unnecessary-waiting.mjs +119 -0
- package/template/CODEOWNERS +20 -0
- package/template/biome.json +7 -0
- package/template/cypress/e2e/__CUSTOMER__/template.cy.ts.example +18 -0
- package/template/cypress/support/e2e.ts +21 -0
- package/template/cypress/support/record.mjs +46 -0
- package/template/cypress.config.ts +3 -0
- package/template/cypress.env.json.example +24 -0
- package/template/package.json +20 -0
- package/template/tsconfig.json +11 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const formName = 'ng$sales_invoiceline_dtl';
|
|
2
|
+
export const GLO_enterSalesInvoiceLine = (obj) => {
|
|
3
|
+
cy.GLO_popupWindow([formName, 'btn_select_article_code'], obj.articleCode);
|
|
4
|
+
cy.GLO_addInput([formName, 'quantity'], obj.quantity);
|
|
5
|
+
cy.GLO_addInput([formName, 'price_article'], obj.articlePrice);
|
|
6
|
+
cy.GLO_checkbox([formName, 'flag_disc_contr_is_nominal'], obj.flagNominalContractDiscount);
|
|
7
|
+
if (obj.contractualDiscount) {
|
|
8
|
+
Object.entries(obj.contractualDiscount).forEach(([key, value]) => {
|
|
9
|
+
cy.GLO_addInput([formName, `discount_percentage${key}`], value);
|
|
10
|
+
cy.GLO_dialogChoice('Yes'); // No discount allowed for this article, allow anyway?
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type objSalesOrder = {
|
|
2
|
+
relationCode?: number | string;
|
|
3
|
+
type?: string;
|
|
4
|
+
subType?: string;
|
|
5
|
+
deliveryCondition?: string;
|
|
6
|
+
warehouseId?: string;
|
|
7
|
+
paymentCondition?: string;
|
|
8
|
+
yourReference?: string;
|
|
9
|
+
ourReference?: string;
|
|
10
|
+
representative?: string;
|
|
11
|
+
deliveryDate?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const GLO_enterSalesOrder: (obj: objSalesOrder) => void;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { close, equal, equalBool, input, open } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterSalesOrder = (obj) => {
|
|
3
|
+
const formName = 'ng$salesorder_dtl';
|
|
4
|
+
const formNameGeneral = `${formName}_general`;
|
|
5
|
+
const detailTabsName = 'tabs_70';
|
|
6
|
+
cy.GLO_addInput([formName, 'salesorder_type_id'], obj.type);
|
|
7
|
+
if (obj.type && obj.subType)
|
|
8
|
+
cy.GLO_checkLoadingIndicator();
|
|
9
|
+
cy.GLO_addInput([formName, 'salesorder_subtype_id'], obj.subType);
|
|
10
|
+
cy.GLO_addInput([formName, 'warehouse_id'], obj.warehouseId);
|
|
11
|
+
cy.GLO_addDate(input, ['ng$salesorder_dtl', 'deliverydate'], obj.deliveryDate);
|
|
12
|
+
if (obj.relationCode || obj.yourReference || obj.ourReference || obj.representative || obj.paymentCondition || obj.deliveryCondition) {
|
|
13
|
+
cy.GLO_selectTab([formName, detailTabsName], 'General', open);
|
|
14
|
+
cy.GLO_popupWindow([formNameGeneral, 'relation_code'], obj.relationCode, 'relation_code', equalBool);
|
|
15
|
+
cy.GLO_checkField([formNameGeneral, 'relation_code'], obj.relationCode, equal, 30000);
|
|
16
|
+
cy.GLO_dialogChoice('OK');
|
|
17
|
+
cy.GLO_addInput([formNameGeneral, 'paymentcondition_id'], obj.paymentCondition);
|
|
18
|
+
cy.GLO_addInput([formNameGeneral, 'deliverycondition_id'], obj.deliveryCondition);
|
|
19
|
+
cy.GLO_addInput([formNameGeneral, 'customer_reference'], obj.yourReference);
|
|
20
|
+
cy.GLO_addInput([formNameGeneral, 'our_reference'], obj.ourReference);
|
|
21
|
+
cy.GLO_addInput([formNameGeneral, 'representative_id'], obj.representative);
|
|
22
|
+
cy.GLO_selectTab([formName, detailTabsName], 'General', close);
|
|
23
|
+
}
|
|
24
|
+
cy.GLO_addDate(input, ['ng$salesorder_dtl', 'deliverydate'], obj.deliveryDate);
|
|
25
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type objSalesOrderLine = {
|
|
2
|
+
articleCode?: number | string;
|
|
3
|
+
articleVersionCode?: string;
|
|
4
|
+
quantityBase?: number;
|
|
5
|
+
price?: number;
|
|
6
|
+
priceArticle?: number;
|
|
7
|
+
inputQuantity?: number;
|
|
8
|
+
discountPercentage1?: number;
|
|
9
|
+
contractArticleId?: string;
|
|
10
|
+
inputQtyPerUnitId?: string;
|
|
11
|
+
deliveryDate?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const GLO_enterSalesOrderLine: (obj: objSalesOrderLine) => void;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { close, equal, input, open } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterSalesOrderLine = (obj) => {
|
|
3
|
+
const formName = 'ng$salesorderline_dtl';
|
|
4
|
+
const formNameGeneral = 'ng$salesorderline_dtl_general';
|
|
5
|
+
const detailTabsName = 'tabs_280';
|
|
6
|
+
if (obj.articleCode) {
|
|
7
|
+
cy.GLO_popupWindow([formName, 'article_code'], obj.articleCode);
|
|
8
|
+
cy.GLO_dialogChoice('OK');
|
|
9
|
+
cy.GLO_dialogChoice('OK');
|
|
10
|
+
cy.GLO_checkField([formName, 'article_code'], obj.articleCode, equal, 30000);
|
|
11
|
+
}
|
|
12
|
+
cy.GLO_popupWindow([formName, 'articleversion_code'], obj.articleVersionCode);
|
|
13
|
+
if (obj.contractArticleId) {
|
|
14
|
+
cy.GLO_addInput([formName, 'contract_article_id'], obj.contractArticleId);
|
|
15
|
+
cy.GLO_dialogChoice('OK');
|
|
16
|
+
}
|
|
17
|
+
if (obj.quantityBase || obj.priceArticle || obj.price || obj.inputQuantity || obj.inputQtyPerUnitId || obj.discountPercentage1 || obj.deliveryDate) {
|
|
18
|
+
cy.GLO_selectTab([formName, detailTabsName], 'General', open);
|
|
19
|
+
if (obj.quantityBase) {
|
|
20
|
+
cy.GLO_addInput([formNameGeneral, 'quantity'], obj.quantityBase);
|
|
21
|
+
cy.GLO_checkField([formNameGeneral, 'quantity'], obj.quantityBase);
|
|
22
|
+
}
|
|
23
|
+
cy.GLO_addInput([formNameGeneral, 'price_article'], obj.priceArticle);
|
|
24
|
+
cy.GLO_addInput([formNameGeneral, 'price'], obj.price);
|
|
25
|
+
if (obj.inputQuantity) {
|
|
26
|
+
cy.GLO_addInput([formNameGeneral, 'input_qty'], obj.inputQuantity);
|
|
27
|
+
cy.GLO_checkLoadingIndicator(); // Needed because of data loading
|
|
28
|
+
}
|
|
29
|
+
cy.GLO_addInput([formNameGeneral, 'discount_percentage1'], obj.discountPercentage1);
|
|
30
|
+
cy.GLO_addInput([formNameGeneral, 'input_qty_per_unit_id'], obj.inputQtyPerUnitId);
|
|
31
|
+
cy.GLO_addDate(input, [formNameGeneral, 'delivery_date'], obj.deliveryDate);
|
|
32
|
+
cy.GLO_selectTab([formName, detailTabsName], 'General', close);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objStockCorrection = {
|
|
3
|
+
onlyAvailableStock?: CheckState;
|
|
4
|
+
articleCode?: string;
|
|
5
|
+
articleVersionCode?: string;
|
|
6
|
+
subType?: string;
|
|
7
|
+
deliveryCondition?: string;
|
|
8
|
+
localWarehouseId?: string;
|
|
9
|
+
lot?: string;
|
|
10
|
+
quantity?: string | number;
|
|
11
|
+
locationStock?: string;
|
|
12
|
+
localWarehouseLocationId?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const GLO_enterStockCorrection: (obj: objStockCorrection) => void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const GLO_enterStockCorrection = (obj) => {
|
|
2
|
+
const formName = 'ng$stock_correction_dtl';
|
|
3
|
+
cy.GLO_checkbox([formName, 'only_available_stock'], obj.onlyAvailableStock);
|
|
4
|
+
if (obj.articleCode) {
|
|
5
|
+
cy.get('body').then(($body) => {
|
|
6
|
+
if ($body.find('[data-cy="ng$stock_correction_dtl.btn_select_article"]').length > 0) {
|
|
7
|
+
cy.GLO_popupWindow([formName, 'btn_select_article'], obj.articleCode, 'article_code');
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
cy.GLO_popupWindow([formName, 'article_code'], obj.articleCode, 'article_code');
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
cy.GLO_checkField([formName, 'article_code'], obj.articleCode);
|
|
14
|
+
}
|
|
15
|
+
cy.GLO_addInput([formName, 'local_articleversion_id'], obj.articleVersionCode);
|
|
16
|
+
cy.GLO_addInput([formName, 'local_warehouse_id'], obj.localWarehouseId);
|
|
17
|
+
cy.GLO_addInput([formName, 'local_warehouse_location_id'], obj.localWarehouseLocationId);
|
|
18
|
+
cy.GLO_addInput([formName, 'local_lot_id'], obj.lot);
|
|
19
|
+
if (obj.locationStock) {
|
|
20
|
+
cy.GLO_addInput([formName, 'location_stock_id'], obj.locationStock);
|
|
21
|
+
cy.GLO_checkLoadingIndicator(); // Loads data
|
|
22
|
+
}
|
|
23
|
+
cy.GLO_addInput([formName, 'quantity'], obj.quantity);
|
|
24
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type objSupplierArticle = {
|
|
2
|
+
articleCode?: string;
|
|
3
|
+
articleNumberSupplier?: string;
|
|
4
|
+
deliveryTimeInDays?: number;
|
|
5
|
+
articleVersionCode?: string;
|
|
6
|
+
relationCode?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const GLO_enterSupplierArticle: (obj: objSupplierArticle) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const formName = 'ng$supplier_article_dtl';
|
|
2
|
+
export const GLO_enterSupplierArticle = (obj) => {
|
|
3
|
+
cy.GLO_popupWindow([formName, 'relation_code'], obj.relationCode);
|
|
4
|
+
cy.GLO_popupWindow([formName, 'article_code'], obj.articleCode);
|
|
5
|
+
cy.GLO_popupWindow([formName, 'articleversion_code'], obj.articleVersionCode);
|
|
6
|
+
cy.GLO_addInput([formName, 'articlenumber_supplier'], obj.articleNumberSupplier);
|
|
7
|
+
cy.GLO_addInput([formName, 'delivery_time_in_days'], obj.deliveryTimeInDays);
|
|
8
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const GLO_enterTclSettings = (obj) => {
|
|
2
|
+
const formName = 'ng$logistic_contract_detail_transport_method_tcl_dlg';
|
|
3
|
+
cy.GLO_addInput([formName, 'transport_modality'], obj.transportModality);
|
|
4
|
+
cy.GLO_addInput([formName, 'tcl_plug_in'], obj.plugIn);
|
|
5
|
+
cy.GLO_addInput([formName, 'tcl_engine_running'], obj.engineRunning);
|
|
6
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { close, input, open } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterTodo = (obj) => {
|
|
3
|
+
const formName = 'ng$todos_dtl';
|
|
4
|
+
const detailTabsName = 'tabs_340';
|
|
5
|
+
cy.GLO_addInput([formName, 'todo_type_id'], obj.type);
|
|
6
|
+
cy.GLO_addInput([formName, 'todo_subtype_id'], obj.subType);
|
|
7
|
+
cy.GLO_popupWindow([formName, 'user_name'], obj.username);
|
|
8
|
+
cy.GLO_addDate(input, [formName, 'deadline'], obj.deadline);
|
|
9
|
+
cy.GLO_addDate(input, [formName, 'completed_date'], obj.completed);
|
|
10
|
+
if (obj.description) {
|
|
11
|
+
cy.GLO_selectTab([formName, detailTabsName], 'Description', open);
|
|
12
|
+
//! Added enter and click because otherwise the textarea doesn't know that a user has typed anything somehow....
|
|
13
|
+
cy.GLO_getElement(['ng$todos_dtl_description', 'description']).find('textarea').filter(':visible').click();
|
|
14
|
+
cy.GLO_addInput(['ng$todos_dtl_description', 'description'], `${obj.description}{enter}`);
|
|
15
|
+
}
|
|
16
|
+
if (obj.article) {
|
|
17
|
+
cy.GLO_selectTab([formName, detailTabsName], 'General', open);
|
|
18
|
+
cy.GLO_popupWindow(['todo_dtl_general$todos', 'articlearticle_id'], obj.article);
|
|
19
|
+
cy.GLO_selectTab([formName, detailTabsName], 'General', close);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type objTodoSchedule = {
|
|
2
|
+
scheduleTypeId?: string;
|
|
3
|
+
scheduleSubtype?: string;
|
|
4
|
+
user?: string;
|
|
5
|
+
userRole?: string;
|
|
6
|
+
relation?: string;
|
|
7
|
+
contactPerson?: string;
|
|
8
|
+
responsible?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
scheduleStartDate?: string;
|
|
11
|
+
scheduleRecurringEvery?: number;
|
|
12
|
+
scheduleRecurringInterval?: string;
|
|
13
|
+
scheduleTimes?: {
|
|
14
|
+
daysOfWeek: dayItem[];
|
|
15
|
+
hours?: hoursSpec;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
type weekdayKey = 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun';
|
|
19
|
+
type hhmm = `${number}${number}:${number}${number}`;
|
|
20
|
+
type hoursSpec = [hhmm?, hhmm?, hhmm?, hhmm?];
|
|
21
|
+
type dayItem = weekdayKey | Partial<Record<weekdayKey, hoursSpec>>;
|
|
22
|
+
export declare const GLO_todoSchedule: (obj: objTodoSchedule) => void;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { check, close, input, open } from '../tsHelper.js';
|
|
2
|
+
const formName = 'ng$todo_schedule_dtl';
|
|
3
|
+
const formNameTimeTab = 'ng$recurring_dates$locals';
|
|
4
|
+
export const GLO_todoSchedule = (obj) => {
|
|
5
|
+
cy.GLO_radioButton([formName, 'user_or_representative'], obj.userRole);
|
|
6
|
+
cy.GLO_addInput([formName, 'todo_type_id'], obj.scheduleTypeId);
|
|
7
|
+
cy.GLO_addInput([formName, 'todo_subtype_id'], obj.scheduleSubtype);
|
|
8
|
+
cy.GLO_popupWindow([formName, 'btn_select_user_name'], obj.user);
|
|
9
|
+
cy.GLO_popupWindow([formName, 'btn_select_relation'], obj.relation);
|
|
10
|
+
cy.GLO_addInput([formName, 'relation_contact_id'], obj.contactPerson);
|
|
11
|
+
cy.GLO_popupWindow([formName, 'btn_select_responsible_user_name'], obj.responsible);
|
|
12
|
+
if (obj.scheduleRecurringEvery || obj.scheduleRecurringInterval || obj.scheduleStartDate) {
|
|
13
|
+
GLO_addTimeSchedule(obj);
|
|
14
|
+
}
|
|
15
|
+
if (obj.description) {
|
|
16
|
+
GLO_addDescription(obj);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
const GLO_addTimeSchedule = (obj) => {
|
|
20
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Time schedule', open);
|
|
21
|
+
cy.GLO_addDate(input, [formNameTimeTab, 'start_date'], obj.scheduleStartDate);
|
|
22
|
+
cy.GLO_addInput([formNameTimeTab, 'every'], obj.scheduleRecurringEvery);
|
|
23
|
+
cy.GLO_addInput([formNameTimeTab, 'unit'], obj.scheduleRecurringInterval);
|
|
24
|
+
fillInWeekSchedule(obj);
|
|
25
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Time schedule', close);
|
|
26
|
+
};
|
|
27
|
+
const GLO_addDescription = (obj) => {
|
|
28
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Description', open);
|
|
29
|
+
cy.GLO_addInput(['ng$todo_schedule_dtl_description', 'description'], obj.description);
|
|
30
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Description', close);
|
|
31
|
+
};
|
|
32
|
+
const fillInWeekSchedule = (obj) => {
|
|
33
|
+
if (!obj.scheduleTimes)
|
|
34
|
+
return;
|
|
35
|
+
const st = obj.scheduleTimes;
|
|
36
|
+
const dayToIndex = (weekday) => {
|
|
37
|
+
const map = { mon: 1, tue: 2, wed: 3, thu: 4, fri: 5, sat: 6, sun: 7 };
|
|
38
|
+
return map[weekday];
|
|
39
|
+
};
|
|
40
|
+
const applyHours = (idx, spec) => {
|
|
41
|
+
const [amFrom, amTo, pmFrom, pmTo] = spec;
|
|
42
|
+
const am = amFrom && amTo ? [amFrom, amTo] : undefined;
|
|
43
|
+
const pm = pmFrom && pmTo ? [pmFrom, pmTo] : undefined;
|
|
44
|
+
if (!am && !pm)
|
|
45
|
+
throw new Error('Incomplete hours, must provide at least one range.');
|
|
46
|
+
fillDay(idx, { am, pm });
|
|
47
|
+
};
|
|
48
|
+
const fillDay = (idx, slots) => {
|
|
49
|
+
cy.GLO_checkbox([formNameTimeTab, `day${idx}`], check);
|
|
50
|
+
if (slots.am) {
|
|
51
|
+
cy.GLO_getElement([formNameTimeTab, `amfrom${idx}`])
|
|
52
|
+
.find('.dx-texteditor-input')
|
|
53
|
+
.type(slots.am[0]);
|
|
54
|
+
cy.GLO_getElement([formNameTimeTab, `amto${idx}`])
|
|
55
|
+
.find('.dx-texteditor-input')
|
|
56
|
+
.type(slots.am[1]);
|
|
57
|
+
}
|
|
58
|
+
if (slots.pm) {
|
|
59
|
+
cy.GLO_getElement([formNameTimeTab, `pmfrom${idx}`])
|
|
60
|
+
.find('.dx-texteditor-input')
|
|
61
|
+
.type(slots.pm[0]);
|
|
62
|
+
cy.GLO_getElement([formNameTimeTab, `pmto${idx}`])
|
|
63
|
+
.find('.dx-texteditor-input')
|
|
64
|
+
.type(slots.pm[1]);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
st.daysOfWeek.forEach((item) => {
|
|
68
|
+
if (typeof item === 'string') {
|
|
69
|
+
if (!st.hours)
|
|
70
|
+
throw new Error('No hours filled in, please provide hours.');
|
|
71
|
+
applyHours(dayToIndex(item), st.hours);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
Object.entries(item).forEach(([day, spec]) => {
|
|
75
|
+
applyHours(dayToIndex(day), spec);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const GLO_enterTractionDistance = (obj) => {
|
|
2
|
+
const formName = 'ng$traction_distance_dtl';
|
|
3
|
+
cy.GLO_popupWindow([formName, 'logistic_location_from_id'], obj.portOfDischarge);
|
|
4
|
+
cy.GLO_popupWindow([formName, 'logistic_location_to_id'], obj.portOfDestination);
|
|
5
|
+
cy.GLO_popupWindow([formName, 'transport_method_id'], obj.transportMethod);
|
|
6
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type objTransportPrice = {
|
|
2
|
+
articleCode?: string;
|
|
3
|
+
purchasePrice?: number;
|
|
4
|
+
quantityToInvoice?: number;
|
|
5
|
+
unitToInvoice?: string;
|
|
6
|
+
priceUnitToInvoice?: string;
|
|
7
|
+
supplierCode?: string;
|
|
8
|
+
extraInvoiceSplit?: string;
|
|
9
|
+
financialCorrectionReasonCodeIid?: string;
|
|
10
|
+
maxQuantityTotalPrice?: number;
|
|
11
|
+
excessPurchasePrice?: number;
|
|
12
|
+
excessPurchasePricePer?: number;
|
|
13
|
+
excessPurchasePricePerUnit?: string;
|
|
14
|
+
excessBasePrice?: number;
|
|
15
|
+
vatRegime?: string;
|
|
16
|
+
purchaseCurrency?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const GLO_enterTransportPrice: (obj: objTransportPrice) => void;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { close, open } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterTransportPrice = (obj) => {
|
|
3
|
+
const formName = 'ng$transport_price_dtl';
|
|
4
|
+
const formNameGeneral = 'ng$transport_price_dtl_general';
|
|
5
|
+
cy.GLO_addInput([formName, 'article_code'], obj.articleCode);
|
|
6
|
+
if (obj.quantityToInvoice ||
|
|
7
|
+
obj.unitToInvoice ||
|
|
8
|
+
obj.purchasePrice ||
|
|
9
|
+
obj.priceUnitToInvoice ||
|
|
10
|
+
obj.extraInvoiceSplit ||
|
|
11
|
+
obj.supplierCode ||
|
|
12
|
+
obj.financialCorrectionReasonCodeIid ||
|
|
13
|
+
obj.vatRegime) {
|
|
14
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'General', open);
|
|
15
|
+
if (obj.supplierCode) {
|
|
16
|
+
cy.GLO_addInput([formNameGeneral, 'relation_selector'], obj.supplierCode);
|
|
17
|
+
cy.GLO_checkLoadingIndicator();
|
|
18
|
+
}
|
|
19
|
+
cy.GLO_addInput([formNameGeneral, 'vat_regime_id'], obj.vatRegime);
|
|
20
|
+
cy.GLO_addInput([formNameGeneral, 'quantity_to_invoice'], obj.quantityToInvoice);
|
|
21
|
+
cy.GLO_addInput([formNameGeneral, 'quantity_to_invoice_unit_id'], obj.unitToInvoice);
|
|
22
|
+
cy.GLO_addInput([formNameGeneral, 'purchase_price_from_qty_to_invoice'], obj.excessBasePrice);
|
|
23
|
+
cy.GLO_addInput([formNameGeneral, 'purchase_price_to_invoice'], obj.purchasePrice);
|
|
24
|
+
cy.GLO_addInput([formNameGeneral, 'purchase_price_per_unit_invoice'], obj.priceUnitToInvoice);
|
|
25
|
+
cy.GLO_addInput([formNameGeneral, 'extra_invoice_split'], obj.extraInvoiceSplit);
|
|
26
|
+
cy.GLO_addInput([formNameGeneral, 'total_price_max_quantity'], obj.maxQuantityTotalPrice);
|
|
27
|
+
cy.GLO_addInput([formNameGeneral, 'excess_purchase_price'], obj.excessPurchasePrice);
|
|
28
|
+
cy.GLO_addInput([formNameGeneral, 'excess_purchase_price_per'], obj.excessPurchasePricePer);
|
|
29
|
+
cy.GLO_addInput([formNameGeneral, 'excess_purchase_price_per_unit_id'], obj.excessPurchasePricePerUnit);
|
|
30
|
+
cy.GLO_addInput([formNameGeneral, 'financial_correction_reason_code_id'], obj.financialCorrectionReasonCodeIid);
|
|
31
|
+
cy.GLO_addInput([formNameGeneral, 'purchase_currency_id'], obj.purchaseCurrency);
|
|
32
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'General', close);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objTransportRequirement = {
|
|
3
|
+
fromLogisticLocation?: string;
|
|
4
|
+
toLogisticLocation?: string;
|
|
5
|
+
origin?: string;
|
|
6
|
+
originRef?: string;
|
|
7
|
+
type?: string;
|
|
8
|
+
subType?: string;
|
|
9
|
+
deliveryCondition?: string;
|
|
10
|
+
relationCode?: string;
|
|
11
|
+
flagGlobalTransportRequirement?: CheckState;
|
|
12
|
+
flagDisallowTransshipment?: CheckState;
|
|
13
|
+
shippingTerm?: string;
|
|
14
|
+
transportMethod?: string;
|
|
15
|
+
flagOffMarket?: CheckState;
|
|
16
|
+
buyerAdress?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const GLO_enterTransportRequirement: (obj: objTransportRequirement, formName?: string) => void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { close, open } from '../tsHelper.js';
|
|
2
|
+
const formNameDefault = 'ng$transport_requirement_dtl';
|
|
3
|
+
export const GLO_enterTransportRequirement = (obj, formName = formNameDefault) => {
|
|
4
|
+
const formNameGeneral = 'ng$transport_requirement_dtl_general';
|
|
5
|
+
const formNameChartering = 'ng$transport_requirement_dtl_chartering';
|
|
6
|
+
cy.GLO_addInput([formName, 'from_logistic_location'], obj.fromLogisticLocation);
|
|
7
|
+
if (obj.fromLogisticLocation)
|
|
8
|
+
cy.GLO_checkLoadingIndicator();
|
|
9
|
+
cy.GLO_addInput([formName, 'to_logistic_location'], obj.toLogisticLocation);
|
|
10
|
+
if (obj.toLogisticLocation)
|
|
11
|
+
cy.GLO_checkLoadingIndicator();
|
|
12
|
+
cy.GLO_addInput([formName, 'origin'], obj.origin);
|
|
13
|
+
cy.GLO_addInput([formName, 'origin_ref'], obj.originRef);
|
|
14
|
+
cy.GLO_addInput([formName, 'transport_requirement_type'], obj.type);
|
|
15
|
+
if (obj.type && obj.subType)
|
|
16
|
+
cy.GLO_checkLoadingIndicator();
|
|
17
|
+
cy.GLO_addInput([formName, 'transport_requirement_subtype'], obj.subType);
|
|
18
|
+
cy.GLO_addInput([formName, 'deliverycondition_id'], obj.deliveryCondition);
|
|
19
|
+
cy.GLO_addInput([formName, 'shipping_term_id'], obj.shippingTerm);
|
|
20
|
+
cy.GLO_addInput([formName, 'transport_method_id'], obj.transportMethod);
|
|
21
|
+
if (obj.relationCode) {
|
|
22
|
+
cy.GLO_addInput([formNameGeneral, 'relation_id'], obj.relationCode);
|
|
23
|
+
cy.GLO_checkLoadingIndicator();
|
|
24
|
+
}
|
|
25
|
+
cy.GLO_checkbox([formName, 'flag_global_transport_req'], obj.flagGlobalTransportRequirement);
|
|
26
|
+
cy.GLO_checkbox([formName, 'flag_disallow_transshipment'], obj.flagDisallowTransshipment);
|
|
27
|
+
if (obj.flagOffMarket) {
|
|
28
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Chartering', open);
|
|
29
|
+
cy.GLO_checkbox([formNameChartering, 'checkbox_flag_off_market'], obj.flagOffMarket);
|
|
30
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Chartering', close);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type objTransportRequirementContainer = {
|
|
2
|
+
containerRef?: string;
|
|
3
|
+
shipmentContainerType?: string;
|
|
4
|
+
shipmentContainerSubType?: string;
|
|
5
|
+
nrOfContainers?: number;
|
|
6
|
+
weight?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const GLO_entertransportRequirementContainer: (obj: objTransportRequirementContainer) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const GLO_entertransportRequirementContainer = (obj) => {
|
|
2
|
+
const formName = 'ng$transport_requirement_container_dtl';
|
|
3
|
+
cy.GLO_addInput([formName, 'container_ref'], obj.containerRef);
|
|
4
|
+
cy.GLO_addInput([formName, 'shipment_container_type_id'], obj.shipmentContainerType);
|
|
5
|
+
cy.GLO_addInput([formName, 'shipment_container_subtype_id'], obj.shipmentContainerSubType);
|
|
6
|
+
cy.GLO_addInput([formName, 'nr_of_containers'], obj.nrOfContainers);
|
|
7
|
+
cy.GLO_addInput([formName, 'gross_weight'], obj.weight);
|
|
8
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type objTransportRequirementGoods = {
|
|
2
|
+
articleCode?: string;
|
|
3
|
+
articleDescription?: string;
|
|
4
|
+
marksAndNumbers?: string;
|
|
5
|
+
quantity?: number;
|
|
6
|
+
packagingQuantity?: number;
|
|
7
|
+
unitCode?: string;
|
|
8
|
+
weight?: number;
|
|
9
|
+
addressCode?: string;
|
|
10
|
+
addressValues?: objAddressValues;
|
|
11
|
+
productionSite?: string;
|
|
12
|
+
externalNr?: string;
|
|
13
|
+
relation?: string;
|
|
14
|
+
fromLogisticLocation?: string;
|
|
15
|
+
toLogisticLocation?: string;
|
|
16
|
+
buyerAdress?: string;
|
|
17
|
+
goodsLength?: number;
|
|
18
|
+
goodsWidth?: number;
|
|
19
|
+
goodsHeight?: number;
|
|
20
|
+
deliveryQuayCode?: string;
|
|
21
|
+
minUnitWeight?: number;
|
|
22
|
+
maxUnitWeight?: number;
|
|
23
|
+
};
|
|
24
|
+
export type objAddressValues = {
|
|
25
|
+
fromAddress?: string;
|
|
26
|
+
toAddress?: string;
|
|
27
|
+
fromLogisticLocation?: string;
|
|
28
|
+
toLogisticLocation?: string;
|
|
29
|
+
finalAddress?: string;
|
|
30
|
+
finalDeliveryAddress?: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const GLO_enterTransportRequirementGoodsDialog: (obj: objTransportRequirementGoods, formName?: string) => void;
|
|
33
|
+
export declare const GLO_enterTransportRequirementGoods: (obj: objTransportRequirementGoods, formName?: string) => void;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { close, open, row, skipCheck } from '../tsHelper.js';
|
|
2
|
+
const formNameDefault = 'ng$add_transport_requirement_goods_dlg';
|
|
3
|
+
export const GLO_enterTransportRequirementGoodsDialog = (obj, formName = `${formNameDefault}_general`) => {
|
|
4
|
+
cy.GLO_addInput([formName, 'article_id'], obj.articleCode);
|
|
5
|
+
cy.GLO_addInput([formName, 'article_description'], obj.articleDescription);
|
|
6
|
+
cy.GLO_addInput([formName, 'external_nr'], obj.externalNr);
|
|
7
|
+
cy.GLO_addInput([formName, 'marks_number'], obj.marksAndNumbers);
|
|
8
|
+
cy.GLO_addInput([formName, 'quantity'], obj.quantity);
|
|
9
|
+
cy.GLO_addInput([formName, 'packaging_quantity'], obj.packagingQuantity);
|
|
10
|
+
cy.GLO_addInput([formName, 'articleunit_id'], obj.unitCode);
|
|
11
|
+
cy.GLO_addInput([formName, 'gross_weight'], obj.weight);
|
|
12
|
+
cy.GLO_addInput([formName, 'relation'], obj.relation);
|
|
13
|
+
cy.GLO_addInput([formName, 'from_logistic_location_id'], obj.fromLogisticLocation);
|
|
14
|
+
cy.GLO_addInput([formName, 'to_logistic_location_id'], obj.toLogisticLocation);
|
|
15
|
+
cy.GLO_addInput([formName, 'production_site_relation_id'], obj.productionSite);
|
|
16
|
+
cy.GLO_addInput([formName, 'goods_length'], obj.goodsLength);
|
|
17
|
+
cy.GLO_addInput([formName, 'goods_width'], obj.goodsWidth);
|
|
18
|
+
cy.GLO_addInput([formName, 'goods_height'], obj.goodsHeight);
|
|
19
|
+
cy.GLO_addInput([formName, 'delivery_quay_code'], obj.deliveryQuayCode);
|
|
20
|
+
cy.GLO_addInput([formName, 'min_unit_weight'], obj.minUnitWeight);
|
|
21
|
+
cy.GLO_addInput([formName, 'max_unit_weight'], obj.maxUnitWeight);
|
|
22
|
+
};
|
|
23
|
+
export const GLO_enterTransportRequirementGoods = (obj, formName = formNameDefault) => {
|
|
24
|
+
const formNameGeneral = `${formName}_general`;
|
|
25
|
+
const formNameExtra = 'ng$transport_requirement_goods_dtl_extra';
|
|
26
|
+
const formNameAddressCreation = 'ng$address_search_creation_sel';
|
|
27
|
+
const tabs = 'tabs_70';
|
|
28
|
+
cy.GLO_addInput([formName, 'article_id'], obj.articleCode);
|
|
29
|
+
cy.GLO_addInput([formName, 'quantity'], obj.weight);
|
|
30
|
+
cy.GLO_addInput([formName, 'production_site_relation_id'], obj.productionSite);
|
|
31
|
+
if (obj.addressValues) {
|
|
32
|
+
cy.GLO_selectTab([formName, tabs], 'General', open);
|
|
33
|
+
cy.GLO_addInput([formNameGeneral, 'from_address'], obj.addressValues.fromAddress);
|
|
34
|
+
cy.GLO_addInput([formNameGeneral, 'to_address'], obj.addressValues.toAddress);
|
|
35
|
+
cy.GLO_addInput([formNameGeneral, 'from_logistic_location'], obj.addressValues.fromLogisticLocation);
|
|
36
|
+
cy.GLO_addInput([formNameGeneral, 'to_logistic_location'], obj.addressValues.toLogisticLocation);
|
|
37
|
+
cy.GLO_addInput([formNameGeneral, 'final_address'], obj.addressValues.finalAddress);
|
|
38
|
+
cy.GLO_addInput([formNameGeneral, 'final_delivery_address'], obj.addressValues.finalDeliveryAddress);
|
|
39
|
+
}
|
|
40
|
+
if (obj.addressCode || obj.productionSite) {
|
|
41
|
+
cy.GLO_selectTab([formName, tabs], 'Extra', open);
|
|
42
|
+
cy.GLO_addInput([formNameExtra, 'production_site_relation_id'], obj.productionSite);
|
|
43
|
+
if (obj.addressCode) {
|
|
44
|
+
cy.GLO_addInput([formNameExtra, 'production_site_address'], obj.addressCode);
|
|
45
|
+
cy.GLO_addInput([formNameAddressCreation, 'address_code'], obj.addressCode);
|
|
46
|
+
cy.GLO_clickButton([formNameAddressCreation, 'button_search']);
|
|
47
|
+
cy.GLO_dblClickRowInGrid(row, [formNameAddressCreation, 'grid'], 0, undefined, skipCheck);
|
|
48
|
+
}
|
|
49
|
+
cy.GLO_selectTab([formName, tabs], 'Extra', close);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const GLO_enterTransportScenarioExecutionLeg = (obj) => {
|
|
2
|
+
const formName = 'ng$tpt_scenario_execution_leg_dtl';
|
|
3
|
+
cy.GLO_addInput([formName, 'transport_method'], obj.transportMethod);
|
|
4
|
+
cy.GLO_popupWindow([formName, 'logistic_conn_id'], obj.connectionCode);
|
|
5
|
+
cy.GLO_popupWindow([formName, 'logistic_conn_schedule_id'], obj.departureScheduleCode);
|
|
6
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { input } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterVisit = (obj) => {
|
|
3
|
+
const formName = 'ng$customer_visit_dtl';
|
|
4
|
+
cy.GLO_addInput([formName, 'contact_person'], obj.contactPerson);
|
|
5
|
+
cy.GLO_addDate(input, [formName, 'date_of_visit'], obj.dateOfVisit);
|
|
6
|
+
cy.GLO_popupWindow([formName, 'assigned_to'], obj.assignedTo);
|
|
7
|
+
cy.GLO_addInput([formName, 'subject'], obj.subjectVisit);
|
|
8
|
+
cy.GLO_addInput([formName, 'visit_report'], obj.visitReport);
|
|
9
|
+
cy.GLO_popupWindow([formName, 'relation_code'], obj.relationCode);
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type objWarehouseMove = {
|
|
2
|
+
articleCode?: string;
|
|
3
|
+
fromWarehouseId?: string;
|
|
4
|
+
fromWarehouseLocationId?: string;
|
|
5
|
+
toWarehouseId?: string;
|
|
6
|
+
toWarehouseLocationId?: string;
|
|
7
|
+
fromContainerId?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const GLO_warehouseMove: (obj: objWarehouseMove) => void;
|