FULLONBAAN Goodies


Black_Polo
Men’s Polo Black
Forest_Green_Polo
Men’s Polo Forest Green
Heather_Grey_Polo
Men’s Polo Heather Grey
Maroon_Polo
Men’s Polo Maroon
Navy_Blue_Polo
Men’s Polo Navy Blue
Red_Polo
Men’s Polo Red
Royal_Blue_Polo
Men’s Polo Royal Blue
White
Men’s Polo White
Advertisements

DAL – OBJECT HOOKS


table ttccom995

domain tcnama com995.nama.hold

extern domain tcpono hold.value

#include <bic_dal2>
#include <bic_dam>
#include <bic_text>
|************** Object Hooks **************************************************

|This is same as before.program event in BAAN IV. This Object hook performs the following basic actions
|Read Parameters
|Default Values
|Query Extension
|Function Return Values
|DALHOOKERROR – If the return value is zero, the method continues.

function extern long before.open.object.set()
{

| Read Parameters
if tdpur995.read.parameters() then
return(DALHOOKERROR)
endif
| Default Values
hold.value = 100
query.extend.select(“tccom995.*”)
query.extend.from(“tccom995 “)
query.extend.where(“:tccom995.emno = 1000”)
return(0)
}
function extern long method.is.allowed(long meth)
{
domain tcbool change.allowed

on case meth
case DAL_DESTROY:
if not activities.ok() then
return(false)
endif
if not delete.order.header.allowed() then
return(false)
endif
break
case DAL_UPDATE:
if not activities.ok() then
return(false)
endif
with.old.object.values.do(change.order.header.allowed,
change.allowed)
if not change.allowed then
return(false)
endif
break
endcase
return(true)
}
|Similar to after.read
function extern long after.get.object()
{

itccom0000.get.multi.currency.data(tccom995.comp)
return(0)
}

|Similar to before.write & before.rewrite

function extern long before.save.object(long mode)
{
long ret_val

if mode = DAL_NEW then

if isspace(tccom995.nama) then
dal.set.error.message(“<message_code>”)
|”Name needs to be filled.”
return(DALHOOKERROR)
endif
endif
if mode = DAL_UPDATE then
with.old.object.values.do(tccom995.get.previous.values)

if com995.nama.hold = tccom995.nama then
dal.set.error.message(“<message_code>”)
|”No Modification in Name.”
return(DALHOOKERROR)
endif

if isspace(tccom995.nama) then
dal.set.error.message(“<message_code>”)
|”Name needs to be filled.”
return(DALHOOKERROR)
endif

endif

return(0)
}
|Similar to after.write & after.rewrite

function extern long after.save.object(long mode)
{
long ret_val

if mode = DAL_NEW then
insert.extension.table()

endif

if mode = DAL_UPDATE then
update.extension.table()

endif
return(0)
}

|Similar to before.delete
function extern long before.destroy.object()
{
if extension.line.data.present() then
|* First Delete Extension table data
return(DALHOOKERROR)
endif

return(0)
}

|Similar to after.delete

function extern long after.destroy.object()
{
delete.extension.line.data()
return(0)
}
|Similar to after.update.db.commit.transaction
function extern long after.commit.transaction()
{

|free.memory.for.tabs()
return(0)
}

function extern tccom995.get.previous.values()
{

com995.nama.hold = tccom995.nama
}

Debugging Script Options


Command Action
b [ line_number] Toggle a break point on the current or specified line of the current or specified source.

The line is highlighted, when break point is set.

B Display all set break points in the current or specified source.
c [number] Continue (execute the source) up to the next break point. If you specify a number,

the debugger skips that number of break points. The executed source lines are not displayed.

d Delete the break point on the specified line number in the source. If you do not specify a line

number, the debugger provides the opportunity to interactively delete any break point in the

current source file.

D Delete all set break points in the specified or current source.
delete all Delete all traces and stop instructions.
delete number Delete a specified trace or stop instruction.
<expression> Execute the specified expression.
g line_number Continue program execution at the specified line number (goto).
help (or ?) Start the Help Viewer for debugger options.
l Display the full list of program variables.
L Display the list of program variables that have a value, and display their current values.

To stop displaying the contents of an array, enter ‘n’ at the question ‘More ?’.

