When I create a salse order, input the item, it apears:
The VAT Posting Setup does not exit.
Identification fields and values:
VAT Bus.Posting Group=",VAT Prod. Posting Group="
But infact, all posting groups had been setup already.
Why it heppen?
Thanks.
[/b]
0
Comments
Before I can fill the VAT fields in sales line, I have to fill the Item No. first.
The warning is at this moment. So I can't go on.
Thanks
Yes, infact, all the VAT posting Groups exist, the one for Customer, Inventory, Item ...
The program stoped here(The line whie a *):
VAT Prod. Posting Group - OnValidate()
// NAVIN
TestStatusOpen;
* VATPostingSetup.GET("VAT Bus. Posting Group","VAT Prod. Posting Group");
"VAT Difference" := 0;
"VAT %" := VATPostingSetup."VAT %";
"VAT Calculation Type" := VATPostingSetup."VAT Calculation Type";
"VAT Identifier" := VATPostingSetup."VAT Identifier";
CASE "VAT Calculation Type" OF
"VAT Calculation Type"::"Reverse Charge VAT",
"VAT Calculation Type"::"Sales Tax":
"VAT %" := 0;
"VAT Calculation Type"::"Full VAT":
BEGIN
TESTFIELD(Type,Type::"G/L Account");
VATPostingSetup.TESTFIELD("Sales VAT Account");
TESTFIELD("No.",VATPostingSetup."Sales VAT Account");
END;
END;
IF SalesHeader."Prices Including VAT" AND (Type IN [Type::Item,Type::Resource]) THEN
"Unit Price" :=
ROUND(
"Unit Price" * (100 + "VAT %") / (100 + xRec."VAT %"),
Currency."Unit-Amount Rounding Precision");
UpdateAmounts;
// NAVIN
General Ledger - Setup - Setup Checklist
- VAT Posting Setup, with data:
VAT % :0
VAT Calculation Type: Normal VAT
So the problem solved. It's very strange.
P.S.
The VAT setup in the Setup Checklist is not the same table with
The VAT posting setup in the General Ledger, Why?