Closed elfriedegoetz closed 8 years ago
If you set HIDE_PAYMENT_INFORMATION to false, is billing run generates results?
Did you try to reproduce the error? In my Environment it works with HIDE_PAYMENT_INFORMATION is set to false.
No, because the steps are not clear. How do you check billing results?
What is not clear? I did not understand!
I also do not understand. It is easier to talk about the bug rather that wasting whole day to setting up environment from different branch to see that everything is ok. That is why I am asking the questions. I am asking you kindly to answer.
After billing run was executed a billing result for the subscription should exist in the Database.
To see results in DB you have to run billing against subscription which has been subscribed in already closed billing period. If the results are generated for some period it will not be regenerated again. Results has to be cleared out to generate it again. The configuration setting HIDE_PAYMENT_INFORMATION has nothing in common with results of billing run but only on report. The flag has no impact on generating results.
[Steps to reproduce] set "HIDE_PAYMENT_INFORMATION" to true subscribe to a service with native billing start billing run
for this subscription does not exist any billing result up to now. Of course you have to start the billing run for the next billing period This means you have to run it for a date in the future. Do you have the tool for doing this?
No, we do not. We use debugger for that purpose. In third comment of this topic you wrote you were able to generate results. So I would clear the results in DB and follow the same steps.
Dawid, when you try to reproduce this, please check if you have external billing subscriptions. I have the same problem. My "guess" is that you need to create a subscription that has external billing, and then create a subscription with native billing. Then execute billing run.
Dawid, I think there is a missunderstanding: In my third comment of this topic I wrote:
In my Environment it works with HIDE_PAYMENT_INFORMATION is set to false.>> This means, that billing run works, before I set the hide payment to true. For the new subscription there is no billing result up to this time.
[Steps to reproduce] start with a empty DS set "HIDE_PAYMENT_INFORMATION" to true create Service Provider, publish Service create Customer w/o specifying org E-Mail, addr. subscribe to a service with native billing start billing run
-> it seems that this error has something to do with optional fields for the customer organization. It is important to start with an empty db, so that no payment types or email exist. Please check the log file below:
look in System.log:
05/19/2016_15:44:55.824 FSP_INTS-BSS: INFO: ThreadID RMI TCP Connection(17)-10.140.18.59: BillingServiceBean: 00020: Billing run has started.
05/19/2016_15:44:56.417 FSP_INTS-BSS: WARN: ThreadID RMI TCP Connection(17)-10.140.18.59: BillingConditionsEvaluator: 40303: Billing result schema validation failed. Billing result for organization 11000 (tkey) and subscription 11000 (tkey) is invalid, SAX parser reported: cvc-complex-type.2.4.a: Invalid content was found starting with element 'Name'. One of '{Email}' is expected. Billing result is:
Martin, what should we do if email and address is not provided for customer organization? We have two options:
Please use empty tags in billing result.
[Details of fix] If optional values are not set, empty strings are being used to fullfill mandatory attributes in schema for billing results.
[Build] 2016/08/11 verified
Date:2016/05/13
[Steps to reproduce] set "HIDE_PAYMENT_INFORMATION" to true subscribe to a service with native billing start billing run
[Expected result] billing result for the subscription will be created [Observed result] no billing result