q Exit the debugger (quit).
return Continue execution until the end of the current function.
s [number] Execute the program step by step, the specified number of instructions at a time

(default is 1). During execution, the intermediate source lines are not displayed.

S [number] Similar to ‘s’, except that a function call is executed as a single statement.
stop if <expression> Stop execution when expression is True.
stop in <function> Stop execution when function is entered.
t variable Trace the specified variable during program execution. The execution of the program

stops every time the value of the variable is changed. You cannot trace array variables or

common variables.

T variable [value] Same as ‘t’, except that program execution is not stopped when the variable changes.

If you specify a value, execution stops when the variable gets that value.

u [variable] Stop tracing the specified variable. If no variable is specified, you can stop tracing each

variable interactively.

U Stop tracing all variables currently being traced.
/pattern Seek a matching text pattern in the current source and display that line.
<Arrow up>/ <Arrow down> In history mode, these display previously executed commands on the command line.

In normal mode, these move the cursor through the source.



VAT BOOK SETUP


VAT book Setup:

To set up registration of transactions for the VAT book, use the following sequence of sessions:

  1. Company Parameters (tfgld0503m000)

Select the VAT Book check box.

  1. Reasons (tcmcs0105m000)

If you must print a section of the law related to the taxation on the VAT book reports, define a reason for the article. Type the text that must appear on the tax reports in the reason description field and in the Reason Type field, select Tax Article.

  1. Tax Codes by Country (tcmcs0136s000)

For each tax code of which the transactions must be included in the VAT book, select the Include In VAT Book check box. The Kind of Tax must be VAT. For intracommunity purchase VAT, use a tax code of the Shifted type.

For tax codes for which you must print the tax article, select the corresponding reason in the Tax Article field.

  1. VAT Books (tfgld0160m000)

Define one or several VAT books. You can define as many VAT books as you require. You must define at least one VAT book of the Purchase type and one VAT book of the Sales type.

For Purchase VAT books intended for intracommunity purchase transactions, select the Intra-EC check box. The tax on these transactions must be Shifted tax.

  1. Transaction Types (tfgld0511m000)
  •     For transaction types of which the transactions must be included in the VAT book, select the VAT book in the VAT Book field. You can only select a VAT book if inclusion in the VAT book is permitted for the transaction type. For details, refer to VAT book transaction types.
  •     Create one series for each transaction type that you linked to a VAT book. You can define a single series for each tax year, and you must enter the year in the Tax Year field. VAT book transactions can only be processed if the tax year of the document number equals the transaction entry date of the batch. Note that the tax year does not become part of the document number.
  •      Create transaction types for self-billing transactions for purchase invoices, for debit notes, and for freight invoices that must be included in the VAT book.
  1. ACP Parameters (tfacp0100m000)

Select the transaction types created in the previous step in the following fields:

Self Billing Transaction Type for VAT Book

Self Billing Transaction Type for Intra-EC VAT Book

Debit Memo Transaction Type for VAT Book

Freight Invoices Transaction Type for VAT Book

Freight Invoices Transaction Type for Intra-EC VAT Book

To generate and view the VAT book, you can use the following sessions:

  1. Print VAT Book (tfgld1435m000) 


Use this session to generate and print the VAT book report.

  1. VAT Book (tfgld1536m000) 


Use this session to view the details of the VAT books that you have generated in the Print VAT Book (tfgld1435m000) session.

  1. VAT Book Details (tfgld1535m000) 


Use this session to view the VAT book transactions.

  1. Print VAT Liquidation (tfgld1434m000)

Use this session to generate and print the VAT liquidation report. If you click VAT Liquidation, LN displays the resulting total amounts in a dialogue box. You can change the following amounts:

  • Previous Year Credit Used in the Period
  • VAT Payable/Recoverable from previous year
  1. VAT Liquidation (tfgld1534m000) 


After you print a Final version of the VAT liquidation report, you can use this session to view the various VAT liquidation amounts. You cannot change the amounts.

  1. Archive / Delete VAT Book Details (tfgld1235m000)

Use this session to archive and/or delete the VAT book transactions and reports. You can only archive and/or delete the VAT book details if the VAT book report has the status Final or Reprint.

You cannot delete the VAT book summary and the VAT liquidation report. You can copy the VAT book summary and the VAT liquidation report to the archive company, however, these reports are not deleted from the operational company.