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;
}
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.
Question is still not clear... What you want to achieve and whats the issue? What you have tried?
– sAcH
2 days ago