For purposes of this section, the amount of any credit attributable to the purchase of agricultural equipment by a partnership or electing small business corporation (S corporation) shall be allocated to the individual partners or shareholders in proportion to their ownership or interest in the partnership or S corporation.