Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 3 online users. » 0 Member(s) | 1 Guest(s) Applebot, Bing
|
Latest Threads |
Finetuning the way you se...
Forum: coreBOS Development
Last Post: alexandy40d
12-06-2024, 07:38 AM
» Replies: 4
» Views: 8,145
|
MariaDB Version
Forum: Administrator Support
Last Post: joebordes
11-01-2024, 11:49 AM
» Replies: 1
» Views: 645
|
Product Catalog / parts c...
Forum: Modules/Extension Support
Last Post: joebordes
09-15-2024, 09:40 AM
» Replies: 1
» Views: 1,115
|
Challenges and Best Pract...
Forum: coreBOS Development
Last Post: wishforbes
08-30-2024, 04:21 PM
» Replies: 0
» Views: 728
|
PRODUCTS IN ACCOUNTS BY O...
Forum: User Support
Last Post: jonathanmoore858
08-03-2024, 04:14 PM
» Replies: 4
» Views: 2,781
|
Zapier | Integration
Forum: Modules/Extension Support
Last Post: bernardgbailey
07-29-2024, 11:45 PM
» Replies: 7
» Views: 9,871
|
Versión PHP recomendada
Forum: International
Last Post: joebordes
07-04-2024, 05:42 PM
» Replies: 7
» Views: 3,359
|
Could Someone Give me Adv...
Forum: Open Discussions
Last Post: joebordes
06-27-2024, 08:32 AM
» Replies: 1
» Views: 1,712
|
RESTRICTED FILE
Forum: Administrator Support
Last Post: inspectorflint
06-22-2024, 08:08 AM
» Replies: 7
» Views: 5,689
|
GENDOC imágenes
Forum: Open Discussions
Last Post: joebordes
06-02-2024, 05:11 PM
» Replies: 4
» Views: 2,050
|
|
|
Control de stock |
Posted by: JesusPC - 09-01-2017, 09:46 AM - Forum: User Support
- No Replies
|
|
Hola
Intento entender como funciona el tema de control de stock y me gustaría saber porqué al eliminar un documento donde existe ese función (en mi caso Albaranes y ordenes de compra) no devuelve el stock al almacén.
Ordenes de Compra:
Depende del estado, y si no es "Recibido" no "opera", lo cual es super correcto porque aumenta el stock solo con "Recibido".
Una vez recibido, si cambias el estado, modifica el stock (lo descuenta), lo cual es también correcto.
Si elimino la orden "Recibida", se queda el stok como recibido, y ahí viene el problema porque debería "devolver" el stock a sus sitio.
No se si esto hay alguna forma de implementarlo, no es que se den muchos casos, pero se dan, sobretodo porque la aplicación que usabas anteriormente se hacía así.
No puedo eliminar una orden sin antes cancelarla (parece lógico y supongo que será acostumbrarse).
Albaranes:
Aquí no hace caso de las condiciones, directamente descuenta stock y la única forma es modificándolo todo a "0" unidades antes de eliminarlo.
Esto si que es "un lío", al menos, con el estado "Cancelado" es más lógico si no se puede borrando directamente.
¿Alguna idea de como modificar al menos lo de los albaranes?
Gracias!!
|
|
|
Suggestion - Default Filter for User |
Posted by: rslemer - 08-10-2017, 12:34 PM - Forum: Administrator Support
- Replies (3)
|
|
I wish set, thru Global Variables, a default filter for a profile or user.
Today, is a kind of confusion, because, is possible set more than a filter, with a default, and system, saved last option with user, at last login.
I think is good ideia, admin can set, and select a principal filter.
Another thing, I think most functionality is setting to a user, but I suggest, for future, will possible setting to a profile.
|
|
|
Trouble creating a CBupdate that installs a field |
Posted by: Guido1982 - 08-03-2017, 07:15 AM - Forum: coreBOS Development
- Replies (2)
|
|
I have created a cbUpdate that installs a field. This all works fine, but I see a problem when trying to test reversing the update. The update is in 'pending' status. Not sure why, but I can't try the 'undoChange' now either. Not a serious problem, since the field installs correctly, but still, I'd like to know what I'm doing wrong here.
Here's the code:
PHP Code: class installSoFieldInPo extends cbupdaterWorker { function applyChange() { if ($this->hasError()) $this->sendError(); if ($this->isApplied()) { $this->sendMsg('Changeset '.get_class($this).' already applied!'); } else { global $adb; // CODE include_once 'include/utils/utils.php'; include_once('vtlib/Vtiger/Module.php'); $module = Vtiger_Module::getInstance('PurchaseOrder'); $block = Vtiger_Block::getInstance('LBL_PO_INFORMATION', $module); // Setup the field $field = new Vtiger_Field(); $field->name = 'po_related_soid'; $field->label = 'Related SalesOrder'; $field->table = 'vtiger_purchaseorder'; $field->column = 'po_related_soid'; $field->columntype = 'INT(11)'; $field->uitype = 10; $field->typeofdata = 'V~O';
$block->addField($field); $field->setRelatedModules(array('SalesOrder')); } $this->finishExecution(); } function undoChange() { if ($this->hasError()) $this->sendError(); if ($this->isApplied()) { global $adb; // CODE include_once('vtlib/Vtiger/Module.php');
$module = Vtiger_Module::getInstance('PurchaseOrder'); $field = new Vtiger_Field(); $field->getInstance('po_related_soid', $module); $field->delete();
$adb->pquery("ALTER TABLE vtiger_purchaseorder DROP COLUMN ?", array('po_related_soid'));
} else { $this->sendMsg('Changeset '.get_class($this).' not applied, it cannot be undone!'); } $this->finishExecution(); } function isApplied() { $done = parent::isApplied(); if (!$done) { global $adb; // CODE: set $done $r = $adb->query("SHOW COLUMNS FROM `vtiger_purchaseorder` LIKE `po_related_soid`"); if ($adb->getAffectedRowCount($r) > 0) { $done = true; } } return $done; } }
|
|
|
Field Mapping: use the source record ID |
Posted by: Guido1982 - 08-03-2017, 07:07 AM - Forum: coreBOS Development
- No Replies
|
|
I'm pretty sure this is possible, just not sure how. I want to use a field mapping to fill one of the target module's UI10 fields with the ID of the record of the source module. Is there a special expression for this?
EDIT
Got it. It's 'record_id'... Could have thought of it...
|
|
|
Feature SAVE and SAVE and Leave |
Posted by: rslemer - 08-02-2017, 07:37 PM - Forum: Administrator Support
- Replies (3)
|
|
Same other system, has a two buttons
Save - system save and execute a pos save function ( like as workflow )
Save and Leave - System save and leave a screen ( for another module, filter or some like that )
Besides that, I wish this button can be setting within block in screen ( not ony top or bottom )
Is possible in coreBOS?
How difficult is implement that?
--
Why?
Because my user, needs calcule a oportunities in negotion time ( in fone line, at current call )
Example
( user ask a custommer in line, and input that )
Value of Contrat, Value of quota, Nr of quotas paid, discount
System needs to show :
Value paid of contract
Value paid considering 30% ( for example ) discount
Residual balance of contract.
--
I think, feature, save and save and leave, I can set this thru workflow or custom function in workflow
This a easy ( or possible ) way to do that?
|
|
|
|