Visual Catpro
  

Designing a Simple Vat Invoice :

This article shows how to design a simple VAT invoice on a laser printer with plain paper pertaining that there are no DCC files exists. A basic knowledge about different module is required for that you may study the Introduction first.

First of all we have to design Doc types. To do so double click on date & time block on right top corner of the screen click on 'Doc. Types' button. After that following screen appears:

graphic

It shows the existing document types but if you are creating it first time then it appears blank. In such a case specify:
Document Type:   Invoice
Series Name:        VAT INVOICE
Sub Series Name:  Sale VAT 4%.

Same way for Sale VAT 12.5% Document Type remains INVOICE, Series Name remains VAT INVOICE and Sub Series Name SALE VAT 12.5%. You may view the Image to understand series structure more clearly.

After that it shows the the Doc Type properties window as shown below:
graphic

Note: You may set different properties for different sub series.

Now for making a Vat Series we have to set the properties as per requirement. Here we discuss the properties required to set a simple VAT invoice with their recommend values.
  
Property
Value
DocBillNoPrefix
V
DocBookForCash
C
DocBookForCredit
S
DocCalculateVAT
True
DocCashName
VAT INVOICE
DocColumnStyle
invoice1
DocDefaultTerm
True
DocInputStyle
invoice1
DocName
VAT INVOICE
DocPromptCopies
True
DocReportName
invoice1
DocTaxRate
4
DocTaxTitle
VAT
DocTerms
Bill, Cash
DocTitle1
invoice
DocTitle2
Invoices
DocTotalStyle
invoice1
DocType
Invoice
DocVATBill
True
DocVoucherFactor
1
SeriesCode
V
SeriesID
4
SeriesName
VAT Invoice
SubSeriesName
Sale VAT 4%

After mentioning values click on 'Save' button from the right button bar. Now if you want to create another Doc Sub Series for Sale VAT 12.5% then open the VAT Sale 4% Doc Sub Series, Change the SubSeriesName to Sale VAT 12.5% and DocTaxRate to 12.5% and click on Save button.

Now two Doc sub series 'Sale VAT 4%' and 'Sale VAT 12.5%' is created. Both Sub series are under common document numbering. If you want that both should have separate numbering then specify different SeriesName in both sub series.

After that we have to create Input Style, Column Style, Total Style and Doc Reports.

To create a InputStyle study Doc Inputs topic. Select the required fields in DocInputs and save DocInputStyle as the name mention in DocInputStyle property of a Doc sub Series. In above case we have taken 'invoice1' as the input style.

To create a ColumnStyle study Column Style topic. Select the required columns in DocColumns and save DocColumnStyle as the name mention in DocColumnStyle property of a Doc sub Series. In above case we have taken 'invoice1' as the column style.

To create a TotalStyle study Total Style topic. Select the required fields in DocTotals and save TotalStyle as the name mention in DocTotalStyle property of a Doc sub Series. In above case we have taken 'invoice1' as the Total style.

To create a DocReport study Doc Reports topic. Add the required fields in DocReports and save DocReport as the name mention in DocReportName property of a Doc sub Series. In above case we have taken 'invoice1' as the Report name. Here is the DocReport properties which you have to set for plain paper invoice with their recommend values:
  
Property
Value
BF_LinesAfter
1
BF_LinesBefore
1
BF_ColID
2
BFTotalName
Total B/F
BFTotals
True
BottomLine
True
BottomMargin
2200
CF_RulingAfter
True
CF_RulingBefore
True
CF_ColID
2
CFTotalName
Total C/F
CFTotals
True
CopyNames1
Original,Duplicate,Triplicate,Quarduplicate
CopyNames2
Input Tax Credit is available to a,Input Tax Credit is not available
CopyNames3
Taxable Person against this copy only.,against this copy.
DosModePrinting
False
DoubleLineWithGrandTotals
True
EachPageFooter
INV_FOOT
FontName
Arial
FontSize
10
Heading
True
HeadingFontBold
True
HeadingFontName
Arial
HeadingFontSize
10
HeadingHorizontal1
-
HeadingHorizontal2
-
HeadingLines
1
MainHeadForm1
INV_HEAD
MainHeadForm2
INV_HEAD
PaperSize
A4
RulingChr1
|
SubForm6
INV_FORM6

After that you have to create Doc Report Forms as names mention in EachPageFooter, MainHeadForm1, MainHeadForm2, SubForm6. Add the required fields in report forms. Don't forgot to add 1022, 1023 variables in the form name mention in SubForm6 property.

Now after doing above written tasks you may create an invoice. The last job you have to do is the document posting. To do posting study Doc Posting topic.