Gerhard Jungwirth
c6abfbc7cb
Correctly select customers under reseller-> customers section
...
Only show the most applicable billing_profile using the complex
query from the Contract controller
Mantis: 3855
12 years ago
Gerhard Jungwirth
594f341ee8
Preserve the product_id when updating a billing_mapping
...
This had created a billing_mapping with product_id = NULL before, which
is no longer a valid option and caused the panel to fail
12 years ago
Andreas Granig
7f7e6cbca8
Assign contracts to sipaccount product by default.
12 years ago
Andreas Granig
754f1f7887
Align customer detection to product handling.
12 years ago
Andreas Granig
fe580d3c53
Show product name in customer details.
12 years ago
Andreas Granig
e6b9a0aad0
Add product selection for customer contracts.
12 years ago
Gerhard Jungwirth
b856662883
Call end-user-contracts customers to avoid confusion
...
especially when the user navigates here from the Customer controller
Mantis: 0003605
12 years ago
Andreas Granig
ad9a8bb4dd
Use localtime in TS and set createtime for subs.
...
Consequently use server's localtime to align with auto-filled timestamps.
Set create_timestamp when creating subscribers.
12 years ago
Gerhard Jungwirth
4e49c963aa
use the message utility for all controllers
12 years ago
Andreas Granig
0f9d12f8a7
Prevent termination of contract with id 1.
12 years ago
Andreas Granig
083fbc71ca
Catch all exceptions and log errors as error.
12 years ago
Andreas Granig
a164d0b126
Gracefully handle missing billing profile.
12 years ago
Andreas Granig
119039dd5a
Set create/modify timestamp.
12 years ago
Andreas Granig
d31ff8b9f1
Put result sets to stash.
...
Fixes last commit.
12 years ago
Andreas Granig
fc45e11c49
Remove noreseller hack.
...
Add proper create_reseller function for creating reseller contracts.
12 years ago
Andreas Granig
d2db386252
Fix contract creation and subscriber lock handling
...
Properly create contact on-the-go.
Set lock preferences of subscribers only if >0.
12 years ago
Andreas Granig
6d38442876
Filter terminated elements; visual cleanups.
...
Don't show terminated resellers and contracts.
Wrap customer details into accordion.
12 years ago
Andreas Granig
e1f7a4710e
Properly handle back button.
12 years ago
Andreas Granig
21af84fdf6
Lots of cleanups and bugfixes and back-nav.
...
Implement automatic back navigation.
Fix subscriber creation.
Unify controller handling.
12 years ago
Andreas Granig
08e5a2a3a8
Propagate reseller and contract status to children
...
Properly terminate/lock/unlock sub-contracts and subscribers if the
parent contract status changes.
12 years ago
Andreas Granig
3494c02e27
Terminate children on contract termination.
...
Terminate customer contracts and subscribers on reseller termination.
Terminate subscribers on customer contract termination.
12 years ago
Andreas Granig
bee006efcd
Rework reseller handling.
12 years ago
Andreas Granig
6e7ddeeac3
Properly propagate new contract back to reseller.
12 years ago
Andreas Granig
5e0c8faa0a
Properly carry back new objects in nav-chain.
...
If you create something (e.g. a contract) and have a sub-field
you create on-the-go (e.g. contact and billing profile), then
properly pre-select them once you get back to the original view
(the contract form in this example).
12 years ago
Andreas Granig
9350d4258e
Fix contract and peering creation.
12 years ago
Andreas Granig
04296de4c4
First part of reworking reseller handling.
12 years ago
Andreas Granig
0b37392f54
Enhance navigation.
...
Simplify back-uri for navigation utils calls.
Start using back_or navigation utils function for auto-checking
close-targets.
Move navigation stack check into auto of each controller.
12 years ago
Andreas Granig
4b3d1caab6
Streamline forms in regards to submitid.
12 years ago
Andreas Granig
af28876437
Propagate primary number change to CF and VM.
12 years ago
Andreas Granig
1c48ba879d
Gracefully handle contract without billing profile.
...
This should actually never happen (tm).
12 years ago
Andreas Granig
394595cd48
Implement subscriber creation.
12 years ago
Gerhard Jungwirth
4b4c393c41
adapt new schema with single namespace
...
just domain creation/delete is not working yet
12 years ago
Andreas Granig
74ae3d91d3
Add customer list to reseller details.
12 years ago
Andreas Granig
761aab3220
Implement reseller and billing widget for admins.
12 years ago
Andreas Granig
3911119b39
Make datatables fields searchable by "subnames".
12 years ago
Andreas Granig
be0cea94be
Display billing profile name instead of id. WIP.
12 years ago
Andreas Granig
26879effe6
Fix customer creation.
...
Point link to Contract controller on creation.
Redirect into customer details after creation.
12 years ago
Andreas Granig
5a4c362152
Implement contract balance handling.
12 years ago
Andreas Granig
8245329a76
Implement listing of customer contracts.
12 years ago
Andreas Granig
cba76fc619
Write contract_balance also for peering contracts.
12 years ago
Andreas Granig
98a7b3867c
Move contract_balance creation to tmp helper.
...
This needs to be implemented in the schema at some point!
12 years ago
Lars Dieckow
7a29024cfe
DateTime API
12 years ago
Gerhard Jungwirth
4ef08be450
restructure parameters of NGCP::Panel::Utils::check_form_buttons
...
to allow multiple redirect_uris to be given to it
the old style (arrayref) is still supported though
+fix typo
12 years ago
Andreas Granig
b8b41d8657
Populate contract_balance on contract creation.
...
PoC. Needs to be put into separate module/function, as it needs to be used when
querying a contract balance which doesn't exist.
12 years ago
Lars Dieckow
421f9f319d
centralised ACL roles for all controllers
12 years ago
Gerhard Jungwirth
e9bf0956b9
fix mistaken diff garbage
12 years ago
Gerhard Jungwirth
35776406a9
Correct management of billing_mappings
...
* When session->{create_peering_contract} is set, set the corresponding
product (sippeering).
* When changing the billing_profile create a new billing_mapping with
the start_date of now.
* Preselect the correct billing_mapping on the edit modal-dialog.
12 years ago
Gerhard Jungwirth
8d43a6ae92
select only one billing_mapping per contract
...
select the billing_mapping which has an start_date and end_date closest
to the current time. do not select one that does not match the current time.
also prevent db error about multiple id columns by using 'me.id' in
the root controller
12 years ago
Gerhard Jungwirth
bb0d585418
Implement Create/Show/Update/Delete of Contracts
...
Use sippeering contracts to update peering groups.
12 years ago
Andreas Granig
e3ae499789
Filter reseller contracts.
...
Only show currently active (if edit) and unused contracts when
editing or creating resellers.
12 years ago
Lars Dieckow
0c3e980e61
correct dependencies
12 years ago
Gerhard Jungwirth
5f36ccea1b
outsource TODOs to bugtracker.sipwise.com
12 years ago
Gerhard Jungwirth
d1d4ec754b
make billing_fees editable, add billing_zone as datatables form
...
the use of get_columns in lib/NGCP/Panel/Controller/Billing.pm
line 141 could cause problems according to #dbix-class
12 years ago
Gerhard Jungwirth
080feb9c6f
Commit WIP.
12 years ago
Andreas Granig
320a25024b
Add Contact form and extract redir chain handling.
12 years ago
Andreas Granig
e1d5b84afb
More fixes for the redirecting chain.
12 years ago
Andreas Granig
1d092e5cc6
Fix redirecting back in creation chain.
12 years ago
Andreas Granig
48c8378719
Extend work-flow for reseller creation/edit. WIP.
12 years ago
Andreas Granig
c87ff36170
Add contract and contact lists. WIP.
12 years ago