deception and cheating

Charging the customer under a wrong, misleading pretext

Q: I work at a company that sells wooden boards. Carpenters come to us with the measurements of the customer’s job, then we use a computer program to work out how many boards the customer will require. Sometimes, the customer only requires two boards but the carpenter asks us to charge him for three boards. The customer thinks that he needs three boards and is paying for three, whereas he only needs two and is only receiving two while the carpenter takes the money from us quietly for the third board. My boss says that we are not doing anything wrong because the carpenter is taking the money and we are not taking anything. Is this permissible?