Hello All!
I am trying to calculate the warranty on a product.
My setup has a DBF. I am setting the current date (i.e. billing date) by:
and displaying it in the DBF using:
as the billing date should not be editable. I am relying on the couch cms method wherein the publish date is by default set to the current date.
Below there are two radio buttons having values:
denoting the warranty on the product.
When a bill is generated the person on the counter will select the warranty (using the radio button). To calculate the warranty I referred to viewtopic.php?f=8&t=10559#p28383. And was able to calculate the date of warranty by:
I need help to be able to:
1. Display the Warranty expiry date only after selecting the radio option.
2. Saving the Warranty expiry date through the DBF in a datetime editable.
3. Also it would be greate if I could save the Billing date in the DBF in a datetime editable.
Thanks in advance.
Regards,
GenXCoders (Aashish)
I am trying to calculate the warranty on a product.
My setup has a DBF. I am setting the current date (i.e. billing date) by:
- Code: Select all
<cms:set bdate="<cms:date format='F d, Y' />" scope="global" />
and displaying it in the DBF using:
- Code: Select all
<cms:show bdate />
as the billing date should not be editable. I am relying on the couch cms method wherein the publish date is by default set to the current date.
Below there are two radio buttons having values:
3 Years
7 Years
denoting the warranty on the product.
When a bill is generated the person on the counter will select the warranty (using the radio button). To calculate the warranty I referred to viewtopic.php?f=8&t=10559#p28383. And was able to calculate the date of warranty by:
- Code: Select all
For 3 Years:
<cms:date '+3 years -1day' />
For 7 Years:
<cms:date '+7 years -1day' />
I need help to be able to:
1. Display the Warranty expiry date only after selecting the radio option.
2. Saving the Warranty expiry date through the DBF in a datetime editable.
3. Also it would be greate if I could save the Billing date in the DBF in a datetime editable.
Thanks in advance.
Regards,
GenXCoders (Aashish)