Payment terms separate the moment of a sale or expense from the moment it is settled. A sale at 30 days is collected the following month. To build a cash flow plan, you shift the flows by these terms (in pandas with shift) and don't forget the receivables and payables that already exist at the start.
Example
encaissements = ventes.shift(1) # payment at 30 days