-
Posts
4,868 -
Joined
-
Last visited
-
Days Won
390
Everything posted by Blesta Addons
-
google finnance not working . even if we use yahoo first , then switching to google , the rate are not updated .
-
after so many test , google finnance are not working ... is a bug if you set the yahoo first and switch to google finnance , the rates are the same , a simple test . use yahoo with Pad Exchange Rates 5% , update the rates , now switch to google, and put Pad Exchange Rates to 10% or any other number, update the rates , you will find that they are the same old saved data . i think this is a bug .
-
there are some module have a sample like cpanel . can you post your sethtml() ?
-
my question is , what about the favorites registred link ? i think in some case the dropdown will hive some of them . can you get a new place for the favorites links and the search box ?
-
Get A Suspended Service That Has A Invoice Due Date In Future
Blesta Addons replied to Blesta Addons's topic in General
i want to make my own cronjob . v2.5 was thing that we can't live without it now , from it this case . i don't know how it work in v2.5 but it has a logic/code that do the work for us . example service A , has invoice AA due date is today . invoice AB due date next week . service B . has invoice BB due date today . service C . has no invoices in the cron job at 00:00 , the service A, B are suspended . after 2 days . we change the invoice AA due date to next mounth . we suspend the service C manually for sending spam . in cron job at 00:00 , service A are unsuspended . after 7 days invoice CA has been regenerated auto for renewal for service C . invoice AB has due date today . in cron job at 00:00 , service C is still suspended , service A suspended . in V3 some of this actions are not working like the service C is unsuspended after regenerate a invoice for it !!! really i don't matter if the slow query , but my concern is to get what it should do for me . i will make/watch more cases that can happen in v3 . NOTE : i'm talking about a system that has totally imported from v2 . what i feel is that the log_services is empty after importing, maybe that is the case for that trouble we have . -
i feel the same scenario . and mybe i can assist in separating notes from replies tables , but that is not my role . that is the simple and the logical thing should be . +1 . what we can add here if admin/staff change the status, then show it , if the admin/staff has not changed the status show what mike describe in step . why not to add the optional status set by admin near to the default status , like Waiting Staff Reply - In progress Waiting Staff Reply - On Hold default status + custom status .
-
+1
-
Hello , i have this code that is working perfectly . $this->Record = $this->getServices(null, "suspended"); return $this->Record-> innerJoin("invoice_lines", "invoice_lines.service_id", "=", "services.id", false)-> innerJoin("invoices", "invoices.id", "=", "invoice_lines.invoice_id", false)-> where("invoices.status", "in", array("active", "proforma"))-> where("invoices.date_closed", "=", null)-> where("invoices.date_due", ">=", $this->dateToUtc(date("c")))-> // where("services.date_suspended", ">=", "invoices.date_billed" )-> where("client_groups.id", "=", $client_group_id)-> group(array("services.id"))-> fetchAll(); but i want to add a condition to check if exist another invoice that has due date in the past . let say i have service wish have a two invoice , 1 has a future due date, and other has a old past due date . in my query i don't want to be in the result .
-
from my point of view , making notes as reply is a logical error . notes != reply . if you remember , i have notified about a problem in notes for multi-languages , notes should be moved to a separate table . that is just my opinion . but i think is not impossible to find a condition that will check last reply that is not the note . regarding my first request , i believe the status is soo helpfully , specially when you have a average of list of 20 or 30 ticket opens . Awaiting Client Reply (automatically set after a staff member responds) Awaiting Staff Reply (automatically set after a client responds to a ticket)
-
thanks , i have thought than cron is not working , and then i want to confirm the case . but it appear the unsespension is not working as i have thought and as blesta v2 do . for me and my staff , we in v2 , we just changing the due date , and blesta take care for suspend and unsuspend services . now i have understand why blesta use the log_table to get services pending fo unsespension . this is a other feature that was exist in v2 and not exist in v3 this behavior can be changed in the future or is related to so many other functions that make this a obstacle to exist in the core ?
-
Mike, we are not talking about open or closed . awaiting reply is also open, on hold is also open . open is also open . but we talk about a more descriptive status , if you log as a client , the ticket is open , can you know the ticket is replied by staff or not ? you can't ... what we need here is simplifying the life for both staff or client . note this status was exist in v2
-
no one can test ?!!
-
Hello . if you have any suspended service that is cause by the unpaid invoice . change the due date of the invoice to a future date like 6-6-2019 . the service will unsuspended or not by the cron ?
-
happy to see this .
-
when a client open a tiket , and a staff make a response , the status is open . when a client open a tiket , and a staff make a response, client make a response , the status is open . is better to add new status , waiting staff response .. that way the client know the ticket waiting other's response, the actual scenario , the client should always enter the ticket to see there is a new update .
-
for some reasons we have stopped new orders now .
-
changed the the importer file blesta2_5.php to make the invoices & transaction imported after the services import "importServices", // works "importInvoices", // works "importTransactions", // works and the invoices lines are well identified the services corresponding .
-
in database i have found the the all the invoice lines has a null value in service_id . the importer can't determinate the service id ?
-
hello from v2 , it was a option in invoice edit mode showing if the line are attached to a service or not it was just a asterisk in the line end (*) . this asterisk was very helpful for staff to know if the invoice has any relation with a service , now we can't find wich invoice we should change over due date to prevent service suspension . a realm scenario , we have a service X , the system generate a invoice in their renewal date set , the client sometime order the same service for this service, the staff create a invoice with the same label and price , and we give the client some time between the two invoice, is some case the client request changing the due date , the staf can't determinate wich invoice to edit , they need to change them all now,(5/6 invoices) , and normally they can change just the one attached to the service . sorry, v2 was wonderfull for our work just for this little tips in core
-
it has some own ideas and shema and wordkaround . we have split from it the multi-languages & cart_menu plugins that can feat anyone . if you want a powerfull blesta cms , i suggest a blesta cms of licencecart .
-
Hello Tyson , i found it , i should add the callback first in the order_type public function setCart(SessionCart $cart) { parent::setCart($cart); $this->cart->setCallback("prequeueItem", array($this, "prequeueItem")); $this->cart->setCallback("addItem", array($this, "addItem")); }
-
i'm talking about the order_types . if you look to order_type_domain.php you will find a events like public function prequeueItem(EventObject $event) {} and public function addItem(EventObject $event) {} and they are working and i'm using them . but the updateItem() and removeItem() event not working . from session cart componenets /** * Adds an item to the cart * * @param mixed $item The item to add to the cart * @return int The index the item was added to */ public function addItem($item) { $cart = $this->get(); $i = count($cart['items']); $cart['items'][$i] = $item; $this->setData("items", $cart['items']); $event = new EventObject("SessionCart." . $this->cart_name . ".addItem", array('item' => $item, 'index' => $i)); $this->Events->trigger($event); return $i; } /** * Update an item in the cart * * @param int $index The index to update * @param mixed $item The item to update at the given index */ public function updateItem($index, $item) { $cart = $this->get(); $cart['items'][$index] = $item; $this->setData("items", $cart['items']); $event = new EventObject("SessionCart." . $this->cart_name . ".updateItem", array('item' => $item, 'index' => $index)); $this->Events->trigger($event); }
-
we have found no service has been suspended . i give you two example 1 - service has expiration date in 26-3-2016 . normally it should be suspended 27-3-2016 if the related invoice was not paid . 2 - service has a expiration date lat mounth , but we change the due date invoice to +1mounth more, so if the client pay the invoice before the due date the service remain active , if related invoice was not paid before the due date , the service should be suspended in the due date invoice . note all invoice was generated auto . the new system has not suspended any service , and no inoice was generated . we have run the cron in v2.5 manually and we found the mentioned services was suspended , and other invoice has been generated . the cron in v3 is running every 5 minute . should i look to somwhere to check if something is needed or missed .
-
Thanks for the answer . 27th + 1 day grace period = 28th . in blesta v2.5 was working this way .
-
is blesta hosted in the same server that you use to provisioning plesk services ? if yes , that is the issue , when account is created , plesk restart apache, then blesta lose connection with plesk .