patvisitcreate return pvid
This commit is contained in:
parent
862c6ca8b4
commit
b258584553
@ -33,7 +33,7 @@ class PatVisitModel extends Model {
|
|||||||
|
|
||||||
public function createPatVisit($input) {
|
public function createPatVisit($input) {
|
||||||
try{
|
try{
|
||||||
if(!isset($input['PVID'])) {
|
if(!isset($input['PVID']) || $input['PVID']=='') {
|
||||||
$counter = new CounterModel();
|
$counter = new CounterModel();
|
||||||
$input['PVID'] = $this->visnum_prefix .$counter->use(2);
|
$input['PVID'] = $this->visnum_prefix .$counter->use(2);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user