Пример #1
0
 private function makeSyncEntry(UploadDTO\BillEntryDto $billEntryDto)
 {
     $newBillEntry = $this->getTableObj()->getNewBill($billEntryDto->billNo, $billEntryDto->restaurantId, $billEntryDto->userId);
     if (!is_null($newBillEntry)) {
         $syncController = new SyncController();
         $syncResult = $syncController->billEntry($billEntryDto->userId, json_encode($newBillEntry), $this->insert, $billEntryDto->restaurantId);
         Log::debug(' New bill entry successfully place in sync table');
         return $syncResult;
     }
     Log::error('Error occured in sync entry of new bill');
     return;
 }