Thanks to Pragatiswain
I have two table with follwing structure
table no:1 BILL_DETAIl
Name Null? Type
------------------------------- -------- ----
BILL_ID NOT NULL NUMBER(38)
S_HEAD_CODE NOT NULL VARCHAR2(12)
SR_NO NOT NULL NUMBER(38)
BILL_AMOUNT NUMBER(38)
DESCRIPTION NOT NULL VARCHAR2(1000)
CATEGORY_CODE NUMBER(38)
COMP_ID NUMBER(38)
TAX_AMOUNT NUMBER(38)
TAX_ID NUMBER(38)
Table: No 2. COMPANY
Name Null? Type
------------------------------- -------- ----
COMP_ID NOT NULL NUMBER(38)
COMP_NAME NOT NULL VARCHAR2(40)
CONTACT_PERSON VARCHAR2(25)
COMP_ADDRESS VARCHAR2(200)
NTN VARCHAR2(15)
OWNER_CNIC VARCHAR2(15)
TOTAL_BUSINESS_ PURCHASE NUMBER(38)
TOTAL_BUSINESS_ REPAIR NUMBER(38)
two days back i make a question that whenever i insert valuse in bill_detail table and when i save record then bill_amount should also be inserted in COMPANY table automatically. That problems has been solved with your help.
Now the problem is when company business in AMOUNT increase from Rs.25000 then that COMPANY will be liable to pay tax at the rate of 6%.
Also when a tax will be paid by any COMPANY then in future if a BILL of Rs.1 is paid then that amount will be taxable. and remember that when tax has been deducted from any amount then that amount will be not be taxable further.
if u want to view othe table's structure that is available in
http://www.thescripts. com/forum/thread567445.ht ml
Please help me to solve this problem.
.
I have two table with follwing structure
table no:1 BILL_DETAIl
Name Null? Type
------------------------------- -------- ----
BILL_ID NOT NULL NUMBER(38)
S_HEAD_CODE NOT NULL VARCHAR2(12)
SR_NO NOT NULL NUMBER(38)
BILL_AMOUNT NUMBER(38)
DESCRIPTION NOT NULL VARCHAR2(1000)
CATEGORY_CODE NUMBER(38)
COMP_ID NUMBER(38)
TAX_AMOUNT NUMBER(38)
TAX_ID NUMBER(38)
Table: No 2. COMPANY
Name Null? Type
------------------------------- -------- ----
COMP_ID NOT NULL NUMBER(38)
COMP_NAME NOT NULL VARCHAR2(40)
CONTACT_PERSON VARCHAR2(25)
COMP_ADDRESS VARCHAR2(200)
NTN VARCHAR2(15)
OWNER_CNIC VARCHAR2(15)
TOTAL_BUSINESS_ PURCHASE NUMBER(38)
TOTAL_BUSINESS_ REPAIR NUMBER(38)
two days back i make a question that whenever i insert valuse in bill_detail table and when i save record then bill_amount should also be inserted in COMPANY table automatically. That problems has been solved with your help.
Now the problem is when company business in AMOUNT increase from Rs.25000 then that COMPANY will be liable to pay tax at the rate of 6%.
Also when a tax will be paid by any COMPANY then in future if a BILL of Rs.1 is paid then that amount will be taxable. and remember that when tax has been deducted from any amount then that amount will be not be taxable further.
if u want to view othe table's structure that is available in
http://www.thescripts. com/forum/thread567445.ht ml
Please help me to solve this problem.
.
Comment