Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Shopify] - Different Shipping Charges Types Tests #7

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
531d3eb
[Shopify] - Different Shipping Charges Types Tests
GediminasGaubys Oct 29, 2024
8a25c8f
Additional small changes
GediminasGaubys Oct 31, 2024
fe1fe17
[Shopify] Customer/Company Metafields (#27542)
tinestaric Nov 1, 2024
ea13da4
[Shopify] - Add Item As Variant Tests (#27541)
tinestaric Nov 1, 2024
55a817f
Syncing with version 26.0.26183.0 (#27582)
aholstrup1 Nov 1, 2024
85ab17a
[Shopify] Fix sync catalog price issue (#27555)
glachana Nov 6, 2024
a1ddf21
[Shopify] Shopify Return Location on Refunds tests (#27578)
GediminasGaubys Nov 11, 2024
9a75182
[Shopify] - Export Posted Sales Invoices to Shopify as Orders Tests (…
GediminasGaubys Nov 11, 2024
33e0e73
make shipping charges account field using newly created gl account
petemchlk Nov 12, 2024
2019b8b
fix object id
petemchlk Nov 12, 2024
d4c12e2
add idRange in test app.json
petemchlk Nov 12, 2024
bcd12ca
fix idRange
petemchlk Nov 13, 2024
e2a83ee
Reenable test execution (#27587)
aholstrup1 Nov 13, 2024
610bd2f
Initial upload of the Dynamics SL Historical Data extension (#27527)
blauerPCL Nov 13, 2024
cc4a087
Syncing with version 26.0.26946.0 (#27653)
Groenbech96 Nov 19, 2024
449bcbe
Syncing with version 26.0.26951.0 (#27654)
Groenbech96 Nov 20, 2024
07aa6c5
Syncing with version 26.0.27052.0 (#27662)
Groenbech96 Nov 21, 2024
830a296
Merge branch 'main' into dev/gga/shippingChargesTests
JesperSchulz Nov 21, 2024
6ad7ac5
Comment code back in.
JesperSchulz Nov 21, 2024
7e9f832
Update ID
JesperSchulz Nov 27, 2024
302fa7f
change using existing GL account to newly created GL account
petemchlk Nov 28, 2024
82cdaa6
add missing vat posting group creation
petemchlk Nov 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/AL-Go-Settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"runs-on": "windows-latest",
"cacheImageName": "",
"UsePsSession": false,
"artifact": "https://bcinsider-fvh2ekdjecfjd6gk.b02.azurefd.net/sandbox/26.0.25961.0/base",
"artifact": "https://bcinsider-fvh2ekdjecfjd6gk.b02.azurefd.net/sandbox/26.0.27052.0/base",
"country": "base",
"useProjectDependencies": true,
"repoVersion": "26.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
codeunit 11158 "Create Bank Acc Posting Grp AT"
{
SingleInstance = true;
EventSubscriberInstance = Manual;
InherentEntitlements = X;
InherentPermissions = X;

[EventSubscriber(ObjectType::Table, Database::"Bank Account Posting Group", 'OnBeforeInsertEvent', '', false, false)]
local procedure OnBeforeInsertBankAccPostingGroup(var Rec: Record "Bank Account Posting Group"; RunTrigger: Boolean)
var
CreateBankAccPostingGrp: Codeunit "Create Bank Acc. Posting Grp";
CreateATGLAccount: Codeunit "Create AT GL Account";
CreateGLAccount: Codeunit "Create G/L Account";
begin
case Rec.Code of
CreateBankAccPostingGrp.Checking():
ValidateRecordFields(Rec, CreateGLAccount.BankLcy());
CreateBankAccPostingGrp.Savings(),
CreateBankAccPostingGrp.Operating():
ValidateRecordFields(Rec, CreateGLAccount.GiroAccount());
CreateBankAccPostingGrp.Cash():
ValidateRecordFields(Rec, CreateATGLAccount.BankCurrencies());
end;
end;

local procedure ValidateRecordFields(var BankAccountPostingGroup: Record "Bank Account Posting Group"; GLAccountNo: Code[20])
begin
BankAccountPostingGroup.Validate("G/L Account No.", GLAccountNo);
end;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
codeunit 11159 "Create Bank ExpImport Setup AT"
{
InherentEntitlements = X;
InherentPermissions = X;

trigger OnRun()
var
ContosoBank: Codeunit "Contoso Bank";
begin
ContosoBank.ContosoBankExportImportSetup(SEPACTAPCT(), SEPACTAPCDescLbl, 0, Codeunit::"SEPA CT APC-Export File", Xmlport::"SEPA CT pain.001.001.03", '', false, Codeunit::"SEPA CT-Check Line");
ContosoBank.ContosoBankExportImportSetup(SEPACTAPC09(), SEPACTAPC09DescLbl, 0, Codeunit::"SEPA CT APC-Export File", Xmlport::"SEPA CT pain.001.001.09", '', false, Codeunit::"SEPA CT-Check Line");
end;

procedure SEPACTAPCT(): Code[20]
begin
exit(SEPACTAPCTok);
end;

procedure SEPACTAPC09(): Code[20]
begin
exit(SEPACTAPC09Tok);
end;



var
SEPACTAPCTok: Label 'SEPACTAPC', MaxLength = 20;
SEPACTAPC09Tok: Label 'SEPACTAPC09', MaxLength = 20;
SEPACTAPCDescLbl: Label 'SEPA Credit Transfer APC', MaxLength = 100;
SEPACTAPC09DescLbl: Label 'SEPA Credit Transfer APC 09', MaxLength = 100;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
codeunit 11160 "Create Bank Account AT"
{
SingleInstance = true;
EventSubscriberInstance = Manual;
InherentEntitlements = X;
InherentPermissions = X;

[EventSubscriber(ObjectType::Table, Database::"Bank Account", 'OnBeforeInsertEvent', '', false, false)]
local procedure OnBeforeInsertBankAccount(var Rec: Record "Bank Account")
var
ContosoCoffeDemoDataSetup: Record "Contoso Coffee Demo Data Setup";
CreateBankAccount: Codeunit "Create Bank Account";
begin
ContosoCoffeDemoDataSetup.Get();
case Rec."No." of
CreateBankAccount.Checking():
ValidateBankAccount(Rec, CityGrazLbl, -1447200, ContosoCoffeDemoDataSetup."Country/Region Code", PostcodeGrazLbl);
CreateBankAccount.Savings():
ValidateBankAccount(Rec, CityGrazLbl, 0, ContosoCoffeDemoDataSetup."Country/Region Code", PostcodeGrazLbl);
end;
end;

local procedure ValidateBankAccount(var BankAccount: Record "Bank Account"; BankAccCity: Text[30]; MinBalance: Decimal; CountryRegionCode: Code[10]; PostCode: Code[20])
begin
BankAccount.Validate("Post Code", PostCode);
BankAccount.Validate(City, BankAccCity);
BankAccount.Validate("Min. Balance", MinBalance);
BankAccount.Validate("Country/Region Code", CountryRegionCode);
end;

var
CityGrazLbl: Label 'Graz', MaxLength = 30;
PostcodeGrazLbl: Label '8010', MaxLength = 20;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
codeunit 11161 "Create Bank Acc. Reco. AT"
{
SingleInstance = true;
EventSubscriberInstance = Manual;
InherentEntitlements = X;
InherentPermissions = X;

trigger OnRun()
begin
UpdateBankAccReconciliation();
end;

local procedure UpdateBankAccReconciliation()
var
BankAccReconciliation: Record "Bank Acc. Reconciliation";
CreateBankAccount: Codeunit "Create Bank Account";
begin
if not BankAccReconciliation.Get(Enum::"Bank Acc. Rec. Stmt. Type"::"Bank Reconciliation", CreateBankAccount.Checking(), '24') then
exit;

BankAccReconciliation.Validate("Statement Ending Balance", 17924.53);
BankAccReconciliation.Modify();
end;

[EventSubscriber(ObjectType::Table, Database::"Bank Acc. Reconciliation Line", 'OnBeforeInsertEvent', '', false, false)]
local procedure OnInsertRecord(var Rec: Record "Bank Acc. Reconciliation Line"; RunTrigger: Boolean)
var
CreateBankAccount: Codeunit "Create Bank Account";
begin
if (Rec."Statement Type" = Rec."Statement Type"::"Bank Reconciliation") then begin
if (Rec."Bank Account No." = CreateBankAccount.Checking()) and (Rec."Statement No." = '24') then
case Rec."Statement Line No." of
10000:
ValidateRecordFields(Rec, Rec.Description, 2757.62);
20000:
ValidateRecordFields(Rec, Rec.Description, 4136.43);
30000:
ValidateRecordFields(Rec, DepositToAccountLbl, 11030.48);
end;
end else
if (Rec."Bank Account No." = CreateBankAccount.Checking()) and (Rec."Statement No." = 'PREC000') then
case Rec."Statement Line No." of
10000:
ValidateRecordFields(Rec, Rec.Description, -2520);
20000:
ValidateRecordFields(Rec, Rec.Description, -1828);
30000:
ValidateRecordFields(Rec, Rec.Description, -1340.1);
40000:
ValidateRecordFields(Rec, Rec.Description, 929.76);
50000:
ValidateRecordFields(Rec, Rec.Description, 10743.39);
60000:
ValidateRecordFields(Rec, Rec.Description, 3273.72);
end;
end;

local procedure ValidateRecordFields(var BankAccReconciliationLine: Record "Bank Acc. Reconciliation Line"; Description: Text[100]; Amount: Decimal)
begin
BankAccReconciliationLine.Validate(Description, Description);
BankAccReconciliationLine.Validate("Transaction Text", Description);
BankAccReconciliationLine.Validate("Statement Amount", Amount);
BankAccReconciliationLine.Validate("Applied Amount", Amount);
end;

var
DepositToAccountLbl: Label 'Deposit to Account 18.01.24', MaxLength = 100;
}
Loading
Loading