@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,61 @@
|
|
|
1
|
+
import { type CheckState } from '../tsHelper.js';
|
|
2
|
+
import { type objAddressPopup } from './GLO_addressPopup.js';
|
|
3
|
+
export type objConsignment = {
|
|
4
|
+
orderByRelationCode?: string;
|
|
5
|
+
relationCode?: string;
|
|
6
|
+
invoiceRelation?: string;
|
|
7
|
+
deliveryCondition?: string;
|
|
8
|
+
relationReference?: string;
|
|
9
|
+
coLoadingReference?: string;
|
|
10
|
+
customerContractDetails?: string;
|
|
11
|
+
equipmentTypePrefReq?: string;
|
|
12
|
+
collectionAddress?: objAddressPopup;
|
|
13
|
+
deliveryAddress?: objAddressPopup;
|
|
14
|
+
loadStartBooked?: string;
|
|
15
|
+
loadEndBooked?: string;
|
|
16
|
+
unloadStartBooked?: string;
|
|
17
|
+
unloadEndBooked?: string;
|
|
18
|
+
loadStartBookedTime?: string;
|
|
19
|
+
loadEndBookedTime?: string;
|
|
20
|
+
unloadStartBookedTime?: string;
|
|
21
|
+
unloadEndBookedTime?: string;
|
|
22
|
+
specialRemark?: string;
|
|
23
|
+
handlingType?: string;
|
|
24
|
+
handlingSubtype?: string;
|
|
25
|
+
shippingLine?: string;
|
|
26
|
+
commodity?: string;
|
|
27
|
+
customerReference?: string;
|
|
28
|
+
portOfOrigin?: string;
|
|
29
|
+
portOfDestination?: string;
|
|
30
|
+
terminal?: string;
|
|
31
|
+
flagSpotOrder?: CheckState;
|
|
32
|
+
consignmentType?: string;
|
|
33
|
+
consignmentSubType?: string;
|
|
34
|
+
planBloc?: string;
|
|
35
|
+
businessUnit?: string;
|
|
36
|
+
consignmentOrder?: string;
|
|
37
|
+
equipmentType?: string;
|
|
38
|
+
department?: string;
|
|
39
|
+
quayCode?: string;
|
|
40
|
+
POL?: string;
|
|
41
|
+
POD?: string;
|
|
42
|
+
transportMethod?: string;
|
|
43
|
+
defaultConsignmentDescription?: string;
|
|
44
|
+
atd?: string;
|
|
45
|
+
goodsClosing?: string;
|
|
46
|
+
journeyNr?: string;
|
|
47
|
+
vgmClosing?: string;
|
|
48
|
+
containerPickupFromDate?: string;
|
|
49
|
+
containerDeliveryFromDate?: string;
|
|
50
|
+
logisticContractCode?: string;
|
|
51
|
+
warehouseWarehouse?: string;
|
|
52
|
+
warehouseReceiptLocation?: string;
|
|
53
|
+
shipper?: string;
|
|
54
|
+
shipperRef?: string;
|
|
55
|
+
shipperIncoTerm?: string;
|
|
56
|
+
etd?: string;
|
|
57
|
+
eta?: string;
|
|
58
|
+
fileReference?: string;
|
|
59
|
+
};
|
|
60
|
+
export declare const GLO_enterConsignment: (obj: objConsignment, formName?: string, formNameGeneral?: string, formNameSea?: string, formNameWarehouse?: string) => void;
|
|
61
|
+
export declare const GLO_enterConsignment$Terminal: (obj: objConsignment) => void;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { close, equal, input, open } from '../tsHelper.js';
|
|
2
|
+
import { GLO_enterAddressPopup } from './GLO_addressPopup.js';
|
|
3
|
+
const defaultFormName = 'ng$consignment_dtl';
|
|
4
|
+
const defaultFormNameGeneral = 'ng$consignment_dtl_general';
|
|
5
|
+
const defaultFormNameSea = 'ng$consignment_dtl_sea';
|
|
6
|
+
const defaultFormNameWarehouse = `${defaultFormName}_warehouse`;
|
|
7
|
+
export const GLO_enterConsignment = (obj, formName = defaultFormName, formNameGeneral = defaultFormNameGeneral, formNameSea = defaultFormNameSea, formNameWarehouse = defaultFormNameWarehouse) => {
|
|
8
|
+
cy.GLO_addInput([formName, 'local_order_by_relation_code'], obj.orderByRelationCode);
|
|
9
|
+
if (obj.relationCode) {
|
|
10
|
+
cy.GLO_addInput([formName, 'local_relation_code'], obj.relationCode);
|
|
11
|
+
cy.GLO_checkLoadingIndicator();
|
|
12
|
+
}
|
|
13
|
+
if (obj.consignmentType) {
|
|
14
|
+
cy.GLO_addInput([defaultFormName, 'consignment_type'], obj.consignmentType);
|
|
15
|
+
cy.GLO_checkLoadingIndicator();
|
|
16
|
+
}
|
|
17
|
+
cy.GLO_addInput([formName, 'consignment_subtype'], obj.consignmentSubType);
|
|
18
|
+
cy.GLO_addInput([formName, 'relation_reference'], obj.relationReference);
|
|
19
|
+
cy.GLO_addInput([formName, 'delivery_condition'], obj.deliveryCondition);
|
|
20
|
+
cy.GLO_addInput([formName, 'local_invoice_relation_code'], obj.invoiceRelation);
|
|
21
|
+
cy.GLO_addInput([formName, 'consignment_subtype'], obj.consignmentSubType);
|
|
22
|
+
cy.GLO_checkField([formName, 'local_invoice_relation_code'], obj.invoiceRelation, equal, 10000);
|
|
23
|
+
cy.GLO_checkbox([formName, 'flag_spot'], obj.flagSpotOrder);
|
|
24
|
+
cy.GLO_validateCheckbox([formName, 'flag_spot'], obj.flagSpotOrder);
|
|
25
|
+
cy.GLO_addInput([formName, 'plan_bloc'], obj.planBloc);
|
|
26
|
+
cy.GLO_addInput([formName, 'file_reference_txt'], obj.fileReference);
|
|
27
|
+
if (obj.collectionAddress || obj.deliveryAddress || obj.loadStartBooked || obj.loadEndBooked || obj.loadStartBookedTime || obj.loadEndBookedTime) {
|
|
28
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'General', open);
|
|
29
|
+
if (obj.collectionAddress) {
|
|
30
|
+
cy.GLO_clickButton([formNameGeneral, 'btn_select_from_address'], 'fa-search-plus');
|
|
31
|
+
cy.GLO_checkLoadingIndicator();
|
|
32
|
+
obj.collectionAddress.type ??= 'search';
|
|
33
|
+
GLO_enterAddressPopup(obj.collectionAddress);
|
|
34
|
+
}
|
|
35
|
+
if (obj.deliveryAddress) {
|
|
36
|
+
cy.GLO_clickButton([formNameGeneral, 'btn_select_to_address'], 'fa-search-plus');
|
|
37
|
+
cy.GLO_checkLoadingIndicator();
|
|
38
|
+
obj.deliveryAddress.type ??= 'search';
|
|
39
|
+
GLO_enterAddressPopup(obj.deliveryAddress);
|
|
40
|
+
}
|
|
41
|
+
cy.GLO_addDate(input, [formNameGeneral, 'load_start_booked'], obj.loadStartBooked);
|
|
42
|
+
cy.GLO_addDate(input, [formNameGeneral, 'load_start_booked_time'], obj.loadStartBookedTime);
|
|
43
|
+
cy.GLO_addDate(input, [formNameGeneral, 'load_end_booked'], obj.loadEndBooked);
|
|
44
|
+
cy.GLO_addDate(input, [formNameGeneral, 'load_end_booked_time'], obj.loadEndBookedTime);
|
|
45
|
+
cy.GLO_addDate(input, [formNameGeneral, 'unload_start_booked'], obj.unloadStartBooked);
|
|
46
|
+
cy.GLO_addDate(input, [formNameGeneral, 'unload_end_booked'], obj.unloadEndBooked);
|
|
47
|
+
cy.GLO_addDate(input, [formNameGeneral, 'unload_end_booked_time'], obj.unloadEndBookedTime);
|
|
48
|
+
}
|
|
49
|
+
if (obj.warehouseReceiptLocation || obj.warehouseWarehouse)
|
|
50
|
+
warehouseTab(obj, formName, formNameWarehouse);
|
|
51
|
+
if (obj.quayCode ||
|
|
52
|
+
obj.POL ||
|
|
53
|
+
obj.POD ||
|
|
54
|
+
obj.transportMethod ||
|
|
55
|
+
obj.journeyNr ||
|
|
56
|
+
obj.goodsClosing ||
|
|
57
|
+
obj.vgmClosing ||
|
|
58
|
+
obj.containerPickupFromDate ||
|
|
59
|
+
obj.containerDeliveryFromDate ||
|
|
60
|
+
obj.shipper ||
|
|
61
|
+
obj.shipperRef ||
|
|
62
|
+
obj.shipperIncoTerm ||
|
|
63
|
+
obj.etd ||
|
|
64
|
+
obj.eta)
|
|
65
|
+
seaTab(obj, formName, formNameSea);
|
|
66
|
+
};
|
|
67
|
+
export const GLO_enterConsignment$Terminal = (obj) => {
|
|
68
|
+
const formNameTerminal = 'ng$consignment$terminal_dtl';
|
|
69
|
+
const formNameTerminalGeneral = 'ng$consignment_dtl_general';
|
|
70
|
+
const formNameTerminalSea = 'ng$consignment$terminal_dtl_sea';
|
|
71
|
+
GLO_enterConsignment(obj, formNameTerminal, formNameTerminalGeneral, formNameTerminalSea);
|
|
72
|
+
};
|
|
73
|
+
const warehouseTab = (obj, formName, formNameWarehouse) => {
|
|
74
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Warehouse', open);
|
|
75
|
+
cy.GLO_addInput([formNameWarehouse, 'warehouse'], obj.warehouseWarehouse);
|
|
76
|
+
cy.GLO_addInput([formNameWarehouse, 'receipt_location'], obj.warehouseReceiptLocation);
|
|
77
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Warehouse', close);
|
|
78
|
+
};
|
|
79
|
+
const seaTab = (obj, formName, formNameSea) => {
|
|
80
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Sea', open);
|
|
81
|
+
cy.GLO_popupWindow([formNameSea, 'shipper'], obj.shipper);
|
|
82
|
+
cy.GLO_addInput([formNameSea, 'txt_shipper_reference'], obj.shipperRef);
|
|
83
|
+
cy.GLO_addInput([formNameSea, 'supplier_incoterm'], obj.shipperIncoTerm);
|
|
84
|
+
cy.GLO_addInput([formNameSea, 'quay_code'], obj.quayCode);
|
|
85
|
+
cy.GLO_addInput([formNameSea, 'from_logistic_location'], obj.POL);
|
|
86
|
+
cy.GLO_addInput([formNameSea, 'to_logistic_location'], obj.POD);
|
|
87
|
+
cy.GLO_addInput([formNameSea, 'transport_method'], obj.transportMethod);
|
|
88
|
+
cy.GLO_addDate(input, [formNameSea, 'atd'], obj.atd);
|
|
89
|
+
cy.GLO_addDate(input, [formNameSea, 'goods_closing'], obj.goodsClosing);
|
|
90
|
+
cy.GLO_addDate(input, [formNameSea, 'vgm_closing'], obj.vgmClosing);
|
|
91
|
+
cy.GLO_addDate(input, [formNameSea, 'container_pickup_from_date'], obj.containerPickupFromDate);
|
|
92
|
+
cy.GLO_addDate(input, [formNameSea, 'container_delivery_from_date'], obj.containerDeliveryFromDate);
|
|
93
|
+
cy.GLO_addDate(input, [formNameSea, 'etd'], obj.etd);
|
|
94
|
+
cy.GLO_addDate(input, [formNameSea, 'eta'], obj.eta);
|
|
95
|
+
if (obj.journeyNr) {
|
|
96
|
+
cy.GLO_addInput([formNameSea, 'journey'], obj.journeyNr);
|
|
97
|
+
cy.GLO_filterGrid('journey_nr', ['ng$journey_dlg', 'grid'], obj.journeyNr);
|
|
98
|
+
cy.GLO_getElement(['ng$journey_dlg', 'grid']).within(() => {
|
|
99
|
+
cy.GLO_clickRowInGrid(obj.journeyNr, 'journey_nr');
|
|
100
|
+
});
|
|
101
|
+
cy.GLO_clickButton(['ng$journey_dlg', 'btn_save']);
|
|
102
|
+
}
|
|
103
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Sea', close);
|
|
104
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const GLO_enterContainerGroupDialog = (obj) => {
|
|
2
|
+
const formName = 'ng$consignment_order_consignment_container_group_add_dlg';
|
|
3
|
+
cy.GLO_addInput([formName, 'local_container_type_id'], obj.containerType);
|
|
4
|
+
cy.GLO_addInput([formName, 'local_container_subtype_id'], obj.containerSubtype);
|
|
5
|
+
cy.GLO_addInput([formName, 'local_nr_containers_booked'], obj.quantity);
|
|
6
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objConsignmentGoods = {
|
|
3
|
+
articleCode?: string;
|
|
4
|
+
quantity?: number;
|
|
5
|
+
commodity?: string;
|
|
6
|
+
commodityDescription?: string;
|
|
7
|
+
articleDescription?: string;
|
|
8
|
+
grossWeight?: string | number;
|
|
9
|
+
loadingMeters?: string;
|
|
10
|
+
flagPalletExchange?: CheckState;
|
|
11
|
+
flagPalletTransaction?: CheckState;
|
|
12
|
+
loadReference?: string;
|
|
13
|
+
unloadReference?: string;
|
|
14
|
+
mark1?: string;
|
|
15
|
+
itemNr?: string;
|
|
16
|
+
height?: string;
|
|
17
|
+
length?: string;
|
|
18
|
+
width?: string;
|
|
19
|
+
customerDescription?: string;
|
|
20
|
+
STC?: number;
|
|
21
|
+
mark2?: string;
|
|
22
|
+
mrn?: string;
|
|
23
|
+
diameter?: string;
|
|
24
|
+
packageType?: string;
|
|
25
|
+
commodityQuantity?: number;
|
|
26
|
+
commodityQuantityType?: string;
|
|
27
|
+
serialType?: 'search' | 'create';
|
|
28
|
+
serialNr?: string;
|
|
29
|
+
warehouseLocation?: string;
|
|
30
|
+
thickness?: number;
|
|
31
|
+
netWeight?: string | number;
|
|
32
|
+
surface?: string;
|
|
33
|
+
volume?: string;
|
|
34
|
+
marksNumbers?: string;
|
|
35
|
+
packagingQuantity?: number;
|
|
36
|
+
};
|
|
37
|
+
export declare const GLO_enterConsignmentGoods$Terminal: (obj: objConsignmentGoods) => void;
|
|
38
|
+
export declare const GLO_enterConsignmentGoods: (obj: objConsignmentGoods) => void;
|
|
39
|
+
export declare const GLO_enterConsignmentGoodsDialog$Terminal: (obj: objConsignmentGoods) => void;
|
|
40
|
+
export declare const GLO_enterConsignmentGoodsDialog$logistics: (obj: objConsignmentGoods) => void;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { close, open, skipCheck, span, svyNavSelection } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterConsignmentGoods$Terminal = (obj) => {
|
|
3
|
+
const formName = 'ng$consignment_goods$terminal_dtl';
|
|
4
|
+
enterConsignmentGoods(obj, formName);
|
|
5
|
+
};
|
|
6
|
+
export const GLO_enterConsignmentGoods = (obj) => {
|
|
7
|
+
const formName = 'ng$consignment_goods_dtl';
|
|
8
|
+
enterConsignmentGoods(obj, formName);
|
|
9
|
+
};
|
|
10
|
+
const enterConsignmentGoods = (obj, formName) => {
|
|
11
|
+
if (obj.articleCode) {
|
|
12
|
+
cy.GLO_popupWindow([formName, 'local_article_code'], obj.articleCode);
|
|
13
|
+
cy.GLO_checkLoadingIndicator();
|
|
14
|
+
}
|
|
15
|
+
cy.GLO_addInput([formName, 'article_description'], obj.articleDescription);
|
|
16
|
+
cy.GLO_addInput([formName, 'quantity'], obj.quantity);
|
|
17
|
+
cy.GLO_addInput([formName, 'packaging_per'], obj.commodityQuantity);
|
|
18
|
+
cy.GLO_addInput([formName, 'container_subtype_booked'], obj.commodityQuantityType);
|
|
19
|
+
cy.GLO_addInput([formName, 'packaging_quantity'], obj.packagingQuantity);
|
|
20
|
+
cy.GLO_addInput([formName, 'marks_and_numbers'], obj.marksNumbers);
|
|
21
|
+
cy.GLO_addInput([formName, 'gross_weight'], obj.grossWeight);
|
|
22
|
+
cy.GLO_addInput([formName, 'net_weight'], obj.netWeight);
|
|
23
|
+
if (obj.serialType === 'search') {
|
|
24
|
+
cy.GLO_addInput([formName, 'quantity'], obj.quantity);
|
|
25
|
+
}
|
|
26
|
+
else if (obj.serialType === 'create') {
|
|
27
|
+
cy.GLO_clickButton([formName, 'txt_serial'], 'fa-plus');
|
|
28
|
+
cy.GLO_addInput(['ng$serial_entry_dlg', 'txt_serial_nr'], obj.serialNr);
|
|
29
|
+
cy.GLO_clickButton(['ng$serial_entry_dlg', 'btn_save']);
|
|
30
|
+
}
|
|
31
|
+
if (obj.warehouseLocation) {
|
|
32
|
+
warehouseTab(obj, formName);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const warehouseTab = (obj, formName) => {
|
|
36
|
+
const formNameWarehouse = 'ng$consignment_goods_dtl_warehouse';
|
|
37
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Warehouse', open);
|
|
38
|
+
if (obj.warehouseLocation) {
|
|
39
|
+
cy.GLO_addInput([formNameWarehouse, 'reserved_warehouse_location_id'], obj.warehouseLocation);
|
|
40
|
+
cy.GLO_dblClickRowInGrid(span, [svyNavSelection, 'search_tab'], obj.warehouseLocation, undefined, skipCheck);
|
|
41
|
+
}
|
|
42
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Warehouse', close);
|
|
43
|
+
};
|
|
44
|
+
export const GLO_enterConsignmentGoodsDialog$Terminal = (obj) => {
|
|
45
|
+
GLO_enterConsignmentGoodsDialog(obj, 'ng$consignment$terminal_add_consignment_goods_dlg');
|
|
46
|
+
};
|
|
47
|
+
export const GLO_enterConsignmentGoodsDialog$logistics = (obj) => {
|
|
48
|
+
GLO_enterConsignmentGoodsDialog(obj, 'ng$add_consignment_goods$logistics_dlg');
|
|
49
|
+
};
|
|
50
|
+
const GLO_enterConsignmentGoodsDialog = (obj, formName) => {
|
|
51
|
+
cy.GLO_addInput([formName, 'local_article'], obj.articleCode);
|
|
52
|
+
cy.GLO_addInput([formName, 'quantity'], obj.quantity);
|
|
53
|
+
cy.GLO_addInput([formName, 'package_type'], obj.packageType);
|
|
54
|
+
cy.GLO_addInput([formName, 'gross_weight'], obj.grossWeight);
|
|
55
|
+
cy.GLO_addInput([formName, 'mark1'], obj.mark1);
|
|
56
|
+
cy.GLO_addInput([formName, 'net_weight'], obj.netWeight);
|
|
57
|
+
cy.GLO_addInput([formName, 'llength'], obj.length);
|
|
58
|
+
cy.GLO_addInput([formName, 'width'], obj.width);
|
|
59
|
+
cy.GLO_addInput([formName, 'height'], obj.height);
|
|
60
|
+
cy.GLO_addInput([formName, 'surface'], obj.surface);
|
|
61
|
+
cy.GLO_addInput([formName, 'volume'], obj.volume);
|
|
62
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type objConsignmentOrder = {
|
|
2
|
+
relationCode?: string;
|
|
3
|
+
agentCode?: string;
|
|
4
|
+
relationRef?: string;
|
|
5
|
+
relationRef2?: string;
|
|
6
|
+
orderByRelation?: string;
|
|
7
|
+
orderByRelationContact?: string;
|
|
8
|
+
orderByRelationContactAdd?: string;
|
|
9
|
+
secBranchId?: string;
|
|
10
|
+
shippingCondition?: string;
|
|
11
|
+
forwarder?: string;
|
|
12
|
+
forwarderContact?: string;
|
|
13
|
+
fromLogisticLocation?: string;
|
|
14
|
+
toLogisticLocation?: string;
|
|
15
|
+
agentContact?: string;
|
|
16
|
+
logisticContract?: string;
|
|
17
|
+
currency?: string;
|
|
18
|
+
contact?: contact;
|
|
19
|
+
};
|
|
20
|
+
type contact = {
|
|
21
|
+
firstName?: string;
|
|
22
|
+
lastName?: string;
|
|
23
|
+
title?: string;
|
|
24
|
+
gender?: 'Male' | 'Female';
|
|
25
|
+
language?: string;
|
|
26
|
+
phone?: string | number;
|
|
27
|
+
mobileNr?: string | number;
|
|
28
|
+
email?: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const GLO_enterConsignmentOrder$Logistics: (obj: objConsignmentOrder) => void;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { close, equalBool, open } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterConsignmentOrder$Logistics = (obj) => {
|
|
3
|
+
const formName = 'ng$consignment_order$logistics_dtl';
|
|
4
|
+
const formNameConsignmentOrderDtlTabGeneral = 'ng$consignment_order_dtl_general';
|
|
5
|
+
const formNameAddContact = 'ng$relations_dtl_add_contact_dlg';
|
|
6
|
+
cy.GLO_addInput([formName, 'relation_id'], obj.relationCode);
|
|
7
|
+
cy.GLO_popupWindow([formName, 'order_by_relation_id'], obj.orderByRelation);
|
|
8
|
+
cy.GLO_popupWindow([formName, 'logistic_contract_id'], obj.logisticContract);
|
|
9
|
+
cy.GLO_addInput([formName, 'order_by_relation_contact_id'], obj.orderByRelationContact);
|
|
10
|
+
if (obj.contact && Object.values(obj.contact).some((v) => !!v)) {
|
|
11
|
+
cy.GLO_clickButton([formName, 'btn_add_relation_contact']);
|
|
12
|
+
cy.GLO_addInput([formNameAddContact, 'firstname'], obj.contact.firstName);
|
|
13
|
+
cy.GLO_addInput([formNameAddContact, 'lastname'], obj.contact.lastName);
|
|
14
|
+
cy.GLO_addInput([formNameAddContact, 'title'], obj.contact.title);
|
|
15
|
+
cy.GLO_radioButton([formNameAddContact, 'gender'], obj.contact.gender);
|
|
16
|
+
cy.GLO_addInput([formNameAddContact, 'language_code'], obj.contact.language);
|
|
17
|
+
cy.GLO_addInput([formNameAddContact, 'phone'], obj.contact.phone);
|
|
18
|
+
cy.GLO_addInput([formNameAddContact, 'mobile_nr'], obj.contact.mobileNr);
|
|
19
|
+
cy.GLO_addInput([formNameAddContact, 'emailaddress'], obj.contact.email);
|
|
20
|
+
cy.GLO_clickButton([formNameAddContact, 'btn_add']);
|
|
21
|
+
}
|
|
22
|
+
cy.GLO_popupWindow([formName, 'agent'], obj.agentCode);
|
|
23
|
+
cy.GLO_addInput([formName, 'relation_reference'], obj.relationRef);
|
|
24
|
+
cy.GLO_addInput([formName, 'relation_reference2'], obj.relationRef2);
|
|
25
|
+
cy.GLO_addInput([formName, 'currency_id'], obj.currency);
|
|
26
|
+
cy.GLO_addInput([formName, 'sec_branch_id'], obj.secBranchId);
|
|
27
|
+
cy.GLO_popupWindow([formName, 'forwarder'], obj.forwarder);
|
|
28
|
+
cy.GLO_addInput([formName, 'forwarder_contact_id'], obj.forwarderContact);
|
|
29
|
+
cy.GLO_addInput([formName, 'selector_agent_contact_id'], obj.agentContact);
|
|
30
|
+
cy.GLO_addInput([formName, 'deliverycondition'], obj.shippingCondition);
|
|
31
|
+
if (obj.fromLogisticLocation || obj.toLogisticLocation) {
|
|
32
|
+
cy.GLO_selectTab([formName, 'extended'], 'General', open);
|
|
33
|
+
cy.GLO_popupWindow([formNameConsignmentOrderDtlTabGeneral, 'from_logistic_location'], obj.fromLogisticLocation, undefined, equalBool);
|
|
34
|
+
cy.GLO_popupWindow([formNameConsignmentOrderDtlTabGeneral, 'to_logistic_location'], obj.toLogisticLocation, undefined, equalBool);
|
|
35
|
+
cy.GLO_selectTab([formName, 'extended'], 'General', close);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type objConsignmentPart = {
|
|
2
|
+
externalLotNr?: string;
|
|
3
|
+
productionSite?: string;
|
|
4
|
+
selectLot?: string;
|
|
5
|
+
quantity?: number;
|
|
6
|
+
packagingQuantity?: number;
|
|
7
|
+
lengthBooked?: number;
|
|
8
|
+
widthBooked?: number;
|
|
9
|
+
heightBooked?: number;
|
|
10
|
+
netWeight?: number;
|
|
11
|
+
grossWeight?: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const GLO_enterConsignmentPart: (obj: objConsignmentPart) => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const GLO_enterConsignmentPart = (obj) => {
|
|
2
|
+
const formName = 'ng$consignment_parts_dtl';
|
|
3
|
+
cy.GLO_addInput([formName, 'external_lot_nr'], obj.externalLotNr);
|
|
4
|
+
cy.GLO_addInput([formName, 'production_site'], obj.productionSite);
|
|
5
|
+
cy.GLO_addInput([formName, 'lot_id'], obj.selectLot);
|
|
6
|
+
cy.GLO_addInput([formName, 'quantity'], obj.quantity);
|
|
7
|
+
cy.GLO_addInput([formName, 'packaging_quantity'], obj.packagingQuantity);
|
|
8
|
+
cy.GLO_addInput([formName, 'length_booked'], obj.lengthBooked);
|
|
9
|
+
cy.GLO_addInput([formName, 'width_booked'], obj.widthBooked);
|
|
10
|
+
cy.GLO_addInput([formName, 'height_booked'], obj.heightBooked);
|
|
11
|
+
cy.GLO_addInput([formName, 'net_weight'], obj.netWeight);
|
|
12
|
+
cy.GLO_addInput([formName, 'gross_weight'], obj.grossWeight);
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { close, open } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterConsignmentParts = (obj) => {
|
|
3
|
+
const formName = 'ng$consignment_parts_dtl';
|
|
4
|
+
const stockRefsTabName = 'ng$consignment_parts_dtl_stock_refs';
|
|
5
|
+
const detailTabsName = 'tabs_70';
|
|
6
|
+
if (obj.stockRef1 || obj.stockRef2) {
|
|
7
|
+
cy.GLO_selectTab([formName, detailTabsName], 'Stock references', open);
|
|
8
|
+
cy.GLO_addInput([stockRefsTabName, 'stock_ref_1'], obj.stockRef1);
|
|
9
|
+
cy.GLO_addInput([stockRefsTabName, 'stock_ref_2'], obj.stockRef2);
|
|
10
|
+
cy.GLO_selectTab([formName, detailTabsName], 'Stock references', close);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type objConsignmentPrice = {
|
|
2
|
+
articleCode?: string;
|
|
3
|
+
salesPriceToInvoice?: number;
|
|
4
|
+
relationSelector?: string;
|
|
5
|
+
extraInvoiceSplit?: string;
|
|
6
|
+
salesCurrency?: string;
|
|
7
|
+
manualPrice?: number;
|
|
8
|
+
financialCorrectionReasonCode?: string;
|
|
9
|
+
quantityToInvoice?: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const GLO_enterConsignmentPrice: (obj: objConsignmentPrice) => void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { close, open } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterConsignmentPrice = (obj) => {
|
|
3
|
+
const formName = 'ng$consignment_price_dtl';
|
|
4
|
+
const formNameGeneral = 'ng$consignment_price_dtl_general';
|
|
5
|
+
cy.GLO_addInput([formName, 'article_code'], obj.articleCode);
|
|
6
|
+
if (obj.articleCode)
|
|
7
|
+
cy.GLO_checkLoadingIndicator();
|
|
8
|
+
if (obj.salesPriceToInvoice || obj.relationSelector || obj.extraInvoiceSplit || obj.manualPrice || obj.financialCorrectionReasonCode || obj.quantityToInvoice) {
|
|
9
|
+
cy.GLO_selectTab(['ng$consignment_price_dtl', 'tabs_70'], 'General', open);
|
|
10
|
+
cy.GLO_addInput([formNameGeneral, 'quantity_to_invoice'], obj.quantityToInvoice);
|
|
11
|
+
cy.GLO_addInput([formNameGeneral, 'sales_price_to_invoice'], obj.salesPriceToInvoice);
|
|
12
|
+
cy.GLO_addInput([formNameGeneral, 'sales_price_price_currency_id'], obj.salesCurrency);
|
|
13
|
+
cy.GLO_popupWindow([formNameGeneral, 'relation_selector'], obj.relationSelector);
|
|
14
|
+
cy.GLO_addInput([formNameGeneral, 'extra_invoice_split'], obj.extraInvoiceSplit);
|
|
15
|
+
cy.GLO_addInput([formNameGeneral, 'sales_price_in_price_currency'], obj.manualPrice);
|
|
16
|
+
cy.GLO_addInput([formNameGeneral, 'financial_correction_reason_code_id'], obj.financialCorrectionReasonCode);
|
|
17
|
+
cy.GLO_selectTab(['ng$consignment_price_dtl', 'tabs_70'], 'General', close);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const GLO_enterConsignmentSupplier = (obj) => {
|
|
2
|
+
const formName = 'ng$consignment_supplier_dtl';
|
|
3
|
+
if (obj.logisticContractItemCode) {
|
|
4
|
+
cy.GLO_clearField([formName, 'logistic_contract_item']);
|
|
5
|
+
cy.GLO_addInput([formName, 'logistic_contract_item'], obj.logisticContractItemCode);
|
|
6
|
+
}
|
|
7
|
+
if (obj.logisticContractDetailCode && obj.logisticContractCode) {
|
|
8
|
+
cy.GLO_clearField([formName, 'logistic_contract_detail']);
|
|
9
|
+
cy.GLO_popupWindow([formName, 'logistic_contract_detail'], obj.logisticContractDetailCode);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objContacts = {
|
|
3
|
+
firstname?: string;
|
|
4
|
+
lastname?: string;
|
|
5
|
+
flagSalesorder?: CheckState;
|
|
6
|
+
flagSalesInvoice?: CheckState;
|
|
7
|
+
flagSalesDelivery?: CheckState;
|
|
8
|
+
emailaddressContact?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const GLO_enterContacts: (obj: objContacts) => void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { open } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterContacts = (obj) => {
|
|
3
|
+
const formName = 'ng$relation_contact_dtl_general';
|
|
4
|
+
const formNameGeneral = 'ng$relations_relation_contact_dtl';
|
|
5
|
+
const formNameRelation = 'ng$relations_relation_contact_dtl_relation';
|
|
6
|
+
const formNameCommunication = 'ng$relation_contact_dtl_communication';
|
|
7
|
+
cy.GLO_addInput([formName, 'firstname'], obj.firstname);
|
|
8
|
+
cy.GLO_addInput([formName, 'lastname'], obj.lastname);
|
|
9
|
+
cy.GLO_checkbox([formNameRelation, 'flag_salesorder'], obj.flagSalesorder);
|
|
10
|
+
cy.GLO_checkbox([formNameRelation, 'flag_sales_invoice'], obj.flagSalesInvoice);
|
|
11
|
+
cy.GLO_checkbox([formNameRelation, 'flag_sales_delivery'], obj.flagSalesDelivery);
|
|
12
|
+
cy.GLO_selectTab([formNameGeneral, 'tabs_relation_contact_dtl_relation'], 'Communication', open);
|
|
13
|
+
cy.GLO_addInput([formNameCommunication, 'emailaddress'], obj.emailaddressContact);
|
|
14
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objContract = {
|
|
3
|
+
contractTypeId?: string;
|
|
4
|
+
contractSubtypeId?: string;
|
|
5
|
+
extraSearchCode?: string;
|
|
6
|
+
contractStartDate?: string;
|
|
7
|
+
contractEndDate?: string;
|
|
8
|
+
salesorderStartDate?: string;
|
|
9
|
+
customsStatus?: string;
|
|
10
|
+
warehouseId?: string;
|
|
11
|
+
customer?: string | number;
|
|
12
|
+
paymentConditionId?: string;
|
|
13
|
+
deliveryConditionId?: string;
|
|
14
|
+
yourReference?: string;
|
|
15
|
+
ourReference?: string;
|
|
16
|
+
validityTimespan?: string;
|
|
17
|
+
availabilityWeek?: string;
|
|
18
|
+
availabilityYear?: string;
|
|
19
|
+
flagInvoiceStock?: CheckState;
|
|
20
|
+
flagAutoRenew?: CheckState;
|
|
21
|
+
};
|
|
22
|
+
export declare const GLO_enterContract: (obj: objContract) => void;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { close, input, notEqual, open } from '../tsHelper.js';
|
|
2
|
+
const formName = 'ng$contract_dtl';
|
|
3
|
+
const formNameGeneral = 'ng$contract_dtl_general';
|
|
4
|
+
export const GLO_enterContract = (obj) => {
|
|
5
|
+
cy.GLO_addInput([formName, 'contract_type_id'], obj.contractTypeId);
|
|
6
|
+
if (obj.contractTypeId && obj.contractSubtypeId)
|
|
7
|
+
cy.GLO_checkLoadingIndicator();
|
|
8
|
+
cy.GLO_addInput([formName, 'contract_subtype_id'], obj.contractSubtypeId);
|
|
9
|
+
cy.GLO_checkbox([formName, 'flag_invoice_stock'], obj.flagInvoiceStock);
|
|
10
|
+
cy.GLO_checkbox([formName, 'flag_auto_renew'], obj.flagAutoRenew);
|
|
11
|
+
cy.GLO_addInput([formName, 'extra_search_code'], obj.extraSearchCode);
|
|
12
|
+
cy.GLO_addDate(input, [formName, 'salesorder_entry_start_date'], obj.salesorderStartDate);
|
|
13
|
+
cy.GLO_addDate(input, [formName, 'contract_date'], obj.contractStartDate);
|
|
14
|
+
cy.GLO_addDate(input, [formName, 'contract_enddate'], obj.contractEndDate);
|
|
15
|
+
cy.GLO_addInput([formName, 'customs_status'], obj.customsStatus);
|
|
16
|
+
cy.GLO_addInput([formName, 'warehouse_id'], obj.warehouseId);
|
|
17
|
+
if (obj.customer || obj.paymentConditionId || obj.deliveryConditionId || obj.yourReference || obj.ourReference) {
|
|
18
|
+
GLO_addContractGeneral(obj);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const GLO_addContractGeneral = (obj) => {
|
|
22
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'General', open);
|
|
23
|
+
cy.GLO_popupWindow([formNameGeneral, 'btn_select_relation'], obj.customer);
|
|
24
|
+
cy.GLO_checkField([formNameGeneral, 'general_address'], '', notEqual, 10000);
|
|
25
|
+
cy.GLO_addInput([formNameGeneral, 'paymentcondition_id'], obj.paymentConditionId);
|
|
26
|
+
cy.GLO_addInput([formNameGeneral, 'deliverycondition_id'], obj.deliveryConditionId);
|
|
27
|
+
cy.GLO_addInput([formNameGeneral, 'your_reference'], obj.yourReference);
|
|
28
|
+
cy.GLO_addInput([formNameGeneral, 'our_reference'], obj.ourReference);
|
|
29
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'General', close);
|
|
30
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type objContractArticle = {
|
|
2
|
+
articleStatus?: string;
|
|
3
|
+
articleCode?: string;
|
|
4
|
+
articleCodeCustomer?: string;
|
|
5
|
+
minOrderQuantity?: number;
|
|
6
|
+
quantity?: number;
|
|
7
|
+
articlePrice?: string | number;
|
|
8
|
+
articleVersion?: string;
|
|
9
|
+
dialogOverrideMaintain?: string;
|
|
10
|
+
addressPortOfDeparture?: string;
|
|
11
|
+
containerType1?: string;
|
|
12
|
+
deliveryAddress?: string;
|
|
13
|
+
endCustomer?: string;
|
|
14
|
+
totalVolume?: number;
|
|
15
|
+
otherChanges?: number;
|
|
16
|
+
};
|
|
17
|
+
export declare const GLO_enterContractArticle: (obj: objContractArticle) => void;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { close, notEqual, open, skipCheck, span } from '../tsHelper.js';
|
|
2
|
+
const formName = 'ng$contract_article_dtl';
|
|
3
|
+
export const GLO_enterContractArticle = (obj) => {
|
|
4
|
+
const formName = 'ng$contract_article_dtl';
|
|
5
|
+
cy.GLO_addInput([formName, 'contract_article_status'], obj.articleStatus);
|
|
6
|
+
cy.GLO_popupWindow([formName, 'btn_select_article'], obj.articleCode);
|
|
7
|
+
if (obj.articleCode !== undefined)
|
|
8
|
+
cy.GLO_checkField([formName, 'description'], '', notEqual, 30000);
|
|
9
|
+
if (obj.articleVersion)
|
|
10
|
+
cy.GLO_dblClickRowInGrid(span, ['ng$articleversion_sel', 'grid'], obj.articleVersion, 'alternate_article_code', skipCheck);
|
|
11
|
+
// If the Customs status is different from the contract article, a dialog will be shown.
|
|
12
|
+
if (obj.dialogOverrideMaintain)
|
|
13
|
+
cy.GLO_dialogChoice(obj.dialogOverrideMaintain);
|
|
14
|
+
if (obj.minOrderQuantity) {
|
|
15
|
+
cy.GLO_addInput([formName, 'minimum_orderquantity'], obj.minOrderQuantity);
|
|
16
|
+
cy.GLO_checkLoadingIndicator();
|
|
17
|
+
}
|
|
18
|
+
cy.GLO_addInput([formName, 'quantity'], obj.quantity);
|
|
19
|
+
cy.GLO_addInput([formName, 'price'], obj.articlePrice);
|
|
20
|
+
cy.GLO_addInput([formName, 'customer_article_code'], obj.articleCodeCustomer);
|
|
21
|
+
if (obj.addressPortOfDeparture || obj.containerType1 || obj.deliveryAddress || obj.endCustomer) {
|
|
22
|
+
GLO_addContractArticleAttributes(obj);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const GLO_addContractArticleAttributes = (obj) => {
|
|
26
|
+
// Tab 'Attributes'
|
|
27
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Attributes', open);
|
|
28
|
+
cy.GLO_addInput([formName, 'attribute_value_8916fdae_dc34_4545_8e1e_fd6fd55419ac'], obj.addressPortOfDeparture);
|
|
29
|
+
cy.GLO_addInput([formName, 'attribute_value_358f0da6_1da6_40a7_9764_269498d6ccad'], obj.containerType1);
|
|
30
|
+
cy.GLO_addInput([formName, 'attribute_value_aac51ccd_cbdd_460c_949e_57acbd201231'], obj.deliveryAddress);
|
|
31
|
+
cy.GLO_addInput([formName, 'attribute_value_4988f241_e64c_45e9_bef6_58f448a39806'], obj.endCustomer);
|
|
32
|
+
cy.GLO_addInput([formName, 'attribute_value_d849de33_7566_4dc7_8207_d1f6afa7de5e'], obj.totalVolume);
|
|
33
|
+
cy.GLO_addInput([formName, 'attribute_value_b28e6a8d_78ae_4679_b5c2_ce922ba66fb6'], obj.otherChanges);
|
|
34
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Attributes', close);
|
|
35
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const GLO_enterContractArticleCost = (obj) => {
|
|
2
|
+
const formName = 'ng$contract_article_cost_dtl';
|
|
3
|
+
// Update this to GLO_popupwindow if this program ever gets updated to the new version
|
|
4
|
+
cy.GLO_addInput([formName, 'local_article_code'], obj.articleCode);
|
|
5
|
+
if (obj.articleCode)
|
|
6
|
+
cy.GLO_checkLoadingIndicator();
|
|
7
|
+
cy.GLO_addInput([formName, 'price'], obj.price);
|
|
8
|
+
};
|