A - client company
B - IT staffing company

So basically I got a part time programming job through 'B' company for 'A' company's project. Due to the staffing / contract position, 'B' company is the one who actually pays me.

After setting up program environment, analyzing project, talking with 'A' company's managers etc, 'A' company suddenly decided to drop me and go with another programmer. 'B' company informed me to sum up hours I worked then report to them so I can be paid.

I reported 'B' company the hours I've worked (10 hours, extremely honest) but now 'B' company replied that they won't be able to pay anything since 'A' company doesn't honors the hours I worked on this project.

No matter how the deal between 'A' and 'B' goes, doesn't 'B' company still has to pay me anyway? For example, even though an employee only works for the first day (watching HR video, drink coffee, reading manual whole day, getting urine sample from clinic) and gets fired; the company still pays 1 day of work right?

I understand that short life span of contract / part time / project job, I get it. But not getting paid at all is what I don't understand. What should I do in this case, so I can at least compensated for hours I worked on this project?

Thank you.
user
Contract company refuses to pay me since the client company won't honor my
assistant
A - client company
B - IT staffing company

So basically I got a part time programming job through 'B' company for 'A' company's project. Due to the staffing / contract position, 'B' company is the one who actually pays me.

After setting up program environment, analyzing project, talking with 'A' company's managers etc, 'A' company suddenly decided to drop me and go with another programmer. 'B' company informed me to sum up hours I worked then report to them so I can be paid.

I reported 'B' company the hours I've worked (10 hours, extremely honest) but now 'B' company replied that they won't be able to pay anything since 'A' company doesn't honors the hours I worked on this project.

No matter how the deal between 'A' and 'B' goes, doesn't 'B' company still has to pay me anyway? For example, even though an employee only works for the first day (watching HR video, drink coffee, reading manual whole day, getting urine sample from clinic) and gets fired; the company still pays 1 day of work right?

I understand that short life span of contract / part time / project job, I get it. But not getting paid at all is what I don't understand. What should I do in this case, so I can at least compensated for hours I worked on this project?

Thank you.
user
client company refuses to pay me for hours I worked on the project.
assistant