Post-reinstallation instructions
E-shop - change of the eshop1 template
From version bora.01, the original eshop1 template is replaced by the updated eshop1.1. template.
If you have already switched to the eshop1.1 template, nothing changes for your e-shop when upgrading to the bora version.
For all e-shops that have used the eshop1 template so far, the appearance will change after upgrading to the new version.
If the e-shop contains special modifications of the template, we recommend verifying their functionality and display after upgrading to bora.01. If necessary, these modifications must be adapted to the new template.
K2 bora structure changes
A description of the changes to the database and logical structures and a list of new and cancelled rights can be found here.
New way of working with attached documents in scripts
The TAttachedDocumentDM class has been rewritten to new fields. For attaching and removing documents, it contains the AddDocument and DeleteDocument methods. Both take the same parameters: the table number of the attached document and the primary key (RID, SID, Id). The construction from NactiMPol to UlozMPol has been replaced by a single call.
Example of linking two documents:
- JobCardDM.AttachedDocument.AddDocument(E_SalesOrder, SalOrDM.RID);
- SalOrDM.AttachedDocument.AddDocument(E_JobCard, JobCardDM.RID);
Functions for printing documents in the AM_StandardDoc script – logical parameters instead of the Flags field
From version bora.01, the Flags field on documents and their items is split into separate logical fields. The functions in the AM_StandardDoc script that read flags from the Flags field therefore take the values of these fields directly instead of the Flags string and position numbers. The other parameters and the result of the functions remain the same.
Changed functions:
- GetPriceTaxRec(Flags, 1, 4, 6, …) › GetPriceTaxRec(IsForeignCurrency, VAT, HasMultipleSuperiors, …)
- GetPriceTaxRecF(Flags, 1, 4, …) › GetPriceTaxRecF(IsForeignCurrency, VAT, …)
- TaxRecInItalic(Flags, 1, 4) › TaxRecInItalic(IsForeignCurrency, VAT)
- TaxRecapInItalic(Flags) › TaxRecapInItalic(IsForeignCurrency, VAT)
- TaxRecapText(Flags, …) › TaxRecapText(VAT, …)
- SuppressTaxRecOwnCurr(Flags, …) › SuppressTaxRecOwnCurr(IsForeignCurrency, VAT, …)
- SuppNettoAndVat(Flags, 21) › SuppNettoAndVat(IsGrossMethod)
- LayoutOfVATFromAbove(Flags, 21, …) › LayoutOfVATFromAbove(IsGrossMethod, …)
- GetTitlePF_DOK01(Flags, …) › GetTitlePF_DOK01(IsCreditNote, …)
- GetDiscountType(item Flags, 9 / 21, …) › GetDiscountType(AbsDiscountInv / AbsDiscountPlan, …)
- TypeOfReduc(9 / 21, item Flags) › TypeOfReduc(AbsDiscountInv / AbsDiscountPlan)
The numbers in the original calls are positions in the Flags string numbered from 1. In the K2 bora structure changes overview, bits are numbered from 0, so position 21 corresponds to bit 20 there.
Examples:
- previously: TaxRecInItalic(Data.Flags, 1, 4)
- now: TaxRecInItalic(Data.IsForeignCurrency, Data.VAT)
- previously: GetDiscountType(Data.SalesItemChild_Flags, 9, Data.CurrencyBySwitchCalc)
- now: GetDiscountType(Data.SalesItemChild_AbsDiscountInv, Data.CurrencyBySwitchCalc)
K2 APIv2 - upgrade to .NET 10
From version bora.01, K2 APIv2 requires .NET 10 to run in a Windows environment. When running K2 APIv2 on a Windows server within IIS, it will be necessary to install the current ASP.NET Core 10 Runtime – Windows Hosting Bundle. Direct download link: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-10.0.12-windows-hosting-bundle-installer.