forked from verdnatura/hedera-web
SQL refactor
This commit is contained in:
parent
dc41737464
commit
55b5409624
|
@ -1,4 +1,4 @@
|
|||
hedera-web (1.406.49) stable; urgency=low
|
||||
hedera-web (1.406.50) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
SELECT o.id, o.sent, o.notes, o.companyFk,
|
||||
ag.description agency, v.code method,
|
||||
ad.nickname, ad.postalCode, ad.city, ad.street,
|
||||
t.*, c.credit, myClientGetDebt(NULL) debt
|
||||
t.*, c.credit, myClient_getDebt(NULL) debt
|
||||
FROM myBasket o
|
||||
JOIN vn.agencyMode ag ON ag.id = o.agencyModeFk
|
||||
LEFT JOIN myAddress ad ON ad.id = o.addressFk
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
<db-form property="form">
|
||||
<db-model property="model">
|
||||
<custom>
|
||||
SELECT -myClientGetDebt(NULL) debt
|
||||
SELECT -myClient_getDebt(NULL) debt
|
||||
</custom>
|
||||
</db-model>
|
||||
</db-form>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hedera-web",
|
||||
"version": "1.406.49",
|
||||
"version": "1.406.50",
|
||||
"description": "Verdnatura web page",
|
||||
"license": "GPL-3.0",
|
||||
"repository": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
SELECT CONCAT_WS('/', c.pdfsDir, invoiceGetPath(#invoice))
|
||||
SELECT CONCAT_WS('/', c.pdfsDir, vn.invoiceOut_getPath(#invoice))
|
||||
FROM config c
|
||||
JOIN myInvoice i
|
||||
WHERE i.id = #invoice
|
||||
|
|
|
@ -32,7 +32,7 @@ class RestService extends Service {
|
|||
$method->service = $this;
|
||||
|
||||
if ($method::SECURITY == Security::DEFINER) {
|
||||
$isAuthorized = $db->getValue('SELECT userCheckRestPriv(#)',
|
||||
$isAuthorized = $db->getValue('SELECT myUser_checkRestPriv(#)',
|
||||
[$_REQUEST['method']]);
|
||||
|
||||
if (!$isAuthorized)
|
||||
|
|
Loading…
Reference in New Issue