<?php
class InvoiceHeaderTable extends Table {
	
	const C_TABLE 						= "INVOICE_HEADER" ;
	const C_PK                          = "SALES_QUOTATION_ID";
	const C_ID                          = "SALES_QUOTATION_ID";
	const C_INVOICE_NUMBER				= "INVOICE_NUMBER";
	const C_INVOICE_OVERRIDE			= "INVOICE_OVERRIDE";
	const C_INVOICE_TITLE				= "INVOICE_TITLE";
	const C_CUSTOMER_REFERENCE			= "INVOICE_CUSTOMER_REFERENCE";
	const C_PAYMENT_TERMS				= "INVOICE_PAYMENT_TERMS";
	const C_INVOICE_TYPE				= "INVOICE_TYPE";
	const C_INVOICE_VALUE				= "INVOICE_VALUE";
	const C_INVOICE_AMOUNT				= "INVOICE_AMOUNT";
	const C_INVOICE_REMARKS				= "INVOICE_REMARKS";
	const C_PRINT						= "INVOICE_PRINT";
	const C_PRINT_DATE					= "INVOICE_PRINT_DATE";
	const C_SEND						= "INVOICE_SEND";
	const C_SEND_DATE					= "INVOICE_SEND_DATE";
}

class InvoiceHeaderTableDetail extends TableDetail {	
	
	const C_ID        					= "int||NO|(0)";
	const C_INVOICE_NUMBER     			= "nvarchar|50|NO|''";
	const C_INVOICE_OVERRIDE			= "int||NO|(0)";
	const C_INVOICE_TITLE				= "nvarchar|100|NO|''";
	const C_CUSTOMER_REFERENCE			= "nvarchar|30|NO|''";
	const C_PAYMENT_TERMS				= "int||NO|(0)";
	const C_INVOICE_TYPE				= "nchar|1|NO|''";
	const C_INVOICE_VALUE				= "decimal|18,2|NO|(0)";
	const C_INVOICE_AMOUNT				= "decimal|18,2|NO|(0)";
	const C_INVOICE_REMARKS				= "nvarchar|255|NO|''";
	const C_PRINT         				= "int||NO|(0)";
	const C_PRINT_DATE      			= "datetime||NO|getdate()";
	const C_SEND         				= "int||NO|(0)";
	const C_SEND_DATE      				= "datetime||NO|getdate()";
}
?>