Merge pull request #30420 from nextchamp-saqib/fix-minor-custom-cash-flow

fix: unsupported operand type(s) for +=: 'int' and 'NoneType'