Auto-fill Invoice number on selecting generate Purchase Order in Vtiger CRM


Auto-fill Invoice number on selecting generate Purchase Order in Vtiger CRM



I think my question concerns with the following function in vtiger/moodules/Inventory/model/Record.php


function setRecordFieldValues($parentRecordModel) {
$currentUser = Users_Record_Model::getCurrentUserModel();

$fieldsList = array_keys($this->getModule()->getFields());
$parentFieldsList = array_keys($parentRecordModel->getModule()->getFields());

$commonFields = array_intersect($fieldsList, $mergeArray);
foreach ($commonFields as $fieldName) {
if (getFieldVisibilityPermission($parentRecordModel->getModuleName(), $currentUser->getId(), $fieldName) == 0) {
$this->set($fieldName, $parentRecordModel->get($fieldName));
}
}
if($this->getModuleName() == 'PurchaseOrder' && getFieldVisibilityPermission($parentRecordModel->getModuleName(), $currentUser->getId(), 'account_id') == 0) {
$this->set('accountid',$parentRecordModel->get('account_id'));
}
return $this;
}





Question is still not clear... What you want to achieve and whats the issue? What you have tried?
– sAcH
2 days ago





in invoice page select any invoice number and then from the right cornor click on more and then select generate purchase order.On that purchaseorder page the tracking invoice no field is not auto fill.
– gaurav singh
2 days ago









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

Opening a url is failing in Swift

Export result set on Dbeaver to CSV