you mentioned about 45 days you have to pay and it is included in your appointment letter, which i assume you accepted, and since became legal and binding.

the provision of the law is basic, any and all agreements entered by the parties if in accordance with the law is also valid.

since you only worked for the company for 1 month, which i also assume, paid for your visa and ticket to come here to Doha is entitled for a compensation based on your agreement with them.

how can you ask for salary for 30 days if you have to pay them for 45 days.. you have all the right to take all your documents back and this will be a good subject of a complaint with the Labor Department. GOODLUCK!!!