The values mentioned in the first cash flows (the first lines in each of the respective results above) are accrued interests. When buying a bond between coupon dates (cash flow dates), you have to pay for the fraction of the coupon that is proportional to the amount of time since the last coupon date which is approximately,
( now - last coupon date) / (next coupon date - last coupon date)
So, in scenario (A) above, the accrued interest is 0 because the settlement date falls on a coupon date (nothing has accrued). In scenario (B), the accrued interest is close to 6, because the settle date ('1-Dec-2011') is almost reaching the next coupon date ('31-Dec-2011'). The number is negative because while you are receiving the coupons (i.e. 6, 6, 106, an incoming cash flow), you need to pay the accrued interest (it is an outgoing cash flow).
Best Answer