Irina Peshinskaya
331f1b3582
MT#10045 Use form->values instead of form->params for contract forms
...
To process checkbox correctly
11 years ago
Andreas Granig
d156577873
MT#9167 Fix setting contract timestamps
11 years ago
Kirill Solomko
8c09ffa44a
MT#7705 - fix undef ids detection in error messages. add logging for Contract, Customer
11 years ago
Irka
e313eb7063
MT#8371 Remove duplicate joins contracts_rs with billing_mapping.
11 years ago
Irka
6299743d63
MT#8371 Additional changes for actual billing_mapping optimisation.
...
All billing_mappings for contract are linked now through
billing_mapping_actual view. Datatables configurations changed accordingly.
11 years ago
Kirill Solomko
aca1155e64
MT#7705 - Rework logging for Controller/Contract module
11 years ago
Irina Peshinskaya
2f67a948ac
MT#5879 Contract buttons and generate_invoice.
...
Remove contract buttons from Reseller form work. Fix generate_invoice
error found in run on clean new vm.
11 years ago
Irina Peshinskaya
76b059fae7
MT#5879 Email templates buttons for contract forms.
...
Contract::edit is common for all contracts. For peering contract without
email templates works ok too.
11 years ago
Irina Peshinskaya
9f5bf1ad35
MT#5879 Changes related to invoice email template.
...
All schemas are taken as it was before.
11 years ago
Andreas Granig
6ec99075ca
MT#7471 Implement web and api for contract prefs.
11 years ago
Andreas Granig
432080d384
MT#5929 More external_id fixes.
...
Set external_id to NULL in db if it's empty.
Properly clear ext_xxx_id preferences if external_id gets unset.
11 years ago
Gerhard Jungwirth
9040831ecd
MT#3961 more translations
11 years ago
Gerhard Jungwirth
e76de8b9db
MT#4667 validate contact on contract create
...
On one hand, dont allow (peering,reseller)-contracts to
be created with a wrong contact (which has a reseller id).
On the other hand, dont preselect wrong contacts in the first
place (from created_objects)
12 years ago
Gerhard Jungwirth
b2bcac6fec
MT#3855 Fix empty contract tab on Reseller details
...
When the reseller has a wrong contract assigned to
him, this contract is not shown because it has already
been filtered out in the Contract controller. In favor
of usability now show it anyway.
Also only present correct contracts on edit/create
resellers in the first place.
See (Mantis:3855#c25797)
12 years ago
Gerhard Jungwirth
7945805883
MT#4289 contracts: filter by product and separate terminate
...
Only show reseller and peering contracts in the
Contracts controller. Also remove the generic create
in favour of the peering/create and reseller/create.
Customer controller now has its own terminate routine to be really
independent from the Contract controller.
Now we can expose the Contract controller in the menu.
12 years ago
Gerhard Jungwirth
6fb3119fc9
MT#4289 move /contract/customer/edit to /customer/edit
...
So finally, there is no customer-specific stuff left in the Contract controller.
12 years ago
Gerhard Jungwirth
5caf89894c
MT#4289 separate customer-/contract- create and ajax_reseller_filter
...
Mantis: 4289#c25035
12 years ago
Gerhard Jungwirth
104751bb6a
MT#4289 separate customer/ajax and contract/ajax
...
This is the first step towards separating the
tight coupling of the Customer and Contract Controllers.
Mantis: 4289#c25035
12 years ago
Andreas Granig
074758df8f
MT#3971 Implement limitation of subscribers.
...
Enforce max_subscribers field and allow editing a customer.
12 years ago
Andreas Granig
ff5d127f06
MT#3971 Add max_subscribers field.
...
This only happens when creating customers for now.
12 years ago
Gerhard Jungwirth
01ba8802cf
Fix duplicate showing of contracts under Reseller Details - Reseller Contract
...
The problem occured when a reseller is linked to multiple billing_mappings
Mantis: 3855#c23785
12 years ago
Gerhard Jungwirth
1991296383
Filter Contract Contacts by whether they have a reseller_id
...
in case the product in billing_mappings is one of
(SIP_PEERING, PSTN_PEERING, VOIP_RESELLER)
12 years ago
Gerhard Jungwirth
2f85002f28
Correctly identify customer contracts
...
the product handle was compared to the class name by mistake
12 years ago
Gerhard Jungwirth
f444dc0d81
Show Contract (equals Cusomer-) id
...
For better identification of the current contract in details/edit views.
Mantis: 3885
12 years ago
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