@@ -1301,6 +1301,24 @@ codeunit 11148 "Create AT GL Account"
1301
1301
until GLAccountCategory. Next() = 0 ;
1302
1302
end ;
1303
1303
1304
+ internal procedure UpdateVATProdPostGrpInGLAccounts()
1305
+ var
1306
+ GLAccounts: Record "G/L Account";
1307
+ CreateVATPostingGroups: Codeunit "Create VAT Posting Groups";
1308
+ CreateVATPostingGroupAT: Codeunit "Create VAT Posting Group AT";
1309
+ begin
1310
+ GLAccounts. SetFilter( "VAT Prod. Posting Group", ' <>%1' , ' ' ) ;
1311
+ if GLAccounts. FindSet() then
1312
+ repeat
1313
+ if GLAccounts. "VAT Prod. Posting Group" = CreateVATPostingGroups. Standard() then
1314
+ GLAccounts. Validate( GLAccounts. "VAT Prod. Posting Group", CreateVATPostingGroupAT. VAT20()) ;
1315
+ if GLAccounts. "VAT Prod. Posting Group" = CreateVATPostingGroups. Reduced() then
1316
+ GLAccounts. Validate( GLAccounts. "VAT Prod. Posting Group", CreateVATPostingGroupAT. VAT10()) ;
1317
+ if GLAccounts. "VAT Prod. Posting Group" <> CreateVATPostingGroupAT. NOVAT() then
1318
+ GLAccounts. Modify ( true) ;
1319
+ until GLAccounts. Next() = 0 ;
1320
+ end ;
1321
+
1304
1322
procedure AssignCategoryToChartOfAccounts( GLAccountCategory: Record "G/L Account Category")
1305
1323
var
1306
1324
CreateGLAccount: Codeunit "Create G/L Account";
@@ -1336,20 +1354,12 @@ codeunit 11148 "Create AT GL Account"
1336
1354
CreateGLAccount: Codeunit "Create G/L Account";
1337
1355
begin
1338
1356
case GLAccountCategory. Description of
1339
- // GLAccountCategoryMgt.GetCurrentAssets():
1340
- // ;
1341
1357
GLAccountCategoryMgt. GetCash() :
1342
1358
UpdateGLAccounts( GLAccountCategory, CashAndBank() , TotalCashAndBank()) ;
1343
1359
GLAccountCategoryMgt. GetAR() :
1344
1360
UpdateGLAccounts( GLAccountCategory, OtherCurrentAssets() , TotalAccountsReceivable()) ;
1345
- // GLAccountCategoryMgt.GetPrepaidExpenses():
1346
- // ;
1347
1361
GLAccountCategoryMgt. GetInventory() :
1348
1362
UpdateGLAccounts( GLAccountCategory, SUPPLIES() , TOTALSUPPLIES()) ;
1349
- // GLAccountCategoryMgt.GetEquipment():
1350
- // ;
1351
- // GLAccountCategoryMgt.GetAccumDeprec():
1352
- // ;
1353
1363
GLAccountCategoryMgt. GetCurrentLiabilities() :
1354
1364
begin
1355
1365
UpdateGLAccounts( GLAccountCategory, LIABILITIESPROVISIONS() , TotalProvisions()) ;
@@ -1374,30 +1384,14 @@ codeunit 11148 "Create AT GL Account"
1374
1384
UpdateGLAccounts( GLAccountCategory, SalesRevenuesRawMaterial() , TotalSalesRevenuesRawMaterial()) ;
1375
1385
GLAccountCategoryMgt. GetIncomeSalesDiscounts() :
1376
1386
UpdateGLAccounts( GLAccountCategory, RevenueAdjustments() , TotalRevenueAdjustments()) ;
1377
- // GLAccountCategoryMgt.GetIncomeSalesReturns():
1378
- // ;
1379
1387
GLAccountCategoryMgt. GetIncomeInterest() :
1380
1388
UpdateGLAccounts( GLAccountCategory, ChargesAndInterest() , TotalChargesAndInterest()) ;
1381
- // GLAccountCategoryMgt.GetCOGSLabor():
1382
- // ;
1383
1389
GLAccountCategoryMgt. GetCOGSMaterials() :
1384
1390
UpdateGLAccounts( GLAccountCategory, COSTOFMATERIALS() , TOTALCOSTOFMATERIALS()) ;
1385
- // GLAccountCategoryMgt.GetRentExpense():
1386
- // ;
1387
- // GLAccountCategoryMgt.GetAdvertisingExpense():
1388
- // ;
1389
1391
GLAccountCategoryMgt. GetInterestExpense() :
1390
1392
UpdateGLAccounts( GLAccountCategory, FINANCIALREVENUESANDEXPENDITURESBeginTotal() , TotalFinancialIncomeAndExpensesEndTotal()) ;
1391
- // GLAccountCategoryMgt.GetFeesExpense():
1392
- // ;
1393
- // GLAccountCategoryMgt.GetInsuranceExpense():
1394
- // ;
1395
1393
GLAccountCategoryMgt. GetPayrollExpense() :
1396
1394
UpdateGLAccounts( GLAccountCategory, CreateGLAccount. PersonnelExpenses() , CreateGLAccount. TotalPersonnelExpenses()) ;
1397
- // GLAccountCategoryMgt.GetBenefitsExpense():
1398
- // ;
1399
- // GLAccountCategoryMgt.GetRepairsExpense():
1400
- // ;
1401
1395
GLAccountCategoryMgt. GetUtilitiesExpense() :
1402
1396
UpdateGLAccounts( GLAccountCategory, OfficeAdvertisingAndMaintenanceExpenditure() , TotalOfficeAdvertisingMaintenanceExpenditure()) ;
1403
1397
GLAccountCategoryMgt. GetOtherIncomeExpense() :
0 commit comments